453530270@qq.com 3 years ago
parent
commit
99011a644d
  1. 2
      pages/home.vue
  2. 24
      pages/login/smscode.vue

2
pages/home.vue

@ -205,7 +205,7 @@
}, },
gotologin(){ gotologin(){
this.$navTo("pages/login/index") this.$navTo("pages/login/loginsms")
}, },
// 退 // 退
handleLogout() { handleLogout() {

24
pages/login/smscode.vue

@ -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>
Loading…
Cancel
Save