|
|
@ -33,11 +33,12 @@ data() { |
|
|
newPhone: "13800138000", // 当前显示电话 |
|
|
newPhone: "13800138000", // 当前显示电话 |
|
|
isReget: false, // 判断是否显示 ‘重新获取’按钮 |
|
|
isReget: false, // 判断是否显示 ‘重新获取’按钮 |
|
|
timer: null, // 定时器 |
|
|
timer: null, // 定时器 |
|
|
count: 60, // 时间 |
|
|
count: 20, // 时间 |
|
|
code:"", // 验证码 |
|
|
code:"", // 验证码 |
|
|
focus:true, // 焦点 |
|
|
focus:true, // 焦点 |
|
|
// 正在加载 |
|
|
// 正在加载 |
|
|
isLoading: false, |
|
|
isLoading: false, |
|
|
|
|
|
isParty: false, |
|
|
isCode:true // ‘确定’按钮是否禁用 |
|
|
isCode:true // ‘确定’按钮是否禁用 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -123,18 +124,19 @@ methods: { |
|
|
const app = this |
|
|
const app = this |
|
|
app.isLoading = true |
|
|
app.isLoading = true |
|
|
store.dispatch('Login', { |
|
|
store.dispatch('Login', { |
|
|
smsCode: app.smsCode, |
|
|
smsCode: app.code, |
|
|
mobile: app.mobile, |
|
|
mobile: app.newPhone |
|
|
isParty: app.isParty, |
|
|
// isParty: false, |
|
|
partyData: app.partyData |
|
|
// partyData: "" |
|
|
}) |
|
|
}) |
|
|
.then(result => { |
|
|
.then(result => { |
|
|
// 显示登录成功 |
|
|
// 显示登录成功 |
|
|
app.$toast(result.message) |
|
|
app.$toast(result.message) |
|
|
// 相应全局事件订阅: 刷新上级页面数据 |
|
|
// 相应全局事件订阅: 刷新上级页面数据 |
|
|
uni.$emit('syncRefresh', true) |
|
|
uni.$emit('syncRefresh', true) |
|
|
|
|
|
this.$navTo("pages/home") |
|
|
// 跳转回原页面 |
|
|
// 跳转回原页面 |
|
|
setTimeout(() => app.onNavigateBack(1), 2000) |
|
|
//setTimeout(() => app.onNavigateBack(1), 2000) |
|
|
}) |
|
|
}) |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
// 跳转回原页面 |
|
|
// 跳转回原页面 |
|
|
@ -235,7 +237,7 @@ methods: { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.btn{ |
|
|
// .btn{ |
|
|
background-color: #FEF2F2; |
|
|
// background-color: #FEF2F2; |
|
|
} |
|
|
// } |
|
|
</style> |
|
|
</style> |