|
|
|
@ -1,11 +1,9 @@ |
|
|
|
// pages/home/password/index.js
|
|
|
|
import { $wuxCountDown } from '../../../components/index' |
|
|
|
import { postCaptcha, modifyMobile } from '../../../api/user' |
|
|
|
const util = require('../../../utils/util') |
|
|
|
import { $wuxCountDown } from '../../../../components/index' |
|
|
|
import { postCaptcha, modifyMobile } from '../../../../api/user' |
|
|
|
const util = require('../../../../utils/util') |
|
|
|
const app = getApp() |
|
|
|
|
|
|
|
Page({ |
|
|
|
|
|
|
|
/** |
|
|
|
* 页面的初始数据 |
|
|
|
*/ |
|
|
|
@ -22,7 +20,6 @@ Page({ |
|
|
|
requesting: false, |
|
|
|
mobile: '' |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
@ -34,22 +31,11 @@ Page({ |
|
|
|
}, |
|
|
|
changePwd: function (e) { |
|
|
|
if (this.data.pwdType === 'password') { |
|
|
|
this.setData({ |
|
|
|
pwdType: 'text' |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
pwd_icon: 'attentionforbid' |
|
|
|
}) |
|
|
|
this.setData({ pwdType: 'text', pwd_icon: 'attentionforbid' }) |
|
|
|
} else { |
|
|
|
this.setData({ |
|
|
|
pwdType: 'password' |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
pwd_icon: 'attention' |
|
|
|
}) |
|
|
|
this.setData({ pwdType: 'password',pwd_icon: 'attention' }) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
fetchCode: function () { |
|
|
|
if (util.isEmpty(this.data.form.newMobile)) { |
|
|
|
util.showToast('请输入新手机号码!') |