xiaomei 1 рік тому
батько
коміт
47b98e59a3

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

@@ -206,7 +206,7 @@ export default {
             })
         },
         getIntegral(){
-            post("local/getIntegral",{type:1}).then(res=>{
+            post("local/getIntegral",{type:1,brand_id:this.orderDetail.brand_id}).then(res=>{
                 if (res.code == 0) {
                     let va = res.data.integral
                     this.Integral = this.$h.Mul(va,100);

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

@@ -64,6 +64,7 @@ export default {
             deduction: 0,
             actuallypaid: 0,
             chabao: 0,
+            brand_id: ""
         };
     },
     methods: {
@@ -75,7 +76,7 @@ export default {
             })
         },
         getIntegral(){
-            post("local/getIntegral",{type:1}).then(res=>{
+            post("local/getIntegral",{type:1,brand_id: this.brand_id}).then(res=>{
                 if (res.code == 0) {
                     let i1 = res.data.integral, i2 = res.data.chabao;
                     this.Integral = this.$h.Mul(i1,100);
@@ -180,6 +181,7 @@ export default {
         this.getuserInfo();
     },
     onLoad(da) {
+        this.brand_id = da.brand_id;
         this.getMerchant(da);
         this.getCartList(da.restaurant_id);
     },