|
|
@@ -258,12 +258,18 @@ Page({ |
|
|
|
url: config.api.checkPhoneStatus, |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
// just a test |
|
|
|
// setTimeout(() => { |
|
|
|
// wx.redirectTo({ |
|
|
|
// url: `/pages/getphoneInfo/index?path=searchbarDetail&id=${that.data.id}`, |
|
|
|
// }) |
|
|
|
// }, 2000); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
if (err.code == 11005) { |
|
|
|
// 手机号没有授权,将值传到用户手机号授权的页面 |
|
|
|
wx.redirectTo({ |
|
|
|
url: "/pages/getphoneInfo/index?path=searchbarDetail", |
|
|
|
url: `/pages/getphoneInfo/index?path=searchbarDetail&id=${that.data.id}`, |
|
|
|
}) |
|
|
|
} else { |
|
|
|
wx.showToast({ |
|
|
|