CRMEB/crmeb/public/admin/js/chunk-57e74102.1eb79036.js
2022-03-03 11:45:22 +08:00

1 line
18 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57e74102"],{1660:function(t,e,n){},2733:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header header_top"},[n("div",{staticClass:"i-layout-page-header fl_header"},[n("router-link",{attrs:{to:{path:"/admin/setting/sms/sms_config/index"}}},[n("Button",{attrs:{icon:"ios-arrow-back",size:"small",type:"text"}},[t._v("返回")])],1),n("Divider",{attrs:{type:"vertical"}}),n("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"}},[t._v(t._s(t.$route.meta.title))])],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[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),n("Row",{staticClass:"mt50",attrs:{gutter:16}},[n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[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),n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[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),t.checkList?n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[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):t._e(),t.checkList?n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[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):t._e(),n("Col",{staticClass:"ivu-text-left mb20",attrs:{span:"24"}},[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),n("Col",{attrs:{span:"24"}},[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),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)],1)},c=[],u=(n("96cf"),n("3b8d")),a=n("90e7"),o={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(a["u"])().then(function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,r.status?(t.getServeInfo(),t.getPrice()):(t.$Message.warning("请先登录"),t.$router.push("/admin/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(a["U"])().then(function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)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(a["db"])({type:this.isChecked}).then(function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)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(a["L"])(n).then(function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)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)}))}}},s=o,i=(n("a179"),n("2877")),d=Object(i["a"])(s,r,c,!1,null,"76ac5884",null);e["default"]=d.exports},"90e7":function(t,e,n){"use strict";n.d(e,"t",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"zb",(function(){return a})),n.d(e,"yb",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"V",(function(){return i})),n.d(e,"Db",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return l})),n.d(e,"O",(function(){return m})),n.d(e,"U",(function(){return h})),n.d(e,"ab",(function(){return p})),n.d(e,"B",(function(){return b})),n.d(e,"Mb",(function(){return g})),n.d(e,"gb",(function(){return j})),n.d(e,"fb",(function(){return O})),n.d(e,"y",(function(){return v})),n.d(e,"z",(function(){return _})),n.d(e,"l",(function(){return C})),n.d(e,"W",(function(){return w})),n.d(e,"m",(function(){return y})),n.d(e,"Z",(function(){return k})),n.d(e,"Y",(function(){return x})),n.d(e,"X",(function(){return T})),n.d(e,"bb",(function(){return P})),n.d(e,"db",(function(){return S})),n.d(e,"L",(function(){return q})),n.d(e,"eb",(function(){return L})),n.d(e,"qb",(function(){return E})),n.d(e,"G",(function(){return G})),n.d(e,"pb",(function(){return R})),n.d(e,"p",(function(){return $})),n.d(e,"n",(function(){return I})),n.d(e,"o",(function(){return M})),n.d(e,"q",(function(){return U})),n.d(e,"r",(function(){return z})),n.d(e,"hb",(function(){return J})),n.d(e,"Lb",(function(){return B})),n.d(e,"ib",(function(){return D})),n.d(e,"Gb",(function(){return A})),n.d(e,"jb",(function(){return F})),n.d(e,"R",(function(){return H})),n.d(e,"Ib",(function(){return K})),n.d(e,"S",(function(){return N})),n.d(e,"P",(function(){return Q})),n.d(e,"Q",(function(){return V})),n.d(e,"I",(function(){return W})),n.d(e,"A",(function(){return X})),n.d(e,"E",(function(){return Y})),n.d(e,"D",(function(){return Z})),n.d(e,"v",(function(){return tt})),n.d(e,"F",(function(){return et})),n.d(e,"Kb",(function(){return nt})),n.d(e,"s",(function(){return rt})),n.d(e,"Hb",(function(){return ct})),n.d(e,"Jb",(function(){return ut})),n.d(e,"x",(function(){return at})),n.d(e,"C",(function(){return ot})),n.d(e,"w",(function(){return st})),n.d(e,"u",(function(){return it})),n.d(e,"H",(function(){return dt})),n.d(e,"h",(function(){return ft})),n.d(e,"e",(function(){return lt})),n.d(e,"f",(function(){return mt})),n.d(e,"Ab",(function(){return ht})),n.d(e,"Bb",(function(){return pt})),n.d(e,"Cb",(function(){return bt})),n.d(e,"cb",(function(){return gt})),n.d(e,"rb",(function(){return jt})),n.d(e,"J",(function(){return Ot})),n.d(e,"tb",(function(){return vt})),n.d(e,"sb",(function(){return _t})),n.d(e,"ub",(function(){return Ct})),n.d(e,"vb",(function(){return wt})),n.d(e,"wb",(function(){return yt})),n.d(e,"xb",(function(){return kt})),n.d(e,"Eb",(function(){return xt})),n.d(e,"Fb",(function(){return Tt})),n.d(e,"K",(function(){return Pt})),n.d(e,"g",(function(){return St})),n.d(e,"kb",(function(){return qt})),n.d(e,"nb",(function(){return Lt})),n.d(e,"a",(function(){return Et})),n.d(e,"b",(function(){return Gt})),n.d(e,"lb",(function(){return Rt})),n.d(e,"ob",(function(){return $t})),n.d(e,"mb",(function(){return It})),n.d(e,"k",(function(){return Mt})),n.d(e,"M",(function(){return Ut})),n.d(e,"N",(function(){return zt})),n.d(e,"T",(function(){return Jt}));var r=n("6b6c");function c(t){return Object(r["a"])({url:"setting/config/header_basics",method:"get",params:t})}function u(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(t){return Object(r["a"])({url:"serve/modify",method:"post",data:t})}function d(t){return Object(r["a"])({url:"serve/update_phone",method:"post",data:t})}function f(t){return Object(r["a"])({url:"serve/captcha",method:"post",data:t})}function l(t){return Object(r["a"])({url:"serve/checkCode",method:"post",data:t})}function m(t){return Object(r["a"])({url:"serve/register",method:"post",data:t})}function h(){return Object(r["a"])({url:"serve/info",method:"get"})}function p(t){return Object(r["a"])({url:"serve/sms/sign",method:"PUT",data:t})}function b(t){return Object(r["a"])({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function g(t){return Object(r["a"])({url:"app/wechat/speechcraft",method:"get",params:t})}function j(t){return Object(r["a"])({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function O(){return Object(r["a"])({url:"app/wechat/speechcraft/create",method:"get"})}function v(t){return Object(r["a"])({url:"app/feedback",method:"get",params:t})}function _(t){return Object(r["a"])({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function C(){return Object(r["a"])({url:"serve/export_all",method:"get"})}function w(){return Object(r["a"])({url:"serve/open",method:"get"})}function y(t){return Object(r["a"])({url:"serve/export_temp",method:"get",params:t})}function k(t){return Object(r["a"])({url:"serve/record",method:"get",params:t})}function x(t){return Object(r["a"])({url:"serve/open",method:"get",params:t})}function T(t){return Object(r["a"])({url:"serve/opn_express",method:"post",data:t})}function P(t){return Object(r["a"])({url:"serve/sms/open",method:"get",params:t})}function S(t){return Object(r["a"])({url:"serve/meal_list",method:"get",params:t})}function q(t){return Object(r["a"])({url:"serve/pay_meal",method:"post",data:t})}function L(t){return Object(r["a"])({url:"notify/sms/record",method:"get",params:t})}function E(){return Object(r["a"])({url:"merchant/store",method:"GET"})}function G(){return Object(r["a"])({url:"merchant/store/address",method:"GET"})}function R(t){return Object(r["a"])({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function $(t){return Object(r["a"])({url:"freight/express",method:"get",params:t})}function I(){return Object(r["a"])({url:"/freight/express/create",method:"get"})}function M(t){return Object(r["a"])({url:"freight/express/".concat(t,"/edit"),method:"get"})}function U(t){return Object(r["a"])({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function z(){return Object(r["a"])({url:"freight/express/sync_express",method:"get"})}function J(){return Object(r["a"])({url:"app/wechat/speechcraftcate",method:"get"})}function B(){return Object(r["a"])({url:"app/wechat_qrcode/cate/list",method:"get"})}function D(){return Object(r["a"])({url:"app/wechat/speechcraftcate/create",method:"get"})}function A(t){return Object(r["a"])({url:"app/wechat_qrcode/cate/create/".concat(t),method:"get"})}function F(t){return Object(r["a"])({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function H(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function K(t){return Object(r["a"])({url:"app/wechat_qrcode/list",method:"GET",params:t})}function N(t){return Object(r["a"])({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function Q(t){return Object(r["a"])({url:"setting/role/".concat(t.id),method:"post",data:t})}function V(t){return Object(r["a"])({url:"setting/role/".concat(t,"/edit"),method:"get"})}function W(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function X(t){return Object(r["a"])({url:"app/wechat/kefu",method:"get",params:t})}function Y(t){return Object(r["a"])({url:"app/wechat/kefu/create",method:"get",params:t})}function Z(){return Object(r["a"])({url:"app/wechat/kefu/add",method:"get"})}function tt(t){return Object(r["a"])({url:"app/wechat/kefu",method:"post",data:t})}function et(t){return Object(r["a"])({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function nt(t){return Object(r["a"])({url:"app/wechat_qrcode/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function rt(t){return Object(r["a"])({url:"app/wechat_qrcode/user_list/".concat(t.id),method:"get",params:t})}function ct(t){return Object(r["a"])({url:"app/wechat_qrcode/info/".concat(t),method:"get"})}function ut(t,e){return Object(r["a"])({url:"app/wechat_qrcode/save/".concat(t),method:"post",data:e})}function at(t){return Object(r["a"])({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function ot(t,e){return Object(r["a"])({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function st(t){return Object(r["a"])({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function it(){return Object(r["a"])({url:"notify/sms/is_login",method:"GET"})}function dt(){return Object(r["a"])({url:"notify/sms/logout",method:"GET"})}function ft(t){return Object(r["a"])({url:"setting/city/list/".concat(t),method:"get"})}function lt(t){return Object(r["a"])({url:"setting/city/add/".concat(t),method:"get"})}function mt(t){return Object(r["a"])({url:"setting/city/".concat(t,"/edit"),method:"get"})}function ht(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function pt(t){return Object(r["a"])({url:"setting/shipping_templates/city_list",method:"get"})}function bt(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function gt(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function jt(){return Object(r["a"])({url:"merchant/store/get_header",method:"get"})}function Ot(t){return Object(r["a"])({url:"merchant/store",method:"get",params:t})}function vt(t,e){return Object(r["a"])({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function _t(t){return Object(r["a"])({url:"merchant/store/get_info/".concat(t),method:"get"})}function Ct(t){return Object(r["a"])({url:"merchant/store_staff",method:"get",params:t})}function wt(){return Object(r["a"])({url:"merchant/store_staff/create",method:"get"})}function yt(t){return Object(r["a"])({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function kt(t,e){return Object(r["a"])({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function xt(t){return Object(r["a"])({url:"merchant/verify_order",method:"get",params:t})}function Tt(t){return Object(r["a"])({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Pt(){return Object(r["a"])({url:"merchant/store_list",method:"get"})}function St(){return Object(r["a"])({url:"setting/city/clean_cache",method:"get"})}function qt(){return Object(r["a"])({url:"system/config/storage/config",method:"get"})}function Lt(t){return Object(r["a"])({url:"system/config/storage/config",method:"post",data:t})}function Et(t){return Object(r["a"])({url:"system/config/storage/form/".concat(t),method:"get"})}function Gt(t){return Object(r["a"])({url:"system/config/storage/create/".concat(t),method:"get"})}function Rt(t){return Object(r["a"])({url:"system/config/storage",method:"get",params:t})}function $t(t){return Object(r["a"])({url:"system/config/storage/synch/".concat(t),method:"put"})}function It(t){return Object(r["a"])({url:"system/config/storage/status/".concat(t),method:"put"})}function Mt(t){return Object(r["a"])({url:"system/config/storage/domain/".concat(t),method:"get"})}function Ut(){return Object(r["a"])({url:"setting/config_list/31",method:"get"})}function zt(t){return Object(r["a"])({url:"setting/config/save_basics",method:"post",data:t})}function Jt(t){return Object(r["a"])({url:"system/config/storage/save_type/".concat(t),method:"get"})}},a179:function(t,e,n){"use strict";var r=n("1660"),c=n.n(r);c.a}}]);