@@ -120,7 +120,8 @@ Page({ | |||||
index: tt.getStorageSync('mallIndex') || 0, | index: tt.getStorageSync('mallIndex') || 0, | ||||
locateData: {}, | locateData: {}, | ||||
scanIn: false, // 扫码进入首页 | scanIn: false, // 扫码进入首页 | ||||
scanInTenantId: '' | |||||
scanInTenantId: '', | |||||
scene: "" | |||||
}, | }, | ||||
getCongig() { //获取小程序是否开通授权手机号 | getCongig() { //获取小程序是否开通授权手机号 | ||||
@@ -221,7 +222,7 @@ Page({ | |||||
url: config.api.businessList, | url: config.api.businessList, | ||||
data: { | data: { | ||||
filter: 2, | filter: 2, | ||||
mallTenantId: this.data.mallTenantId || that.data.scanInTenantId || "", | |||||
mallTenantId: this.data.mallTenantId || this.data.scanInTenantId || "", | |||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
this.setData({ | this.setData({ | ||||
@@ -77,6 +77,8 @@ Page({ | |||||
options.id = this.data.newArr[2]; | options.id = this.data.newArr[2]; | ||||
} else if (options.type == 'ts') { | } else if (options.type == 'ts') { | ||||
options.id = this.data.newArr[2]; | options.id = this.data.newArr[2]; | ||||
} else if (options.type == 'ts') { | |||||
options.id = this.data.newArr[2]; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -291,7 +293,7 @@ Page({ | |||||
// 首页 | // 首页 | ||||
else if (app.globalData.type == 'in') { | else if (app.globalData.type == 'in') { | ||||
tt.reLaunch({ | tt.reLaunch({ | ||||
url: '/index/index' | |||||
url: `/index/index` | |||||
}); | }); | ||||
} | } | ||||
// 停车 | // 停车 | ||||
@@ -91,6 +91,8 @@ Page({ | |||||
options.id = this.data.newArr[2]; | options.id = this.data.newArr[2]; | ||||
} else if (options.type == 'wjLsit') { | } else if (options.type == 'wjLsit') { | ||||
options.id = this.data.newArr[2]; | options.id = this.data.newArr[2]; | ||||
} else if (options.type == 'scanIn') { | |||||
options.tenantId = this.data.newArr[2] || ""; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -577,6 +579,11 @@ Page({ | |||||
tt.navigateTo({ | tt.navigateTo({ | ||||
url: '/index/searchbar' | url: '/index/searchbar' | ||||
}) | }) | ||||
} // 门店 | |||||
else if (app.globalData.type == 'scanIn') { | |||||
tt.navigateTo({ | |||||
url: `/index/index?type=in&tenantId=${options.tenantId}` | |||||
}) | |||||
} else { | } else { | ||||
tt.reLaunch({ | tt.reLaunch({ | ||||
url: '/index/index', | url: '/index/index', | ||||
@@ -29,10 +29,10 @@ | |||||
"location": "qr_code" | "location": "qr_code" | ||||
}, | }, | ||||
{ | { | ||||
"id": 1671727084768, | |||||
"id": 1678428610317, | |||||
"name": "index/index", | "name": "index/index", | ||||
"pathName": "pages/main/index", | "pathName": "pages/main/index", | ||||
"query": "type=cd&couponChannelId=762472141677453312&tenantId=1032", | |||||
"query": "type=in&tenantId=1033", | |||||
"scene": "990001", | "scene": "990001", | ||||
"launchFrom": "scan", | "launchFrom": "scan", | ||||
"location": "qr_code" | "location": "qr_code" | ||||
@@ -50,7 +50,7 @@ | |||||
"id": 1678330099779, | "id": 1678330099779, | ||||
"name": " index/index(scanIn)", | "name": " index/index(scanIn)", | ||||
"pathName": "index/index", | "pathName": "index/index", | ||||
"query": "type=in&tenantId=1034", | |||||
"query": "type=in&tenantId=1033", | |||||
"scene": "990001", | "scene": "990001", | ||||
"launchFrom": "scan", | "launchFrom": "scan", | ||||
"location": "qr_code" | "location": "qr_code" | ||||