You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
17 KiB
1 line
17 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3e64b5d4"],{2733:function(t,e,n){"use strict";n.r(e);var r=n("a34a"),c=n.n(r),u=n("90e7"),a=n("d708");function o(t,e,n,r,c,u,a){try{var o=t[u](a),s=o.value}catch(t){return void n(t)}o.done?e(s):Promise.resolve(s).then(r,c)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,c){var u=t.apply(e,n);function a(t){o(u,r,c,a,s,"next",t)}function s(t){o(u,r,c,a,s,"throw",t)}a(void 0)}))}}var i={name:"smsPay",data:function(){return{roterPre:a.a.roterPre,all:{sms:"短信",copy:"商品采集",expr_query:"物流查询",expr_dump:"电子面单打印"},isChecked:"sms",numbers:"",account:"",list:[],current:0,checkList:{},spinShow:!1,code:{}}},created:function(){this.isChecked=this.$route.query.type,this.onIsLogin()},methods:{onIsLogin:function(){var t=this;this.spinShow=!0,Object(u.v)().then(function(){var e=s(c.a.mark((function e(n){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.data.status?(t.getServeInfo(),t.getPrice()):(t.$Message.warning("请先登录"),t.$router.push(t.roterPre+"/setting/sms/sms_config/index?url="+t.$route.path));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getServeInfo:function(){var t=this;Object(u.X)().then(function(){var e=s(c.a.mark((function e(n){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,e.t0=t.isChecked,e.next="sms"===e.t0?4:"copy"===e.t0?6:"expr_dump"===e.t0?8:10;break;case 4:return t.numbers=r.sms.num,e.abrupt("break",12);case 6:return t.numbers=r.copy.num,e.abrupt("break",12);case 8:return t.numbers=r.dump.num,e.abrupt("break",12);case 10:return t.numbers=r.query.num,e.abrupt("break",12);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},onChangeType:function(t){this.current=0,this.getPrice(),this.getServeInfo()},getPrice:function(){var t=this;this.spinShow=!0,Object(u.ab)({type:this.isChecked}).then(function(){var e=s(c.a.mark((function e(n){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t.spinShow=!1}),800),r=n.data,t.list=r.data,t.checkList=t.list[0],t.getCode(t.checkList);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg),t.list=[]}))},check:function(t,e){var n=this;this.spinShow=!0,this.current=e,setTimeout((function(){n.getCode(t),n.checkList=t,n.spinShow=!1}),800)},getCode:function(t){var e=this,n={pay_type:"weixin",meal_id:t.id,price:t.price,num:t.num,type:t.type};Object(u.P)(n).then(function(){var t=s(c.a.mark((function t(n){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.code=n.data;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.code="",e.$Message.error(t.msg)}))}}},d=(n("db3e"),n("2877")),f=Object(d.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_config/index"}}},[n("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回")])],1),n("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"new_tab"},[n("Tabs",{on:{"on-click":t.onChangeType},model:{value:t.isChecked,callback:function(e){t.isChecked=e},expression:"isChecked"}},[n("TabPane",{attrs:{label:"短信",name:"sms"}}),n("TabPane",{attrs:{label:"商品采集",name:"copy"}}),n("TabPane",{attrs:{label:"物流查询",name:"expr_query"}}),n("TabPane",{attrs:{label:"电子面单打印",name:"expr_dump"}})],1)],1),n("Row",{staticClass:"m
|