Commit 875da74f by 李伟康

修改埋点&修改直播样式

1 parent 29067597
...@@ -26,7 +26,7 @@ const reportTrack = (id, view = 1, share_channel = '', url = commonUrl, method = ...@@ -26,7 +26,7 @@ const reportTrack = (id, view = 1, share_channel = '', url = commonUrl, method =
const userInfo = util.getUserInfo() const userInfo = util.getUserInfo()
const params = util.getLocalStorage('wx_scrm_link_params') || {} const params = util.getLocalStorage('wx_scrm_link_params') || {}
const ISWXWORK = util.getLocalStorage('is_wxwork') const ISWXWORK = util.getLocalStorage('is_wxwork')
if(!userInfo) return if (!userInfo) return
if (ISWXWORK) { if (ISWXWORK) {
if (userInfo.loginList.length && userInfo.loginList[0].phone) userInfo.phone = userInfo.loginList[0].phone if (userInfo.loginList.length && userInfo.loginList[0].phone) userInfo.phone = userInfo.loginList[0].phone
} }
...@@ -42,7 +42,6 @@ const reportTrack = (id, view = 1, share_channel = '', url = commonUrl, method = ...@@ -42,7 +42,6 @@ const reportTrack = (id, view = 1, share_channel = '', url = commonUrl, method =
sharedTime = '' sharedTime = ''
} }
let data = { let data = {
open_id: userInfo.openid || userInfo.uuid,
staff_id: (params && params.staffId) || null, staff_id: (params && params.staffId) || null,
staff_uuid: (params && params.shareStaffUuid) || null, staff_uuid: (params && params.shareStaffUuid) || null,
user_phone: (params && params.userPhone) || null, user_phone: (params && params.userPhone) || null,
...@@ -55,11 +54,14 @@ const reportTrack = (id, view = 1, share_channel = '', url = commonUrl, method = ...@@ -55,11 +54,14 @@ const reportTrack = (id, view = 1, share_channel = '', url = commonUrl, method =
business_type: 1, business_type: 1,
add_way: 104, add_way: 104,
merchant_id: (params && params.merchantId) || null, merchant_id: (params && params.merchantId) || null,
user_open_id: (params && params.openId) || null,
share_channel: share_channel ? share_channel : null, share_channel: share_channel ? share_channel : null,
sharedTime: sharedTime ? sharedTime : null sharedTime: sharedTime ? sharedTime : null
} }
if (view == 1) {
data.open_id = userInfo.openid || userInfo.uuid
data.user_open_id = (params && params.openId) || null
}
if (view == 4) data.user_open_id = userInfo.openid || userInfo.uuid
// 数据上报兼容 // 数据上报兼容
data = { data = {
// method: 'entmicro.api.customercollect.reportCustomerList', // method: 'entmicro.api.customercollect.reportCustomerList',
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<img src="@/assets/images/qr-bg.png" /> <img src="@/assets/images/qr-bg.png" />
<img :src="detail.groupQrCode" class="qr xy-center" /> <img :src="detail.groupQrCode" class="qr xy-center" />
</div> </div>
<div class="btn" @click="save">长按识别二维码加群</div> <div class="btn" @click="save">长按识别二维码加客服</div>
</template> </template>
</div> </div>
<div class="sprite-icon icon-close" @click.self="cancel"></div> <div class="sprite-icon icon-close" @click.self="cancel"></div>
......
...@@ -420,10 +420,10 @@ export default { ...@@ -420,10 +420,10 @@ export default {
.fullscreen-btn { .fullscreen-btn {
display: none; display: none;
position: absolute; position: absolute;
right: 8px; right: 10px;
top: 14px; top: 14px;
width: 32px; width: 84px;
height: 32px; height: 75px;
z-index: 2; z-index: 2;
} }
.poster-btn { .poster-btn {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!