(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/paypassword"],{"11d1":function(t,n,e){"use strict";e.r(n);var o=e("a6fc"),u=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=u.a},"24bb":function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uInput:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-input/u-input")]).then(e.bind(null,"6aa8"))},uVerificationCode:function(){return e.e("uview-ui/components/u-verification-code/u-verification-code").then(e.bind(null,"6382"))},uButton:function(){return e.e("uview-ui/components/u-button/u-button").then(e.bind(null,"9058"))},uNoNetwork:function(){return e.e("uview-ui/components/u-no-network/u-no-network").then(e.bind(null,"36dd"))}},u=function(){var t=this,n=t.$createElement;t._self._c},i=[]},2544:function(t,n,e){"use strict";var o=e("e078"),u=e.n(o);u.a},"6dfb":function(t,n,e){"use strict";(function(t){e("02cf");o(e("66fd"));var n=o(e("b87e"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},a6fc:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("a34a")),u=i(e("d81e"));function i(t){return t&&t.__esModule?t:{default:t}}function r(t,n,e,o,u,i,r){try{var s=t[i](r),a=s.value}catch(c){return void e(c)}s.done?n(a):Promise.resolve(a).then(o,u)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(o,u){var i=t.apply(n,e);function s(t){r(i,o,u,s,a,"next",t)}function a(t){r(i,o,u,s,a,"throw",t)}s(void 0)}))}}var a={onLoad:function(t){this.info=u.default.getters["getusers"]},mounted:function(){},data:function(){return{code:"",type:"password",border:!0,tips:"",seconds:60,password:"",info:""}},methods:{codeChange:function(t){this.tips=t},getCode:function(){var n=this;return 6!=this.password.length?(t.showToast({title:"密码最低六位数",icon:"none"}),!1):this.$util.isNum(this.password)?parseInt(this.password)/1e5<1?(t.showToast({title:"密码不能以0开头",icon:"none"}),!1):void(this.$refs.uCode.canGetCode?(t.showLoading({title:"正在获取验证码"}),setTimeout((function(){t.hideLoading(),t.showToast({title:"验证码已发送",icon:"none"}),n.$refs.uCode.start()}),2e3)):t.showToast({title:"结束后再发送",icon:"none"})):(t.showToast({title:"密码只能为数字",icon:"none"}),!1)},end:function(){},start:function(){var t=s(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$request.post("/api/v1/common/sendVerifyCode",{phone:this.info.phone,type:3});case 2:t.sent;case 3:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),editpwd:function(){var n=s(o.default.mark((function n(){var e;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/user/updatePayPassword",{verify_code:this.code,pay_password:this.password});case 2:e=n.sent,0==e.status?(t.showToast({title:"设置成功",icon:"none",duration:1500}),setTimeout((function(){t.navigateBack({delta:1})}),1500)):t.showToast({title:e.message,icon:"none",duration:1500});case 4:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}()}};n.default=a}).call(this,e("543d")["default"])},b87e:function(t,n,e){"use strict";e.r(n);var o=e("24bb"),u=e("11d1");for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("2544");var r,s=e("f0c5"),a=Object(s["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);n["default"]=a.exports},e078:function(t,n,e){}},[["6dfb","common/runtime","common/vendor"]]]);