1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/editphone"],{"0608":function(e,n,t){"use strict";t.r(n);var o=t("8233"),u=t("f424");for(var i in u)"default"!==i&&function(e){t.d(n,e,(function(){return u[e]}))}(i);t("4734");var r,s=t("f0c5"),a=Object(s["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);n["default"]=a.exports},"2f9d":function(e,n,t){},"377c":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t("a34a")),u=i(t("d81e"));function i(e){return e&&e.__esModule?e:{default:e}}function r(e,n,t,o,u,i,r){try{var s=e[i](r),a=s.value}catch(c){return void t(c)}s.done?n(a):Promise.resolve(a).then(o,u)}function s(e){return function(){var n=this,t=arguments;return new Promise((function(o,u){var i=e.apply(n,t);function s(e){r(i,o,u,s,a,"next",e)}function a(e){r(i,o,u,s,a,"throw",e)}s(void 0)}))}}var a={onLoad:function(e){},mounted:function(){this.info=u.default.getters["getusers"]},data:function(){return{value:"",newphone:"",newcode:"",type:"number",border:!0,tips:"",newtips:"",seconds:60,newseconds:60,info:{}}},methods:{codeChange:function(e){this.tips=e},codeChange1:function(e){this.newtips=e},getCode:function(){this.$refs.uCode.canGetCode?this.$refs.uCode.start():e.showToast({title:"结束后再发送",icon:"none"})},getnewCode:function(){return this.$util.isNum(this.newphone)&&this.$util.isPhoneNumber(this.newphone)?void(this.$refs.newuCode.canGetCode?this.newstart():e.showToast({title:"结束后再发送",icon:"none"})):(e.showToast({title:"手机号不正确",icon:"none"}),!1)},end:function(){},start:function(){var e=s(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$request.post("/api/v1/common/sendVerifyCode",{phone:this.info.phone,type:4});case 2:e.sent;case 3:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}(),newend:function(){},newstart:function(){var n=s(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/common/sendVerifyCode",{phone:this.newphone,type:5});case 2:t=n.sent,0==t.status||(e.showToast({title:t.message,icon:"none"}),this.$refs.newuCode.reset());case 4:case"end":return n.stop()}}),n,this)})));function t(){return n.apply(this,arguments)}return t}(),savephone:function(){var n=s(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(""!=this.value&&""!=this.newphone&&""!=this.newcode){n.next=3;break}return e.showToast({title:"请填写完整",icon:"none"}),n.abrupt("return",!1);case 3:return n.next=5,this.$request.post("/api/v1/user/changeUserPhone",{old_verify_code:this.value,new_verify_code:this.newcode,new_phone:this.newphone});case 5:t=n.sent,console.log(t),0==t.status?(e.showToast({title:"保存成功",duration:1e3}),setTimeout((function(){e.navigateBack({delta:1})}),1e3)):e.showToast({title:t.message,icon:"none",duration:1500});case 8:case"end":return n.stop()}}),n,this)})));function t(){return n.apply(this,arguments)}return t}()}};n.default=a}).call(this,t("543d")["default"])},4734:function(e,n,t){"use strict";var o=t("2f9d"),u=t.n(o);u.a},8233:function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var o={uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,"6aa8"))},uVerificationCode:function(){return t.e("uview-ui/components/u-verification-code/u-verification-code").then(t.bind(null,"6382"))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,"9058"))},uNoNetwork:function(){return t.e("uview-ui/components/u-no-network/u-no-network").then(t.bind(null,"36dd"))}},u=function(){var e=this,n=e.$createElement;e._self._c},i=[]},a73f:function(e,n,t){"use strict";(function(e){t("02cf");o(t("66fd"));var n=o(t("0608"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},f424:function(e,n,t){"use strict";t.r(n);var o=t("377c"),u=t.n(o);for(var i in o)"default"!==i&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=u.a}},[["a73f","common/runtime","common/vendor"]]]);
|