Commit 35ec5360 by 李伟康

修改代码

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