|
@@ -227,9 +227,14 @@ Page({
|
|
|
spaceId: this.data.spaceDetail.id
|
|
|
}
|
|
|
comfirmCodeLogin(param).then(res => {
|
|
|
- router.push("ipdauth", { 'id': id, 'mac': mac, spaceId: this.data.spaceDetail.id })
|
|
|
+ if(res.result==='success'){
|
|
|
+ router.push("ipdauth", { 'id': id, 'mac': mac, spaceId: this.data.spaceDetail.id })
|
|
|
+ }else{
|
|
|
+ Toast.fail(res.message);
|
|
|
+ }
|
|
|
}).catch(() => {
|
|
|
- router.push("ipdauth", { 'id': id, 'mac': mac, spaceId: this.data.spaceDetail.id })
|
|
|
+ Toast.fail("无效的二维码");
|
|
|
+ // router.push("ipdauth", { 'id': id, 'mac': mac, spaceId: this.data.spaceDetail.id })
|
|
|
})
|
|
|
},
|
|
|
changeMode() {
|