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 5406cb4a
authored
Jan 22, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
be9d1cb9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
31 deletions
packageActivity/pages/redEnvelope/index/index.js
packageActivity/pages/redEnvelope/record/record.js
packageActivity/pages/redEnvelope/record/record.scss
packageActivity/pages/redEnvelope/record/record.wxml
packageEquity/pages/freecard/freecard.js
packageMine/pages/questionnaire/components/Finish/Finish.js
packageActivity/pages/redEnvelope/index/index.js
View file @
5406cb4
...
...
@@ -72,6 +72,7 @@ Page({
const
{
code
,
data
,
errId
,
message
}
=
await
wx
.
p
.
api
.
questionnaireApi
.
bindRedEnvelopeLink
({
activityId
,
...
...
@@ -91,18 +92,30 @@ Page({
linkId
:
data
.
id
,
source
})
}
else
throw
message
}
else
throw
message
}
else
throw
{
message
,
errId
}
}
else
throw
{
message
,
errId
}
}
}
catch
(
error
)
{
if
(
error
)
wx
.
showModal
({
}
catch
({
message
,
errId
})
{
if
(
message
)
wx
.
showModal
({
title
:
'温馨提示'
,
content
:
error
,
content
:
message
,
confirmText
:
'知道了'
,
showCancel
:
false
,
confirmColor
:
'#F13C3D'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
wx
.
p
.
router
.
switchTab
(
'/pages/tab/mine/index'
)
//错误统一跳转至我的
if
(
res
.
confirm
)
{
if
(
errId
==
'202207218'
||
errId
==
'202207224'
)
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/record/record'
)
else
wx
.
p
.
router
.
switchTab
(
'/pages/tab/mine/index'
)
//错误统一跳转至我的
}
}
})
}
...
...
packageActivity/pages/redEnvelope/record/record.js
View file @
5406cb4
...
...
@@ -51,6 +51,7 @@ Page({
})
this
.
setData
({
list
:
[...
list
,
...
data
],
flag
:
true
,
total
})
wx
.
hideLoading
()
...
...
packageActivity/pages/redEnvelope/record/record.scss
View file @
5406cb4
...
...
@@ -21,6 +21,7 @@ page {
top
:
20rpx
;
font-weight
:
500
;
color
:
#52C41A
;
&
-0
,
&
-1
,
&
-6
,
...
...
@@ -123,4 +124,17 @@ page {
height
:
72rpx
;
margin-top
:
42rpx
;
}
}
.nothing
{
font-weight
:
500
;
font-size
:
13px
;
color
:
#999999
;
flex-direction
:
column
;
.icon
{
width
:
422rpx
;
height
:
380rpx
;
margin
:
208rpx
0
32rpx
;
}
}
\ No newline at end of file
packageActivity/pages/redEnvelope/record/record.wxml
View file @
5406cb4
<view class="layout isFullSucreen">
<block wx:for="{{list}}" wx:key="index">
<view class="item flex">
<view class="status status-{{item.status}}">{{item.statusStr}}</view>
<view class="icon">
<image src="{{item.prizeLogo}}" />
</view>
<view class="info">
<view class="name">{{item.prizeName}}</view>
<block wx:if="{{item.prizeType == 0}}">
<view class="price">
<view class="unit">¥</view>
{{item.amount}}
<block wx:if="{{flag}}">
<block wx:if="{{list.length}}">
<block wx:for="{{list}}" wx:key="index">
<view class="item flex">
<view class="status status-{{item.status}}">{{item.statusStr}}</view>
<view class="icon">
<image src="{{item.prizeLogo}}" />
</view>
</block>
<view class="time">{{item.winTime}}</view>
</view>
<block wx:if="{{item.prizeType == 1 && item.status == 6}}">
<view class="btn text-center" data-code="{{item.code}}" bindtap="open">查看</view>
<view class="info">
<view class="name">{{item.prizeName}}</view>
<block wx:if="{{item.prizeType == 0}}">
<view class="price">
<view class="unit">¥</view>
{{item.amount}}
</view>
</block>
<view class="time">{{item.winTime}}</view>
</view>
<block wx:if="{{item.prizeType == 1 && item.status == 6}}">
<view class="btn text-center" data-code="{{item.code}}" bindtap="open">查看</view>
</block>
<block wx:if="{{item.exchangeType == 0 && item.status == 8 && !item.isAddressFlag}}">
<view class="btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">去填写</view>
</block>
</view>
</block>
<block wx:if="{{
item.exchangeType == 0 && item.status == 8 && !item.isAddressFla
g}}">
<view class="
btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">去填写
</view>
<block wx:if="{{
nothin
g}}">
<view class="
list-nothing ">到底啦!!
</view>
</block>
</view>
</block>
<block wx:if="{{nothing}}">
<view class="list-nothing ">到底啦!!</view>
</block>
<block wx:else>
<view class="nothing flex">
<view class="icon">
<glsx-image src="activity/nothing.png"></glsx-image>
</view>
暂无中奖记录
</view>
</block>
</block>
</view>
...
...
packageEquity/pages/freecard/freecard.js
View file @
5406cb4
...
...
@@ -207,7 +207,7 @@ Page({
isOpenMember
:
true
,
addWelfareOfficer
:
'bg-member-welfare'
})
}
else
wx
.
p
.
router
.
g
o
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
}
else
wx
.
p
.
router
.
redirectT
o
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
activityId
:
data
.
activityRedEnvelopeId
,
businessId
:
equityFreeCardId
,
source
:
0
,
...
...
packageMine/pages/questionnaire/components/Finish/Finish.js
View file @
5406cb4
...
...
@@ -38,7 +38,7 @@ Component({
activityRedEnvelopeId
:
activityId
,
nickName
:
userInfo
.
nickName
})
if
(
response
.
isActivityRedEnvelopeFlag
&&
!
response
.
isReceiveFlag
)
wx
.
p
.
router
.
g
o
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
if
(
response
.
isActivityRedEnvelopeFlag
&&
!
response
.
isReceiveFlag
)
wx
.
p
.
router
.
redirectT
o
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
activityId
,
businessId
:
data
.
id
,
merchantId
,
...
...
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