Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dbaaf535
authored
Jul 10, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加埋点
1 parent
9193545a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
6 deletions
src/api/bigdatautilApi.js
src/api/index.js
src/mixins/pageMixin.js
src/mixins/shareMixin.js
src/api/bigdatautilApi.js
0 → 100644
View file @
dbaaf53
const
url
=
'/rop-scrm-bigdatautil/router'
import
{
util
}
from
'utils'
export
default
{
/**埋点 */
reportTrack
(
id
)
{
let
userInfo
=
util
.
getUserInfo
()
let
data
=
{
one_id
:
''
,
staff_id
:
''
,
staff_uuid
:
userInfo
.
uuid
,
user_phone
:
''
,
create_time
:
Date
.
now
(),
item_type
:
id
,
customer_phone
:
''
,
action_type
:
4
,
item_id
:
3
,
business_type
:
1
,
add_way
:
104
}
return
window
.
$HTTP
({
url
,
data
:
{
method
:
'entmicro.api.customercollect.reportCustomerList'
,
jsonList
:
[
data
]
},
})
}
}
\ No newline at end of file
src/api/index.js
View file @
dbaaf53
...
...
@@ -15,6 +15,7 @@ import shopmallApi from './shopmallApi'
import
boutiquecouponApi
from
'./boutiquecouponApi'
import
equityApi
from
'./equityApi'
import
giftApi
from
'./giftApi'
import
bigdatautilApi
from
'./bigdatautilApi'
export
{
ssoApi
,
...
...
@@ -25,5 +26,6 @@ export {
liveApi
,
boutiquecouponApi
,
equityApi
,
giftApi
giftApi
,
bigdatautilApi
}
\ No newline at end of file
src/mixins/pageMixin.js
View file @
dbaaf53
...
...
@@ -13,7 +13,7 @@ export default {
let
{
tabIndex
}
=
this
.
getQuery
()
if
(
tabIndex
)
{
this
.
tabIndex
=
Number
(
tabIndex
)
//
this.updata = new Date().getTime()
this
.
updata
=
new
Date
().
getTime
()
this
.
init
()
return
}
...
...
src/mixins/shareMixin.js
View file @
dbaaf53
import
{
couponApi
,
wxConfig
}
from
'@/api'
import
{
wxConfig
,
bigdatautilApi
}
from
'@/api'
export
default
{
data
()
{
return
{
...
...
@@ -101,11 +101,11 @@ export default {
if
(
name
===
'merchant'
)
{
/**店铺 */
switch
(
+
tabIndex
)
{
case
1
:
let
isjt
=
i
.
packageType
==
2
let
isjt
=
i
.
packageType
==
2
const
STORE_PATH
=
'packageEquity/pages/package/package'
const
JT_PATH
=
'packageEquity/pages/open/open'
// params.path = 'packageEquity/pages/package/package'
params
.
path
=
isjt
?
JT_PATH
:
STORE_PATH
params
.
path
=
isjt
?
JT_PATH
:
STORE_PATH
params
.
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
params
.
desc
=
'您的专属客服顾问为您发来了会员套餐,点击查看哦'
query
=
`id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
&packageType=
${
i
.
packageType
}
`
...
...
@@ -124,8 +124,9 @@ export default {
desc
:
''
,
title
:
i
.
activityName
,
// link: `${baseURL}/dj-scrm-wx-work-main-lwk/#/?id=${i.id}`
link
:
`
${
baseURL
}
/scrm-wx-merchant-activity/#/?id=
${
i
.
id
}
`
link
:
`
${
baseURL
}
/scrm-wx-merchant-activity/#/?id=
${
i
.
id
}
&staffUuid=
${
uuid
}
`
}
bigdatautilApi
.
reportTrack
(
i
.
id
)
break
default
:
break
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment