Commit 83cf3dbda487bd0525bc7b157e95bbff6531b5fb

Authored by abson
1 parent a8d2d181

qa oa单优化

packageC/pages/luckyGo/luckyGo_cart/luckyGo_cart.js
@@ -1374,7 +1374,7 @@ Page({ @@ -1374,7 +1374,7 @@ Page({
1374 o_price += item[j].goods_price * item[j].goods_num; 1374 o_price += item[j].goods_price * item[j].goods_num;
1375 1375
1376 //判断是否有设置限制重量包邮 1376 //判断是否有设置限制重量包邮
1377 - if(item[j]['is_past']!==1 && item[j]['exp_sum_type']==2 && weight_free>0){ 1377 + if(item[j]['is_past']!==1 && item[j]['exp_sum_type']==2){
1378 if (goods_weight < 0) goods_weight = 0; 1378 if (goods_weight < 0) goods_weight = 0;
1379 //累积商品重量 每种商品的重量 * 数量 1379 //累积商品重量 每种商品的重量 * 数量
1380 goods_weight += item[j]['weight'] * item[j]['goods_num']; 1380 goods_weight += item[j]['weight'] * item[j]['goods_num'];
pages/cart/cart/cart.wxml
@@ -41,7 +41,8 @@ @@ -41,7 +41,8 @@
41 <!-- 编辑 --> 41 <!-- 编辑 -->
42 <view class="padding flex-vertical-between fs30 Storenum store" style="justify-content:space-between"> 42 <view class="padding flex-vertical-between fs30 Storenum store" style="justify-content:space-between">
43 <view wx:if="{{freight_free}}" class="fs28 pdr20 pdl20 c-red2 flex jc_sb weight_free"> 43 <view wx:if="{{freight_free}}" class="fs28 pdr20 pdl20 c-red2 flex jc_sb weight_free">
44 - <text>全场满{{freight_free}}元可享包邮({{weight_free}}kg内)</text> 44 + <text wx:if="{{weight_free <=0}}">全场满{{freight_free}}元可享包邮</text>
  45 + <text wx:else>全场满{{freight_free}}元可享包邮({{weight_free}}kg内)</text>
45 </view> 46 </view>
46 <view wx:if="{{is_edit==0}}" bindtap="edit_cart" data-type="1">编辑</view> 47 <view wx:if="{{is_edit==0}}" bindtap="edit_cart" data-type="1">编辑</view>
47 <view wx:else bindtap="edit_cart" data-type="0">完成</view> 48 <view wx:else bindtap="edit_cart" data-type="0">完成</view>
pages/cart/cart2/cart2.js
@@ -1483,7 +1483,7 @@ Page({ @@ -1483,7 +1483,7 @@ Page({
1483 o_price += item[j].goods_price * item[j].goods_num; 1483 o_price += item[j].goods_price * item[j].goods_num;
1484 1484
1485 //判断是否有设置限制重量包邮,先看商品有没有包邮 1485 //判断是否有设置限制重量包邮,先看商品有没有包邮
1486 - if(item[j]['is_past']!==1 && item[j]['exp_sum_type']==2 && weight_free>0){ 1486 + if(item[j]['is_past']!==1 && item[j]['exp_sum_type']==2){
1487 if (goods_weight < 0) goods_weight = 0; 1487 if (goods_weight < 0) goods_weight = 0;
1488 //累积商品重量 每种商品的重量 * 数量 1488 //累积商品重量 每种商品的重量 * 数量
1489 goods_weight += item[j]['weight'] * item[j]['goods_num']; 1489 goods_weight += item[j]['weight'] * item[j]['goods_num'];
@@ -2482,8 +2482,8 @@ Page({ @@ -2482,8 +2482,8 @@ Page({
2482 //调用接口判断是不是会员 2482 //调用接口判断是不是会员
2483 await getApp().request.promiseGet("/api/weshop/shoppingGuide/getId/" + oo.stoid + "/" + gg.guide_id, {}).then(res => { 2483 await getApp().request.promiseGet("/api/weshop/shoppingGuide/getId/" + oo.stoid + "/" + gg.guide_id, {}).then(res => {
2484 if (res.data.code == 0) { 2484 if (res.data.code == 0) {
2485 - g_goods.guide_name = res.data.salesman;  
2486 - g_goods.guide_sn = res.data.salesman_no; 2485 + g_goods.guide_name = res.data.data.salesman;
  2486 + g_goods.guide_sn = res.data.data.salesman_no;
2487 } 2487 }
2488 }) 2488 })
2489 } 2489 }