1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3e64b5d4"],{2733:function(t,e,n){"use strict";n.r(e);var r=n("a34a"),u=n.n(r),c=n("90e7"),a=n("d708");function o(t,e,n,r,u,c,a){try{var o=t[c](a),s=o.value}catch(t){return void n(t)}o.done?e(s):Promise.resolve(s).then(r,u)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,u){var c=t.apply(e,n);function a(t){o(c,r,u,a,s,"next",t)}function s(t){o(c,r,u,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(c.y)().then(function(){var e=s(u.a.mark((function e(n){return u.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(c.db)().then(function(){var e=s(u.a.mark((function e(n){var r;return u.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(c.mb)({type:this.isChecked}).then(function(){var e=s(u.a.mark((function e(n){var r;return u.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(c.T)(n).then(function(){var t=s(u.a.mark((function t(n){return u.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:"mt50",attrs:{gutter:16}},[n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[n("Row",[n("Col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("当前剩余条数:")])]),n("Col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("span",[t._v(t._s(t.numbers))])])],1)],1),n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[n("Row",[n("Col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("选择套餐:")])]),n("Col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("Row",{attrs:{gutter:20}},t._l(t.list,(function(e,r){return n("Col",{key:r,attrs:{xxl:4,xl:8,lg:8,md:12,sm:24,xs:24}},[n("div",{staticClass:"list-goods-list-item mb15",class:{active:r===t.current},on:{click:function(n){return t.check(e,r)}}},[n("div",{staticClass:"list-goods-list-item-title",class:{active:r===t.current}},[t._v("¥ "),n("i",[t._v(t._s(e.price))])]),n("div",{staticClass:"list-goods-list-item-price",class:{active:r===t.current}},[n("span",[t._v(t._s(t.all[t.isChecked])+"条数: "+t._s(e.num))])])])])})),1)],1)],1)],1),t.checkList?n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[n("Row",[n("Col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("充值条数:")])]),n("Col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("span",[t._v(t._s(t.checkList.num))])])],1)],1):t._e(),t.checkList?n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[n("Row",[n("Col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("支付金额:")])]),n("Col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("span",{staticClass:"list-goods-list-item-number"},[t._v("¥"+t._s(t.checkList.price))])])],1)],1):t._e(),n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[n("Row",[n("Col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("付款方式:")])]),n("Col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("span",{staticClass:"list-goods-list-item-pay"},[t._v("微信支付"),t.code.invalid?n("i",[t._v(t._s(" ( 支付码过期时间:"+t.code.invalid+" )"))]):t._e()])])],1)],1),n("Col",{attrs:{span:"24"}},[n("Row",[n("Col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:3}},[t._v(" ")]),n("Col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("div",{staticClass:"list-goods-list-item-code mr20"},[t.code.code_url?n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code.code_url,expression:"code.code_url"}]}):t._e()])])],1)],1),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)],1)}),[],!1,null,"202b39ee",null);e.default=f.exports},"3b36":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"Jb",(function(){return a})),n.d(e,"Ib",(function(){return o})),n.d(e,"j",(function(){return s})),n.d(e,"db",(function(){return i})),n.d(e,"kb",(function(){return d})),n.d(e,"gb",(function(){return f})),n.d(e,"hb",(function(){return m})),n.d(e,"d",(function(){return l})),n.d(e,"eb",(function(){return h})),n.d(e,"Nb",(function(){return p})),n.d(e,"ib",(function(){return b})),n.d(e,"p",(function(){return g})),n.d(e,"o",(function(){return v})),n.d(e,"c",(function(){return O})),n.d(e,"U",(function(){return j})),n.d(e,"mb",(function(){return _})),n.d(e,"T",(function(){return C})),n.d(e,"nb",(function(){return x})),n.d(e,"xb",(function(){return y})),n.d(e,"K",(function(){return w})),n.d(e,"wb",(function(){return k})),n.d(e,"s",(function(){return T})),n.d(e,"q",(function(){return P})),n.d(e,"r",(function(){return S})),n.d(e,"t",(function(){return L})),n.d(e,"u",(function(){return E})),n.d(e,"X",(function(){return $})),n.d(e,"Y",(function(){return G})),n.d(e,"V",(function(){return R})),n.d(e,"W",(function(){return I})),n.d(e,"M",(function(){return M})),n.d(e,"E",(function(){return q})),n.d(e,"I",(function(){return z})),n.d(e,"H",(function(){return U})),n.d(e,"z",(function(){return J})),n.d(e,"J",(function(){return B})),n.d(e,"B",(function(){return F})),n.d(e,"G",(function(){return H})),n.d(e,"A",(function(){return N})),n.d(e,"y",(function(){return A})),n.d(e,"L",(function(){return D})),n.d(e,"i",(function(){return K})),n.d(e,"e",(function(){return Q})),n.d(e,"f",(function(){return V})),n.d(e,"Kb",(function(){return W})),n.d(e,"Lb",(function(){return X})),n.d(e,"Mb",(function(){return Y})),n.d(e,"lb",(function(){return Z})),n.d(e,"yb",(function(){return tt})),n.d(e,"N",(function(){return et})),n.d(e,"Ab",(function(){return nt})),n.d(e,"zb",(function(){return rt})),n.d(e,"Bb",(function(){return ut})),n.d(e,"Cb",(function(){return ct})),n.d(e,"Db",(function(){return at})),n.d(e,"Eb",(function(){return ot})),n.d(e,"Ob",(function(){return st})),n.d(e,"Pb",(function(){return it})),n.d(e,"O",(function(){return dt})),n.d(e,"g",(function(){return ft})),n.d(e,"Qb",(function(){return mt})),n.d(e,"ob",(function(){return lt})),n.d(e,"pb",(function(){return ht})),n.d(e,"F",(function(){return pt})),n.d(e,"C",(function(){return bt})),n.d(e,"jb",(function(){return gt})),n.d(e,"qb",(function(){return vt})),n.d(e,"rb",(function(){return Ot})),n.d(e,"sb",(function(){return jt})),n.d(e,"D",(function(){return _t})),n.d(e,"fb",(function(){return Ct})),n.d(e,"cb",(function(){return xt})),n.d(e,"P",(function(){return yt})),n.d(e,"S",(function(){return wt})),n.d(e,"Q",(function(){return kt})),n.d(e,"R",(function(){return Tt})),n.d(e,"h",(function(){return Pt})),n.d(e,"w",(function(){return St})),n.d(e,"v",(function(){return Lt})),n.d(e,"Z",(function(){return Et})),n.d(e,"tb",(function(){return $t})),n.d(e,"vb",(function(){return Gt})),n.d(e,"b",(function(){return Rt})),n.d(e,"ub",(function(){return It})),n.d(e,"n",(function(){return Mt})),n.d(e,"a",(function(){return qt})),n.d(e,"m",(function(){return zt})),n.d(e,"l",(function(){return Ut})),n.d(e,"Fb",(function(){return Jt})),n.d(e,"Gb",(function(){return Bt})),n.d(e,"Hb",(function(){return Ft})),n.d(e,"ab",(function(){return Ht})),n.d(e,"bb",(function(){return Nt}));var r=n("b6bd");function u(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function c(t,e){return Object(r.a)({url:e,method:"get",params:t})}function a(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function o(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function s(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function i(){return Object(r.a)({url:"serve/info",method:"get"})}function d(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function f(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function m(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function l(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function h(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function p(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function b(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function g(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function v(){return Object(r.a)({url:"serve/export_all",method:"get"})}function O(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function j(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function _(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function C(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function x(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function y(){return Object(r.a)({url:"merchant/store",method:"GET"})}function w(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function k(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function T(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function P(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function S(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function L(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function E(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function $(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function G(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function R(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function I(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function M(){return Object(r.a)({url:"setting/role/create",method:"get"})}function q(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function z(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function U(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function J(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function B(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function F(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function H(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function N(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function A(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function D(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function K(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function Q(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function V(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function W(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function X(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function Y(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function Z(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function tt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function et(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function nt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function rt(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function ut(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function ct(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function at(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function ot(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function st(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function it(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function dt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function ft(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function mt(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function lt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function ht(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function pt(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function bt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function gt(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function vt(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function Ot(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function jt(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function _t(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function Ct(){return Object(r.a)({url:"serve/open",method:"get"})}function xt(){return Object(r.a)({url:"serve/dump_open",method:"get"})}function yt(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function wt(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function kt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function Tt(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function Pt(t){return Object(r.a)({url:"city",method:"get",params:t})}function St(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function Lt(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function Et(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function $t(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function Gt(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function Rt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function It(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Mt(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function qt(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function zt(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function Ut(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Jt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function Bt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Ft(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function Ht(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Nt(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},db3e:function(t,e,n){"use strict";var r=n("3b36");n.n(r).a}}]);
|