Commit 709a54fa4216d9e4200ce10cb9ebcd89dad40fa9
1 parent
d045025c
订单显示, 拼团显示, 拼团订单, 会员中心页面的bug调整
Showing
9 changed files
with
91 additions
and
76 deletions
pages/team/team_ping/team_ping.js
@@ -157,7 +157,7 @@ Page({ | @@ -157,7 +157,7 @@ Page({ | ||
157 | } | 157 | } |
158 | 158 | ||
159 | wx.hideLoading(); | 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 | <view class='top'> | 4 | <view class='top'> |
@@ -62,9 +62,24 @@ | @@ -62,9 +62,24 @@ | ||
62 | <view style='width:100%;border-bottom:10rpx solid #eee; '> | 62 | <view style='width:100%;border-bottom:10rpx solid #eee; '> |
63 | <view class='pd-list-foot'> | 63 | <view class='pd-list-foot'> |
64 | <view class='foot-left'> | 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 | </view> | 83 | </view> |
69 | 84 | ||
70 | <view class='foot-right'> | 85 | <view class='foot-right'> |
@@ -103,6 +118,6 @@ | @@ -103,6 +118,6 @@ | ||
103 | 118 | ||
104 | 119 | ||
105 | </view> | 120 | </view> |
106 | -<view wx:else> | ||
107 | -<view class='kon'>暂无更多</view> | 121 | +<view wx:elif="{{isgo}}"> |
122 | + <view class='kon'>暂无更多</view> | ||
108 | </view> | 123 | </view> |
109 | \ No newline at end of file | 124 | \ No newline at end of file |
pages/team/team_ping/team_ping.wxss
@@ -175,34 +175,28 @@ height:222rpx; | @@ -175,34 +175,28 @@ height:222rpx; | ||
175 | 175 | ||
176 | 176 | ||
177 | .pd-list-foot{ | 177 | .pd-list-foot{ |
178 | - | ||
179 | - width: 100%; | 178 | + width: 100%; |
180 | margin: auto; | 179 | margin: auto; |
181 | - overflow: hidden; | ||
182 | - height: 105rpx; | ||
183 | - font-size: 28rpx; | 180 | + font-size: 28rpx; |
184 | line-height: 105rpx; | 181 | line-height: 105rpx; |
185 | color: #000; | 182 | color: #000; |
186 | display: flex; | 183 | display: flex; |
187 | justify-content:space-between; | 184 | justify-content:space-between; |
188 | - | ||
189 | - | 185 | + |
190 | } | 186 | } |
191 | - | 187 | + |
192 | .foot-l-wz{ | 188 | .foot-l-wz{ |
193 | - padding-right: 10rpx; | 189 | + padding-right: 10rpx; |
194 | display: inline-block; | 190 | display: inline-block; |
195 | - font-size: 34rpx; | ||
196 | - line-height: 100rpx; | ||
197 | - color: #e4374d; | 191 | + font-size: 34rpx; |
192 | + color: #e4374d; | ||
198 | font-weight: normal; | 193 | font-weight: normal; |
199 | } | 194 | } |
200 | 195 | ||
201 | .foot-left{ | 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 | line-height: 100rpx; | 200 | line-height: 100rpx; |
207 | font-size:26rpx; | 201 | font-size:26rpx; |
208 | } | 202 | } |
@@ -375,4 +369,12 @@ line-height:100rpx; | @@ -375,4 +369,12 @@ line-height:100rpx; | ||
375 | line-height:121rpx; | 369 | line-height:121rpx; |
376 | margin-left:5rpx; | 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 | \ No newline at end of file | 381 | \ No newline at end of file |
pages/team/team_success/team_success.js
pages/team/team_success/team_success.wxml
@@ -152,12 +152,12 @@ | @@ -152,12 +152,12 @@ | ||
152 | <!-- <block wx:if="{{pay_f!=1 && order.pt_status<2}}"> --> | 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 | </button> | 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 | </button> | 162 | </button> |
163 | </view> | 163 | </view> |
pages/user/index/index.js
@@ -75,7 +75,7 @@ Page({ | @@ -75,7 +75,7 @@ Page({ | ||
75 | if (su.data.code == 0) { | 75 | if (su.data.code == 0) { |
76 | var yuer = parseFloat(th.data.userInfo.user_money - | 76 | var yuer = parseFloat(th.data.userInfo.user_money - |
77 | th.data.userInfo.frozen_money - su.data.data.summoney).toFixed(2); | 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,65 +61,54 @@ | ||
61 | </view> | 61 | </view> |
62 | </view> | 62 | </view> |
63 | <view class="price-information information"> | 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 | <view>商品总价</view> | 66 | <view>商品总价</view> |
68 | <view>¥ {{filters.toFix(order.order_goods[0].member_goods_price*order.order_goods[0].goods_num,2)}}元</view> | 67 | <view>¥ {{filters.toFix(order.order_goods[0].member_goods_price*order.order_goods[0].goods_num,2)}}元</view> |
69 | </view> | 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 | <view>定金金额</view> | 75 | <view>定金金额</view> |
72 | <view>¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view> | 76 | <view>¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view> |
73 | </view> | 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 | <view>尾款金额</view> | 79 | <view>尾款金额</view> |
76 | <view>¥ {{order.pt_tail_money}}元</view> | 80 | <view>¥ {{order.pt_tail_money}}元</view> |
77 | </view> | 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 | <view class="item" wx:if="{{order.pt_tail_money>0}}"> | 102 | <view class="item" wx:if="{{order.pt_tail_money>0}}"> |
80 | <view>订单总价</view> | 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 | </view> | 105 | </view> |
83 | 106 | ||
107 | + <view class="item-line"></view> | ||
84 | <view class="item" wx:if="{{order.user_money>0}}"> | 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 | </view> | 112 | </view> |
124 | 113 | ||
125 | <view class="btn-wrap"> | 114 | <view class="btn-wrap"> |
pages/user/order_detail/order_detail.wxss
@@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
119 | .information .title { | 119 | .information .title { |
120 | height: 70rpx; | 120 | height: 70rpx; |
121 | line-height: 70rpx; | 121 | line-height: 70rpx; |
122 | - border-bottom: 1px solid #ddd; | 122 | + border-bottom: 1rpx solid #ddd; |
123 | font-size: 34rpx; | 123 | font-size: 34rpx; |
124 | color: #333; | 124 | color: #333; |
125 | } | 125 | } |
@@ -130,8 +130,15 @@ | @@ -130,8 +130,15 @@ | ||
130 | height: 60rpx; | 130 | height: 60rpx; |
131 | line-height: 60rpx; | 131 | line-height: 60rpx; |
132 | font-size: 30rpx; | 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 | .delivery-address,.leave-word { | 143 | .delivery-address,.leave-word { |
137 | width: 500rpx; | 144 | width: 500rpx; |
pages/user/order_list/order_list.wxml
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | <view>金额:¥{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}</view> | 53 | <view>金额:¥{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}</view> |
54 | </block> | 54 | </block> |
55 | <block wx:else> | 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 | <view wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view> | 57 | <view wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view> |
58 | <view wx:if="{{item.pt_tail_money>0}}">尾款:¥{{item.pt_tail_money}}</view> | 58 | <view wx:if="{{item.pt_tail_money>0}}">尾款:¥{{item.pt_tail_money}}</view> |
59 | </block> | 59 | </block> |