Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
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 1947d835
authored
Jun 09, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
店铺中心-会员套餐和门店商品,活动中心-秒杀活动和商城优惠券,短链加推荐人信息。
1 parent
0b470a2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
src/mixins/shareMixin.js
src/mixins/shareMixin.js
View file @
1947d83
...
...
@@ -50,7 +50,8 @@ export default {
},
sendMessage
(
i
)
{
const
{
shopmall_appid
}
=
window
.
$fetchConfig
let
{
merchantId
,
merchantName
,
userName
,
sapCode
}
=
this
.
getLocalStorage
(
'dj_scrm_userInfo'
)
let
{
merchantId
,
merchantName
,
userName
,
sapCode
,
uuid
}
=
this
.
getLocalStorage
(
'dj_scrm_userInfo'
)
console
.
log
(
this
.
getLocalStorage
(
'dj_scrm_userInfo'
))
let
{
tabIndex
,
entry
}
=
this
let
{
name
}
=
this
.
$route
let
{
userId
,
id
,
couponName
,
activityName
,
packageName
,
goodsName
,
goodsImage
,
discountType
}
=
i
...
...
@@ -81,7 +82,7 @@ export default {
})
}
else
{
let
path
=
'packageMall/pages/coupon/coupon'
query
=
`couponId=
${
id
}
&
${
query
}
&issueName=
${
this
.
toUnicode
(
userName
)}
&issueDate=
${
new
Date
().
getTime
()}
&shareSource=1`
query
=
`couponId=
${
id
}
&
${
query
}
&issueName=
${
this
.
toUnicode
(
userName
)}
&issueDate=
${
new
Date
().
getTime
()}
&shareSource=1
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
this
.
couponShare
(
i
,
url
=>
{
if
(
entryType
)
this
.
sendChatMessage
({
appid
:
shopmall_appid
,
...
...
@@ -104,7 +105,7 @@ export default {
if
(
tabIndex
==
0
)
{
let
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
let
path
=
'packageMall/pages/detail/detail'
query
=
`isActivity=true&id=
${
id
}
&
${
query
}
`
query
=
`isActivity=true&id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
if
(
entryType
)
this
.
sendChatMessage
({
appid
:
shopmall_appid
,
title
:
activityName
,
...
...
@@ -145,7 +146,7 @@ export default {
}
else
if
(
tabIndex
==
1
)
{
let
path
=
'packageEquity/pages/package/package'
let
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
query
=
`id=
${
id
}
&
${
query
}
`
query
=
`id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
if
(
entryType
)
this
.
sendChatMessage
({
appid
:
shopmall_appid
,
title
:
packageName
,
...
...
@@ -163,7 +164,7 @@ export default {
})
}
else
{
let
path
=
'packageMall/pages/detail/detail'
query
=
`id=
${
id
}
&
${
query
}
`
query
=
`id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
if
(
entryType
)
this
.
sendChatMessage
({
appid
:
shopmall_appid
,
title
:
goodsName
,
...
...
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