Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 eabe4c1c
authored
Jan 29, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
55832d66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
29 deletions
packageActivity/pages/redEnvelope/index/index.js
packageActivity/pages/solitaire/index/index.js
packageActivity/pages/redEnvelope/index/index.js
View file @
eabe4c1
...
@@ -64,41 +64,49 @@ Page({
...
@@ -64,41 +64,49 @@ Page({
}
=
await
wx
.
p
.
api
.
solitaireApi
.
getActivityRedEnvelopeDetail
({
}
=
await
wx
.
p
.
api
.
solitaireApi
.
getActivityRedEnvelopeDetail
({
id
:
activityId
id
:
activityId
})
})
if
(
linkId
||
awardInfoId
)
this
.
jumpRedEnvelopeH5
({
/**接龙奖品回显 */
activityId
,
if
(
awardInfoId
)
this
.
jumpRedEnvelopeH5
({
linkId
,
activityId
source
},
()
=>
{
this
.
jump
()
})
})
else
{
else
{
const
{
if
(
linkId
)
this
.
jumpRedEnvelopeH5
({
code
,
data
,
errId
,
message
}
=
await
wx
.
p
.
api
.
questionnaireApi
.
bindRedEnvelopeLink
({
activityId
,
activityId
,
bindingSource
:
source
,
linkId
,
wechatName
:
userInfo
.
nickName
,
source
businessId
})
})
if
(
code
==
0
)
{
else
{
if
(
data
.
id
&&
data
.
link
)
{
const
{
// /**sourceType 0-自研,1-外采 */
code
,
if
(
sourceType
==
1
)
{
data
,
this
.
showRedModel
()
errId
,
this
.
jumpUrl
=
data
.
link
message
}
else
this
.
jumpRedEnvelopeH5
({
}
=
await
wx
.
p
.
api
.
questionnaireApi
.
bindRedEnvelopeLink
({
activityId
,
activityId
,
linkId
:
data
.
id
,
bindingSource
:
source
,
source
wechatName
:
userInfo
.
nickName
,
})
businessId
})
if
(
code
==
0
)
{
if
(
data
.
id
&&
data
.
link
)
{
// /**sourceType 0-自研,1-外采 */
if
(
sourceType
==
1
)
{
this
.
showRedModel
()
this
.
jumpUrl
=
data
.
link
}
else
this
.
jumpRedEnvelopeH5
({
activityId
,
linkId
:
data
.
id
,
source
})
}
else
throw
{
message
,
errId
}
}
else
throw
{
}
else
throw
{
message
,
message
,
errId
errId
}
}
}
else
throw
{
message
,
errId
}
}
}
}
}
catch
({
}
catch
({
...
@@ -125,7 +133,7 @@ Page({
...
@@ -125,7 +133,7 @@ Page({
activityId
,
activityId
,
linkId
,
linkId
,
source
source
})
{
}
,
callBack
)
{
const
{
const
{
awardInfoId
,
awardInfoId
,
merchantId
,
merchantId
,
...
@@ -156,7 +164,8 @@ Page({
...
@@ -156,7 +164,8 @@ Page({
if
(
recordId
)
query
+=
`&recordId=
${
recordId
}
`
if
(
recordId
)
query
+=
`&recordId=
${
recordId
}
`
if
(
awardInfoId
)
query
+=
`&awardInfoId=
${
awardInfoId
}
`
if
(
awardInfoId
)
query
+=
`&awardInfoId=
${
awardInfoId
}
`
this
.
linkQuery
=
query
this
.
linkQuery
=
query
this
.
showRedModel
()
if
(
callBack
)
callBack
()
else
this
.
showRedModel
()
},
},
showRedModel
()
{
showRedModel
()
{
this
.
setData
({
this
.
setData
({
...
...
packageActivity/pages/solitaire/index/index.js
View file @
eabe4c1
...
@@ -254,6 +254,7 @@ Page({
...
@@ -254,6 +254,7 @@ Page({
businessId
:
id
businessId
:
id
})
})
},
},
/**红包活动回显 */
async
getRedEnvelopeAwardInfo
({
async
getRedEnvelopeAwardInfo
({
awardInfoId
,
awardInfoId
,
params
params
...
...
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