You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
3.5 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/fotget"],{1259:function(t,e,n){"use strict";var i=n("328c"),o=n.n(i);o.a},"328c":function(t,e,n){},3998:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement;t._self._c},s=[]},"4ef0":function(t,e,n){"use strict";n.r(e);var i=n("d278"),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},"668f":function(t,e,n){"use strict";n.r(e);var i=n("3998"),o=n("4ef0");for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("1259");var r,c=n("f0c5"),a=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=a.exports},"6bb3":function(t,e,n){"use strict";(function(t){n("8d0c");i(n("66fd"));var e=i(n("668f"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},d278:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("a34a"));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,i,o,s,r){try{var c=t[s](r),a=c.value}catch(u){return void n(u)}c.done?e(a):Promise.resolve(a).then(i,o)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function c(t){s(r,i,o,c,a,"next",t)}function a(t){s(r,i,o,c,a,"throw",t)}c(void 0)}))}}var c={data:function(){return{state:!1,totalTime:60,recordingTime:0,currentTime:0,code:"",psw:"",surepsw:"",phone:""}},onLoad:function(){},methods:{sendcode:function(e){var n=this;return r(i.default.mark((function o(){var s;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,n.$api.sendcode({action:"sendcode",phone:e});case 2:s=i.sent,n.getinfo=s.data,1==s.code&&n.checkingTime(),t.showToast({title:s.msg,icon:"none"});case 6:case"end":return i.stop()}}),o)})))()},updatepsw:function(e,n,o){var s=this;return r(i.default.mark((function r(){var c;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,s.$api.updatepsw({action:"updatepsw",phone:e,psw:o,code:n});case 2:c=i.sent,s.getinfo=c.data,1==c.code?(t.showToast({title:c.msg}),setTimeout((function(e){t.navigateBack({delta:1})}),1500)):t.showToast({title:c.msg,icon:"none"});case 5:case"end":return i.stop()}}),r)})))()},checking:function(){var e=/(^1\d{10}$)|(^[0-9]\d{7}$)/;if(!e.test(this.phone))return t.showToast({title:"请输入合法手机号!",icon:"none"}),!1;this.currentTime=this.totalTime,this.state=!0,this.sendcode(this.phone)},checkingTime:function(){var t=this;this.state&&this.currentTime>0&&this.recordingTime<=this.totalTime?(this.recordingTime=this.recordingTime+1,this.currentTime=this.totalTime-this.recordingTime,setTimeout((function(){t.checkingTime()}),1e3)):(this.state=!1,this.recordingTime=0,this.currentTime=this.totalTime)},dopost:function(){var e=/(^1\d{10}$)|(^[0-9]\d{7}$)/;return e.test(this.phone)?""==this.code?(t.showToast({title:"请输入验证码!",icon:"none"}),!1):""==this.pwd||this.psw.length<6?(t.showToast({title:"密码不少于6位!",icon:"none"}),!1):this.psw!=this.surepsw?(t.showToast({title:"两次输入密码不一致!",icon:"none"}),!1):void this.updatepsw(this.phone,this.code,this.psw):(t.showToast({title:"请输入合法手机号!",icon:"none"}),!1)}}};e.default=c}).call(this,n("543d")["default"])}},[["6bb3","common/runtime","common/vendor"]]]);