mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 13:22:51 +00:00
1 line
56 KiB
JavaScript
1 line
56 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-797cac24"],{"006c":function(t,e,n){},"01ed9":function(t,e,n){},2431: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"},[t.isShowList?t._e():n("span",{staticClass:"ivu-page-header-title"},[t._v("短信账户")]),t.isShowList?n("div",{staticClass:"acea-row row-between-wrapper picTxt"},[n("div",{attrs:{slot:"content"},slot:"content"},[n("Avatar",{staticClass:"dashboard-workplace-header-avatar",attrs:{src:t.imgUrl}}),n("div",{staticClass:"dashboard-workplace-header-tip"},[n("p",{staticClass:"dashboard-workplace-header-tip-title"},[t._v(t._s(t.smsAccount)+",祝您每一天开心!")]),n("p",{staticClass:"dashboard-workplace-header-tip-desc"},[n("a",{attrs:{href:"#"},on:{click:t.onChangePassswordIndex}},[t._v("修改密码")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{attrs:{href:"#"},on:{click:t.signOut}},[t._v("退出登录")])],1)])],1),n("div",{staticClass:"dashboard"},[n("div",{staticClass:"dashboard-workplace-header-extra"},[n("div",{staticClass:"acea-row"},[n("div",{staticClass:"header-extra"},[t._m(0),0===t.sms.open?n("div",[n("p",[t._v("暂未开通")]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onOpen("sms")}}},[t._v("开通服务")])],1):n("div",[n("p",[t._v(t._s(t.sms.num||0))]),n("Button",{staticClass:"mt3 samll_font",staticStyle:{textAlign:"center"},attrs:{size:"small",type:"primary"},on:{click:function(e){return t.mealPay("sms")}}},[t._v("套餐购买")])],1)]),n("div",{staticClass:"header-extra"},[t._m(1),0===t.copy.open?n("div",[n("p",[t._v("暂未开通")]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onOpen("copy")}}},[t._v("开通服务")])],1):n("div",[n("p",[t._v(t._s(t.copy.num||0))]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.mealPay("copy")}}},[t._v("套餐购买")])],1)]),n("div",{staticClass:"header-extra"},[t._m(2),0===t.query.open?n("div",[n("p",[t._v("暂未开通")]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onOpen("query")}}},[t._v("开通服务")])],1):n("div",[n("p",[t._v(t._s(t.query.num||0))]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.mealPay("expr_query")}}},[t._v("套餐购买")])],1)]),n("div",{staticClass:"header-extra",staticStyle:{border:"none"}},[t._m(3),0===t.dump.open?n("div",[n("p",[t._v("暂未开通")]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onOpen("dump")}}},[t._v("开通服务")])],1):n("div",[n("p",[t._v(t._s(t.dump.num||0))]),n("Button",{staticClass:"mt3 samll_font",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.mealPay("expr_dump")}}},[t._v("套餐购买")])],1)])])])])]):t._e()])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t.isShowLogn?n("login-from",{on:{"on-change":t.onChangePasssword,"on-changes":t.onChangeReg,"on-Login":t.onLogin}}):t._e(),t.isShow?n("forget-password",{attrs:{isIndex:t.isIndex},on:{goback:t.goback,"on-Login":t.onLogin}}):t._e(),t.isShowReg?n("register-from",{on:{"on-change":t.logoup}}):t._e(),t.isShowList?n("table-list",{ref:"tableLists",attrs:{sms:t.sms,copy:t.copy,dump:t.dump,query:t.query,accountInfo:t.accountInfo},on:{openService:t.openService}}):t._e(),t.isForgetPhone?n("forget-phone",{on:{gobackPhone:t.gobackPhone,"on-Login":t.onLogin}}):t._e(),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb5"},[n("span",[t._v("短信条数")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb5"},[n("span",[t._v("采集次数")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb5"},[n("span",[t._v("物流查询次数")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb5"},[n("span",[t._v("面单打印次数")])])}],o=(n("a481"),n("96cf"),n("3b8d")),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Row",{attrs:{type:"flex"}},[n("Col",{attrs:{span:"24"}},[n("div",{staticClass:"index_from page-account-container"},[n("div",{staticClass:"page-account-top "},[n("span",{staticClass:"page-account-top-tit"},[t._v("一号通账户登录")])]),n("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmit("formInline")}},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"sms_account"}},[n("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号"},model:{value:t.formInline.account,callback:function(e){t.$set(t.formInline,"account",e)},expression:"formInline.account"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"sms_token"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1),n("FormItem",{staticClass:"maxInpt"},[n("Button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v("登录")])],1)],1),n("div",{staticClass:"page-account-other"},[n("span",{on:{click:t.changePassword}},[t._v("忘记密码 |")]),n("span",{on:{click:t.changeReg}},[t._v(" 注册账户")])])],1)])],1)},a=[],c=(n("7f7f"),n("90e7")),u={name:"login",data:function(){var t=function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))};return{formInline:{account:"",password:""},ruleInline:{account:[{required:!0,validator:t,trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},created:function(){var t=this;document.onkeydown=function(e){var n=window.event.keyCode;13===n&&t.handleSubmit("formInline")}},methods:{handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["i"])(e.formInline).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success("登录成功!"),e.$emit("on-Login");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},changePassword:function(){this.$emit("on-change")},changeReg:function(){this.$emit("on-changes")}}},l=u,p=(n("a0b8"),n("2877")),m=Object(p["a"])(l,s,a,!1,null,"630cb3d6",null),f=m.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[n("Col",{staticClass:"mb50",staticStyle:{"margin-top":"70px"},attrs:{span:"20"}},[n("Steps",{attrs:{current:t.current}},[n("Step",{attrs:{title:"验证账号信息"}}),n("Step",{attrs:{title:"修改账户密码"}}),n("Step",{attrs:{title:"登录"}})],1)],1),n("Col",{attrs:{span:"24"}},[n("div",{staticClass:"index_from page-account-container"},[n("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},nativeOn:{submit:function(t){t.preventDefault()}}},[0===t.current?[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号",size:"large"},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"verify_code"}},[n("div",{staticClass:"code"},[n("Input",{attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"请输入验证码",size:"large"},model:{value:t.formInline.verify_code,callback:function(e){t.$set(t.formInline,"verify_code",e)},expression:"formInline.verify_code"}}),n("Button",{attrs:{disabled:!this.canClick,size:"large"},on:{click:t.cutDown}},[t._v(t._s(t.cutNUm))])],1)])]:t._e(),1===t.current?[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入新密码",size:"large"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"checkPass"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请验证新密码",size:"large"},model:{value:t.formInline.checkPass,callback:function(e){t.$set(t.formInline,"checkPass",e)},expression:"formInline.checkPass"}})],1)]:t._e(),2===t.current?[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号"},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1)]:t._e(),n("FormItem",{staticClass:"maxInpt"},[0===t.current?n("Button",{staticClass:"mb20",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit1("formInline",t.current)}}},[t._v("下一步")]):t._e(),1===t.current?n("Button",{staticClass:"mb20",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit2("formInline",t.current)}}},[t._v("提交")]):t._e(),2===t.current?n("Button",{staticClass:"mb20",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit("formInline",t.current)}}},[t._v("登录")]):t._e(),n("Button",{staticClass:"btn",attrs:{long:"",size:"large"},on:{click:function(e){return t.returns("formInline")}}},[t._v("返回\n ")])],1)],2)],1)])],1)},h=[],g={name:"forgetPassword",data:function(){var t=this,e=function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))},n=function(e,n,r){""===n?r(new Error("请输入密码")):1===t.current?(""!==t.formInline.checkPass&&t.$refs.formInline.validateField("checkPass"),r()):(n!==t.formInline.checkPass&&r(new Error("请输入正确密码!")),r())},r=function(e,n,r){""===n?r(new Error("请再次输入密码")):n!==t.formInline.password?r(new Error("两次输入密码不一致!")):r()};return{cutNUm:"获取验证码",canClick:!0,current:0,formInline:{account:"",phone:"",verify_code:"",password:"",checkPass:""},ruleInline:{phone:[{required:!0,validator:e,trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}],password:[{validator:n,trigger:"blur"}],checkPass:[{validator:r,trigger:"blur"}]}}},methods:{cutDown:function(){var t=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var e={phone:this.formInline.phone};Object(c["c"])(e).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$Message.success(n.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}));var n=setInterval((function(){t.cutNUm--,0===t.cutNUm&&(t.cutNUm="获取验证码",t.canClick=!0,clearInterval(n))}),1e3)}else this.$Message.warning("请填写手机号!")},handleSubmit1:function(t,e){var n=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["d"])(n.formInline).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.current=1;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){n.$Message.error(t.msg)}))}))},handleSubmit2:function(t){var e=this;this.formInline.account=this.formInline.phone,this.$refs[t].validate((function(t){if(!t)return!1;Object(c["V"])(e.formInline).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),e.current=2;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["i"])({account:e.formInline.account,password:e.formInline.password}).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success("登录成功!"),e.$emit("on-Login");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},returns:function(){0===this.current?this.$emit("goback"):this.current=0}}},b=g,v=(n("e951"),Object(p["a"])(b,d,h,!1,null,"58825f81",null)),I=v.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Row",{attrs:{type:"flex"}},[n("Col",{attrs:{span:"24"}},[n("div",{staticClass:"index_from page-account-container"},[n("div",{staticClass:"page-account-top "},[n("span",{staticClass:"page-account-top-tit"},[t._v("一号通账户注册")])]),n("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("Input",{attrs:{type:"number",prefix:"ios-contact-outline",placeholder:"请输入您的手机号"},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入短信平台密码/token"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"url"}},[n("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入网址域名"},model:{value:t.formInline.url,callback:function(e){t.$set(t.formInline,"url",e)},expression:"formInline.url"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"verify_code"}},[n("div",{staticClass:"code"},[n("Input",{attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"请输入验证码"},model:{value:t.formInline.verify_code,callback:function(e){t.$set(t.formInline,"verify_code",e)},expression:"formInline.verify_code"}}),n("Button",{attrs:{disabled:!t.canClick},on:{click:t.cutDown}},[t._v(t._s(t.cutNUm))])],1)]),n("FormItem",{staticClass:"maxInpt"},[n("Button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v("注册")])],1)],1),n("div",{staticClass:"page-account-other"},[n("span",{on:{click:t.changelogo}},[t._v("立即登录")])])],1)])],1)},y=[],_={name:"register",data:function(){var t=function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))};return{cutNUm:"获取验证码",canClick:!0,formInline:{url:"",password:"",verify_code:"",phone:""},ruleInline:{account:[{required:!0,message:"请输入短信平台账号",trigger:"blur"}],password:[{required:!0,message:"请输入短信平台密码/token",trigger:"blur"}],url:[{required:!0,message:"请输入网址域名",trigger:"blur"}],phone:[{required:!0,validator:t,trigger:"blur"}],sign:[{required:!0,message:"请输入短信签名",trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}]}}},methods:{cutDown:function(){var t=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var e={phone:this.formInline.phone};Object(c["c"])(e).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$Message.success(n.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}));var n=setInterval((function(){t.cutNUm--,0===t.cutNUm&&(t.cutNUm="获取验证码",t.canClick=!0,clearInterval(n))}),1e3)}else this.$Message.warning("请填写手机号!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["O"])(e.formInline).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),setTimeout((function(){e.changelogo()}),1e3);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},changelogo:function(){this.$emit("on-change")}}},k=_,C=(n("bd8c"),Object(p["a"])(k,w,y,!1,null,"71c6eb4b",null)),x=C.exports,O=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{attrs:{bordered:!1,"dis-hover":""}},[r("Tabs",{on:{"on-click":t.onChangeType},model:{value:t.isChecked,callback:function(e){t.isChecked=e},expression:"isChecked"}},[r("TabPane",{attrs:{label:"短信",name:"1"}}),r("TabPane",{attrs:{label:"商品采集",name:"4"}}),r("TabPane",{attrs:{label:"物流查询",name:"3"}}),r("TabPane",{attrs:{label:"电子面单打印",name:"2"}})],1),"1"===t.isChecked&&1===t.sms.open?r("div",{staticClass:"note"},[r("div",{staticClass:"acea-row row-between-wrapper"},[r("div",[r("span",[t._v("短信状态:")]),r("RadioGroup",{attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.tableFrom.type)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[r("Radio",{attrs:{label:""}},[t._v("全部")]),r("Radio",{attrs:{label:"1"}},[t._v("成功")]),r("Radio",{attrs:{label:"2"}},[t._v("失败")]),r("Radio",{attrs:{label:"0"}},[t._v("发送中")])],1)],1),r("div",[r("Button",{attrs:{type:"primary"},on:{click:t.shortMes}},[t._v("短信模板")]),r("Button",{staticStyle:{"margin-left":"20px"},on:{click:t.editSign}},[t._v("修改签名")])],1)]),r("Table",{staticClass:"mt25",attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1):"3"===t.isChecked&&1===t.query.open||"4"===t.isChecked&&1===t.copy.open||"2"===t.isChecked&&1===t.dump.open?r("div",[r("Table",{staticClass:"mt25",attrs:{columns:t.columns2,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"num",fn:function(e){var n=e.row;return"3"===t.isChecked&&1===t.query.open?[r("div",[t._v(t._s(n.content.num))])]:void 0}}],null,!0)}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChangeOther}})],1)],1):r("div",["1"===t.isChecked&&!t.isSms||"2"===t.isChecked&&!t.isDump||"3"===t.isChecked&&!t.isLogistics||"4"===t.isChecked&&!t.isCopy?r("div",{staticClass:"wuBox acea-row row-column-around row-middle"},[r("div",{staticClass:"wuTu"},[r("img",{attrs:{src:n("8bf2")}})]),"1"===t.isChecked?r("span",[r("span",{staticClass:"wuSp1"},[t._v("短信服务未开通哦")]),r("span",{staticClass:"wuSp2"},[t._v("点击立即开通按钮,即可使用短信服务哦~~~")])]):t._e(),"4"===t.isChecked?r("span",[r("span",{staticClass:"wuSp1"},[t._v("商品采集服务未开通哦")]),r("span",{staticClass:"wuSp2"},[t._v("点击立即开通按钮,即可使用商品采集服务哦~~~")])]):t._e(),"3"===t.isChecked?r("span",[r("span",{staticClass:"wuSp1"},[t._v("物流查询未开通哦")]),r("span",{staticClass:"wuSp2"},[t._v("点击立即开通按钮,即可使用物流查询服务哦~~~")])]):t._e(),"2"===t.isChecked?r("span",[r("span",{staticClass:"wuSp1"},[t._v("电子面单打印未开通哦")]),r("span",{staticClass:"wuSp2"},[t._v("点击立即开通按钮,即可使用电子面单打印服务哦~~~")])]):t._e(),r("Button",{attrs:{size:"default",type:"primary"},on:{click:t.onOpen}},[t._v("立即开通")])],1):t._e(),t.isSms&&"1"===t.isChecked?r("div",{staticClass:"smsBox"},[r("div",{staticClass:"index_from page-account-container"},[r("div",{staticClass:"page-account-top"},[r("span",{staticClass:"page-account-top-tit"},[t._v("开通短信服务")])]),r("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmit("formInline")}},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{staticClass:"maxInpt",attrs:{prop:"sign"}},[r("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入短信签名"},model:{value:t.formInline.sign,callback:function(e){t.$set(t.formInline,"sign",e)},expression:"formInline.sign"}})],1),r("FormItem",{staticClass:"maxInpt"},[r("Button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"default"},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v("登录")])],1)],1)],1)]):t._e(),t.isDump&&"2"===t.isChecked?r("div",{staticClass:"smsBox"},[r("div",{staticClass:"index_from page-account-container"},[r("div",{staticClass:"page-account-top"},["2"===t.isChecked?r("span",{staticClass:"page-account-top-tit"},[t._v("开通电子面单服务")]):t._e(),"3"===t.isChecked?r("span",{staticClass:"page-account-top-tit"},[t._v("开通物流查询服务")]):t._e()]),r("Form",{ref:"formInlineDump",attrs:{model:t.formInlineDump,rules:t.ruleInlineDump},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmitDump("formInlineDump")}},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{staticClass:"maxInpt",attrs:{prop:"com"}},[r("Select",{staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择快递公司"},on:{"on-change":t.onChangeExport},model:{value:t.formInlineDump.com,callback:function(e){t.$set(t.formInlineDump,"com",e)},expression:"formInlineDump.com"}},t._l(t.exportList,(function(e,n){return r("Option",{key:n,attrs:{value:e.code}},[t._v(t._s(e.name))])})),1)],1),r("FormItem",{staticClass:"tempId maxInpt",attrs:{prop:"temp_id"}},[r("div",{staticClass:"acea-row"},[r("Select",{class:[t.formInlineDump.temp_id?"width9":"width10"],staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择电子面单模板"},on:{"on-change":t.onChangeImg},model:{value:t.formInlineDump.temp_id,callback:function(e){t.$set(t.formInlineDump,"temp_id",e)},expression:"formInlineDump.temp_id"}},t._l(t.exportTempList,(function(e,n){return r("Option",{key:n,attrs:{value:e.temp_id}},[t._v(t._s(e.title))])})),1),t.formInlineDump.temp_id?r("div",[r("span",{staticClass:"tempImg"},[t._v("预览")]),r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.tempImg,expression:"tempImg"}]})])]):t._e()],1)]),r("FormItem",{staticClass:"maxInpt",attrs:{prop:"to_name"}},[r("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请填写寄件人姓名"},model:{value:t.formInlineDump.to_name,callback:function(e){t.$set(t.formInlineDump,"to_name",e)},expression:"formInlineDump.to_name"}})],1),r("FormItem",{staticClass:"maxInpt",attrs:{prop:"to_tel"}},[r("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请填写寄件人电话"},model:{value:t.formInlineDump.to_tel,callback:function(e){t.$set(t.formInlineDump,"to_tel",e)},expression:"formInlineDump.to_tel"}})],1),r("FormItem",{staticClass:"maxInpt",attrs:{prop:"to_address"}},[r("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请填写寄件人详细地址"},model:{value:t.formInlineDump.to_address,callback:function(e){t.$set(t.formInlineDump,"to_address",e)},expression:"formInlineDump.to_address"}})],1),r("FormItem",{staticClass:"maxInpt",attrs:{prop:"siid"}},[r("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请填写云打印编号"},model:{value:t.formInlineDump.siid,callback:function(e){t.$set(t.formInlineDump,"siid",e)},expression:"formInlineDump.siid"}})],1),r("FormItem",{staticClass:"maxInpt"},[r("Button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"default"},on:{click:function(e){return t.handleSubmitDump("formInlineDump")}}},[t._v("立即开通")])],1)],1)],1)]):t._e()])],1),r("Modal",{staticClass:"order_box",attrs:{"footer-hide":"",scrollable:"",closable:"",title:"短信账户签名修改"},on:{"on-cancel":function(e){return t.cancel("formInline")}},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[r("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",[r("Input",{staticStyle:{width:"87%"},attrs:{disabled:"",prefix:"ios-person-outline",size:"large"},model:{value:t.accountInfo.account,callback:function(e){t.$set(t.accountInfo,"account",e)},expression:"accountInfo.account"}})],1),r("FormItem",{attrs:{prop:"sign"}},[r("Input",{staticStyle:{width:"87%"},attrs:{prefix:"ios-document-outline",placeholder:"请输入短信签名,例如:CRMEB",size:"large"},model:{value:t.formInline.sign,callback:function(e){t.$set(t.formInline,"sign",e)},expression:"formInline.sign"}})],1),r("FormItem",{attrs:{prop:"phone"}},[r("Input",{staticStyle:{width:"87%"},attrs:{prefix:"ios-call-outline",placeholder:"请输入您的手机号",size:"large"},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),r("FormItem",{attrs:{prop:"code"}},[r("div",{staticClass:"code acea-row row-middle",staticStyle:{width:"87%"}},[r("Input",{staticStyle:{width:"75%"},attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"验证码",size:"large"},model:{value:t.formInline.code,callback:function(e){t.$set(t.formInline,"code",e)},expression:"formInline.code"}}),r("Button",{attrs:{disabled:!this.canClick,size:"large"},on:{click:t.cutDown}},[t._v(t._s(t.cutNUm))])],1)]),r("FormItem",[r("Button",{staticClass:"btn",staticStyle:{width:"87%"},attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.editSubmit("formInline")}}},[t._v("确认修改")])],1)],1)],1)],1)},j=[],S={name:"tableList",props:{copy:{type:Object,default:null},dump:{type:Object,default:null},query:{type:Object,default:null},sms:{type:Object,default:null},accountInfo:{type:Object,default:null}},data:function(){var t=function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))};return{cutNUm:"获取验证码",canClick:!0,spinShow:!0,formInline:{sign:"",phone:"",code:""},ruleInline:{sign:[{required:!0,message:"请输入短信签名",trigger:"blur"}],phone:[{required:!0,validator:t,trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},isChecked:"1",columns1:[{title:"手机号",key:"phone",minWidth:100},{title:"模板内容",key:"content",minWidth:590},{title:"条数(每67/+1)",key:"num",minWidth:100},{title:"发送时间",key:"add_time",minWidth:150},{title:"状态码",key:"_resultcode",minWidth:100}],columns2:[],tableFrom:{page:1,limit:20,type:""},total:0,loading:!1,tableList:[],formInlineDump:{temp_id:"",com:"",to_name:"",to_tel:"",siid:"",to_address:""},ruleInlineDump:{com:[{required:!0,message:"请选择快递公司",trigger:"change"}],temp_id:[{required:!0,message:"请选择打印模板",trigger:"change"}],to_name:[{required:!0,message:"请输寄件人姓名",trigger:"blur"}],to_tel:[{required:!0,validator:t,trigger:"blur"}],siid:[{required:!0,message:"请输入云打印机编号",trigger:"blur"}],to_address:[{required:!0,message:"请输寄件人地址",trigger:"blur"}]},tempImg:"",exportTempList:[],exportList:[],isSms:!1,isDump:!1,isCopy:!1,modals:!1,isLogistics:!1}},watch:{sms:function(t){1===t.open&&this.getList()}},created:function(){"1"===this.isChecked&&1===this.sms.open&&this.getList()},methods:{shortMes:function(){this.$router.push({path:"/admin/setting/sms/sms_template_apply/index"})},cutDown:function(){var t=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var e={phone:this.formInline.phone};Object(c["c"])(e).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$Message.success(n.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}));var n=setInterval((function(){t.cutNUm--,0===t.cutNUm&&(t.cutNUm="获取验证码",t.canClick=!0,clearInterval(n))}),1e3)}else this.$Message.warning("请填写手机号!")},editSign:function(){this.formInline.sign=this.accountInfo.sms.sign,this.modals=!0},cancel:function(t){this.modals=!1,this.$refs[t].resetFields()},editSubmit:function(t){var e=this;this.$refs[t].validate((function(n){n&&Object(c["ab"])(e.formInline).then((function(n){e.modals=!1,e.$Message.success(n.msg),e.$refs[t].resetFields()})).catch((function(t){e.$Message.error(t.msg)}))}))},onChangeImg:function(t){var e=this;this.exportTempList.map((function(n){n.temp_id===t&&(e.tempImg=n.pic)}))},exportTempAllList:function(){var t=this;Object(c["l"])().then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.exportList=n.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},onChangeExport:function(t){this.formInlineDump.temp_id="",this.exportTemp(t)},exportTemp:function(t){var e=this;Object(c["m"])({com:t}).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.exportTempList=n.data.data;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},onChangeType:function(){"1"===this.isChecked&&1===this.sms.open?(this.tableFrom.type="",this.getList()):("2"===this.isChecked&&0===this.query.open&&(this.isDump=!1),"3"===this.isChecked&&0===this.query.open&&(this.isLogistics=!1),1!==this.dump.open&&1!==this.query.open&&1!==this.copy.open||this.getRecordList())},getRecordList:function(){var t=this;this.loading=!0,this.tableFrom.type=this.isChecked,Object(c["Z"])(this.tableFrom).then(function(){var e=Object(o["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,t.tableList=r.data,t.total=n.data.count,e.t0=t.isChecked,e.next="2"===e.t0?6:"3"===e.t0?8:10;break;case 6:return t.columns2=[{title:"订单号",key:"order_id",minWidth:150},{title:"发货人",key:"from_name",minWidth:120},{title:"收货人",key:"to_name",minWidth:120},{title:"快递单号",key:"num",minWidth:120},{title:"快递公司编码",key:"code",minWidth:120},{title:"状态",key:"_resultcode",minWidth:100},{title:"打印时间",key:"add_time",minWidth:150}],e.abrupt("break",12);case 8:return t.columns2=[{title:"快递单号",slot:"num",minWidth:120},{title:"快递公司编码",key:"code",minWidth:120},{title:"状态",key:"_resultcode",minWidth:120},{title:"添加时间",key:"add_time",minWidth:150}],e.abrupt("break",12);case 10:return t.columns2=[{title:"复制URL",key:"url",minWidth:400},{title:"请求状态",key:"_resultcode",minWidth:120},{title:"添加时间",key:"add_time",minWidth:150}],e.abrupt("break",12);case 12:t.loading=!1;case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChangeOther:function(t){this.tableFrom.page=t,this.getRecordList()},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["bb"])(e.formInline).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success("开通成功!"),e.getList(),e.$emit("openService","sms");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},onOpenIndex:function(t){switch(t){case"sms":this.isChecked="1",this.isSms=!0;break;case"copy":this.isChecked="4",this.openOther();break;case"query":this.isChecked="3",this.onDumpOpen();break;default:this.isChecked="2",this.openDump();break}},onOpen:function(){"1"===this.isChecked&&(this.isSms=!0),"2"===this.isChecked&&this.openDump(),"3"===this.isChecked&&this.onDumpOpen(),"4"===this.isChecked&&this.openOther()},onDumpOpen:function(){var t=this;this.$Modal.confirm({title:"开通物流查询吗",content:"<p>确定要开通物流查询吗</p>",onOk:function(){Object(c["W"])().then((function(e){t.getRecordList(),t.isLogistics=!0,t.$Message.info(e.msg),t.$emit("openService","query")}))},onCancel:function(){}})},openOther:function(){var t=this;this.$Modal.confirm({title:"开通商品采集吗",content:"<p>确定要开通商品采集吗</p>",loading:!0,onOk:function(){t.$Modal.remove(),setTimeout((function(){Object(c["Y"])({type:1}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getRecordList(),t.$emit("openService","copy");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}),300)},onCancel:function(){}})},openDump:function(){this.exportTempAllList(),this.isDump=!0},selectChange:function(t){this.tableFrom.type=t,this.tableFrom.page=1,this.getList()},getList:function(){var t=this;this.loading=!0,Object(c["eb"])(this.tableFrom).then(function(){var e=Object(o["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,t.tableList=r.data,t.total=n.data.count,t.spinShow=!1,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},userSearchs:function(){this.getList()},handleSubmitDump:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["X"])(e.formInlineDump).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success("开通成功!"),e.getRecordList(),e.$emit("openService","dump");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))}}},$=S,F=(n("88dd"),Object(p["a"])($,O,j,!1,null,"2c400d64",null)),L=F.exports,R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[n("Col",{staticClass:"mb50",staticStyle:{"margin-top":"70px"},attrs:{span:"20"}},[n("Steps",{attrs:{current:t.current}},[n("Step",{attrs:{title:"验证账号信息"}}),n("Step",{attrs:{title:"修改手机号码"}}),n("Step",{attrs:{title:"登录"}})],1)],1),n("Col",{attrs:{span:"24"}},[n("div",{staticClass:"index_from page-account-container"},[n("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},nativeOn:{submit:function(t){t.preventDefault()}}},[0===t.current?[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"account"}},[n("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入当前手机号",size:"large"},model:{value:t.formInline.account,callback:function(e){t.$set(t.formInline,"account",e)},expression:"formInline.account"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1)]:t._e(),1===t.current?[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("Input",{attrs:{type:"text",prefix:"ios-lock-outline",placeholder:"请输入新手机号",size:"large"},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"verify_code"}},[n("div",{staticClass:"code"},[n("Input",{attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"请输入验证码",size:"large"},model:{value:t.formInline.verify_code,callback:function(e){t.$set(t.formInline,"verify_code",e)},expression:"formInline.verify_code"}}),n("Button",{attrs:{disabled:!this.canClick,size:"large"},on:{click:t.cutDown}},[t._v(t._s(t.cutNUm))])],1)])]:t._e(),2===t.current?[n("FormItem",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("Input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号"},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),n("FormItem",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("Input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1)]:t._e(),n("FormItem",{staticClass:"maxInpt"},[0===t.current?n("Button",{staticClass:"mb20",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit1("formInline",t.current)}}},[t._v("下一步")]):t._e(),1===t.current?n("Button",{staticClass:"mb20",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit2("formInline",t.current)}}},[t._v("提交")]):t._e(),2===t.current?n("Button",{staticClass:"mb20",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit("formInline",t.current)}}},[t._v("登录")]):t._e(),n("Button",{staticClass:"btn",attrs:{long:"",size:"large"},on:{click:function(e){return t.returns("formInline")}}},[t._v("返回\n ")])],1)],2)],1)])],1)},D=[],q={name:"forgetPhone",props:{isIndex:{type:Boolean,default:!1}},data:function(){var t=function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))};return{cutNUm:"获取验证码",canClick:!0,current:0,formInline:{account:"",phone:"",verify_code:"",password:""},ruleInline:{phone:[{required:!0,validator:t,trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],account:[{required:!0,validator:t,trigger:"blur"}]}}},methods:{cutDown:function(){var t=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var e={phone:this.formInline.phone};Object(c["c"])(e).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$Message.success(n.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}));var n=setInterval((function(){t.cutNUm--,0===t.cutNUm&&(t.cutNUm="获取验证码",t.canClick=!0,clearInterval(n))}),1e3)}else this.$Message.warning("请填写手机号!")},handleSubmit1:function(t){var e=this;this.$refs[t].validate((function(n){if(!n)return!1;e.handleSubmit(t,1)}))},handleSubmit2:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["Db"])(e.formInline).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),e.current=2;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},handleSubmit:function(t,e){var n=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(c["i"])({account:n.formInline.account,password:n.formInline.password}).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:1===e?n.$Message.success("原手机号密码正确"):n.$Message.success("登录成功"),1===e?n.current=1:n.$emit("on-Login");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){n.$Message.error(t.msg)}))}))},returns:function(){0===this.current?this.$emit("gobackPhone"):this.current=0}}},M=q,P=(n("2ce4"),Object(p["a"])(M,R,D,!1,null,"46634686",null)),z=P.exports,E={name:"smsConfig",components:{loginFrom:f,forgetPassword:I,registerFrom:x,tableList:L,forgetPhone:z},data:function(){return{imgUrl:n("c7de"),spinShow:!1,isShowLogn:!1,isShow:!1,isShowReg:!1,isShowList:!1,smsAccount:"",accountInfo:{},isForgetPhone:!1,isIndex:!1,sms:{open:0},query:{open:0},dump:{open:0},copy:{open:0}}},created:function(){this.onIsLogin()},methods:{onChangePhone:function(){this.isForgetPhone=!0,this.isShowLogn=!1,this.isShowList=!1},onOpen:function(t){this.$refs.tableLists.onOpenIndex(t)},mealPay:function(t){this.$router.push({path:"/admin/setting/sms/sms_pay/index",query:{type:t}})},openService:function(t){switch(t){case"sms":this.sms.open=1;break;case"copy":this.copy.open=1;break;case"query":this.query.open=1;break;default:this.dump.open=1;break}},getServeInfo:function(){var t=this;this.spinShow=!0,Object(c["U"])().then(function(){var e=Object(o["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,t.sms={num:r.sms.num,open:r.sms.open,surp:r.sms.open},t.query={num:r.query.num,open:r.query.open,surp:r.query.open},t.dump={num:r.dump.num,open:r.dump.open,surp:r.dump.open},t.copy={num:r.copy.num,open:r.copy.open,surp:r.copy.open},t.spinShow=!1,t.smsAccount=r.account,t.accountInfo=r;case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.isShowLogn=!0,t.isShowList=!1,t.spinShow=!1}))},onIsLogin:function(){var t=this;this.spinShow=!0,Object(c["u"])().then(function(){var e=Object(o["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,t.isShowLogn=!r.status,t.isShowList=r.status,t.spinShow=!1,r.status&&t.getServeInfo();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)}))},signOut:function(){var t=this;Object(c["H"])().then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.isShowLogn=!0,t.isShowList=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},onChangePassswordIndex:function(){this.isIndex=!0,this.passsword()},onChangePasssword:function(){this.isIndex=!1,this.passsword()},passsword:function(){this.isShowLogn=!1,this.isShow=!0,this.isShowList=!1},onChangeReg:function(){this.isShowLogn=!1,this.isShow=!1,this.isShowReg=!0},logoup:function(){this.isShowLogn=!0,this.isShow=!1,this.isShowReg=!1},onLogin:function(){var t=this.$route.query.url;t?this.$router.replace(t):(this.isShowLogn=!1,this.isShow=!1,this.isShowReg=!1,this.isForgetPhone=!1,this.isShowList=!0,this.getServeInfo())},goback:function(){this.isIndex?(this.isShowList=!0,this.isShow=!1):(this.isShowLogn=!0,this.isShow=!1)},gobackPhone:function(){this.isShowList=!0,this.isForgetPhone=!1}}},T=E,B=(n("92ae"),Object(p["a"])(T,r,i,!1,null,"e8e198e2",null));e["default"]=B.exports},"2ce4":function(t,e,n){"use strict";var r=n("006c"),i=n.n(r);i.a},"6d0a":function(t,e,n){},"88dd":function(t,e,n){"use strict";var r=n("6d0a"),i=n.n(r);i.a},"8bf2":function(t,e,n){t.exports=n.p+"img/wutu.d797d845.png"},"8e8f":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"t",(function(){return i})),n.d(e,"j",(function(){return o})),n.d(e,"zb",(function(){return s})),n.d(e,"yb",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"V",(function(){return u})),n.d(e,"Db",(function(){return l})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return m})),n.d(e,"O",(function(){return f})),n.d(e,"U",(function(){return d})),n.d(e,"ab",(function(){return h})),n.d(e,"B",(function(){return g})),n.d(e,"Mb",(function(){return b})),n.d(e,"gb",(function(){return v})),n.d(e,"fb",(function(){return I})),n.d(e,"y",(function(){return w})),n.d(e,"z",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"W",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"Z",(function(){return x})),n.d(e,"Y",(function(){return O})),n.d(e,"X",(function(){return j})),n.d(e,"bb",(function(){return S})),n.d(e,"db",(function(){return $})),n.d(e,"L",(function(){return F})),n.d(e,"eb",(function(){return L})),n.d(e,"qb",(function(){return R})),n.d(e,"G",(function(){return D})),n.d(e,"pb",(function(){return q})),n.d(e,"p",(function(){return M})),n.d(e,"n",(function(){return P})),n.d(e,"o",(function(){return z})),n.d(e,"q",(function(){return E})),n.d(e,"r",(function(){return T})),n.d(e,"hb",(function(){return B})),n.d(e,"Lb",(function(){return U})),n.d(e,"ib",(function(){return N})),n.d(e,"Gb",(function(){return W})),n.d(e,"jb",(function(){return G})),n.d(e,"R",(function(){return A})),n.d(e,"Ib",(function(){return J})),n.d(e,"S",(function(){return H})),n.d(e,"P",(function(){return K})),n.d(e,"Q",(function(){return V})),n.d(e,"I",(function(){return X})),n.d(e,"A",(function(){return Y})),n.d(e,"E",(function(){return Z})),n.d(e,"D",(function(){return Q})),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 it})),n.d(e,"Jb",(function(){return ot})),n.d(e,"x",(function(){return st})),n.d(e,"C",(function(){return at})),n.d(e,"w",(function(){return ct})),n.d(e,"u",(function(){return ut})),n.d(e,"H",(function(){return lt})),n.d(e,"h",(function(){return pt})),n.d(e,"e",(function(){return mt})),n.d(e,"f",(function(){return ft})),n.d(e,"Ab",(function(){return dt})),n.d(e,"Bb",(function(){return ht})),n.d(e,"Cb",(function(){return gt})),n.d(e,"cb",(function(){return bt})),n.d(e,"rb",(function(){return vt})),n.d(e,"J",(function(){return It})),n.d(e,"tb",(function(){return wt})),n.d(e,"sb",(function(){return yt})),n.d(e,"ub",(function(){return _t})),n.d(e,"vb",(function(){return kt})),n.d(e,"wb",(function(){return Ct})),n.d(e,"xb",(function(){return xt})),n.d(e,"Eb",(function(){return Ot})),n.d(e,"Fb",(function(){return jt})),n.d(e,"K",(function(){return St})),n.d(e,"g",(function(){return $t})),n.d(e,"kb",(function(){return Ft})),n.d(e,"nb",(function(){return Lt})),n.d(e,"a",(function(){return Rt})),n.d(e,"b",(function(){return Dt})),n.d(e,"lb",(function(){return qt})),n.d(e,"ob",(function(){return Mt})),n.d(e,"mb",(function(){return Pt})),n.d(e,"k",(function(){return zt})),n.d(e,"M",(function(){return Et})),n.d(e,"N",(function(){return Tt})),n.d(e,"T",(function(){return Bt}));var r=n("6b6c");function i(t){return Object(r["a"])({url:"setting/config/header_basics",method:"get",params:t})}function o(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function s(t){return Object(r["a"])({url:t.url,method:"get",params:t.data})}function a(){return Object(r["a"])({url:"notify/sms/temp/create",method:"get"})}function c(t){return Object(r["a"])({url:"serve/login",method:"post",data:t})}function u(t){return Object(r["a"])({url:"serve/modify",method:"post",data:t})}function l(t){return Object(r["a"])({url:"serve/update_phone",method:"post",data:t})}function p(t){return Object(r["a"])({url:"serve/captcha",method:"post",data:t})}function m(t){return Object(r["a"])({url:"serve/checkCode",method:"post",data:t})}function f(t){return Object(r["a"])({url:"serve/register",method:"post",data:t})}function d(){return Object(r["a"])({url:"serve/info",method:"get"})}function h(t){return Object(r["a"])({url:"serve/sms/sign",method:"PUT",data:t})}function g(t){return Object(r["a"])({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function b(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 I(){return Object(r["a"])({url:"app/wechat/speechcraft/create",method:"get"})}function w(t){return Object(r["a"])({url:"app/feedback",method:"get",params:t})}function y(t){return Object(r["a"])({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function _(){return Object(r["a"])({url:"serve/export_all",method:"get"})}function k(){return Object(r["a"])({url:"serve/open",method:"get"})}function C(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 O(t){return Object(r["a"])({url:"serve/open",method:"get",params:t})}function j(t){return Object(r["a"])({url:"serve/opn_express",method:"post",data:t})}function S(t){return Object(r["a"])({url:"serve/sms/open",method:"get",params:t})}function $(t){return Object(r["a"])({url:"serve/meal_list",method:"get",params:t})}function F(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 D(){return Object(r["a"])({url:"merchant/store/address",method:"GET"})}function q(t){return Object(r["a"])({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function M(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 z(t){return Object(r["a"])({url:"freight/express/".concat(t,"/edit"),method:"get"})}function E(t){return Object(r["a"])({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function T(){return Object(r["a"])({url:"freight/express/sync_express",method:"get"})}function B(){return Object(r["a"])({url:"app/wechat/speechcraftcate",method:"get"})}function U(){return Object(r["a"])({url:"app/wechat_qrcode/cate/list",method:"get"})}function N(){return Object(r["a"])({url:"app/wechat/speechcraftcate/create",method:"get"})}function W(t){return Object(r["a"])({url:"app/wechat_qrcode/cate/create/".concat(t),method:"get"})}function G(t){return Object(r["a"])({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function A(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function J(t){return Object(r["a"])({url:"app/wechat_qrcode/list",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 K(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 X(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function Y(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 Q(){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 it(t){return Object(r["a"])({url:"app/wechat_qrcode/info/".concat(t),method:"get"})}function ot(t,e){return Object(r["a"])({url:"app/wechat_qrcode/save/".concat(t),method:"post",data:e})}function st(t){return Object(r["a"])({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function at(t,e){return Object(r["a"])({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function ct(t){return Object(r["a"])({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function ut(){return Object(r["a"])({url:"notify/sms/is_login",method:"GET"})}function lt(){return Object(r["a"])({url:"notify/sms/logout",method:"GET"})}function pt(t){return Object(r["a"])({url:"setting/city/list/".concat(t),method:"get"})}function mt(t){return Object(r["a"])({url:"setting/city/add/".concat(t),method:"get"})}function ft(t){return Object(r["a"])({url:"setting/city/".concat(t,"/edit"),method:"get"})}function dt(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function ht(t){return Object(r["a"])({url:"setting/shipping_templates/city_list",method:"get"})}function gt(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function bt(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function vt(){return Object(r["a"])({url:"merchant/store/get_header",method:"get"})}function It(t){return Object(r["a"])({url:"merchant/store",method:"get",params:t})}function wt(t,e){return Object(r["a"])({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function yt(t){return Object(r["a"])({url:"merchant/store/get_info/".concat(t),method:"get"})}function _t(t){return Object(r["a"])({url:"merchant/store_staff",method:"get",params:t})}function kt(){return Object(r["a"])({url:"merchant/store_staff/create",method:"get"})}function Ct(t){return Object(r["a"])({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function xt(t,e){return Object(r["a"])({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function Ot(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 St(){return Object(r["a"])({url:"merchant/store_list",method:"get"})}function $t(){return Object(r["a"])({url:"setting/city/clean_cache",method:"get"})}function Ft(){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 Rt(t){return Object(r["a"])({url:"system/config/storage/form/".concat(t),method:"get"})}function Dt(t){return Object(r["a"])({url:"system/config/storage/create/".concat(t),method:"get"})}function qt(t){return Object(r["a"])({url:"system/config/storage",method:"get",params:t})}function Mt(t){return Object(r["a"])({url:"system/config/storage/synch/".concat(t),method:"put"})}function Pt(t){return Object(r["a"])({url:"system/config/storage/status/".concat(t),method:"put"})}function zt(t){return Object(r["a"])({url:"system/config/storage/domain/".concat(t),method:"get"})}function Et(){return Object(r["a"])({url:"setting/config_list/31",method:"get"})}function Tt(t){return Object(r["a"])({url:"setting/config/save_basics",method:"post",data:t})}function Bt(t){return Object(r["a"])({url:"system/config/storage/save_type/".concat(t),method:"get"})}},"92ae":function(t,e,n){"use strict";var r=n("af94"),i=n.n(r);i.a},a0b8:function(t,e,n){"use strict";var r=n("8e8f"),i=n.n(r);i.a},af94:function(t,e,n){},bcb7:function(t,e,n){},bd8c:function(t,e,n){"use strict";var r=n("01ed9"),i=n.n(r);i.a},c7de:function(t,e,n){t.exports=n.p+"img/ren.c7bc0d99.png"},e951:function(t,e,n){"use strict";var r=n("bcb7"),i=n.n(r);i.a}}]); |