new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-abaf9d76.5a1be6d2.js

1 line
16 KiB
JavaScript
Raw Normal View History

2025-03-12 10:47:34 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-abaf9d76"],{"00a4":function(t,e,n){},2733:function(t,e,n){n.r(e);var r=n("c7eb"),c=n("1da1"),u=(n("14d9"),n("90e7")),a={name:"smsPay",data:function(){return{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((()=>{var e=Object(c.a)(Object(r.a)().mark((function e(n){return Object(r.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({path:t.$routeProStr+"/setting/sms/sms_config/index?url="+t.$route.path,query:{type:t.$route.query.type}}));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.cb)().then((()=>{var e=Object(c.a)(Object(r.a)().mark((function e(n){var c;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=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=c.sms.num,e.abrupt("break",12);case 6:return t.numbers=c.copy.num,e.abrupt("break",12);case 8:return t.numbers=c.dump.num,e.abrupt("break",12);case 10:return t.numbers=c.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(){this.current=0,this.getPrice(),this.getServeInfo()},getPrice:function(){var t=this;this.spinShow=!0,Object(u.lb)({type:this.isChecked}).then((()=>{var e=Object(c.a)(Object(r.a)().mark((function e(n){var c;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t.spinShow=!1}),800),c=n.data,t.list=c.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;t={pay_type:"weixin",meal_id:t.id,price:t.price,num:t.num,type:t.type};Object(u.Q)(t).then((()=>{var t=Object(c.a)(Object(r.a)().mark((function t(n){return Object(r.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)}))}}};n("5269"),n=n("2877"),n=Object(n.a)(a,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[e("div",{staticClass:"i-layout-page-header header_top"},[e("div",{staticClass:"i-layout-page-header fl_header"},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/setting/sms/sms_config/index"}}},[e("el-button",{attrs:{size:"small",type:"text"}},[t._v("返回")])],1),e("el-divider",{attrs:{direction:"vertical"}}),e("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"}},[t._v(t._s(t.$route.meta.title))])],1)]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.isChecked,callback:function(e){t.isChecked=e},expression:"isChecked"}},[e("el-tab-pane",{attrs:{label:"短信",name:"sms"}}),e("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),e("el-tab-pane",{attrs:{label:"物流查询",name:"expr_query"}}),e("el-tab-pane",{attrs:{label:"电子面单打印",name:"expr_dump"}})],1),e("el-row",{staticClass:"mt50",attrs:{gutter:16}},[e("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},