123 |
- require("../../../../common/manifest.js")
- require("../../../../common/vendor.js")
- global.webpackJsonpMpvue([10],{"1UfF":function(t,e){},"6V+0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("5nAL"),a=n.n(s),o=n("Pa1J");a.a.config.errorHandler=function(t){console&&console.error&&console.error(t)},new a.a(o.a).$mount()},K9Js:function(t,e,n){"use strict";var s,a=n("iy8u"),o=n("5S+K");e.a={name:"uc_edit_container",components:{},data:function(){return{base_phone:"",phone:"",sms:"",custom_style:"width: 330px;\n height: 49px;\n background: rgba(242, 243, 255, 0.6);\n box-shadow: 0px 3px 7px 0px rgba(159, 159, 159, 0.84);\n border-radius: 10px;\n margin: 20px auto;\n ",new_phone:"",time_show:!1,time_start:!1,time_count:60}},methods:{cut_phone:function(t){return t.slice(0,4)+"******"+t.slice(-2)},inputNewPhone:function(t){s.new_phone=t.mp.detail},inputSms:function(t){s.sms=t.mp.detail},sand_sms:function(){s.new_phone||a.a.fail("手机号不为空");var t={phone:s.new_phone};Object(o.k)(t).then(function(t){var e=t.data;200!=e.code&&(s.start_count_down(),a.a.fail(e.errmsg))})},confirm_modify:function(){var t={code:s.sms,new_phone:s.new_phone,old_phone:s.base_phone};Object(o.e)(t).then(function(t){var e=t.data;0==e.code?(a.a.success(e.errmsg),global.mpvue.navigateBack({delta:2})):a.a.fail(e.errmsg)})},start_count_down:function(){s.time_count=60,s.time_start=s.time_show=!0},time_finished:function(){s.time_start=s.time_show=!1}},mounted:function(){var t=wx.getStorageSync("userinfo");s.phone=s.base_phone=t.phone,s.phone=s.cut_phone(s.phone)},created:function(){s=this},onLoad:function(){}}},Pa1J:function(t,e,n){"use strict";var s=n("K9Js"),a=n("X938");var o=function(t){n("1UfF")},i=n("ybqe")(s.a,a.a,o,"data-v-6d44d9b4",null);e.a=i.exports},X938:function(t,e,n){"use strict";var s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uc_edit_container"},[n("div",{staticClass:"main_content text-center"},[n("img",{staticClass:"main_icon",attrs:{src:"https://img.shuimuai.com/sign_phone_shuimu.png",alt:""}}),t._v(" "),n("view",{staticClass:"solid-bottom text-xl padding"},[n("text",{staticClass:"text-black text-bold"},[t._v("验证当前手机号 "+t._s(t.phone))])]),t._v(" "),t._m(0),t._v(" "),n("van-field",{attrs:{value:"+86",center:"",label:"国家",readonly:"","custom-style":t.custom_style,mpcomid:"0"}}),t._v(" "),n("van-field",{attrs:{value:t.new_phone,label:"手机号",placeholder:"请输入手机号",maxlength:"11","error-message":"手机号格式错误","custom-style":t.custom_style,type:"number",clearable:"",eventid:"0",mpcomid:"1"},on:{change:t.inputNewPhone}}),t._v(" "),n("van-field",{attrs:{value:t.sms,center:"",clearable:"",label:"短信验证码",placeholder:"请输入短信验证码","use-button-slot":"","custom-style":t.custom_style,maxlength:6,eventid:"3",mpcomid:"4"},on:{change:t.inputSms}},[0==t.time_show?n("van-button",{staticClass:"flex",attrs:{size:"small",type:"primary",eventid:"2",mpcomid:"3"},on:{click:t.sand_sms},slot:"button"},[n("text",[t._v("发送验证码")])]):n("view",{staticClass:"flex align-center",slot:"button"},[t.time_show?n("van-count-down",{staticClass:"control-count-down",attrs:{"auto-start":t.time_start,time:1e3*t.time_count,format:"ss",eventid:"1",mpcomid:"2"},on:{finish:t.time_finished}}):t._e(),t._v(" "),n("text",[t._v("后发送验证码")])],1)],1),t._v(" "),n("div",{staticClass:"padding bottom_button"},[n("button",{staticClass:"cu-btn lg cu-btn-primary text-white text-center ",attrs:{eventid:"4"},on:{click:t.confirm_modify}},[t._v("确定修改")])],1)],1),t._v(" "),n("van-toast",{attrs:{id:"van-toast",mpcomid:"5"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:" text-sm"},[e("text",{staticClass:"text-gray sub-title"},[this._v("为了你的账号安全,请输入验证码")])])}]};e.a=s}},["6V+0"]);
|