Commit f8c7ed0f by 高淑倩

add: 集点详情说明字段

parent 5875bc8d
...@@ -16,7 +16,7 @@ wxService.page({ ...@@ -16,7 +16,7 @@ wxService.page({
content: '优惠券和积分流水', content: '优惠券和积分流水',
tip: '立即查看' tip: '立即查看'
}, },
desc: [{ "label": "优惠详情", "value": "使用100积分可兑换一张维记鲜牛奶优惠券,凭券可以4.8元优惠价换购维记鲜牛奶236ML一盒!", "type": 2 }, { "label": "使用须知", "value": "1、凭此优惠券,前往广东7-Eleven有售门店,可以优惠价4.8元换购维记鲜牛奶236ML一盒!2、成功领到优惠券后,请务必在有效期内使用,逾期无效;3、一张券限兑换维记鲜牛奶236ML一盒;4、优惠券不设找零、不可兑换现金; 5、请于交易前向收银员出示此优惠券; 6、使用优惠券发生的交易,广东7-Eleven仅按实际支付金额开具发票;7、如发生退货,仅按顾客实际支付金额退款。 ", "type": 2 }], desc: [],
activityId: '', activityId: '',
type: 1, // 1 订单 2 商品 type: 1, // 1 订单 2 商品
popupType: 0, // 默认不跳转 1 优惠券 2 积分 popupType: 0, // 默认不跳转 1 优惠券 2 积分
...@@ -53,12 +53,15 @@ wxService.page({ ...@@ -53,12 +53,15 @@ wxService.page({
} else if (data.popupType == 2) { } else if (data.popupType == 2) {
dialog.content = '积分流水' dialog.content = '积分流水'
} }
// 弹框背景
dialog.image = data.popupImage
this.setData({ this.setData({
activityId: data.id, activityId: data.id,
type: data.type, type: data.type,
popupType: data.popupType, popupType: data.popupType,
goal: data.goal, goal: data.goal,
desc: data.content, desc: JSON.parse(data.content),
detailImage: data.detailImage, detailImage: data.detailImage,
dialog dialog
}, () => { }, () => {
...@@ -81,7 +84,6 @@ wxService.page({ ...@@ -81,7 +84,6 @@ wxService.page({
if (result == 0) { if (result == 0) {
this.setData({ this.setData({
countObj: data, countObj: data,
// currentPercent: (100 / 5) * 2
currentPercent: (100 / this.data.goal) * data.surplusPoints currentPercent: (100 / this.data.goal) * data.surplusPoints
}, () => { }, () => {
wx.hideLoading() wx.hideLoading()
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
border-radius="{{20}}" border-radius="{{20}}"
/>--> />-->
</view> </view>
<!-- 活动剩余点数 >= 目标点数--> <!-- 活动剩余点数 >= 目标点数 wx:if="{{countObj.surplusPoints >= goal}}"-->
<button <button
wx:if="{{countObj.surplusPoints >= goal}}" wx:if="{{countObj.surplusPoints >= goal}}"
bindtap="handleToGet" bindtap="handleToGet"
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<view class="detail-desc"> <view class="detail-desc">
<view class="detail-active point_color" bindtap="handleCheckGoods" wx:if="{{type == 2}}">查看活动商品 ></view> <view class="detail-active point_color" bindtap="handleCheckGoods" wx:if="{{type == 2}}">查看活动商品 ></view>
<view class='integral-list' wx:for="{{desc}}" wx:key="{{index}}"> <view class='integral-list' wx:for="{{desc}}" wx:key="{{index}}">
<text class='integral-title'>{{item.label}}</text> <text class='integral-title'>{{item.title}}</text>
<text class='integral-desc wpl'>{{item.value}}</text> <text class='integral-desc wpl'>{{item.value}}</text>
</view> </view>
</view> </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