|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6325995f"],{"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("table-list"):e._e()],1)},i=[],a=(n("a481"),n("c80c")),o=(n("96cf"),n("3b8d")),r=n("db72"),c=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"}})],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)},l=[],u=n("b61d"),p={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(u["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()}}},m=p,f=n("2877"),d=Object(f["a"])(m,c,l,!1,null,"842e2182",null),h=d.exports,g=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)},w=[],b=(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(u["d"])(t.formInline).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().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=b,I=(n("597a"),Object(f["a"])(v,g,w,!1,null,"e255df3a",null)),y=I.exports,_=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=[],k=n("90e7"),$={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,Object(k["l"])(this.formInline.phone).then(function(){var t=Object(o["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().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 t=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(t))}),1e3)}else this.$message.warning("请填写手机号!")},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(u["h"])(t.formInline).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().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")}}},C=$,S=(n("11a9"),Object(f["a"])(C,_,x,!1,null,"1212c64d",null)),j=S.exports,O=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,Object(k["l"])(this.formInline.phone).then(function(){var t=Object(o["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().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 t=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(t))}),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(u["b"])(t.formInline).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().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")}}},N=T,U=(n("60fb"),Object(f["a"])(N,O,L,!1,null,"bbcd63ec",null)),z=U.exports,P=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",{staticClass:"tips",attrs:{prop:"sign"}},[n("el-popover",{attrs:{placement:"top-start",title:"签名预览",width:"384",trigger:"manual",content:"【"+e.formInline.sign+"】您的验证码是:2850,有效期为30分钟。如非本人操作,可不予理会"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("el-input",{staticClass:"pageWidth",attrs:{slot:"reference",placeholder:"请输入新短信签名,例如:CRMEB","prefix-icon":"el-icon-price-tag",size:"small"},on:{focus:function(t){e.visible=!0},blur:function(t){e.visible=!1}},slot:"reference",model:{value:e.formInline.sign,callback:function(t){e.$set(e.formInline,"sign",t)},expression:"formInline.sign"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{staticClass:"pageWidth",attrs:{placeholder:"请输入您的手机号","prefix-icon":"el-icon-phone-outline",size:"small"},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",{staticClass:"pageWidth",attrs:{placeholder:"验证码",type:"text",tabindex:"1",autocomplete:"off","prefix-icon":"el-icon-message",size:"small"},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",size:"small"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("确认修改")]),e._v(" "),n("el-button",{staticStyle:{width:"100%",margin:"0"},attrs:{size:"small"},on:{click:function(t){return e.goback("formInline")}}},[e._v(" 返回 ")])],1)],1)],1)],1)},q=[],E={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{disabled:!1,visible:!1,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,Object(k["l"])(this.formInline.phone).then(function(){var t=Object(o["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().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 t=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(t))}),1e3)}else this.$message.warning("请填写手机号!")},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(u["c"])(t.formInline).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().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")}}},D=E,F=(n("a957"),Object(f["a"])(D,P,q,!1,null,"71c65e3d",null)),R=F.exports,A=n("2f62"),B={name:"SmsConfig",components:{tableList:h,loginFrom:y,registerFrom:j,changePsd:z,changeSignature:R},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(A["b"])(["isLogin"])),mounted:function(){this.isShowList=!0},methods:{getNumber:function(){var e=this;Object(u["j"])().then(function(){var t=Object(o["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().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(o["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().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.fullscreenLoading=!1;case 5: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(u["f"])().then(function(){var t=Object(o["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().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}))}}},W=B,J=(n("a158"),Object(f["a"])(W,s,i,!1,null,"5b704174",null));t["default"]=J.exports},"11a9":function(e,t,n){"use strict";n("baf1")},2062:function(e,t,n){},"38ab":function(e,t,n){},"597a":function(e,t,n){"use strict";n("640e")},"60fb":function(e,t,n){"use strict";n("2062")},"640e":function(e,t,n){},8118:function(e,t,n){},a158:function(e,t,n){"use strict";n("8118")},a957:function(e,t,n){"use strict";n("38ab")},baf1:function(e,t,n){}}]); |