From 38a53cad0d79517b03fe8176bfd122fea8a684a7 Mon Sep 17 00:00:00 2001 From: F5VT98DI7XY4X12\Administrator <765199919@qq.com> Date: Thu, 5 Sep 2019 21:48:43 +0800 Subject: [PATCH] 小程序BUG 修改 --- pages/cart/cart2_pt/cart2_pt.wxml | 9 +++++++-- pages/cart/cart_wk/cart_wk.js | 7 ++++++- pages/cart/cart_wk/cart_wk.wxml | 9 ++++----- pages/goods/goodsInfo/goodsInfo.wxml | 28 +++++++++++++++++++--------- pages/goods/goodsInfo/goodsInfo.wxss | 20 +++++++++++--------- pages/team/team_ping/team_ping.wxml | 2 +- pages/user/address_list/address_list.wxml | 2 +- pages/user/order_detail/order_detail.wxml | 9 +++++---- pages/user/order_list/order_list.wxml | 6 +++--- utils/util.js | 2 ++ 10 files changed, 59 insertions(+), 35 deletions(-) diff --git a/pages/cart/cart2_pt/cart2_pt.wxml b/pages/cart/cart2_pt/cart2_pt.wxml index a6a51a1..a61ed73 100644 --- a/pages/cart/cart2_pt/cart2_pt.wxml +++ b/pages/cart/cart2_pt/cart2_pt.wxml @@ -91,15 +91,20 @@ - + 商品金额 ¥ {{formData.all_price}}元 + + + 定金金额 + ¥ {{formData.all_price}}元 + + 配送费用 ¥ {{formData.shipping_price}}元 - 使用余额 - ¥ {{formData.user_money}}元 diff --git a/pages/cart/cart_wk/cart_wk.js b/pages/cart/cart_wk/cart_wk.js index dafbfea..cb71c0f 100644 --- a/pages/cart/cart_wk/cart_wk.js +++ b/pages/cart/cart_wk/cart_wk.js @@ -35,6 +35,8 @@ Page({ allpice:0, show_pay_type:0, + + teamgroup: null, }, /** @@ -243,7 +245,8 @@ Page({ distr_type: distr_type, pickup: pickup, exp_type: exp_type, - goods:goods + goods:goods, + teamgroup:teamgroup }); //--计算物流-- @@ -417,6 +420,8 @@ Page({ var exp_price = parseFloat(shipping_price).toFixed(2); allpice=parseFloat(exp_price)+parseFloat(allpice); allpice=allpice.toFixed(2); + + exp_price = parseFloat(exp_price); th.setData({ exp_price: exp_price,allpice:allpice }) }else { var allpice=th.data.order.order_amount+th.data.order.user_money+th.data.order.pt_tail_money; diff --git a/pages/cart/cart_wk/cart_wk.wxml b/pages/cart/cart_wk/cart_wk.wxml index adccd77..2e17de5 100644 --- a/pages/cart/cart_wk/cart_wk.wxml +++ b/pages/cart/cart_wk/cart_wk.wxml @@ -75,11 +75,11 @@ 成团人数 - 1 + {{teamgroup.jt_ct_num}} 成团单价 - {{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money,2)}} + {{filters.toFix(order.order_amount+order.user_money+order.tail_money,2)}} 支付定金 @@ -92,7 +92,7 @@ 尾款金额 - {{order.pt_tail_money}} + {{order.tail_money}} @@ -107,7 +107,7 @@ 支付合计: - ¥{{allpice}} + ¥{{order.tail_money+exp_price}} 支付尾款 @@ -126,5 +126,4 @@ - \ No newline at end of file diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index 90ce198..b1bbff4 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -267,7 +267,7 @@ 零售价¥{{data.market_price}} - 已抢:{{prom_act.buy_num}}件 + 已抢:{{prom_act.buy_num+prom_act.virtual}}件 秒杀立省¥{{filters.toFix(data.market_price-prom_price,2)}} @@ -281,9 +281,19 @@ - 总数量:{{prom_act.goods_num}}件 - 限购:{{prom_act.buy_limit}}件 - 已购:{{prom_act.buy_num}}件 + + + 总数量:{{prom_act.goods_num+prom_act.virtual}}件 + 限购:{{prom_act.buy_limit}}件 + 已购:{{prom_act.buy_num+prom_act.virtual}}件 + + + + 总数量:{{prom_act.goods_num}}件 + 限购:{{prom_act.buy_limit}}件 + 已购:{{prom_act.buy_num}}件 + + @@ -714,7 +724,7 @@ - {{data.goods_name}} + ¥ {{sele_g.shop_price}} ¥ {{prom_price}} @@ -723,7 +733,8 @@ 已选:{{sku_g[0].gg}} - 已售:{{prom_act.buy_num+prom_act.virtual}} + 已售:{{prom_act.buy_num+prom_act.virtual}} + 已售:{{prom_act.buy_num}} 可售:{{prom_act.goods_num-prom_act.buy_num}} 已选:{{sku_g[0].gg}} @@ -799,9 +810,8 @@ - {{data.goods_name}} - ¥ {{sele_g.shop_price}} - + + ¥ {{sele_g.shop_price}} ¥ {{prom_price}} diff --git a/pages/goods/goodsInfo/goodsInfo.wxss b/pages/goods/goodsInfo/goodsInfo.wxss index 8000c08..71c8b6f 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxss +++ b/pages/goods/goodsInfo/goodsInfo.wxss @@ -505,13 +505,13 @@ view.cart-btn-lg { /* padding: 0 30rpx; */ font-size: 32rpx; box-sizing: border-box; - overflow-x: hidden; + } .spec-model .pding{padding: 0 30rpx;} .spec-goods { - padding: 15rpx 0 30rpx; + padding: 15rpx 0 10rpx; float: left; width: 100%; border-bottom: 1px solid #f8f8f8; @@ -519,15 +519,17 @@ view.cart-btn-lg { .spec-img { float: left; - height: 150rpx; - width: 150rpx; - margin-top: 16rpx; + height: 186rpx; + width: 186rpx; + position: relative; + top:-40rpx; + border: 4rpx solid #eee } .spec-goods-info { float: left; padding: 0 25rpx; - width: 490rpx; + width: 400rpx; } .spec-goods-name { @@ -541,13 +543,13 @@ view.cart-btn-lg { .spec-goods-price { color: #ec5151; - font-size: 30rpx; + font-size: 33rpx; font-weight: bold; } .spec-goods-stock { - margin-top: 10rpx; - font-size: 26rpx; + margin-top: 3rpx; + font-size: 24rpx; color: #999999; } diff --git a/pages/team/team_ping/team_ping.wxml b/pages/team/team_ping/team_ping.wxml index 4f60b02..15b31b4 100644 --- a/pages/team/team_ping/team_ping.wxml +++ b/pages/team/team_ping/team_ping.wxml @@ -65,7 +65,7 @@ 共{{item.order_goods[0].goods_num}}件, - 定金: + 金额: {{filters.toFix(item.user_money+item.order_amount+item.pt_tail_money,2)}} diff --git a/pages/user/address_list/address_list.wxml b/pages/user/address_list/address_list.wxml index 72ca32c..abb0994 100644 --- a/pages/user/address_list/address_list.wxml +++ b/pages/user/address_list/address_list.wxml @@ -6,7 +6,7 @@ 电话:{{item.mobile}} - {{item.province_name}} {{item.city_name}} {{item.district_name}} {{item.twon_name}} {{item.address}} + {{item.more_address}} {{item.address}} diff --git a/pages/user/order_detail/order_detail.wxml b/pages/user/order_detail/order_detail.wxml index 9ebf674..b5cb8fd 100644 --- a/pages/user/order_detail/order_detail.wxml +++ b/pages/user/order_detail/order_detail.wxml @@ -71,13 +71,13 @@ ¥ {{order.goods_price}}元 - + 定金金额 ¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元 尾款金额 - ¥ {{order.pt_tail_money}}元 + ¥ {{filters.toFix(order.pt_tail_money-order.shipping_price,2)}}元 @@ -101,13 +101,14 @@ 订单总价 - ¥ {{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money)}}元 + ¥ {{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money,2)}}元 使用余额 - ¥ {{order.user_money}}元 + ¥ {{order.user_money+order.pt_tail_money}}元 + ¥ {{order.user_money}}元 diff --git a/pages/user/order_list/order_list.wxml b/pages/user/order_list/order_list.wxml index 4136502..14d1e92 100644 --- a/pages/user/order_list/order_list.wxml +++ b/pages/user/order_list/order_list.wxml @@ -24,8 +24,8 @@ data-errorimg="orderList[{{index}}].order_goods[{{pinx}}].original_img"> - {{goods.goods_name}} - {{goods.goods_color}} {{goods.goods_spec}} + {{goods.goods_name}} + {{goods.goods_color}} {{goods.goods_spec}} ¥ {{goods.member_goods_price}} 数量 {{goods.goods_num}} @@ -55,7 +55,7 @@ 定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}} 金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}} - 尾款:¥{{item.pt_tail_money}} + 尾款:¥{{filters.toFix(item.pt_tail_money-item.shipping_price,2)}} diff --git a/utils/util.js b/utils/util.js index 190adb8..9d1d4a5 100644 --- a/utils/util.js +++ b/utils/util.js @@ -6,6 +6,7 @@ function isArray(obj) { return (typeof obj == 'object') && obj.constructor == Array; } + function sub_last(str){ return str.substring(0, str.length - 1) } @@ -336,4 +337,5 @@ module.exports = { sub_last: sub_last,//去掉末尾一个字符 measureText: measureText,//画布需要的函数 check_mobile: check_mobile,//验证手机 + }; -- libgit2 0.21.4