From a369c89237035435c1fddca5a506b1dbf57396d5 Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Tue, 5 Dec 2023 10:46:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
gasStation-uni/pages/index/index.vue | 4 ++++
gasStation-uni/pagesRefuel/pagesRefuel/index.vue | 7 ++++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue
index f3fbe2cc8..680b0ba36 100644
--- a/gasStation-uni/pages/index/index.vue
+++ b/gasStation-uni/pages/index/index.vue
@@ -232,6 +232,9 @@
}).then((response) => {
_this.store = response.data
let welfare = response.data.welfare
+ console.log(response.data)
+ uni.setStorageSync("chainStoreId",response.data.chainStoreId)
+ console.log(uni.getStorageSync("chainStoreId"),2)
if (welfare != undefined && welfare != null && welfare != "") {
if (welfare.includes(",")) {
_this.welfare = response.data.welfare.split(",")
@@ -267,6 +270,7 @@
_this.distance = (Math.ceil(response.data.distance)).toFixed(1)
_this.store = response.data.store
uni.setStorageSync("storeId", response.data.store.id)
+ uni.setStorageSync("chainStoreId",response.data.store.chainStoreId)
let welfare = response.data.store.welfare
if (welfare != undefined && welfare != null && welfare != "") {
if (welfare.includes(",")) {
diff --git a/gasStation-uni/pagesRefuel/pagesRefuel/index.vue b/gasStation-uni/pagesRefuel/pagesRefuel/index.vue
index f2825b518..50fde9019 100644
--- a/gasStation-uni/pagesRefuel/pagesRefuel/index.vue
+++ b/gasStation-uni/pagesRefuel/pagesRefuel/index.vue
@@ -61,7 +61,7 @@
- 去加油
+ 去加油
@@ -133,8 +133,9 @@
})
},
// 跳转一键加油页面
- toRefuel(id){
- uni.setStorageSync("storeId",id)
+ toRefuel(data){
+ uni.setStorageSync("storeId",data.id)
+ uni.setStorageSync("chainStoreId",data.chainStoreId)
uni.navigateTo({
url: '/pages/refuel/refuel'
})