Commit 1cda69a5dda67153eabc19265c944a9ce60435f5

Authored by WXD-SEASON\season
1 parent 83074281

包邮券优化增加来源类型

packageD/pages/user/coupons/coupons.wxml
... ... @@ -31,7 +31,7 @@
31 31 </view>
32 32 <view class="c-info arrow-down {{detail.isShowDetails ? 'active':''}}" bindtap="clickDetails" data-index="{{idx}}">
33 33 <!--<text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}">使用说明: 包邮券,全场通用,满 {{detail.condition}}元使用{{detail.title?',不包邮地区:'+detail.title:''}}</text>-->
34   - <text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}"><text style="margin-right: 15rpx">使用说明:</text>购买礼包得优惠券【消费满{{time.toFix(detail.condition,2)}}元可用】</text>
  34 + <text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}"><text style="margin-right: 15rpx">使用说明:</text>{{filter.showtypeName(detail.type)}}【消费满{{time.toFix(detail.condition,2)}}元可用】</text>
35 35 </view>
36 36 </block>
37 37  
... ...
packageD/pages/user/coupons/filter.wxs
... ... @@ -30,9 +30,30 @@ var numFr = {
30 30 return '立即使用';
31 31 };
32 32 };
  33 + },
  34 +
  35 + showtypeName: function(index) {
  36 + switch(index) {
  37 + case 0: {
  38 + return '从我的礼包获取,';
  39 + break;
  40 + };
  41 + case 1: {
  42 + return '已过从我的专享礼包,期';
  43 + break;
  44 + };
  45 + case 2: {
  46 + return '从我的幸运大转盘,';
  47 + break;
  48 + };
  49 + default: {
  50 + return '';
  51 + };
  52 + };
33 53 },
34 54 }
35 55 module.exports = {
36 56 getNum: numFr.getNum,
37   - showBtnText: numFr.showBtnText,
  57 + showBtnText: numFr.showBtnText,
  58 + showtypeName: numFr.showtypeName,
38 59 }
39 60 \ No newline at end of file
... ...