会员信息
This commit is contained in:
parent
f2aa5c9533
commit
a369c89237
@ -232,6 +232,9 @@
|
|||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
_this.store = response.data
|
_this.store = response.data
|
||||||
let welfare = response.data.welfare
|
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 != undefined && welfare != null && welfare != "") {
|
||||||
if (welfare.includes(",")) {
|
if (welfare.includes(",")) {
|
||||||
_this.welfare = response.data.welfare.split(",")
|
_this.welfare = response.data.welfare.split(",")
|
||||||
@ -267,6 +270,7 @@
|
|||||||
_this.distance = (Math.ceil(response.data.distance)).toFixed(1)
|
_this.distance = (Math.ceil(response.data.distance)).toFixed(1)
|
||||||
_this.store = response.data.store
|
_this.store = response.data.store
|
||||||
uni.setStorageSync("storeId", response.data.store.id)
|
uni.setStorageSync("storeId", response.data.store.id)
|
||||||
|
uni.setStorageSync("chainStoreId",response.data.store.chainStoreId)
|
||||||
let welfare = response.data.store.welfare
|
let welfare = response.data.store.welfare
|
||||||
if (welfare != undefined && welfare != null && welfare != "") {
|
if (welfare != undefined && welfare != null && welfare != "") {
|
||||||
if (welfare.includes(",")) {
|
if (welfare.includes(",")) {
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
<view class="bottom-icon">
|
<view class="bottom-icon">
|
||||||
<image src="../../static/icon/jiayou.png" mode=""></image>
|
<image src="../../static/icon/jiayou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="" @click="toRefuel(item.store.id)">去加油</view>
|
<view class="" @click="toRefuel(item.store)">去加油</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -133,8 +133,9 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 跳转一键加油页面
|
// 跳转一键加油页面
|
||||||
toRefuel(id){
|
toRefuel(data){
|
||||||
uni.setStorageSync("storeId",id)
|
uni.setStorageSync("storeId",data.id)
|
||||||
|
uni.setStorageSync("chainStoreId",data.chainStoreId)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/refuel/refuel'
|
url: '/pages/refuel/refuel'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user