1 |
- webpackJsonp([177],{AFmU:function(t,a){},wHWg:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});e("OWWB");var s=e("1fWZ"),n=(e("i0mo"),e("Hkar")),o=(e("iQ6B"),e("H6W6")),i=(e("n90r"),e("dJne")),r=e("7+uW"),c=e("vLgD"),l=e("TIfe");r.a.use(s.a).use(n.a).use(o.a).use(i.a);var u={name:"accountSet",data:function(){return{account_info:this.$store.getters.account_info,option:[{text:"账号注销",value:1}],show:!1,password:""}},methods:{plus_menu:function(t){t&&(this.password="",this.show=!0)},verify:function(){var t=this;if(!this.password)return this.$toast("请输入密码"),!1;this.$toast.loading({mask:!0,message:"正在验证..."});var a={tel:this.account_info.tel,password:this.password,custom_prompt:"密码错误"};Object(c.a)("post","/api/login",{data:Object(l.v)(a)},"v2").then(function(a){1==a.data.code&&t.$router.push({name:"verify"})}).finally(function(a){t.$toast.clear()})}}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"per-info__container"},[e("van-nav-bar",{staticClass:"headerbar no-down-icon",attrs:{title:"账号管理","left-text":"返回","left-arrow":""},on:{"click-left":t.$route_back}},[e("template",{staticClass:"department_right_nav",slot:"right"},[e("van-dropdown-menu",{staticClass:"head_dropdown_menu",attrs:{duration:"0.3",text:"text"}},[e("van-dropdown-item",{attrs:{title:"更多",options:t.option},on:{change:t.plus_menu}})],1)],1)],2),t._v(" "),e("van-cell-group",[e("van-cell",{attrs:{title:"修改密码",to:"change_pwd","is-link":""}})],1),t._v(" "),e("van-dialog",{attrs:{"show-cancel-button":""},on:{confirm:t.verify},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("div",{staticClass:"text"},[e("div",[t._v("操作前需要验证你的登录密码")]),t._v(" "),e("div",[t._v('如果忘了原密码,请退出登录,点击"忘记密码",使用短信验证码重新登录后设置新密码。')])]),t._v(" "),e("van-cell-group",[e("van-field",{attrs:{label:"原密码",placeholder:"请输入原密码",type:"password"},model:{value:t.password,callback:function(a){t.password=a},expression:"password"}})],1)],1)],1)},staticRenderFns:[]};var v=e("VU/8")(u,d,!1,function(t){e("AFmU")},"data-v-22f828e9",null);a.default=v.exports}});
|