Commit 5eb0a345 by 李伟康

企微埋点

1 parent 5d86572d
......@@ -6,14 +6,18 @@ export default {
reportTrack (id, view = true) {
let userInfo = util.getUserInfo()
let params = util.getLocalStorage('wx_scrm_link_params') || {}
let ISWXWORK = util.getLocalStorage('is_wxwork')
if(ISWXWORK){
if(userInfo.loginList.length && userInfo.loginList[0].phone) userInfo.phone = userInfo.loginList[0].phone
}
let data = {
open_id: userInfo.openid,
open_id: userInfo.openid || userInfo.uuid,
staff_id: params && params.staffId || '',
staff_uuid: params && params.shareStaffUuid || '',
user_phone: params && params.userPhone || '',
create_time: new Date().format('yyyy-MM-dd hh:mm:ss'),
item_type: 3,
customer_phone: userInfo.phone,
customer_phone: userInfo.phone || '',
action_type: view ? 1 : 4,
item_id: id,
business_type: 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!