CRMEB/crmeb/public/admin/js/chunk-3e0dcbbe.41d8a984.js
2021-07-13 16:49:21 +08:00

1 line
15 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-3e0dcbbe"],{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"},[n("div",{staticClass:"i-layout-page-header"},[n("router-link",{attrs:{to:{path:"/admin/setting/sms/sms_config/index"}}},[n("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回")])],1),n("span",{staticClass:"ivu-page-header-title mr20"},[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"}})],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"),s={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["q"])().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["N"])().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["V"])({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["H"])(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)}))}}},o=s,i=(n("4fde"),n("2877")),d=Object(i["a"])(o,r,c,!1,null,"6e28e782",null);e["default"]=d.exports},"4fde":function(t,e,n){"use strict";n("fe55")},"90e7":function(t,e,n){"use strict";n.d(e,"p",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"mb",(function(){return a})),n.d(e,"lb",(function(){return s})),n.d(e,"g",(function(){return o})),n.d(e,"O",(function(){return i})),n.d(e,"qb",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return l})),n.d(e,"I",(function(){return m})),n.d(e,"N",(function(){return h})),n.d(e,"S",(function(){return p})),n.d(e,"x",(function(){return b})),n.d(e,"tb",(function(){return g})),n.d(e,"Y",(function(){return v})),n.d(e,"X",(function(){return j})),n.d(e,"u",(function(){return O})),n.d(e,"v",(function(){return _})),n.d(e,"i",(function(){return C})),n.d(e,"j",(function(){return k})),n.d(e,"R",(function(){return x})),n.d(e,"Q",(function(){return w})),n.d(e,"P",(function(){return y})),n.d(e,"T",(function(){return T})),n.d(e,"V",(function(){return S})),n.d(e,"H",(function(){return P})),n.d(e,"W",(function(){return L})),n.d(e,"db",(function(){return R})),n.d(e,"C",(function(){return E})),n.d(e,"cb",(function(){return $})),n.d(e,"m",(function(){return G})),n.d(e,"k",(function(){return q})),n.d(e,"l",(function(){return I})),n.d(e,"n",(function(){return M})),n.d(e,"o",(function(){return z})),n.d(e,"Z",(function(){return U})),n.d(e,"ab",(function(){return J})),n.d(e,"bb",(function(){return N})),n.d(e,"L",(function(){return B})),n.d(e,"M",(function(){return H})),n.d(e,"J",(function(){return V})),n.d(e,"K",(function(){return A})),n.d(e,"E",(function(){return D})),n.d(e,"w",(function(){return F})),n.d(e,"A",(function(){return K})),n.d(e,"z",(function(){return Q})),n.d(e,"r",(function(){return W})),n.d(e,"B",(function(){return X})),n.d(e,"t",(function(){return Y})),n.d(e,"y",(function(){return Z})),n.d(e,"s",(function(){return tt})),n.d(e,"q",(function(){return et})),n.d(e,"D",(function(){return nt})),n.d(e,"f",(function(){return rt})),n.d(e,"c",(function(){return ct})),n.d(e,"d",(function(){return ut})),n.d(e,"nb",(function(){return at})),n.d(e,"ob",(function(){return st})),n.d(e,"pb",(function(){return ot})),n.d(e,"U",(function(){return it})),n.d(e,"eb",(function(){return dt})),n.d(e,"F",(function(){return ft})),n.d(e,"gb",(function(){return lt})),n.d(e,"fb",(function(){return mt})),n.d(e,"hb",(function(){return ht})),n.d(e,"ib",(function(){return pt})),n.d(e,"jb",(function(){return bt})),n.d(e,"kb",(function(){return gt})),n.d(e,"rb",(function(){return vt})),n.d(e,"sb",(function(){return jt})),n.d(e,"G",(function(){return Ot})),n.d(e,"e",(function(){return _t}));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 s(){return Object(r["a"])({url:"notify/sms/temp/create",method:"get"})}function o(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 v(t){return Object(r["a"])({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function j(){return Object(r["a"])({url:"app/wechat/speechcraft/create",method:"get"})}function O(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 k(t){return Object(r["a"])({url:"serve/export_temp",method:"get",params:t})}function x(t){return Object(r["a"])({url:"serve/record",method:"get",params:t})}function w(t){return Object(r["a"])({url:"serve/open",method:"get",params:t})}function y(t){return Object(r["a"])({url:"serve/opn_express",method:"post",data:t})}function T(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 P(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 R(){return Object(r["a"])({url:"merchant/store",method:"GET"})}function E(){return Object(r["a"])({url:"merchant/store/address",method:"GET"})}function $(t){return Object(r["a"])({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function G(t){return Object(r["a"])({url:"freight/express",method:"get",params:t})}function q(){return Object(r["a"])({url:"/freight/express/create",method:"get"})}function I(t){return Object(r["a"])({url:"freight/express/".concat(t,"/edit"),method:"get"})}function M(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 U(){return Object(r["a"])({url:"app/wechat/speechcraftcate",method:"get"})}function J(){return Object(r["a"])({url:"app/wechat/speechcraftcate/create",method:"get"})}function N(t){return Object(r["a"])({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function B(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function H(t){return Object(r["a"])({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function V(t){return Object(r["a"])({url:"setting/role/".concat(t.id),method:"post",data:t})}function A(t){return Object(r["a"])({url:"setting/role/".concat(t,"/edit"),method:"get"})}function D(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function F(t){return Object(r["a"])({url:"app/wechat/kefu",method:"get",params:t})}function K(t){return Object(r["a"])({url:"app/wechat/kefu/create",method:"get",params:t})}function Q(){return Object(r["a"])({url:"app/wechat/kefu/add",method:"get"})}function W(t){return Object(r["a"])({url:"app/wechat/kefu",method:"post",data:t})}function X(t){return Object(r["a"])({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function Y(t){return Object(r["a"])({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function Z(t,e){return Object(r["a"])({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function tt(t){return Object(r["a"])({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function et(){return Object(r["a"])({url:"notify/sms/is_login",method:"GET"})}function nt(){return Object(r["a"])({url:"notify/sms/logout",method:"GET"})}function rt(t){return Object(r["a"])({url:"setting/city/list/".concat(t),method:"get"})}function ct(t){return Object(r["a"])({url:"setting/city/add/".concat(t),method:"get"})}function ut(t){return Object(r["a"])({url:"setting/city/".concat(t,"/edit"),method:"get"})}function at(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function st(t){return Object(r["a"])({url:"setting/shipping_templates/city_list",method:"get"})}function ot(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function it(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function dt(){return Object(r["a"])({url:"merchant/store/get_header",method:"get"})}function ft(t){return Object(r["a"])({url:"merchant/store",method:"get",params:t})}function lt(t,e){return Object(r["a"])({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function mt(t){return Object(r["a"])({url:"merchant/store/get_info/".concat(t),method:"get"})}function ht(t){return Object(r["a"])({url:"merchant/store_staff",method:"get",params:t})}function pt(){return Object(r["a"])({url:"merchant/store_staff/create",method:"get"})}function bt(t){return Object(r["a"])({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function gt(t,e){return Object(r["a"])({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function vt(t){return Object(r["a"])({url:"merchant/verify_order",method:"get",params:t})}function jt(t){return Object(r["a"])({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Ot(){return Object(r["a"])({url:"merchant/store_list",method:"get"})}function _t(){return Object(r["a"])({url:"setting/city/clean_cache",method:"get"})}},fe55:function(t,e,n){}}]);