Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
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 f304da25
authored
Oct 20, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
活动链接
1 parent
041ca3fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
pages/tab/index/components/activeBox/activeBox.js
pages/tab/index/components/activeBox/activeBox.js
View file @
f304da2
...
@@ -110,16 +110,16 @@ Component({
...
@@ -110,16 +110,16 @@ Component({
return
unicodeStr
return
unicodeStr
},
},
filterJumpUrl
(
id
)
{
filterJumpUrl
(
id
,
num
)
{
const
userStorage
=
wx
.
$storage
.
get
(
'userInfo'
)
const
userStorage
=
wx
.
$storage
.
get
(
'userInfo'
)
return
`
${
domain
}
/scrm-wx-merchant-activity/#/?id=
${
id
}
&merchantId=
${
userStorage
.
merchantId
}
&shareStaffUuid=
${
userStorage
.
uuid
}
&shareStaffName=
${
this
.
toUnicode
(
userStorage
.
name
)
}
&shareStaffType=2&sharedTime=
${
Date
.
now
()}
`
return
num
==
2
?
`
${
domain
}
/scrm-wx-merchant-activity/#/?id=
${
id
}
&merchantId=
${
userStorage
.
merchantId
}
&shareStaffUuid=
${
userStorage
.
uuid
}
&shareStaffName=
${
this
.
toUnicode
(
userStorage
.
name
)}
&shareStaffType=2&sharedTime=
${
Date
.
now
()}
`
:
`
${
domain
}
/scrm-wx-merchant-activity/#/?id=
${
id
}
&merchantId=
${
userStorage
.
merchantId
}
&shareStaffUuid=
${
userStorage
.
uuid
}
&shareStaffName=
${
this
.
toUnicode
(
userStorage
.
name
)}
&isExclusive=1&exclusiveUuid=
${
userStorage
.
uuid
}
&shareStaffType=2&sharedTime=
${
Date
.
now
()}
`
},
},
// 分享活动(复制链接)
// 分享活动(复制链接)
copyActivityUrl
(
e
)
{
copyActivityUrl
(
e
)
{
let
{
id
}
=
e
.
currentTarget
.
dataset
let
{
id
}
=
e
.
currentTarget
.
dataset
wx
.
setClipboardData
({
wx
.
setClipboardData
({
data
:
this
.
filterJumpUrl
(
id
),
data
:
this
.
filterJumpUrl
(
id
,
1
),
success
(
res
)
{
success
(
res
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
'复制成功'
,
title
:
'复制成功'
,
...
@@ -131,7 +131,7 @@ Component({
...
@@ -131,7 +131,7 @@ Component({
// 活动详情
// 活动详情
goToDetail
(
e
)
{
goToDetail
(
e
)
{
let
{
id
}
=
e
.
currentTarget
.
dataset
let
{
id
}
=
e
.
currentTarget
.
dataset
let
h5Url
=
this
.
filterJumpUrl
(
id
)
let
h5Url
=
this
.
filterJumpUrl
(
id
,
2
)
console
.
log
(
h5Url
)
console
.
log
(
h5Url
)
wx
.
$router
.
jumpH5
(
h5Url
)
wx
.
$router
.
jumpH5
(
h5Url
)
},
},
...
...
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