Commit 54d4cbb47bce2a693b34ab02303be3c9fc6f6b08

Authored by F5VT98DI7XY4X12\Administrator
1 parent 65ab0be8

小程序BUG 修改

pages/cart/cart2/cart2.js
@@ -81,6 +81,7 @@ Page({ @@ -81,6 +81,7 @@ Page({
81 th.data.param=t; 81 th.data.param=t;
82 //-----先获取物流,再获取用户信息,再展示页面----- 82 //-----先获取物流,再获取用户信息,再展示页面-----
83 th.get_wuliu(th.get_info(th.show_page)); 83 th.get_wuliu(th.get_info(th.show_page));
  84 +
84 }, 85 },
85 onUnload: function () { this.setData({ isclose: 1 })}, 86 onUnload: function () { this.setData({ isclose: 1 })},
86 //-------------------获取物流--------------- 87 //-------------------获取物流---------------
@@ -101,12 +102,7 @@ Page({ @@ -101,12 +102,7 @@ Page({
101 102
102 //------获取会员收货地址----- 103 //------获取会员收货地址-----
103 getuser_addr:function(func){ 104 getuser_addr:function(func){
104 - console.log(to.globalData.baddr);  
105 - if (to.globalData.baddr!=null){  
106 - var user_addr = to.globalData.baddr;  
107 - to.globalData.baddr=null;  
108 - func(user_addr);  
109 - }else{ 105 +
110 a.get("/api/weshop/useraddress/page", { 106 a.get("/api/weshop/useraddress/page", {
111 data: { user_id: to.globalData.user_id, store_id: oo.stoid, pageSize: 600 }, 107 data: { user_id: to.globalData.user_id, store_id: oo.stoid, pageSize: 600 },
112 success: function (su) { 108 success: function (su) {
@@ -121,10 +117,11 @@ Page({ @@ -121,10 +117,11 @@ Page({
121 if (user_addr[i]['is_default'] == 1) { item = user_addr[i]; break; } 117 if (user_addr[i]['is_default'] == 1) { item = user_addr[i]; break; }
122 } 118 }
123 if (item == null) item = user_addr[0]; 119 if (item == null) item = user_addr[0];
  120 + if(item==undefined) item=null;
124 func(item); 121 func(item);
125 } 122 }
126 }); 123 });
127 - } 124 +
128 }, 125 },
129 //----------------展示页面,是再获取用户信息之后-------------- 126 //----------------展示页面,是再获取用户信息之后--------------
130 show_page:function(){ 127 show_page:function(){
@@ -375,9 +372,17 @@ Page({ @@ -375,9 +372,17 @@ Page({
375 372
376 }else{ 373 }else{
377 this.getuser_addr(function(ie){ 374 this.getuser_addr(function(ie){
378 - th.setData({user_addr: ie });  
379 - });  
380 375
  376 + console.log("getuser_addr")
  377 + console.log(ie)
  378 +
  379 + th.setData({user_addr: ie });
  380 + if (th.data.is_b_now == 1) {
  381 + th.calculatePrice2();
  382 + } else {
  383 + th.calculatePrice();
  384 + }
  385 + });
381 } 386 }
382 }, 387 },
383 //---------------检查是否有收货地址------------------- 388 //---------------检查是否有收货地址-------------------
@@ -676,7 +681,8 @@ Page({ @@ -676,7 +681,8 @@ Page({
676 if (th.data.is_b_now==1){ 681 if (th.data.is_b_now==1){
677 console.log("buy_new"); 682 console.log("buy_new");
678 683
679 - if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ ff = false; confirmBox("请新建收货地址"); } 684 + if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){
  685 + ff = false; getApp().confirmBox("请新建收货地址"); }
680 if (!ff) return false; 686 if (!ff) return false;
681 var addr = th.data.user_addr; 687 var addr = th.data.user_addr;
682 if (th.data.bn_exp_type == 1) addr=null; 688 if (th.data.bn_exp_type == 1) addr=null;
@@ -687,7 +693,7 @@ Page({ @@ -687,7 +693,7 @@ Page({
687 693
688 if(th.data.bn_exp_type==0) 694 if(th.data.bn_exp_type==0)
689 if(th.data.wu_arr==null || th.data.wu_arr.length<=0){ 695 if(th.data.wu_arr==null || th.data.wu_arr.length<=0){
690 - confirmBox("读取物流失败"); 696 + getApp().confirmBox("读取物流失败");
691 return false; 697 return false;
692 } 698 }
693 699
@@ -752,7 +758,7 @@ Page({ @@ -752,7 +758,7 @@ Page({
752 console.log(pdata); 758 console.log(pdata);
753 }else{ 759 }else{
754 //---------购物车的结算--------- 760 //---------购物车的结算---------
755 - if (th.data.is_all_zt == 0 && th.data.user_addr == null) { ff = false;confirmBox("请新建收货地址");} 761 + if (th.data.is_all_zt == 0 && th.data.user_addr == null) { ff = false; getApp().confirmBox("请新建收货地址");}
756 if (!ff) return false; 762 if (!ff) return false;
757 763
758 var addr = th.data.user_addr; 764 var addr = th.data.user_addr;
@@ -763,7 +769,7 @@ Page({ @@ -763,7 +769,7 @@ Page({
763 769
764 if(th.data.is_all_zt !=1) 770 if(th.data.is_all_zt !=1)
765 if(th.data.wu_arr==null || th.data.wu_arr.length<=0 ){ 771 if(th.data.wu_arr==null || th.data.wu_arr.length<=0 ){
766 - confirmBox("读取物流失败"); 772 + getApp().confirmBox("读取物流失败");
767 return false; 773 return false;
768 } 774 }
769 775
pages/cart/cart2_pt/cart2_pt.js
@@ -110,6 +110,7 @@ Page({ @@ -110,6 +110,7 @@ Page({
110 if (user_addr[i]['is_default'] == 1) { item = user_addr[i]; break; } 110 if (user_addr[i]['is_default'] == 1) { item = user_addr[i]; break; }
111 } 111 }
112 if (item == null) item = user_addr[0]; 112 if (item == null) item = user_addr[0];
  113 + if (item == undefined) item = null;
113 func(item); 114 func(item);
114 } 115 }
115 }); 116 });
pages/cart/cart_wk/cart_wk.js
@@ -59,12 +59,16 @@ Page({ @@ -59,12 +59,16 @@ Page({
59 59
60 th.getuser_addr(function(addr) { 60 th.getuser_addr(function(addr) {
61 if(addr==null || addr==undefined || addr.length==0) { 61 if(addr==null || addr==undefined || addr.length==0) {
62 - th.setData({ enterAddressPage: 1,}); 62 + th.setData({ user_addr: null, enterAddressPage: 1,});
63 }else { 63 }else {
64 th.setData({ 64 th.setData({
65 user_addr: addr, enterAddressPage: 0, 65 user_addr: addr, enterAddressPage: 0,
66 }); 66 });
67 } 67 }
  68 +
  69 + if (th.data.exp_type == 0){
  70 + th.calculate_wuliu();
  71 + }
68 }) 72 })
69 73
70 }, 74 },
@@ -92,13 +96,9 @@ Page({ @@ -92,13 +96,9 @@ Page({
92 96
93 //------获取会员收货地址----- 97 //------获取会员收货地址-----
94 getuser_addr: function(func) { 98 getuser_addr: function(func) {
95 - var to = getApp(), 99 + var to = getApp(),
96 a = to.request; 100 a = to.request;
97 - if (to.globalData.baddr != null) {  
98 - var user_addr = to.globalData.baddr;  
99 - to.globalData.baddr = null;  
100 - func(user_addr);  
101 - } else { 101 +
102 a.get("/api/weshop/useraddress/page", { 102 a.get("/api/weshop/useraddress/page", {
103 data: { 103 data: {
104 user_id: to.globalData.user_id, 104 user_id: to.globalData.user_id,
@@ -115,10 +115,11 @@ Page({ @@ -115,10 +115,11 @@ Page({
115 } 115 }
116 } 116 }
117 if (item == null) item = user_addr[0]; 117 if (item == null) item = user_addr[0];
  118 + if (item == undefined) item = null;
118 func(item); 119 func(item);
119 } 120 }
120 }); 121 });
121 - } 122 +
122 }, 123 },
123 124
124 //----------------展示页面,是再获取用户信息之后-------------- 125 //----------------展示页面,是再获取用户信息之后--------------
@@ -312,6 +313,12 @@ Page({ @@ -312,6 +313,12 @@ Page({
312 //--立即支付-- 313 //--立即支付--
313 to_pay_type: function(ind) { 314 to_pay_type: function(ind) {
314 var th=this; 315 var th=this;
  316 +
  317 + //--物流支付时要有地址--
  318 + if (th.data.exp_type == 0 && th.data.user_addr==null){
  319 + return getApp().my_warnning("请先建地址",0,th);
  320 + }
  321 +
315 //---支付参数-- 322 //---支付参数--
316 var dd = { 323 var dd = {
317 order_sn: th.data.order.order_sn, 324 order_sn: th.data.order.order_sn,
@@ -323,6 +330,7 @@ Page({ @@ -323,6 +330,7 @@ Page({
323 prom_id:th.data.order.pt_prom_id, 330 prom_id:th.data.order.pt_prom_id,
324 tail_pay_type:ind,//0微信支付 1余额支付 331 tail_pay_type:ind,//0微信支付 1余额支付
325 }; 332 };
  333 +
326 if(th.data.exp_type==0){ 334 if(th.data.exp_type==0){
327 var index=th.data.index; 335 var index=th.data.index;
328 dd.shipping_code=th.data.wu_arr[index].code; 336 dd.shipping_code=th.data.wu_arr[index].code;
@@ -391,7 +399,7 @@ Page({ @@ -391,7 +399,7 @@ Page({
391 case 3: 399 case 3:
392 if (goods_piece < 0) goods_piece = 0; 400 if (goods_piece < 0) goods_piece = 0;
393 //累积商品数量 401 //累积商品数量
394 - goods_piece += good['buynum']; 402 + goods_piece += th.data.order.order_goods['goods_num'];
395 break; 403 break;
396 } 404 }
397 var code = th.data.wu_arr[th.data.index].code; 405 var code = th.data.wu_arr[th.data.index].code;
pages/cart/cart_wk/cart_wk.wxml
1 -<!--pages/cart/cart_wk/cart_wk.wxml-->  
2 - 1 +<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
3 <!----要进行判断地址是否显示----> 2 <!----要进行判断地址是否显示---->
4 <view bindtap="enterAddressPage" class="user-mes" 3 <view bindtap="enterAddressPage" class="user-mes"
5 hidden='{{exp_type==1 }}'> 4 hidden='{{exp_type==1 }}'>
@@ -80,7 +79,7 @@ @@ -80,7 +79,7 @@
80 </view> 79 </view>
81 <view class='ct_one'> 80 <view class='ct_one'>
82 <view class='ct_one_left'>成团单价</view> 81 <view class='ct_one_left'>成团单价</view>
83 - <view class='ct_one_right'>¥<text class='redwz'>{{order.order_amount+order.user_money+order.pt_tail_money}}</text></view> 82 + <view class='ct_one_right'>¥<text class='redwz'>{{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money,2)}}</text></view>
84 </view> 83 </view>
85 <view class='ct_one'> 84 <view class='ct_one'>
86 <view class='ct_one_left'>支付定金</view> 85 <view class='ct_one_left'>支付定金</view>
pages/goods/goodsInfo/goodsInfo.js
@@ -174,12 +174,10 @@ Page({ @@ -174,12 +174,10 @@ Page({
174 quan_list:null, //券列表 174 quan_list:null, //券列表
175 175
176 coupon:0, 176 coupon:0,
177 -  
178 //会员分享的头像 177 //会员分享的头像
179 share_head:"", 178 share_head:"",
180 share_goods_img:"", 179 share_goods_img:"",
181 180
182 -  
183 //----------视频图片data参数--------- 181 //----------视频图片data参数---------
184 current: 0,//图片计数 182 current: 0,//图片计数
185 swiperCurrent:0,//轮播的下标 183 swiperCurrent:0,//轮播的下标
@@ -211,7 +209,6 @@ Page({ @@ -211,7 +209,6 @@ Page({
211 var ee = this, that=ee, 209 var ee = this, that=ee,
212 gid = t.goods_id; 210 gid = t.goods_id;
213 211
214 -  
215 //如果tg_id是空的话,分享回来 212 //如果tg_id是空的话,分享回来
216 if (gid == undefined || gid == null || gid == "") { 213 if (gid == undefined || gid == null || gid == "") {
217 gid = decodeURIComponent(postdata.scene); 214 gid = decodeURIComponent(postdata.scene);
@@ -395,8 +392,6 @@ Page({ @@ -395,8 +392,6 @@ Page({
395 //---展示--- 392 //---展示---
396 onShow: function() { 393 onShow: function() {
397 394
398 -  
399 -  
400 this.data.is_timer=1; 395 this.data.is_timer=1;
401 var ee = this,gid = this.data.gid,i=getApp().request; 396 var ee = this,gid = this.data.gid,i=getApp().request;
402 i.get("/api/weshop/goods/get/" + o.stoid + "/" + ee.data.gid, { 397 i.get("/api/weshop/goods/get/" + o.stoid + "/" + ee.data.gid, {
@@ -1476,6 +1471,14 @@ Page({ @@ -1476,6 +1471,14 @@ Page({
1476 user_order_pt_state: 2 1471 user_order_pt_state: 2
1477 }); 1472 });
1478 } 1473 }
  1474 +
  1475 + if (odr.pt_status == 2 && odr.is_zsorder == 4) {
  1476 + th.setData({
  1477 + user_order_pt_state: 3,
  1478 + });
  1479 + th.data.wk_order_id=odr.order_id;
  1480 + }
  1481 +
1479 1482
1480 } 1483 }
1481 }, 1484 },
@@ -2555,6 +2558,10 @@ Page({ @@ -2555,6 +2558,10 @@ Page({
2555 getApp().goto(url); 2558 getApp().goto(url);
2556 }, 2559 },
2557 2560
2558 - 2561 + //--跳转到支付尾款界面--
  2562 + go_pay_wk:function () {
  2563 + var url = "/pages/cart/cart_wk/cart_wk?order_id="+ this.data.wk_order_id;
  2564 + getApp().goto(url);
  2565 + }
2559 2566
2560 }); 2567 });
2561 \ No newline at end of file 2568 \ No newline at end of file
pages/goods/goodsInfo/goodsInfo.wxml
@@ -682,11 +682,11 @@ @@ -682,11 +682,11 @@
682 682
683 </view> 683 </view>
684 <!---阶梯团----> 684 <!---阶梯团---->
685 - <view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==3}}" class="buy-btn cart-btn line-h"> 685 + <view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==3 && user_order_pt_state!=3 }}" class="buy-btn cart-btn line-h">
686 <view class="fir-v">¥{{filters.toFix(prom_act.yf_price,2)}}</view> 686 <view class="fir-v">¥{{filters.toFix(prom_act.yf_price,2)}}</view>
687 <view>支付定金</view> 687 <view>支付定金</view>
688 </view> 688 </view>
689 - 689 +
690 <view wx:if="{{prom_st==0}}" class="buy-btn cart-btn lanse">即将开始</view> 690 <view wx:if="{{prom_st==0}}" class="buy-btn cart-btn lanse">即将开始</view>
691 <view wx:if="{{prom_r_null}}" class="buy-btn cart-btn huise">已抢光</view> 691 <view wx:if="{{prom_r_null}}" class="buy-btn cart-btn huise">已抢光</view>
692 <view wx:if="{{prom_st==3 && !prom_r_null}}" class="buy-btn cart-btn lanse">活动已经结束</view> 692 <view wx:if="{{prom_st==3 && !prom_r_null}}" class="buy-btn cart-btn lanse">活动已经结束</view>
@@ -694,6 +694,7 @@ @@ -694,6 +694,7 @@
694 <block wx:else> 694 <block wx:else>
695 <view bindtap="go_to_nopay" wx:if="{{user_order_pt_state==1}}" class="buy-btn cart-btn huise">您还未支付</view> 695 <view bindtap="go_to_nopay" wx:if="{{user_order_pt_state==1}}" class="buy-btn cart-btn huise">您还未支付</view>
696 <view bindtap="go_to_team_show" wx:if="{{user_order_pt_state==2}}" class="buy-btn cart-btn">查看支付详情</view> 696 <view bindtap="go_to_team_show" wx:if="{{user_order_pt_state==2}}" class="buy-btn cart-btn">查看支付详情</view>
  697 + <view wx:if="{{user_order_pt_state==3}}" bindtap="go_pay_wk" class="buy-btn cart-btn">支付尾款</view>
697 </block> 698 </block>
698 </block> 699 </block>
699 <!---<view bindtap="openSpecModel" class="buy-btn cart-btn cart-btn-lg" wx:else>立即兑换</view>--> 700 <!---<view bindtap="openSpecModel" class="buy-btn cart-btn cart-btn-lg" wx:else>立即兑换</view>-->
pages/team/team_success/team_success.wxml
@@ -157,11 +157,9 @@ @@ -157,11 +157,9 @@
157 <button wx:if="{{p_status==1}}" style='background-color:#fab55a; color:#fff'> 157 <button wx:if="{{p_status==1}}" style='background-color:#fab55a; color:#fff'>
158 邀请好友参团 158 邀请好友参团
159 </button> 159 </button>
160 - <button style='background-color:#42c780;' wx:if="{{p_status==2}}"> 160 + <button style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}">
161 支付尾款 161 支付尾款
162 - </button>  
163 -  
164 - 162 + </button>
165 </view> 163 </view>
166 <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> --> 164 <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> -->
167 165
pages/team/team_success/team_success.wxss
@@ -234,15 +234,12 @@ width:101rpx; @@ -234,15 +234,12 @@ width:101rpx;
234 } 234 }
235 235
236 .bodybutton{ 236 .bodybutton{
237 - min-height: 60rpx;  
238 width: 90%; 237 width: 90%;
239 margin: 0 auto; 238 margin: 0 auto;
240 text-align: center; 239 text-align: center;
241 line-height: 60rpx; 240 line-height: 60rpx;
242 border-radius:15rpx; 241 border-radius:15rpx;
243 - height: auto;  
244 -  
245 - 242 + height: auto;
246 } 243 }
247 244
248 .bodybutton button{ 245 .bodybutton button{
pages/user/order_detail/order_detail.js
@@ -178,4 +178,9 @@ Page({ @@ -178,4 +178,9 @@ Page({
178 _errObj[_errImg] = "public/images/default_goods_image_240.gif"; 178 _errObj[_errImg] = "public/images/default_goods_image_240.gif";
179 this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; 179 this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
180 }, 180 },
  181 +
  182 + zfwk:function(){
  183 + var url = "/pages/cart/cart_wk/cart_wk?order_id=" + this.data.order.order_id;
  184 + getApp().goto(url);
  185 + }
181 }); 186 });
182 \ No newline at end of file 187 \ No newline at end of file
pages/user/order_detail/order_detail.wxml
  1 +<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
1 <view class="container"> 2 <view class="container">
2 <view class="user-mes" wx:if="{{order.exp_type==0}}"> 3 <view class="user-mes" wx:if="{{order.exp_type==0}}">
3 <view class="user-contact"> 4 <view class="user-contact">
@@ -61,6 +62,32 @@ @@ -61,6 +62,32 @@
61 </view> 62 </view>
62 <view class="price-information information"> 63 <view class="price-information information">
63 <view class="title">价格信息</view> 64 <view class="title">价格信息</view>
  65 + <block wx:if="{{order.is_zsorder==4}}">
  66 + <view class="item">
  67 + <view>商品总价</view>
  68 + <view>¥ {{filters.toFix(order.order_goods[0].member_goods_price*order.order_goods[0].goods_num,2)}}元</view>
  69 + </view>
  70 + <view class="item">
  71 + <view>定金金额</view>
  72 + <view>¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view>
  73 + </view>
  74 + <view class="item" wx:if="{{order.pt_tail_money>0}}">
  75 + <view>尾款金额</view>
  76 + <view>¥ {{order.pt_tail_money}}元</view>
  77 + </view>
  78 +
  79 + <view class="item" wx:if="{{order.pt_tail_money>0}}">
  80 + <view>订单总价</view>
  81 + <view>¥ {{order.pt_tail_money}}元</view>
  82 + </view>
  83 +
  84 + <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>
64 <view class="item"> 91 <view class="item">
65 <view>商品总价</view> 92 <view>商品总价</view>
66 <view>¥ {{order.goods_price}}元</view> 93 <view>¥ {{order.goods_price}}元</view>
@@ -71,34 +98,32 @@ @@ -71,34 +98,32 @@
71 </view> 98 </view>
72 <view class="item" wx:if="{{order.coupon_price>0}}"> 99 <view class="item" wx:if="{{order.coupon_price>0}}">
73 <view>优惠券</view> 100 <view>优惠券</view>
74 - <view>- ¥ {{order.coupon_price}}元</view> 101 + <view> ¥ {{order.coupon_price}}元</view>
75 </view> 102 </view>
76 <view class="item" wx:if="{{order.integral_money>0}}"> 103 <view class="item" wx:if="{{order.integral_money>0}}">
77 <view>积分</view> 104 <view>积分</view>
78 - <view>- ¥ {{order.integral_money}}元</view> 105 + <view> ¥ {{order.integral_money}}元</view>
79 </view> 106 </view>
80 <view class="item" wx:if="{{order.user_money>0}}"> 107 <view class="item" wx:if="{{order.user_money>0}}">
81 <view>余额</view> 108 <view>余额</view>
82 - <view>- ¥ {{order.user_money}}元</view> 109 + <view> ¥ {{order.user_money}}元</view>
83 </view> 110 </view>
84 <view class="item" wx:if="{{order.order_prom_amount>0}}"> 111 <view class="item" wx:if="{{order.order_prom_amount>0}}">
85 <view>订单优惠</view> 112 <view>订单优惠</view>
86 - <view>- ¥ {{order.order_prom_amount}}元</view>  
87 - </view>  
88 - <view class="item" wx:if="{{order.pt_tail_money>0}}">  
89 - <view>尾款金额</view>  
90 - <view>- ¥ {{order.pt_tail_money}}元</view> 113 + <view>¥ {{order.order_prom_amount}}元</view>
91 </view> 114 </view>
92 -  
93 - 115 +
94 <view class="item"> 116 <view class="item">
95 <view>实付金额</view> 117 <view>实付金额</view>
96 <view class="pay-amount">¥ {{order.order_amount}}元</view> 118 <view class="pay-amount">¥ {{order.order_amount}}元</view>
97 </view> 119 </view>
  120 +
  121 +
  122 + </block>
98 </view> 123 </view>
99 124
100 <view class="btn-wrap"> 125 <view class="btn-wrap">
101 - <view bindtap="zfwk" class="tips-btn" wx:if="{{order.pt_tail_money>0}}">支付尾款</view> 126 + <view bindtap="zfwk" class="tips-btn" wx:if="{{order.pt_tail_money>0 && order.pt_status==2 }}">支付尾款</view>
102 <view bindtap="jumpToCart4" class="tips-btn" hidden="{{!order.pay_btn}}">立即付款</view> 127 <view bindtap="jumpToCart4" class="tips-btn" hidden="{{!order.pay_btn}}">立即付款</view>
103 <navigator bindtap="confirmOrder" class="tips-btn" hidden="{{!order.receive_btn}}">收货确认</navigator> 128 <navigator bindtap="confirmOrder" class="tips-btn" hidden="{{!order.receive_btn}}">收货确认</navigator>
104 <navigator class="tips-btn" hidden="{{!order.shipping_btn}}" url="/pages/user/express/express?order_id={{order.order_id}}">查看物流</navigator> 129 <navigator class="tips-btn" hidden="{{!order.shipping_btn}}" url="/pages/user/express/express?order_id={{order.order_id}}">查看物流</navigator>
pages/user/order_list/order_list.wxml
  1 +<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
1 <view class="container"> 2 <view class="container">
2 <view class="type-navbar"> 3 <view class="type-navbar">
3 <view class="type-box" wx:for="{{categories}}" wx:key="{{index}}"> 4 <view class="type-box" wx:for="{{categories}}" wx:key="{{index}}">
@@ -48,8 +49,15 @@ @@ -48,8 +49,15 @@
48 <view class="goods-tips"> 49 <view class="goods-tips">
49 <view class="order-total"> 50 <view class="order-total">
50 共{{item.g_num}}件,<view class="goods-total"> 51 共{{item.g_num}}件,<view class="goods-total">
51 - <view>金额:¥{{item.order_amount+item.user_money}}</view> 52 + <block wx:if="{{item.pt_status==4 || item.pt_status==5 }}">
  53 + <view>金额:¥{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}</view>
  54 + </block>
  55 + <block wx:else>
  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>
52 <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>
  60 +
53 </view> 61 </view>
54 </view> 62 </view>
55 <view class="check-btn"> 63 <view class="check-btn">
pages/user/order_list/order_list.wxss
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 .goods-box { 36 .goods-box {
37 width: 100%; 37 width: 100%;
38 background-color: #fff; 38 background-color: #fff;
39 - padding: 0 30rpx; 39 + padding: 0 25rpx;
40 margin-bottom: 20rpx; 40 margin-bottom: 20rpx;
41 font-size: 28rpx; 41 font-size: 28rpx;
42 border-bottom: 1rpx solid #eee; 42 border-bottom: 1rpx solid #eee;
@@ -117,7 +117,7 @@ @@ -117,7 +117,7 @@
117 .order-total { 117 .order-total {
118 display: flex; 118 display: flex;
119 justify-content: flex-start; 119 justify-content: flex-start;
120 - font-size: 32rpx; 120 + font-size: 31rpx;
121 color: #333; 121 color: #333;
122 } 122 }
123 123
@@ -127,12 +127,12 @@ @@ -127,12 +127,12 @@
127 } 127 }
128 128
129 .order-btn { 129 .order-btn {
130 - width: 150rpx; 130 + width: 125rpx;
131 height: 60rpx; 131 height: 60rpx;
132 line-height: 60rpx; 132 line-height: 60rpx;
133 text-align: center; 133 text-align: center;
134 border: 1px solid #eee; 134 border: 1px solid #eee;
135 - margin-left: 20rpx; 135 + margin-left: 10rpx;
136 float: right; 136 float: right;
137 border-radius: 5rpx; 137 border-radius: 5rpx;
138 } 138 }