Commit 985a207e310d2d3852d2adcc2312596aa6aa15fa
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
4 changed files
with
21 additions
and
16 deletions
pages/team/team_show/team_show.wxml
| @@ -55,19 +55,15 @@ | @@ -55,19 +55,15 @@ | ||
| 55 | </view> | 55 | </view> |
| 56 | <!--头像--> | 56 | <!--头像--> |
| 57 | <view class="flex_tou"> | 57 | <view class="flex_tou"> |
| 58 | - <view class='bodyimg flex-level' wx:for="{{ordertx}}" wx:key> | 58 | + <view class='bodyimg flex-level' wx:for="{{ordertx}}" wx:key> |
| 59 | <view class='d'> | 59 | <view class='d'> |
| 60 | - <image src='{{item.head_pic}}'></image> | ||
| 61 | - <span wx:if="{{item.is_pt_tz==1}}">团长</span> | 60 | + <image src='{{item.head_pic}}'></image> |
| 61 | + <span wx:if="{{item.is_pt_tz==1}}">团长</span> | ||
| 62 | + </view> | ||
| 62 | </view> | 63 | </view> |
| 63 | - <view class='d'> | ||
| 64 | - <image src='{{imageurl}}/miniapp/images/shafa.png'></image> | ||
| 65 | - </view> | ||
| 66 | - | ||
| 67 | - <view class='xc-ellipsis-img' wx:if="{{length>5}}"> | ||
| 68 | - <image style='width:56rpx;height:56rpx;margin-left:10rpx;' src="{{imageurl}}/miniapp/images/xc_ellipsis.png"></image> | ||
| 69 | - </view> | ||
| 70 | - </view> | 64 | + <view class='xc-ellipsis-img' wx:if="{{length>5}}"> |
| 65 | + <image style='width:56rpx;height:56rpx;margin-left:10rpx;' src="{{imageurl}}/miniapp/images/xc_ellipsis.png"></image> | ||
| 66 | + </view> | ||
| 71 | 67 | ||
| 72 | 68 | ||
| 73 | 69 |
pages/team/team_show/team_show.wxss
pages/team/team_success/team_success.js
| @@ -185,7 +185,10 @@ Page({ | @@ -185,7 +185,10 @@ Page({ | ||
| 185 | 185 | ||
| 186 | 186 | ||
| 187 | //只装5个 | 187 | //只装5个 |
| 188 | - var ordertx2=[],sf_num=0,ct_nun=teamlist.ct_num;; | 188 | + var ordertx2=[],sf_num=0,ct_nun=teamlist.ct_num; |
| 189 | + if(max_num){ | ||
| 190 | + ct_nun=parseInt(max_num); | ||
| 191 | + } | ||
| 189 | 192 | ||
| 190 | if(ct_nun>5) ct_nun=5; | 193 | if(ct_nun>5) ct_nun=5; |
| 191 | for(var i=0;i<ct_nun;i++){ | 194 | for(var i=0;i<ct_nun;i++){ |
pages/team/team_success/team_success.wxml
| @@ -45,9 +45,15 @@ | @@ -45,9 +45,15 @@ | ||
| 45 | <!-- 阶梯团 --> | 45 | <!-- 阶梯团 --> |
| 46 | <view class='bodytop' wx:if="{{teamlist.kttype==3&& p_status==1}}"> | 46 | <view class='bodytop' wx:if="{{teamlist.kttype==3&& p_status==1}}"> |
| 47 | 当前价格 | 47 | 当前价格 |
| 48 | - <text class="xc-wc">¥{{ct_price}}</text>, 还差 | ||
| 49 | - <text class="xc-wc">{{max_num-ordertx.length}}</text>人享受最低价格 | ||
| 50 | - <text class="xc-wc">¥{{min_price}}</text> | 48 | + <text class="xc-wc">¥{{ct_price}}</text>, |
| 49 | + <block wx:if="{{max_num-ordertx.length>0}}"> | ||
| 50 | + <text class="xc-wc">还差{{max_num-ordertx.length}}</text>人享受最低价格<text class="xc-wc">¥{{min_price}}</text> | ||
| 51 | + </block> | ||
| 52 | + <block wx:else> | ||
| 53 | + 该团已经拼购到最低价了哦~ | ||
| 54 | + </block> | ||
| 55 | + | ||
| 56 | + | ||
| 51 | </view> | 57 | </view> |
| 52 | <!-- 拼团成功 --> | 58 | <!-- 拼团成功 --> |
| 53 | <view class="xc-ptcomplete-ladder flex-level fs28" wx:if="{{teamlist.kttype==3&&p_status==2}}"> | 59 | <view class="xc-ptcomplete-ladder flex-level fs28" wx:if="{{teamlist.kttype==3&&p_status==2}}"> |