Commit 35ec5360 by 李伟康

修改代码

1 parent 95ba0670
......@@ -68,7 +68,7 @@ class Request {
if (code == '0') {
resolve(data.data)
} else {
console.log(data)
console.trace(data)
wx.showToast({
title: message || '系统异常',
icon: 'none'
......@@ -78,7 +78,7 @@ class Request {
},
fail(error) {
wx.hideLoading()
console.error(`接口异常:`, error)
console.log(`接口异常:`, error)
wx.showToast({
title: '系统异常',
icon: 'error'
......
......@@ -52,7 +52,7 @@ class Share {
if (sharePath) path = `/${sharePath}`
path += that.setCommonShareQuery()
if (shareQuery) path += `&${shareQuery}`
console.log(path)
console.log('::', path)
if (!noPageAuth) path = `/login/loading/loading?url=${encodeURIComponent(path)}`
if (shareFun) shareFun()
if (shareTrackData) that.reportShareData(shareTrackData)
......@@ -123,16 +123,17 @@ class Share {
const {
WXUSERINFO,
USERINFO
} = this.getCommonData()
} = this.getCommonData(),
thisPage = wx.$router.getPageInstance()
reportData({
openId: WXUSERINFO.openId || '',
unionId: WXUSERINFO.unionId || '',
nickName: WXUSERINFO.nickName || '',
avatar: WXUSERINFO.avatarUrl || '',
phone: USERINFO.phone || '',
merchantId: USERINFO.merchantId || '',
shareOpenId: WXUSERINFO.openId || '',
sharePhone: USERINFO.phone || '',
merchantId: thisPage.merchantId || USERINFO.merchantId || '',
shareOpenId: thisPage.shareOpenId || WXUSERINFO.openId || '',
sharePhone: thisPage.sharePhone || USERINFO.phone || '',
...shareTrackData
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!