diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index afc1c177e..f3fbe2cc8 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -147,9 +147,9 @@ latitude: "", // 店铺信息 store: { - name:"测试油站", - description:"济南分店", - address:"济南槐荫区" + name: "测试油站", + description: "济南分店", + address: "济南槐荫区" }, // 店铺福利信息 welfare: [], @@ -179,8 +179,9 @@ this.staffId = uni.getStorageSync("inviteStaffId") } this.isExistStoreId(); - this.getOilType(); + this.getUserAuthority(); + this.getOilType(); }, onShow() { // this.isExistStoreId(); @@ -240,7 +241,7 @@ } }).catch((res) => { uni.showLoading({ - title:res+"---"+1 + title: res + "---" + 1 }) }) }, @@ -285,10 +286,13 @@ //获取油站的油号信息 getOilType() { + let params = { + storeId: uni.getStorageSync("storeId") + } request({ url: 'business/petrolStationManagement/oilNumber/getList2', method: 'get', - // params:{} + params: params }).then((res) => { if (res.code == 200) { this.oilTypeList = res.data.records @@ -346,7 +350,7 @@ url: '/pagesHome/PointsMall/PointsMall' }) }, - toQRcode(){ + toQRcode() { uni.navigateTo({ url: '/pagesHome/QRcode/QRcode' })