chunk-da6a4c04.ad576b24.js 25 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-da6a4c04"],{"0e9f":function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[e.isShowList?n("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"content acea-row row-middle"},[n("div",{staticClass:"demo-basic--circle acea-row row-middle"},[n("el-avatar",{staticClass:"mr20",attrs:{size:50,src:e.circleUrl}}),e._v(" "),n("div",{staticClass:"dashboard-workplace-header-tip"},[n("div",{staticClass:"dashboard-workplace-header-tip-title"},[e._v(e._s(e.smsAccount)+",祝您每一天开心!")]),e._v(" "),n("div",{staticClass:"dashboard-workplace-header-tip-desc"},[n("span",{staticClass:"mr10",on:{click:e.changeSignature}},[e._v("修改签名")]),e._v(" "),n("span",{staticClass:"mr10",on:{click:e.changePsd}},[e._v("修改密码")]),e._v(" "),n("span",{on:{click:e.signOut}},[e._v("退出登录")])])])],1),e._v(" "),n("div",{staticClass:"dashboard-workplace-header-extra"},[n("el-row",{attrs:{type:"flex",justify:"center",align:"middle",gutter:12}},[n("el-col",{attrs:{span:8}},[n("span",{staticClass:"pfont acea-row row-middle"},[n("el-avatar",{staticClass:"mr10",attrs:{icon:"el-icon-user-solid",size:"small"}}),e._v(" "),n("span",[e._v("剩余条数")])],1),e._v(" "),n("span",{staticClass:"rR",domProps:{textContent:e._s(e.numbers)}})]),e._v(" "),n("el-col",{attrs:{span:8}},[n("span",{staticClass:"pfont acea-row row-middle"},[n("el-avatar",{staticClass:"mr10",attrs:{icon:"el-icon-user-solid",size:"small"}}),e._v(" "),n("span",[e._v("已发送")])],1),e._v(" "),n("span",{staticClass:"rR",domProps:{textContent:e._s(e.sendTotal)}})]),e._v(" "),n("el-col",{attrs:{span:8}},[n("span",{staticClass:"pfont acea-row row-middle"},[n("el-avatar",{staticClass:"mr10",attrs:{icon:"el-icon-user-solid",size:"small"}}),e._v(" "),n("span",[e._v("总条数")])],1),e._v(" "),n("span",{staticClass:"rR",domProps:{textContent:e._s(e.amount)}})])],1)],1)])])]):e._e(),e._v(" "),e.isShowList?n("table-list"):e._e(),e._v(" "),e.isShowLogn?n("login-from",{on:{"on-changes":e.onChangeReg,"on-Login":e.onLogin}}):e._e(),e._v(" "),e.isShowReg?n("register-from",{on:{"on-change":e.logoup}}):e._e(),e._v(" "),e.isShowChangePsd?n("change-psd",{ref:"changePsd",on:{"change-success":e.changeSuccess}}):e._e(),e._v(" "),e.isShowChangeSign?n("change-signature",{ref:"changeSignature",on:{"change-success":e.changeSuccess}}):e._e()],1)},a=[],i=(n("a481"),n("96cf"),n("3b8d")),r=n("db72"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"filter-container mb20"},[n("div",{staticClass:"demo-input-suffix"},[n("span",{staticClass:"seachTiele"},[e._v("短信状态:")]),e._v(" "),n("el-radio-group",{attrs:{size:"small"},on:{change:e.getList},model:{value:e.tableFrom.type,callback:function(t){e.$set(e.tableFrom,"type",t)},expression:"tableFrom.type"}},[n("el-radio-button",{attrs:{label:""}},[e._v("全部")]),e._v(" "),n("el-radio-button",{attrs:{label:"100"}},[e._v("成功")]),e._v(" "),n("el-radio-button",{attrs:{label:"130"}},[e._v("失败")]),e._v(" "),n("el-radio-button",{attrs:{label:"131"}},[e._v("空号")]),e._v(" "),n("el-radio-button",{attrs:{label:"132"}},[e._v("停机")]),e._v(" "),n("el-radio-button",{attrs:{label:"133"}},[e._v("关机")]),e._v(" "),n("el-radio-button",{attrs:{label:"134"}},[e._v("无状态")])],1)],1)]),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"sms_record_id",label:"ID","min-width":"50"}}),e._v(" "),n("el-table-column",{attrs:{prop:"phone",label:"手机号","min-width":"120"}}),e._v(" "),n("el-table-column",{attrs:{prop:"content",label:"模板内容","min-width":"500"}}),e._v(" "),n("el-table-column",{attrs:{prop:"template",label:"模板ID","min-width":"100"}}),e._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"发送时间","min-width":"150"}}),e._v(" "),n("el-table-column",{attrs:{label:"状态码","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.resultcode?t.row.resultcode:"无状态"))])]}}])})],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)},c=[],l=n("b61d"),u={name:"TableList",data:function(){return{listLoading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,type:""}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(l["i"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},p=u,m=n("2877"),d=Object(m["a"])(p,o,c,!1,null,"15d5bd24",null),f=d.exports,h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-row",{attrs:{type:"flex"}},[n("el-col",{attrs:{span:24}},[n("el-form",{ref:"formInline",staticClass:"login-form",attrs:{size:"small",model:e.formInline,rules:e.ruleInline,autocomplete:"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("短信账户登录")])]),e._v(" "),n("el-form-item",{attrs:{prop:"account"}},[n("el-input",{ref:"account",attrs:{placeholder:"用户名","prefix-icon":"el-icon-user",name:"username",type:"text",tabindex:"1",autocomplete:"off"},model:{value:e.formInline.account,callback:function(t){e.$set(e.formInline,"account",t)},expression:"formInline.account"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"off","prefix-icon":"el-icon-lock"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("登录")]),e._v(" "),n("el-button",{staticStyle:{width:"100%"},attrs:{type:"text"},on:{click:e.changeReg}},[e._v("注册账户")])],1)],1)],1)],1)},g=[],w=(n("7f7f"),{name:"Login",data:function(){return{formInline:{account:"",password:""},ruleInline:{account:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},passwordType:"password",loading:!1}},created:function(){var e=this;document.onkeydown=function(t){var n=window.event.keyCode;13===n&&e.handleSubmit("formInline")}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["d"])(t.formInline).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success("登录成功!"),t.$store.dispatch("user/isLogin"),t.$emit("on-Login");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},changePassword:function(){this.$emit("on-change")},changeReg:function(){this.$emit("on-changes")}}}),v=w,b=(n("f5a5"),Object(m["a"])(v,h,g,!1,null,"3f6401e0",null)),_=b.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-form",{ref:"formInline",staticClass:"login-form",attrs:{size:"mini",model:e.formInline,rules:e.ruleInline,autocomplete:"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("短信账户注册")])]),e._v(" "),n("el-form-item",{attrs:{prop:"account"}},[n("el-input",{ref:"account",attrs:{placeholder:"请输入短信平台账号","prefix-icon":"el-icon-user",name:"username",type:"text",tabindex:"1","auto-complete":"off"},model:{value:e.formInline.account,callback:function(t){e.$set(e.formInline,"account",t)},expression:"formInline.account"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"请输入短信平台密码/token",name:"password",tabindex:"2","auto-complete":"off","prefix-icon":"el-icon-lock"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"url"}},[n("el-input",{ref:"password",attrs:{placeholder:"请输入网址域名",name:"password","prefix-icon":"el-icon-position"},model:{value:e.formInline.url,callback:function(t){e.$set(e.formInline,"url",t)},expression:"formInline.url"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{ref:"password",attrs:{placeholder:"请输入您的手机号","prefix-icon":"el-icon-phone-outline",name:"password"},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"sign"}},[n("el-input",{ref:"password",attrs:{placeholder:"请输入短信签名,例如:CRMEB",name:"password","prefix-icon":"el-icon-price-tag"},model:{value:e.formInline.sign,callback:function(t){e.$set(e.formInline,"sign",t)},expression:"formInline.sign"}})],1),e._v(" "),n("el-form-item",{staticClass:"captcha",attrs:{prop:"code"}},[n("div",{staticClass:"acea-row",staticStyle:{"flex-wrap":"nowrap"}},[n("el-input",{ref:"username",staticStyle:{width:"90%"},attrs:{placeholder:"验证码",name:"username",type:"text",tabindex:"1",autocomplete:"off","prefix-icon":"el-icon-message"},model:{value:e.formInline.code,callback:function(t){e.$set(e.formInline,"code",t)},expression:"formInline.code"}}),e._v(" "),n("el-button",{attrs:{size:"small",disabled:!this.canClick},on:{click:e.cutDown}},[e._v(e._s(e.cutNUm))])],1)]),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("注册")]),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.changelogo}},[e._v("立即登录")])],1)],1)},x=[],I={name:"Register",data:function(){var e=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))};return{loading:!1,passwordType:"password",captchatImg:"",cutNUm:"获取验证码",canClick:!0,formInline:{account:"",code:"",url:"",phone:"",sign:"",password:""},ruleInline:{account:[{required:!0,message:"请输入短信平台账号",trigger:"blur"}],password:[{required:!0,message:"请输入短信平台密码/token",trigger:"blur"}],url:[{required:!0,message:"请输入网址域名",trigger:"blur"}],phone:[{required:!0,validator:e,trigger:"blur"}],sign:[{required:!0,message:"请输入短信签名",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]}}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},cutDown:function(){var e=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var t={phone:this.formInline.phone};Object(l["a"])(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.message);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}));var n=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(n))}),1e3)}else this.$message.warning("请填写手机号!")},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["h"])(t.formInline).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$alert(n.message,"提示",{confirmButtonText:"确定",callback:function(e){t.changelogo()}});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},changelogo:function(){this.$emit("on-change")}}},k=I,C=(n("c6f2"),Object(m["a"])(k,y,x,!1,null,"8c95a0a4",null)),S=C.exports,$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-row",{attrs:{type:"flex"}},[n("el-col",{attrs:{span:24}},[n("el-form",{ref:"formInline",staticClass:"login-form",attrs:{size:"small",model:e.formInline,rules:e.ruleInline,autocomplete:"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("短信账户密码修改")])]),e._v(" "),n("el-form-item",[n("div",{staticStyle:{"text-align":"left"}},[e._v("用户名: "+e._s(e.username))])]),e._v(" "),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{placeholder:"请输入新密码","prefix-icon":"el-icon-lock",type:e.passwordType,tabindex:"1",autocomplete:"off"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{attrs:{placeholder:"请输入您的手机号","prefix-icon":"el-icon-phone-outline"},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{staticClass:"captcha",attrs:{prop:"code"}},[n("div",{staticClass:"acea-row",staticStyle:{"flex-wrap":"nowrap"}},[n("el-input",{staticStyle:{width:"90%"},attrs:{placeholder:"验证码",type:"text",tabindex:"1",autocomplete:"off","prefix-icon":"el-icon-message"},model:{value:e.formInline.code,callback:function(t){e.$set(e.formInline,"code",t)},expression:"formInline.code"}}),e._v(" "),n("el-button",{attrs:{size:"small",disabled:!this.canClick},on:{click:e.cutDown}},[e._v(e._s(e.cutNUm))])],1)]),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("确认修改")]),e._v(" "),n("el-button",{staticStyle:{width:"100%",margin:"0"},attrs:{loading:e.loading},on:{click:function(t){return e.goback("formInline")}}},[e._v(" 返回 ")])],1)],1)],1)],1)},L=[],T={name:"changePsd",data:function(){var e=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))};return{captchatImg:"",cutNUm:"获取验证码",canClick:!0,username:"",formInline:{account:"",password:"",code:""},ruleInline:{phone:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,message:"请输入新密码",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},passwordType:"password",loading:!1}},created:function(){var e=this;document.onkeydown=function(t){var n=window.event.keyCode;13===n&&e.handleSubmit("formInline")}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},cutDown:function(){var e=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var t={phone:this.formInline.phone};Object(l["a"])(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.message);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}));var n=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(n))}),1e3)}else this.$message.warning("请填写手机号!")},handleSubmit:function(e){var t=this;this.loading=!0,this.$refs[e].validate((function(e){if(!e)return!1;Object(l["b"])(t.formInline).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.loading=!1,t.$message.success(n.message),t.$emit("change-success");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},goback:function(){this.loading=!0,this.$emit("change-success")}}},R=T,j=(n("4add"),Object(m["a"])(R,$,L,!1,null,"4f359872",null)),O=j.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-row",{attrs:{type:"flex"}},[n("el-col",{attrs:{span:24}},[n("el-form",{ref:"formInline",staticClass:"login-form",attrs:{size:"small",model:e.formInline,rules:e.ruleInline,autocomplete:"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("短信账户签名修改")])]),e._v(" "),n("el-form-item",[n("div",{staticStyle:{"text-align":"left"}},[e._v("用户名: "+e._s(e.username))])]),e._v(" "),n("el-form-item",{attrs:{prop:"sign"}},[n("el-input",{attrs:{placeholder:"请输入新短信签名,例如:CRMEB","prefix-icon":"el-icon-price-tag"},model:{value:e.formInline.sign,callback:function(t){e.$set(e.formInline,"sign",t)},expression:"formInline.sign"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{attrs:{placeholder:"请输入您的手机号","prefix-icon":"el-icon-phone-outline"},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{staticClass:"captcha",attrs:{prop:"code"}},[n("div",{staticClass:"acea-row",staticStyle:{"flex-wrap":"nowrap"}},[n("el-input",{staticStyle:{width:"90%"},attrs:{placeholder:"验证码",type:"text",tabindex:"1",autocomplete:"off","prefix-icon":"el-icon-message"},model:{value:e.formInline.code,callback:function(t){e.$set(e.formInline,"code",t)},expression:"formInline.code"}}),e._v(" "),n("el-button",{attrs:{size:"small",disabled:!this.canClick},on:{click:e.cutDown}},[e._v(e._s(e.cutNUm))])],1)]),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("确认修改")]),e._v(" "),n("el-button",{staticStyle:{width:"100%",margin:"0"},on:{click:function(t){return e.goback("formInline")}}},[e._v(" 返回 ")])],1)],1)],1)],1)},P=[],U={name:"changePsd",data:function(){var e=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))};return{captchatImg:"",cutNUm:"获取验证码",canClick:!0,username:"",formInline:{phone:"",code:"",sign:""},ruleInline:{phone:[{required:!0,validator:e,trigger:"blur"}],sign:[{required:!0,message:"请输入短信签名",trigger:"blur"},{max:15,message:"不能超过十五个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},passwordType:"password",loading:!1}},created:function(){var e=this;document.onkeydown=function(t){var n=window.event.keyCode;13===n&&e.handleSubmit("formInline")}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},cutDown:function(){var e=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var t={phone:this.formInline.phone};Object(l["a"])(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.message);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}));var n=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(n))}),1e3)}else this.$message.warning("请填写手机号!")},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["c"])(t.formInline).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message),t.$emit("change-success");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},goback:function(){this.$emit("change-success")}}},z=U,q=(n("e9cc"),Object(m["a"])(z,N,P,!1,null,"194169b3",null)),E=q.exports,D=n("2f62"),F={name:"SmsConfig",components:{tableList:f,loginFrom:_,registerFrom:S,changePsd:O,changeSignature:E},data:function(){return{fullscreenLoading:!1,smsAccount:"",circleUrl:"https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",spinShow:!1,isShowLogn:!1,isShowChangePsd:!1,isShowChangeSign:!1,isShow:!1,isShowReg:!1,isShowList:!1,amount:0,numbers:0,sendTotal:0}},computed:Object(r["a"])({},Object(D["b"])(["isLogin"])),mounted:function(){this.onIsLogin()},methods:{getNumber:function(){var e=this;Object(l["j"])().then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.numbers=s.number,e.sendTotal=s.send_total,e.amount=s.number+s.send_total,e.smsAccount=s.account;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},onLogin:function(){var e=this.$route.query.url;e?this.$router.replace(e):(this.isShowLogn=!1,this.isShow=!1,this.isShowReg=!1,this.isShowList=!0)},onIsLogin:function(){var e=this;this.fullscreenLoading=!0,this.$store.dispatch("user/isLogin").then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.isShowLogn=!s.status,e.isShowList=s.status,s.status&&(e.smsAccount=s.info),e.getNumber(),e.fullscreenLoading=!1;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.isShowLogn=!0,e.$message.error(t.message)}))},signOut:function(){var e=this;Object(l["f"])().then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowLogn=!0,e.isShowList=!1,e.$store.dispatch("user/isLogin");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},onChangeReg:function(){this.isShowLogn=!1,this.isShow=!1,this.isShowReg=!0},logoup:function(){this.isShowLogn=!0,this.isShow=!1,this.isShowReg=!1},changePsd:function(){var e=this;this.isShowChangePsd=!0,this.isShowList=!1,this.$nextTick((function(){e.$refs.changePsd.username=e.smsAccount}))},changeSuccess:function(){var e=this;e.isShowChangePsd=!1,e.isShowChangeSign=!1,e.isShowList=!0},changeSignature:function(){var e=this;this.isShowChangeSign=!0,this.isShowList=!1,this.$nextTick((function(){e.$refs.changeSignature.username=e.smsAccount}))}}},A=F,B=(n("5aae"),Object(m["a"])(A,s,a,!1,null,"2bd5ac52",null));t["default"]=B.exports},1734:function(e,t,n){},"28e5":function(e,t,n){},"3b71":function(e,t,n){},"4add":function(e,t,n){"use strict";var s=n("bf70"),a=n.n(s);a.a},"5aae":function(e,t,n){"use strict";var s=n("3b71"),a=n.n(s);a.a},"5dce":function(e,t,n){},bf70:function(e,t,n){},c6f2:function(e,t,n){"use strict";var s=n("1734"),a=n.n(s);a.a},e9cc:function(e,t,n){"use strict";var s=n("5dce"),a=n.n(s);a.a},f5a5:function(e,t,n){"use strict";var s=n("28e5"),a=n.n(s);a.a}}]);