Showing
2 changed files
with
18 additions
and
22 deletions
| ... | ... | @@ -11,8 +11,8 @@ |
| 11 | 11 | <view class="form-row"><u-input v-model="phone" type="number" placeholder="请输入手机号码" border="bottom"></u-input></view> |
| 12 | 12 | <view class="form-row"> |
| 13 | 13 | <u-input type="number" v-model="vCode" placeholder="请输入验证码" border="bottom"> |
| 14 | - <template slot="suffix" @click="getVcode"> | |
| 15 | - <view class="getvcode">{{ codeText }}</view> | |
| 14 | + <template slot="suffix"> | |
| 15 | + <view @click="getVcode" class="getvcode">{{ codeText }}</view> | |
| 16 | 16 | </template> |
| 17 | 17 | </u-input> |
| 18 | 18 | </view> |
| ... | ... | @@ -140,16 +140,14 @@ export default { |
| 140 | 140 | if (userInfo.token) { |
| 141 | 141 | this.setUserInfo(userInfo); |
| 142 | 142 | } |
| 143 | - uni | |
| 144 | - .showToast({ | |
| 145 | - title: '登录成功~', | |
| 146 | - icon: 'none' | |
| 147 | - }) | |
| 148 | - .then(res => { | |
| 149 | - uni.reLaunch({ | |
| 150 | - url: '/pages/personal/personal' | |
| 151 | - }); | |
| 143 | + uni.showToast({ | |
| 144 | + title: '登录成功~', | |
| 145 | + icon: 'none' | |
| 146 | + }).then(res => { | |
| 147 | + uni.reLaunch({ | |
| 148 | + url: '/pages/personal/personal' | |
| 152 | 149 | }); |
| 150 | + }); | |
| 153 | 151 | this.saveUserInfo(); |
| 154 | 152 | } |
| 155 | 153 | }); | ... | ... |
| ... | ... | @@ -10,8 +10,8 @@ |
| 10 | 10 | <view class="form-row"><u-input v-model="phone" type="number" placeholder="请输入手机号码" border="bottom" /></view> |
| 11 | 11 | <view class="form-row"> |
| 12 | 12 | <u-input type="number" v-model="vCode" placeholder="请输入验证码" border="bottom"> |
| 13 | - <template slot="suffix" @click="getVcode"> | |
| 14 | - <view class="getvcode">{{ codeText }}</view> | |
| 13 | + <template slot="suffix"> | |
| 14 | + <view @click="getVcode" class="getvcode">{{ codeText }}</view> | |
| 15 | 15 | </template> |
| 16 | 16 | </u-input> |
| 17 | 17 | </view> |
| ... | ... | @@ -169,16 +169,14 @@ export default { |
| 169 | 169 | uni.$u.http |
| 170 | 170 | .post(`/yt/noauth/reset/${this.phone}`, httpData) |
| 171 | 171 | .then(res => { |
| 172 | - uni | |
| 173 | - .showToast({ | |
| 174 | - title: '重置密码成功~', | |
| 175 | - icon: 'none' | |
| 176 | - }) | |
| 177 | - .then(res => { | |
| 178 | - uni.reLaunch({ | |
| 179 | - url: '/pages/personal/personal' | |
| 180 | - }); | |
| 172 | + uni.showToast({ | |
| 173 | + title: '重置密码成功~', | |
| 174 | + icon: 'none' | |
| 175 | + }).then(res => { | |
| 176 | + uni.reLaunch({ | |
| 177 | + url: '/pages/personal/personal' | |
| 181 | 178 | }); |
| 179 | + }); | |
| 182 | 180 | }) |
| 183 | 181 | .catch(err => { |
| 184 | 182 | uni.showToast({ | ... | ... |