-
Status changed to merged
-
mentioned in commit 42464d23a2ac94b220603d5fdadde4ad179e9bef
-
Dev See merge request !32
Showing
3 changed files
pages/cart/cart2/cart2.js
| ... | ... | @@ -625,7 +625,10 @@ Page({ |
| 625 | 625 | } |
| 626 | 626 | |
| 627 | 627 | th.data.cartlist[i].user_money = parseFloat(th.data.cartlist[i].user_money).toFixed(2); |
| 628 | - th.data.cartlist[i].coupon_price=coupon_price.toFixed(2); | |
| 628 | + | |
| 629 | + if (coupon_price>0) th.data.cartlist[i].coupon_price=coupon_price.toFixed(2); | |
| 630 | + else th.data.cartlist[i].coupon_price = coupon_price | |
| 631 | + | |
| 629 | 632 | th.data.cartlist[i].goods_price = o_price.toFixed(2); |
| 630 | 633 | th.data.cartlist[i].order_amount= th.data.cartlist[i].order_amount- th.data.cartlist[i].user_money; //会员使用余额 |
| 631 | 634 | ... | ... |
pages/user/order_detail/order_detail.js
pages/user/order_list/order_list.js
| ... | ... | @@ -252,7 +252,7 @@ Page({ |
| 252 | 252 | var th=this; |
| 253 | 253 | var order_id=t.currentTarget.dataset.order_id; |
| 254 | 254 | wx.showModal({ |
| 255 | - title: "是否取消订单?", | |
| 255 | + title: "是否删除订单?", | |
| 256 | 256 | success: function(tt) { |
| 257 | 257 | tt.confirm && rq.put("/api/weshop/order/updatebyId", { |
| 258 | 258 | data: { | ... | ... |