Parcourir la source

加法精度引发问题处理

DaMowang il y a 2 ans
Parent
commit
8b7ff481be

+ 1 - 1
src/pages/cash/index.vue

@@ -7,7 +7,7 @@
             <view class="option flex_r flex_ac flex_jb">
                 <view class="balance flex_r flex_ac">
                     <span>账户{{ islocal?'余额':'云宝' }}:{{ user_money }}</span>
-                    <span v-if="islocal">可提:{{ available_money }}</span>
+                    <span v-if="islocal">可提额度:{{ available_money }}</span>
                 </view>
                 <view class="option_text" @tap="getListPage">提现记录</view>
             </view>

+ 1 - 1
src/pagesB/orderingfood/orderingfood.vue

@@ -542,7 +542,7 @@ export default {
                         itm.spec = JSON.parse(itm.spec)
                     })
                     this.cartList = data;
-                    this.cartTotal = totals.toFixed(2);
+                    this.cartTotal = totals;
                     this.cartNumber = number;
                 }
             })

+ 2 - 2
src/request/config.js

@@ -15,6 +15,6 @@ if (process.env.UNI_PLATFORM === "h5") {
 export default apis == 1 ? {
 	Hhost: "https://shop-api.haocha13.cn/",
 } : {
-	Hhost: "https://shop-api.haocha13.cn/",  //正式接口
-	// Hhost: "https://test-api.haocha13.cn/",
+	// Hhost: "https://shop-api.haocha13.cn/",  //正式接口
+	Hhost: "https://test-api.haocha13.cn/",
 }