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 bab6c186
authored
Mar 06, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分享类型修改为channelType
1 parent
71504154
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
src/mixins/shareMixin.js
src/views/gift/index.vue
src/mixins/shareMixin.js
View file @
bab6c18
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
shopmall_appid
,
shopmall_appid
,
request
:
{
baseURL
}
request
:
{
baseURL
}
}
=
window
.
$fetchConfig
}
=
window
.
$fetchConfig
let
{
merchantId
,
merchantName
,
userName
,
sapCode
,
uuid
}
=
this
.
getLocalStorage
(
'dj_scrm_userInfo'
)
let
{
merchantId
,
merchantName
,
userName
,
sapCode
,
uuid
,
channelType
}
=
this
.
getLocalStorage
(
'dj_scrm_userInfo'
)
let
{
tabIndex
,
entry
}
=
this
let
{
tabIndex
,
entry
}
=
this
let
{
name
}
=
this
.
$route
let
{
name
}
=
this
.
$route
let
{
userId
,
id
,
couponName
,
activityName
,
packageName
,
goodsName
,
goodsImage
,
discountType
,
shareType
,
marketingType
}
=
i
let
{
userId
,
id
,
couponName
,
activityName
,
packageName
,
goodsName
,
goodsImage
,
discountType
,
shareType
,
marketingType
}
=
i
...
@@ -66,17 +66,17 @@ export default {
...
@@ -66,17 +66,17 @@ export default {
this
.
showLoading
()
this
.
showLoading
()
let
params
=
{
let
params
=
{
coupon
:
{
coupon
:
{
path
:
'
packageMine/pages/boutique/gift/gift'
,
path
:
channelType
==
2
?
'packageMine/pages/boutique/gift/gift'
:
'packageShopmall/
packageMine/pages/boutique/gift/gift'
,
desc
:
'您的专属服务顾问为您发来了优惠券,请点击领取~'
,
desc
:
'您的专属服务顾问为您发来了优惠券,请点击领取~'
,
imgUrl
:
'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
imgUrl
:
'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
},
},
activity
:
{
activity
:
{
path
:
'
packageMall/pages/detail/detail'
,
path
:
channelType
==
2
?
'packageMall/pages/detail/detail'
:
'packageShopmall/
packageMall/pages/detail/detail'
,
desc
:
'您有一个秒杀活动可参加'
,
desc
:
'您有一个秒杀活动可参加'
,
imgUrl
:
'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
imgUrl
:
'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
},
},
merchant
:
{
merchant
:
{
path
:
'pages/tab/index
/index'
,
path
:
channelType
==
2
?
'pages/tab/index/index'
:
'pages/tab/shopMall
/index'
,
desc
:
''
,
desc
:
''
,
imgUrl
:
'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg'
imgUrl
:
'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg'
}
}
...
@@ -90,10 +90,9 @@ export default {
...
@@ -90,10 +90,9 @@ export default {
if
(
name
===
'coupon'
)
{
if
(
name
===
'coupon'
)
{
/**卡券 */
/**卡券 */
if
(
tabIndex
==
0
)
{
if
(
tabIndex
==
0
)
{
if
(
!
sapCode
)
params
.
path
=
'packageShopmall/packageMine/pages/boutique/gift/gift'
query
=
`id=
${
id
}
&userId=
${
userId
}
&employName=
${
this
.
toUnicode
(
i
.
employeeName
)}
&
${
query
}
`
query
=
`id=
${
id
}
&userId=
${
userId
}
&employName=
${
this
.
toUnicode
(
i
.
employeeName
)}
&
${
query
}
`
}
else
{
}
else
{
params
.
path
=
!
sapCode
?
'packageShopmall/packageMall/pages/coupon/coupon'
:
'
packageMall/pages/coupon/coupon'
params
.
path
=
channelType
==
2
?
'packageMall/pages/coupon/coupon'
:
'packageShopmall/
packageMall/pages/coupon/coupon'
query
=
`couponId=
${
id
}
&
${
query
}
&issueName=
${
this
.
toUnicode
(
userName
)}
&issueDate=
${
new
Date
().
getTime
()}
&shareSource=1&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
query
=
`couponId=
${
id
}
&
${
query
}
&issueName=
${
this
.
toUnicode
(
userName
)}
&issueDate=
${
new
Date
().
getTime
()}
&shareSource=1&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
title
=
`
${
couponName
}
(
${
window
.
$discountType
[
discountType
]}
券)`
title
=
`
${
couponName
}
(
${
window
.
$discountType
[
discountType
]}
券)`
this
.
couponShare
(
i
)
this
.
couponShare
(
i
)
...
@@ -105,7 +104,6 @@ export default {
...
@@ -105,7 +104,6 @@ export default {
// 1-普通秒杀;2-直播间秒杀;3-众筹
// 1-普通秒杀;2-直播间秒杀;3-众筹
switch
(
marketingType
)
{
switch
(
marketingType
)
{
case
1
:
case
1
:
if
(
!
sapCode
)
params
.
path
=
'packageShopmall/packageMall/pages/detail/detail'
query
=
`isActivity=true&id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
query
=
`isActivity=true&id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
break
break
case
2
:
case
2
:
...
@@ -136,9 +134,8 @@ export default {
...
@@ -136,9 +134,8 @@ export default {
switch
(
+
tabIndex
)
{
switch
(
+
tabIndex
)
{
case
1
:
case
1
:
let
isjt
=
i
.
packageType
==
2
let
isjt
=
i
.
packageType
==
2
const
STORE_PATH
=
sapCode
?
'packageEquity/pages/package/package'
:
'packageShopmall/packageEquity/pages/package/package'
const
STORE_PATH
=
channelType
==
2
?
'packageEquity/pages/package/package'
:
'packageShopmall/packageEquity/pages/package/package'
const
JT_PATH
=
sapCode
?
'packageEquity/pages/open/open'
:
'packageShopmall/packageEquity/pages/open/open'
const
JT_PATH
=
channelType
==
2
?
'packageEquity/pages/open/open'
:
'packageShopmall/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
.
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
params
.
desc
=
'您的专属客服顾问为您发来了会员套餐,点击查看哦'
params
.
desc
=
'您的专属客服顾问为您发来了会员套餐,点击查看哦'
...
@@ -146,7 +143,7 @@ export default {
...
@@ -146,7 +143,7 @@ export default {
title
=
packageName
title
=
packageName
break
break
case
2
:
case
2
:
params
.
path
=
sapCode
?
'packageMall/pages/detail/detail'
:
'packageShopmall/packageMall/pages/detail/detail'
params
.
path
=
channelType
==
2
?
'packageMall/pages/detail/detail'
:
'packageShopmall/packageMall/pages/detail/detail'
params
.
imgUrl
=
goodsImage
params
.
imgUrl
=
goodsImage
params
.
desc
=
''
params
.
desc
=
''
query
=
`id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
query
=
`id=
${
id
}
&
${
query
}
&shareStaffName=
${
this
.
toUnicode
(
userName
)}
&shareStaffUuid=
${
uuid
}
`
...
@@ -198,7 +195,7 @@ export default {
...
@@ -198,7 +195,7 @@ export default {
{
{
path
:
params
.
path
,
path
:
params
.
path
,
query
,
query
,
appId
:
i
.
packageType
==
2
?
'wxfe82b8d65d07808f'
:
shopmall_appid
appId
:
shopmall_appid
},
},
{
{
desc
:
params
.
desc
,
desc
:
params
.
desc
,
...
...
src/views/gift/index.vue
View file @
bab6c18
This diff is collapsed.
Click to expand it.
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