Browse Source

免运费计算

zhaoxiaohai 2 years ago
parent
commit
15029005dd

+ 1 - 2
packageA/shopping/modules/standard/index.wxml

@@ -37,8 +37,7 @@
             商品合计:<text>¥{{sum}}</text>
         </view>
         <view class="transport">
-            <!-- 运费(预估):<text>¥{{yfsum}}</text> -->
-            订单满{{figure}}免运费,当前{{sum>=figure?'已满足':'还差'+(figure-sum)+'元'}}
+            {{sum>=figure?'免运费':'差'+(figure-sum)+'元免运费'}}
         </view>
     </view>
     <picker wx:if="{{classList.length>=2}}" range='{{classList}}' range-key='name' disabled='{{!results.length}}' bindchange="submit">

+ 1 - 1
packageA/shopping/modules/tool/index.js

@@ -2,7 +2,7 @@ const _Http = getApp().globalData.http;
 let downCount = {};
 Component({
   properties: {
-
+    figure: Number
   },
   data: {
     isGet: false,

+ 1 - 1
packageA/shopping/modules/tool/index.wxml

@@ -38,7 +38,7 @@
             工具合计:<text>¥{{sum}}</text>
         </view>
         <view class="transport">
-            运费(预估):<text>¥{{yfsum}}</text>
+            {{sum>=figure?'免运费':'差'+(figure-sum)+'元免运费'}}
         </view>
     </view>
     <picker wx:if="{{classList.length>=2}}" range='{{classList}}' range-key='name' disabled='{{!results.length}}' bindchange="submit">