Commit 0627ba71 by chenwq

数据上报-unionId

1 parent f5f90fa8
...@@ -75,6 +75,9 @@ Page({ ...@@ -75,6 +75,9 @@ Page({
if (headImgUrl) { if (headImgUrl) {
item.avatar = headImgUrl item.avatar = headImgUrl
} }
if (data.unionId) {
item.union_id = data.unionId
}
let json = JSON.stringify(item) let json = JSON.stringify(item)
// 数据上报 // 数据上报
wx.p.api.common.trackHttp({ json }).then(response => { }) wx.p.api.common.trackHttp({ json }).then(response => { })
......
...@@ -43,7 +43,8 @@ Page({ ...@@ -43,7 +43,8 @@ Page({
customer_phone: res.data.userInfo.phone, customer_phone: res.data.userInfo.phone,
customer_qw_nickname: info.nickName, customer_qw_nickname: info.nickName,
avatar: info.avatarUrl, avatar: info.avatarUrl,
merchant_id: res.data.merchantId merchant_id: res.data.merchantId,
union_id: res.data.userInfo.unionId
} }
let json = JSON.stringify(item) let json = JSON.stringify(item)
// 数据上报 // 数据上报
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!