vtnttrx 1 год назад
Родитель
Сommit
265fcf4b59
2 измененных файлов с 7 добавлено и 2 удалено
  1. 1 1
      src/pages.json
  2. 6 1
      src/pagesB/orderingfood/fineFood.vue

+ 1 - 1
src/pages.json

@@ -256,7 +256,7 @@
 				{
 					"path": "orderingfood/fineFood",
 					"style": {
-						"navigationBarTitleText": "餐饮"
+						"navigationBarTitleText": ""
 					}
 				},
 				{

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

@@ -34,6 +34,7 @@ export default {
             },
             merchant: {},
             merchantList: [],
+            brandId: ''
         };
     },
     methods: {
@@ -54,7 +55,7 @@ export default {
         async getLocation() {
             let adres = await uni.Location();
             console.log("adres",adres);
-            this.Query = { ...this.Query, ...adres };
+            this.Query = { ...this.Query, ...adres, brand_id: this.brandId };
             this.getlists();
         },
         // 去店铺
@@ -67,7 +68,11 @@ export default {
         },
     },
     onLoad(da) {
+        this.brandId = da.brand_id
         this.getLocation();
+        uni.setNavigationBarTitle({
+            title: da.name,
+        });
     },
     onShow() {},
     mounted() {},