|
@@ -19,7 +19,8 @@ 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=34205'
|
|
|
+ q: 'https://www.cnd3b.com/qr?type=shop&fbrand=江南布业&tagentsid=36112'
|
|
|
};
|
|
|
/* const query = {} */
|
|
|
if (query.q) {
|
|
@@ -50,6 +51,7 @@ Page({
|
|
|
this.setData({
|
|
|
codeMsg: wx.getStorageSync('qrCodeMsg')
|
|
|
})
|
|
|
+ wx.removeStorage('qrCodeMsg');
|
|
|
}
|
|
|
},
|
|
|
/* 确定 */
|
|
@@ -77,7 +79,6 @@ Page({
|
|
|
wx.showToast({
|
|
|
title: "合作申请成功",
|
|
|
});
|
|
|
- if (wx.getStorageSync('qrCodeMsg')) wx.removeStorage('qrCodeMsg');
|
|
|
setTimeout(() => {
|
|
|
wx.switchTab({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
@@ -98,8 +99,7 @@ Page({
|
|
|
"method": "entryTeamApply",
|
|
|
"content": {
|
|
|
"userid": wx.getStorageSync('userData').userid,
|
|
|
- "tagentsid": that.data.codeMsg.id,
|
|
|
- "fphonenumber": wx.getStorageSync('userData').fphonenumber
|
|
|
+ "tagentsid": that.data.codeMsg.id
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.data != '成功') return wx.showToast({
|
|
@@ -109,7 +109,6 @@ Page({
|
|
|
wx.showToast({
|
|
|
title: "申请成功",
|
|
|
});
|
|
|
- if (wx.getStorageSync('qrCodeMsg')) wx.removeStorage('qrCodeMsg');
|
|
|
setTimeout(() => {
|
|
|
wx.switchTab({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
@@ -137,7 +136,6 @@ Page({
|
|
|
wx.switchTab({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
|
})
|
|
|
- if (wx.getStorageSync('qrCodeMsg')) wx.removeStorage('qrCodeMsg');
|
|
|
}, 500)
|
|
|
}
|
|
|
})
|
|
@@ -155,7 +153,6 @@ Page({
|
|
|
wx.switchTab({
|
|
|
url: '/pages/tabbar-pages/home/index',
|
|
|
})
|
|
|
- if (wx.getStorageSync('qrCodeMsg')) wx.removeStorage('qrCodeMsg');
|
|
|
}, 500)
|
|
|
}
|
|
|
})
|