|
@@ -9,6 +9,13 @@ Page({
|
|
|
},
|
|
|
isYs: false,
|
|
|
isAgree: false,
|
|
|
+ toDeviceList: false,
|
|
|
+ },
|
|
|
+
|
|
|
+ onLoad(options) {
|
|
|
+ var that = this;
|
|
|
+ var toDeviceList = options.toDeviceList;
|
|
|
+ that.data.toDeviceList = toDeviceList;
|
|
|
},
|
|
|
|
|
|
egree() {
|
|
@@ -23,6 +30,7 @@ Page({
|
|
|
},
|
|
|
|
|
|
getPhoneNumber(e) {
|
|
|
+ var that = this;
|
|
|
if (e.detail.errMsg != "getPhoneNumber:ok") {
|
|
|
wx.showToast({
|
|
|
title: "获取手机号失败",
|
|
@@ -58,7 +66,11 @@ Page({
|
|
|
});
|
|
|
}, function () {
|
|
|
setTimeout(() => {
|
|
|
- constant.routeUtil.redirectTo(constant.routePath.deviceList);
|
|
|
+ if (that.data.toDeviceList) {
|
|
|
+ constant.routeUtil.redirectTo(constant.routePath.deviceList);
|
|
|
+ } else {
|
|
|
+ constant.routeUtil.goBack(1);
|
|
|
+ }
|
|
|
}, 2000);
|
|
|
}, function () {
|
|
|
wx.hideLoading();
|