Commit a0bc9fa4 by 高淑倩

add: 兑换成功隐藏遮罩

parent 18440151
......@@ -44,9 +44,9 @@ wxService.page({
wx.hideLoading()
let dialog = this.data.dialog
// popupType: 0 1 优惠券 2 积分
if(data.popupType == 1){
if (data.popupType == 1) {
dialog.content = '优惠券'
} else if(data.popupType == 2) {
} else if (data.popupType == 2) {
dialog.content = '积分流水'
}
this.setData({
......@@ -79,7 +79,7 @@ wxService.page({
countObj: data,
// currentPercent: (100 / 5) * 2
currentPercent: (100 / this.data.goal) * data.surplusPoints
},()=>{
}, () => {
wx.hideLoading()
})
}
......@@ -87,13 +87,12 @@ wxService.page({
})
},
handleCheckGoods() {
const { activityId } = this.data
wxService.router(`/subPackage/page/pages/pointGoodsList/pointGoodsList`).search({ activityId})
const { activityId } = this.data
wxService.router(`/subPackage/page/pages/pointGoodsList/pointGoodsList`).search({ activityId })
},
handleGo() {
// 兑换成功跳转
this.getPointExchange()
},
// 触点有礼-消费集点兑换
getPointExchange() {
......@@ -107,13 +106,20 @@ wxService.page({
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
// 跳转 popupType: 0 默认不跳转 1 优惠券 2 积分
const { popupType } = this.data
if (popupType == 1) {
wxService.router(`/pages/coupons/coupons`)
} else if (popupType == 2) {
wxService.router(`/pages/integralWater/integralWater`)
}
// 隐藏 dialog
let dialog = this.data.dialog
dialog.show = false
this.setData({
dialog
}, () => {
// 跳转 popupType: 0 默认不跳转 1 优惠券 2 积分
const { popupType } = this.data
if (popupType == 1) {
wxService.router(`/pages/coupons/coupons`)
} else if (popupType == 2) {
wxService.router(`/pages/integralWater/integralWater`)
}
})
}
}
})
......
......@@ -28,7 +28,7 @@
</view>
<view class="detail-desc">
<view class="detail-active point_color" bindtap="handleCheckGoods" wx:if="{{type == 2}}">查看活动商品 ></view>
<view class='integral-list' wx:for="{{desc}}" wx:key="{{item}}">
<view class='integral-list' wx:for="{{desc}}" wx:key="{{index}}">
<text class='integral-title'>{{item.label}}</text>
<text class='integral-desc wpl'>{{item.value}}</text>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment