Commit 709a54fa4216d9e4200ce10cb9ebcd89dad40fa9

Authored by F5VT98DI7XY4X12\Administrator
1 parent d045025c

订单显示, 拼团显示, 拼团订单, 会员中心页面的bug调整

pages/team/team_ping/team_ping.js
... ... @@ -157,7 +157,7 @@ Page({
157 157 }
158 158  
159 159 wx.hideLoading();
160   - ee.setData({ order: this.data.requestData, ordertx:ordertx});
  160 + ee.setData({ order: this.data.requestData, ordertx: ordertx, isgo:1});
161 161 },
162 162  
163 163 //---滚动到底部加载更多---
... ...
pages/team/team_ping/team_ping.wxml
1   -<!--pages/team_ping/team_ping.wxml-->
  1 +<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
2 2  
3 3 <!--选择款-->
4 4 <view class='top'>
... ... @@ -62,9 +62,24 @@
62 62 <view style='width:100%;border-bottom:10rpx solid #eee; '>
63 63 <view class='pd-list-foot'>
64 64 <view class='foot-left'>
65   - 共{{item.order_goods[0].goods_num}}件, 金额:
66   - <text class="xc-wc">¥</text>
67   - <view class='foot-l-wz fs35'>{{item.user_money+item.order_amount}}</view>
  65 + 共{{item.order_goods[0].goods_num}}件,
  66 + <block wx:if="{{item.is_zsorder==4}}">
  67 + <block wx:if="{{item.pt_status==4 || item.pt_status==5}}">
  68 + 定金:<text class="xc-wc">¥</text>
  69 + <view class='foot-l-wz fs35'>{{filters.toFix(item.user_money+item.order_amount+item.pt_tail_money,2)}}</view>
  70 + </block>
  71 + <block wx:else>
  72 + <view class='foot-l-wz fs35' wx:if="item.is_zsorder==4">
  73 + 定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>
  74 + <view class='foot-l-wz fs35' wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>
  75 + <view class='foot-l-wz2 fs35' wx:if="{{item.pt_tail_money>0}}">尾款:¥{{item.pt_tail_money}}</view>
  76 + </block>
  77 +
  78 + </block>
  79 + <block wx:else>
  80 + 金额:<text class="xc-wc">¥</text>
  81 + <view class='foot-l-wz fs35'>{{filters.toFix(item.user_money+item.order_amount,2)}}</view>
  82 + </block>
68 83 </view>
69 84  
70 85 <view class='foot-right'>
... ... @@ -103,6 +118,6 @@
103 118  
104 119  
105 120 </view>
106   -<view wx:else>
107   -<view class='kon'>暂无更多</view>
  121 +<view wx:elif="{{isgo}}">
  122 + <view class='kon'>暂无更多</view>
108 123 </view>
109 124 \ No newline at end of file
... ...
pages/team/team_ping/team_ping.wxss
... ... @@ -175,34 +175,28 @@ height:222rpx;
175 175  
176 176  
177 177 .pd-list-foot{
178   -
179   - width: 100%;
  178 + width: 100%;
180 179 margin: auto;
181   - overflow: hidden;
182   - height: 105rpx;
183   - font-size: 28rpx;
  180 + font-size: 28rpx;
184 181 line-height: 105rpx;
185 182 color: #000;
186 183 display: flex;
187 184 justify-content:space-between;
188   -
189   -
  185 +
190 186 }
191   -
  187 +
192 188 .foot-l-wz{
193   - padding-right: 10rpx;
  189 + padding-right: 10rpx;
194 190 display: inline-block;
195   - font-size: 34rpx;
196   - line-height: 100rpx;
197   - color: #e4374d;
  191 + font-size: 34rpx;
  192 + color: #e4374d;
198 193 font-weight: normal;
199 194 }
200 195  
201 196 .foot-left{
202 197  
203   - margin-left:19rpx;
204   -min-width: 360rpx;
205   - height: 100rpx;
  198 + margin-left:19rpx;
  199 + min-width: 360rpx;
206 200 line-height: 100rpx;
207 201 font-size:26rpx;
208 202 }
... ... @@ -375,4 +369,12 @@ line-height:100rpx;
375 369 line-height:121rpx;
376 370 margin-left:5rpx;
377 371  
  372 +}
  373 +
  374 +.foot-l-wz2{
  375 + font-size: 34rpx;
  376 + color: #e4374d;
  377 + font-weight: normal;
  378 + margin-top:-40rpx;
  379 + margin-left:80rpx
378 380 }
379 381 \ No newline at end of file
... ...
pages/team/team_success/team_success.js
... ... @@ -651,8 +651,10 @@ Page({
651 651 });
652 652 },
653 653  
654   -
655   -
656   -
  654 + go_pay_wk:function(){
  655 + var url = "/pages/cart/cart_wk/cart_wk?order_id=" + this.data.order.order_id;
  656 + getApp().goto(url);
  657 + }
  658 +
657 659 })
658 660  
... ...
pages/team/team_success/team_success.wxml
... ... @@ -152,12 +152,12 @@
152 152 <!-- <block wx:if="{{pay_f!=1 && order.pt_status<2}}"> -->
153 153 <!----/ // // // //按钮---->
154 154  
155   - <view wx:if="{{teamlist.kttype==3}}" class='bodybutton' bindtap='cmeng'>
  155 + <view wx:if="{{teamlist.kttype==3}}" class='bodybutton'>
156 156 <!-- 阶梯团 -->
157   - <button wx:if="{{p_status==1}}" style='background-color:#fab55a; color:#fff'>
  157 + <button wx:if="{{p_status==1}}" bindtap='cmeng' style='background-color:#fab55a; color:#fff'>
158 158 邀请好友参团
159 159 </button>
160   - <button style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}">
  160 + <button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}">
161 161 支付尾款
162 162 </button>
163 163 </view>
... ...
pages/user/index/index.js
... ... @@ -75,7 +75,7 @@ Page({
75 75 if (su.data.code == 0) {
76 76 var yuer = parseFloat(th.data.userInfo.user_money -
77 77 th.data.userInfo.frozen_money - su.data.data.summoney).toFixed(2);
78   - th.setData({ txmon: su.data.data.summoney, yuer });
  78 + th.setData({ txmon: su.data.data.summoney, yuer: yuer });
79 79 }
80 80 }
81 81 })
... ...
pages/user/order_detail/order_detail.wxml
... ... @@ -61,65 +61,54 @@
61 61 </view>
62 62 </view>
63 63 <view class="price-information information">
64   - <view class="title">价格信息</view>
65   - <block wx:if="{{order.is_zsorder==4}}">
66   - <view class="item">
  64 + <view class="title" style="margin-bottom:10rpx" >价格信息</view>
  65 + <view class="item pnew" wx:if="{{order.is_zsorder==4}}">
67 66 <view>商品总价</view>
68 67 <view>¥ {{filters.toFix(order.order_goods[0].member_goods_price*order.order_goods[0].goods_num,2)}}元</view>
69 68 </view>
70   - <view class="item">
  69 + <view class="item pnew" wx:else>
  70 + <view>商品总价</view>
  71 + <view>¥ {{order.goods_price}}元</view>
  72 + </view>
  73 +
  74 + <view class="item pnew">
71 75 <view>定金金额</view>
72 76 <view>¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view>
73 77 </view>
74   - <view class="item" wx:if="{{order.pt_tail_money>0}}">
  78 + <view class="item pnew" wx:if="{{order.pt_tail_money>0}}">
75 79 <view>尾款金额</view>
76 80 <view>¥ {{order.pt_tail_money}}元</view>
77 81 </view>
  82 +
  83 + <view class="item pnew" wx:if="{{order.shipping_price>0}}">
  84 + <view>配送费用</view>
  85 + <view>¥ {{order.shipping_price}}元</view>
  86 + </view>
  87 + <view class="item pnew" wx:if="{{order.coupon_price>0}}">
  88 + <view>优惠券</view>
  89 + <view> ¥ {{order.coupon_price}}元</view>
  90 + </view>
  91 +
  92 + <view class="item pnew" wx:if="{{order.integral_money>0}}">
  93 + <view>积分</view>
  94 + <view> ¥ {{order.integral_money}}元</view>
  95 + </view>
  96 +
  97 + <view class="item pnew" wx:if="{{order.order_prom_amount>0}}">
  98 + <view>订单优惠</view>
  99 + <view>¥ {{order.order_prom_amount}}元</view>
  100 + </view>
78 101  
79 102 <view class="item" wx:if="{{order.pt_tail_money>0}}">
80 103 <view>订单总价</view>
81   - <view>¥ {{order.pt_tail_money}}元</view>
  104 + <view>¥ {{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money)}}元</view>
82 105 </view>
83 106  
  107 + <view class="item-line"></view>
84 108 <view class="item" wx:if="{{order.user_money>0}}">
85   - <view>使用余额</view>
86   - <view>¥ {{order.user_money}}元</view>
87   - </view>
88   - </block>
89   -
90   - <block wx:else>
91   - <view class="item">
92   - <view>商品总价</view>
93   - <view>¥ {{order.goods_price}}元</view>
94   - </view>
95   - <view class="item" wx:if="{{order.shipping_price>0}}">
96   - <view>运费</view>
97   - <view>¥ {{order.shipping_price}}元</view>
98   - </view>
99   - <view class="item" wx:if="{{order.coupon_price>0}}">
100   - <view>优惠券</view>
101   - <view> ¥ {{order.coupon_price}}元</view>
102   - </view>
103   - <view class="item" wx:if="{{order.integral_money>0}}">
104   - <view>积分</view>
105   - <view> ¥ {{order.integral_money}}元</view>
106   - </view>
107   - <view class="item" wx:if="{{order.user_money>0}}">
108   - <view>余额</view>
109   - <view> ¥ {{order.user_money}}元</view>
110   - </view>
111   - <view class="item" wx:if="{{order.order_prom_amount>0}}">
112   - <view>订单优惠</view>
113   - <view>¥ {{order.order_prom_amount}}元</view>
114   - </view>
115   -
116   - <view class="item">
117   - <view>实付金额</view>
118   - <view class="pay-amount">¥ {{order.order_amount}}元</view>
119   - </view>
120   -
121   -
122   - </block>
  109 + <view>使用余额</view>
  110 + <view>¥ {{order.user_money}}元</view>
  111 + </view>
123 112 </view>
124 113  
125 114 <view class="btn-wrap">
... ...
pages/user/order_detail/order_detail.wxss
... ... @@ -119,7 +119,7 @@
119 119 .information .title {
120 120 height: 70rpx;
121 121 line-height: 70rpx;
122   - border-bottom: 1px solid #ddd;
  122 + border-bottom: 1rpx solid #ddd;
123 123 font-size: 34rpx;
124 124 color: #333;
125 125 }
... ... @@ -130,8 +130,15 @@
130 130 height: 60rpx;
131 131 line-height: 60rpx;
132 132 font-size: 30rpx;
133   - color: #666;
  133 + color: #333;
  134 +}
  135 +
  136 +.information .item.pnew{
  137 + height: 50rpx;
  138 + line-height: 50rpx;
  139 + color: #999;
134 140 }
  141 +.item-line{ margin: 5rpx 0; height: 1rpx; border-bottom:1rpx solid #ddd }
135 142  
136 143 .delivery-address,.leave-word {
137 144 width: 500rpx;
... ...
pages/user/order_list/order_list.wxml
... ... @@ -53,7 +53,7 @@
53 53 <view>金额:¥{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}</view>
54 54 </block>
55 55 <block wx:else>
56   - <view wx:if="item.is_zsorder==4">定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>
  56 + <view wx:if="{{item.is_zsorder==4}}">定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>
57 57 <view wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>
58 58 <view wx:if="{{item.pt_tail_money>0}}">尾款:¥{{item.pt_tail_money}}</view>
59 59 </block>
... ...