|
@@ -115,7 +115,6 @@ App({
|
|
|
query
|
|
|
} = wx.getEnterOptionsSync()
|
|
|
// 1047 扫描小程序码 1048长按图片识别小程序码
|
|
|
- let types = [1047, 1048]
|
|
|
var gradeObj = Object.keys({
|
|
|
"PRESCHOOL": "学前班",
|
|
|
"PRIMARY_FIRST_GRADE": "一年级",
|
|
@@ -125,10 +124,9 @@ App({
|
|
|
"PRIMARY_FIVE_GRADE": "五年级",
|
|
|
"PRIMARY_SIX_GRADE": "六年级",
|
|
|
})
|
|
|
- if (query.scene && types.includes(scene) && path == 'pages/index/index') {
|
|
|
+ if (query.scene && [1047, 1048].includes(scene) && path == 'pages/index/index') {
|
|
|
let params = decodeURIComponent(query.scene).split('&')
|
|
|
if (params.length > 1) {
|
|
|
- console.log('音箱端参数', params);
|
|
|
bindDevice({
|
|
|
deviceCode: params[0],
|
|
|
channelCode: params[1],
|
|
@@ -138,6 +136,8 @@ App({
|
|
|
console.log(res);
|
|
|
})
|
|
|
}
|
|
|
+ } else if ([1045,1046].includes(scene)) {
|
|
|
+ console.log("朋友圈广告进入");
|
|
|
}
|
|
|
},
|
|
|
getNavbarInfo() {
|