Commit 23efda355370865a876c3853312fe764fadffce8
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
2 changed files
with
23 additions
and
2 deletions
packageD/pages/user/coupons/coupons.wxml
| @@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
| 31 | </view> | 31 | </view> |
| 32 | <view class="c-info arrow-down {{detail.isShowDetails ? 'active':''}}" bindtap="clickDetails" data-index="{{idx}}"> | 32 | <view class="c-info arrow-down {{detail.isShowDetails ? 'active':''}}" bindtap="clickDetails" data-index="{{idx}}"> |
| 33 | <!--<text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}">使用说明: 包邮券,全场通用,满 {{detail.condition}}元使用{{detail.title?',不包邮地区:'+detail.title:''}}</text>--> | 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 | </view> | 35 | </view> |
| 36 | </block> | 36 | </block> |
| 37 | 37 |
packageD/pages/user/coupons/filter.wxs
| @@ -30,9 +30,30 @@ var numFr = { | @@ -30,9 +30,30 @@ var numFr = { | ||
| 30 | return '立即使用'; | 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 | module.exports = { | 55 | module.exports = { |
| 36 | getNum: numFr.getNum, | 56 | getNum: numFr.getNum, |
| 37 | - showBtnText: numFr.showBtnText, | 57 | + showBtnText: numFr.showBtnText, |
| 58 | + showtypeName: numFr.showtypeName, | ||
| 38 | } | 59 | } |
| 39 | \ No newline at end of file | 60 | \ No newline at end of file |