|
@@ -19,10 +19,9 @@ Page({
|
|
|
query */
|
|
|
onLoad: function () {
|
|
|
const query = {
|
|
|
- // q: 'https://www.cnd3b.com/qr?type=shop&fbrand=测试品牌名&tagentsid=34205'
|
|
|
- q: 'https://www.cnd3b.com/qr?type=shop&fbrand=江南布业&tagentsid=36112'
|
|
|
+ q: 'https://www.cnd3b.com/qr?type=partner&fbrand=测试品牌名&tagentsid=36112'
|
|
|
+ // q: 'https://www.cnd3b.com/qr?type=shop&fbrand=测试品牌名&tagentsid=36112'
|
|
|
};
|
|
|
- /* const query = {} */
|
|
|
if (query.q) {
|
|
|
const q = decodeURIComponent(query.q) // 获取到二维码原始链接内容、
|
|
|
const data = {
|
|
@@ -51,7 +50,8 @@ Page({
|
|
|
this.setData({
|
|
|
codeMsg: wx.getStorageSync('qrCodeMsg')
|
|
|
})
|
|
|
- wx.removeStorage('qrCodeMsg');
|
|
|
+ wx.setStorageSync('qrCodeMsg', "")
|
|
|
+ console.log(wx.getStorageSync('qrCodeMsg'))
|
|
|
}
|
|
|
},
|
|
|
/* 确定 */
|
|
@@ -84,6 +84,7 @@ Page({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
|
})
|
|
|
}, 500)
|
|
|
+ wx.removeStorageSync('qrCodeMsg');
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -114,6 +115,7 @@ Page({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
|
})
|
|
|
}, 500)
|
|
|
+ wx.removeStorageSync('qrCodeMsg');
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -137,6 +139,7 @@ Page({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
|
})
|
|
|
}, 500)
|
|
|
+ wx.removeStorageSync('qrCodeMsg');
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -154,6 +157,7 @@ Page({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
|
})
|
|
|
}, 500)
|
|
|
+ wx.removeStorageSync('qrCodeMsg');
|
|
|
}
|
|
|
})
|
|
|
})
|