|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b80ff02"],{5944: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("el-card",{staticClass:"product_tabs"},[n("div",[n("router-link",{attrs:{to:{path:"/admin/setting/sms/sms_config/index"}}},[n("el-button",{staticClass:"mr20",attrs:{icon:"el-icon-arrow-left",size:"mini"}},[t._v("返回")])],1),t._v(" "),n("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),t._v(" "),n("el-card",{staticClass:"ivu-mt"},[n("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.isChecked,callback:function(e){t.isChecked=e},expression:"isChecked"}},[n("el-tab-pane",{attrs:{label:"短信",name:"sms"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"物流查询",name:"expr_query"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"电子面单打印",name:"expr_dump"}})],1),t._v(" "),n("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],staticClass:"mt50",attrs:{gutter:16}},[n("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[n("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("当前剩余条数:")])]),t._v(" "),n("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("span",[t._v(t._s(t.numbers))])])],1),t._v(" "),n("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[n("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("选择套餐:")])]),t._v(" "),n("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("el-row",{attrs:{gutter:20}},t._l(t.list,(function(e,r){return n("el-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))])]),t._v(" "),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._v(" "),t.checkList?n("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[n("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("充值条数:")])]),t._v(" "),n("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[n("span",[t._v(t._s(t.checkList.num))])])],1):t._e(),t._v(" "),t.checkList?n("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[n("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("支付金额:")])]),t._v(" "),n("el-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(),t._v(" "),n("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[n("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[n("span",{staticClass:"ivu-text-right ivu-block"},[t._v("付款方式:")])]),t._v(" "),n("el-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),t._v(" "),n("el-col",{attrs:{span:24}},[n("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:3}},[t._v(" ")]),t._v(" "),n("el-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)],1)],1)},s=[],c=n("c80c"),a=(n("96cf"),n("3b8d")),i=n("90e7"),u={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()},activated:function(){this.isChecked=this.$route.query.type},methods:{onIsLogin:function(){var t=this;this.spinShow=!0,Object(i["u"])().then(function(){var e=Object(a["a"])(Object(c["a"])().mark((function e(n){var r;return Object(c["a"])().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.message)}))},getServeInfo:function(){var t=this;Object(i["L"])().then(function(){var e=Object(a["a"])(Object(c["a"])().mark((function e(n){var r;return Object(c["a"])().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.message)}))},onChangeType:function(t){this.current=0,this.getPrice(),this.getServeInfo()},getPrice:function(){var t=this;this.spinShow=!0,Object(i["S"])(this.isChecked).then(function(){var e=Object(a["a"])(Object(c["a"])().mark((function e(n){var r;return Object(c["a"])().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.message),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(i["D"])(n).then(function(){var t=Object(a["a"])(Object(c["a"])().mark((function t(n){return Object(c["a"])().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.message)}))}}},o=u,l=(n("ba5f"),n("2877")),f=Object(l["a"])(o,r,s,!1,null,"112fd25f",null);e["default"]=f.exports},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return s})),n.d(e,"H",(function(){return c})),n.d(e,"K",(function(){return a})),n.d(e,"I",(function(){return i})),n.d(e,"J",(function(){return u})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return p})),n.d(e,"f",(function(){return v})),n.d(e,"u",(function(){return g})),n.d(e,"L",(function(){return h})),n.d(e,"S",(function(){return _})),n.d(e,"w",(function(){return b})),n.d(e,"n",(function(){return x})),n.d(e,"D",(function(){return y})),n.d(e,"T",(function(){return C})),n.d(e,"P",(function(){return k})),n.d(e,"O",(function(){return w})),n.d(e,"N",(function(){return j})),n.d(e,"p",(function(){return O})),n.d(e,"q",(function(){return S})),n.d(e,"l",(function(){return L})),n.d(e,"Q",(function(){return $})),n.d(e,"m",(function(){return q})),n.d(e,"M",(function(){return I})),n.d(e,"s",(function(){return P})),n.d(e,"Z",(function(){return T})),n.d(e,"b",(function(){return z})),n.d(e,"j",(function(){return J})),n.d(e,"k",(function(){return N})),n.d(e,"Y",(function(){return D})),n.d(e,"o",(function(){return E})),n.d(e,"G",(function(){return A})),n.d(e,"F",(function(){return B})),n.d(e,"y",(function(){return F})),n.d(e,"A",(function(){return G})),n.d(e,"a",(function(){return H})),n.d(e,"B",(function(){return K})),n.d(e,"z",(function(){return M})),n.d(e,"C",(function(){return Q})),n.d(e,"U",(function(){return R})),n.d(e,"V",(function(){return U})),n.d(e,"t",(function(){return V})),n.d(e,"R",(function(){return Y})),n.d(e,"v",(function(){return Z})),n.d(e,"r",(function(){return W})),n.d(e,"E",(function(){return X}));var r=n("0c6d");function s(t){return r["a"].get("system/role/lst",t)}function c(){return r["a"].get("system/role/create/form")}function a(t){return r["a"].get("system/role/update/form/".concat(t))}function i(t){return r["a"].delete("system/role/delete/".concat(t))}function u(t,e){return r["a"].post("system/role/status/".concat(t),{status:e})}function o(t){return r["a"].get("system/admin/lst",t)}function l(){return r["a"].get("/system/admin/create/form")}function f(t){return r["a"].get("system/admin/update/form/".concat(t))}function d(t){return r["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return r["a"].post("system/admin/status/".concat(t),{status:e})}function p(t){return r["a"].get("system/admin/password/form/".concat(t))}function v(t){return r["a"].get("system/admin/log",t)}function g(){return r["a"].get("serve/user/is_login")}function h(){return r["a"].get("serve/user/info")}function _(t){return r["a"].get("serve/mealList/".concat(t))}function b(){return r["a"].get("sms/logout")}function x(t){return r["a"].post("serve/login",t)}function y(t){return r["a"].get("serve/paymeal",t)}function C(t){return r["a"].get("sms/record",t)}function k(t){return r["a"].get("serve/record",t)}function w(t){return r["a"].get("serve/us_lst",t)}function j(t){return r["a"].post("serve/open",t)}function O(){return r["a"].get("serve/expr/lst")}function S(t){return r["a"].get("serve/expr/temps",t)}function L(t){return r["a"].get("serve/captcha/".concat(t))}function $(t){return r["a"].post("serve/change_sign",t)}function q(t){return r["a"].post("serve/captcha",t)}function I(t){return r["a"].post("serve/change_password",t)}function P(){return r["a"].get("serve/config")}function T(t){return r["a"].post("serve/config",t)}function z(){return r["a"].get("serve/meal/create/form")}function J(t){return r["a"].get("serve/meal/lst",t)}function N(t,e){return r["a"].post("serve/meal/status/".concat(t),e)}function D(t){return r["a"].get("serve/meal/update/".concat(t,"/form"))}function E(t){return r["a"].delete("serve/meal/detele/".concat(t))}function A(t){return r["a"].get("serve/paylst",t)}function B(t){return r["a"].get("serve/mer/paylst",t)}function F(t){return r["a"].get("serve/mer/lst",t)}function G(t){return r["a"].get("notice/config/lst",t)}function H(){return r["a"].get("notice/config/create/form")}function K(t){return r["a"].get("notice/config/update/".concat(t,"/form"))}function M(t){return r["a"].get("notice/config/change/".concat(t,"/form"))}function Q(t,e){return r["a"].post("notice/config/status/".concat(t),e)}function R(){return r["a"].get("wechat/template/min/sync")}function U(){return r["a"].get("wechat/template/sync")}function V(){return r["a"].get("change/color")}function Y(t){return r["a"].post("change/color",t)}function Z(){return r["a"].get("agreement/keylst")}function W(t){return r["a"].get("agreement/".concat(t))}function X(t,e){return r["a"].post("agreement/".concat(t),e)}},ac87:function(t,e,n){},ba5f:function(t,e,n){"use strict";n("ac87")}}]); |