Commit 5406cb4a by 李伟康

修复

1 parent be9d1cb9
......@@ -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') //错误统一跳转至我的
}
}
})
}
......
......@@ -51,6 +51,7 @@ Page({
})
this.setData({
list: [...list, ...data],
flag: true,
total
})
wx.hideLoading()
......
......@@ -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
<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.isAddressFlag}}">
<view class="btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">去填写</view>
<block wx:if="{{nothing}}">
<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>
......
......@@ -207,7 +207,7 @@ Page({
isOpenMember: true,
addWelfareOfficer: 'bg-member-welfare'
})
} else wx.p.router.go('/packageActivity/pages/redEnvelope/index/index', {
} else wx.p.router.redirectTo('/packageActivity/pages/redEnvelope/index/index', {
activityId: data.activityRedEnvelopeId,
businessId: equityFreeCardId,
source: 0,
......
......@@ -38,7 +38,7 @@ Component({
activityRedEnvelopeId: activityId,
nickName: userInfo.nickName
})
if (response.isActivityRedEnvelopeFlag && !response.isReceiveFlag) wx.p.router.go('/packageActivity/pages/redEnvelope/index/index', {
if (response.isActivityRedEnvelopeFlag && !response.isReceiveFlag) wx.p.router.redirectTo('/packageActivity/pages/redEnvelope/index/index', {
activityId,
businessId: data.id,
merchantId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!