(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["brick-module-member-profile_phone"],{1576:function(t,a,n){"use strict";n("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=n("51d9"),i=n("26cb"),c={computed:(0,i.mapState)({user:function(t){return t.user.user}}),onShow:function(){this.$starter.boot()},data:function(){return{loading:!1,change:!1,data:{phone:"",verify:"",captcha:""}}},methods:{doSubmit:function(){var t=this;this.loading=!0,this.$delay((function(){t.$api.post("member_profile/phone",t.data,(function(a){t.loading=!1,t.change=!1,t.data.phone="",t.data.verify="",t.data.captcha="",e.EventBus.$emit("UpdateApp"),t.$dialog.tipSuccess("修改成功",(function(){var a=t.$r.getQuery("redirect");a?t.$r.to(a):t.$r.back()}))}),(function(a){t.loading=!1}))}))},onVerifyError:function(){this.$refs.captcha.refresh()}}};a.default=c},"52b3":function(t,a,n){"use strict";n.d(a,"b",(function(){return i})),n.d(a,"c",(function(){return c})),n.d(a,"a",(function(){return e}));var e={pageMeta:n("6d42").default,cPageHeader:n("c8e4").default,cSmartCaptcha:n("0984").default,cSmartVerify:n("f952").default},i=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("v-uni-view",[n("page-meta",{attrs:{"root-font-size":"20px"}}),n("v-uni-view",[n("c-page-header",{attrs:{title:t.user.phone?"修改手机":"绑定手机"}}),t.user.phone&&!t.change?n("v-uni-view",{staticClass:"tw-p-4 ub-content-bg ub-h-full"},[n("v-uni-view",{staticClass:"ub-m-list ub-box-shadow"},[n("v-uni-view",{staticClass:"ub-m-list-item"},[n("v-uni-view",{staticClass:"icon"},[n("v-uni-text",{staticClass:"iconfont icon-phone"})],1),n("v-uni-view",{staticClass:"title"},[t._v("您已绑定手机")]),n("v-uni-view",{staticClass:"value"},[t._v(t._s(t.user.phone))])],1)],1),n("v-uni-view",[n("v-uni-button",{staticClass:"btn btn-primary btn-block btn-lg btn-round",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.change=!0}}},[t._v("立即修改")])],1)],1):t._e(),!t.user.phone||t.change?n("v-uni-view",{staticClass:"tw-p-8 ub-content-bg ub-h-full"},[n("v-uni-view",{staticClass:"ub-input-simple"},[n("v-uni-view",{staticClass:"input"},[n("v-uni-input",{attrs:{placeholder:"输入新手机"},model:{value:t.data.phone,callback:function(a){t.$set(t.data,"phone",a)},expression:"data.phone"}})],1)],1),n("v-uni-view",{staticClass:"ub-input-simple"},[n("v-uni-view",{staticClass:"input with-action"},[n("v-uni-view",{staticClass:"control"},[n("v-uni-input",{attrs:{placeholder:"输入图片验证"},model:{value:t.data.captcha,callback:function(a){t.$set(t.data,"captcha",a)},expression:"data.captcha"}})],1),n("v-uni-view",{staticClass:"action"},[n("c-smart-captcha",{ref:"captcha",staticClass:"captcha",attrs:{src:"member_profile/captcha"}})],1)],1)],1),n("v-uni-view",{staticClass:"ub-input-simple"},[n("v-uni-view",{staticClass:"input with-action"},[n("v-uni-view",{staticClass:"control"},[n("v-uni-input",{attrs:{placeholder:"输入手机验证码"},model:{value:t.data.verify,callback:function(a){t.$set(t.data,"verify",a)},expression:"data.verify"}})],1),n("v-uni-view",{staticClass:"action"},[n("c-smart-verify",{staticClass:"verify",attrs:{src:"member_profile/phone_verify",target:t.data.phone,captcha:t.data.captcha},on:{"update:target":function(a){arguments[0]=a=t.$handleEvent(a),t.$set(t.data,"phone",a)},"update:captcha":function(a){arguments[0]=a=t.$handleEvent(a),t.$set(t.data,"captcha",a)},error:function(a){arguments[0]=a=t.$handleEvent(a),t.onVerifyError.apply(void 0,arguments)}}})],1)],1)],1),n("v-uni-view",{staticClass:"ub-input-action"},[n("v-uni-button",{staticClass:"btn btn-lg btn-primary btn-block btn-round",attrs:{loading:t.loading},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.doSubmit()}}},[t._v(t._s(t.user.phone?"确认修改":"确认绑定"))]),t.user.phone?t._e():n("v-uni-button",{staticClass:"btn btn-lg btn-block btn-round margin-top",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.$r.back()}}},[t._v("暂不绑定")])],1)],1):t._e()],1)],1)},c=[]},"5a30":function(t,a,n){"use strict";n.r(a);var e=n("52b3"),i=n("a2ff");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(a,t,(function(){return i[t]}))}(c);var s,u=n("f0c5"),o=Object(u["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],s);a["default"]=o.exports},a2ff:function(t,a,n){"use strict";n.r(a);var e=n("1576"),i=n.n(e);for(var c in e)["default"].indexOf(c)<0&&function(t){n.d(a,t,(function(){return e[t]}))}(c);a["default"]=i.a}}]);