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 be269407
authored
Nov 21, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
兼容广汇&嘀加智慧车生活路径
1 parent
08469ce9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
src/mixins/shareMixin.js
src/views/gift/index.vue
src/mixins/shareMixin.js
View file @
be26940
...
@@ -90,9 +90,10 @@ export default {
...
@@ -90,9 +90,10 @@ 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
=
'packageMall/pages/coupon/coupon'
params
.
path
=
!
sapCode
?
'packageShopmall/packageMall/pages/coupon/coupon'
:
'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
)
...
@@ -104,6 +105,7 @@ export default {
...
@@ -104,6 +105,7 @@ 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
:
...
@@ -134,8 +136,8 @@ export default {
...
@@ -134,8 +136,8 @@ export default {
switch
(
+
tabIndex
)
{
switch
(
+
tabIndex
)
{
case
1
:
case
1
:
let
isjt
=
i
.
packageType
==
2
let
isjt
=
i
.
packageType
==
2
const
STORE_PATH
=
'
packageEquity/pages/package/package'
const
STORE_PATH
=
sapCode
?
'packageEquity/pages/package/package'
:
'packageShopmall/
packageEquity/pages/package/package'
const
JT_PATH
=
'
packageEquity/pages/open/open'
const
JT_PATH
=
sapCode
?
'packageEquity/pages/open/open'
:
'packageShopmall/
packageEquity/pages/open/open'
// params.path = 'packageEquity/pages/package/package'
// 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'
...
@@ -144,7 +146,7 @@ export default {
...
@@ -144,7 +146,7 @@ export default {
title
=
packageName
title
=
packageName
break
break
case
2
:
case
2
:
params
.
path
=
'
packageMall/pages/detail/detail'
params
.
path
=
sapCode
?
'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
}
`
...
...
src/views/gift/index.vue
View file @
be26940
...
@@ -303,14 +303,15 @@ export default {
...
@@ -303,14 +303,15 @@ export default {
this
.
showLoading
(
'生成中...'
)
this
.
showLoading
(
'生成中...'
)
return
{
return
{
appId
:
shopmall_appid
,
appId
:
shopmall_appid
,
query
:
scene
query
:
scene
,
sapCode
}
}
},
},
send
(
e
)
{
send
(
e
)
{
let
{
query
,
appId
}
=
this
.
getMiniParams
(
e
)
let
{
query
,
appId
,
sapCode
}
=
this
.
getMiniParams
(
e
)
wxConfig
wxConfig
.
createMiniprogramUrlLink
({
.
createMiniprogramUrlLink
({
path
:
'
packageEquity/pages/directional/directional'
,
path
:
sapCode
?
'packageEquity/pages/directional/directional'
:
'packageShopmall/
packageEquity/pages/directional/directional'
,
query
,
query
,
appId
appId
})
})
...
@@ -342,11 +343,11 @@ export default {
...
@@ -342,11 +343,11 @@ export default {
this
.
$router
.
push
({
name
:
'gift.create'
,
query
:
params
})
this
.
$router
.
push
({
name
:
'gift.create'
,
query
:
params
})
}
else
{
}
else
{
const
{
envVersion
}
=
window
.
$fetchConfig
const
{
envVersion
}
=
window
.
$fetchConfig
let
{
query
,
appId
}
=
this
.
getMiniParams
(
e
)
let
{
query
,
appId
,
sapCode
}
=
this
.
getMiniParams
(
e
)
// 正式版为:release 体验版为:trial 开发版为:develop
// 正式版为:release 体验版为:trial 开发版为:develop
giftApi
.
createQr
({
giftApi
.
createQr
({
appId
,
appId
,
path
:
'
packageEquity/pages/directional/directional'
,
path
:
sapCode
?
'packageEquity/pages/directional/directional'
:
'packageShopmall/
packageEquity/pages/directional/directional'
,
envVersion
,
envVersion
,
scene
:
query
scene
:
query
}).
then
(
img
=>
{
}).
then
(
img
=>
{
...
...
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