1
This commit is contained in:
@@ -575,27 +575,32 @@
|
||||
},
|
||||
toDetail(item) {
|
||||
let itemS = encodeURIComponent(JSON.stringify(item))
|
||||
console.log(itemS)
|
||||
if (uni.getStorageSync('user')) {
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
fail: (err) => {},
|
||||
success: () => {}
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '请您登录',
|
||||
content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
||||
confirmText: '去登陆',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.reLaunch({
|
||||
url: '../../../BagAuth/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
fail: (err) => {},
|
||||
success: () => {}
|
||||
})
|
||||
// console.log(itemS)
|
||||
// if (uni.getStorageSync('user')) {
|
||||
// uni.navigateTo({
|
||||
// url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
// fail: (err) => {},
|
||||
// success: () => {}
|
||||
// })
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// title: '请您登录',
|
||||
// content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
||||
// confirmText: '去登陆',
|
||||
// success: (res) => {
|
||||
// if (res.confirm) {
|
||||
// uni.reLaunch({
|
||||
// url: '../../../BagAuth/pages/login/login?loginType=true'
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
},
|
||||
getFilterData() {
|
||||
oilSiteApi.getCheckInfo().then(res => {
|
||||
|
||||
@@ -426,31 +426,40 @@
|
||||
|
||||
},
|
||||
toDetail(item) {
|
||||
let itemS = encodeURIComponent(JSON.stringify(item))
|
||||
if (uni.getStorageSync('user')) {
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
fail: (err) => {
|
||||
// console.log(err)
|
||||
},
|
||||
success: () => {
|
||||
// console.log('err')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '请您登录',
|
||||
content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
||||
confirmText: '去登陆',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.reLaunch({
|
||||
url: '../../../BagAuth/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
let itemS = encodeURIComponent(JSON.stringify(item));
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
fail: (err) => {
|
||||
// console.log(err)
|
||||
},
|
||||
success: () => {
|
||||
// console.log('err')
|
||||
}
|
||||
})
|
||||
// if (uni.getStorageSync('user')) {
|
||||
// uni.navigateTo({
|
||||
// url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
// fail: (err) => {
|
||||
// // console.log(err)
|
||||
// },
|
||||
// success: () => {
|
||||
// // console.log('err')
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// title: '请您登录',
|
||||
// content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
||||
// confirmText: '去登陆',
|
||||
// success: (res) => {
|
||||
// if (res.confirm) {
|
||||
// uni.reLaunch({
|
||||
// url: '../../../BagAuth/pages/login/login?loginType=true'
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
},
|
||||
nameSelect(value, item) {
|
||||
this.title2 = item.text
|
||||
|
||||
@@ -121,9 +121,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="xu-content card-menu margin margin-bottom-xs radius my-shadow">
|
||||
<!-- <view class="xu-content card-menu margin margin-bottom-xs radius my-shadow">
|
||||
<view class=" cu-list sm-border grid col-4 no-border ">
|
||||
<view class="cu-item">
|
||||
<view @click="clickFn" class="cu-item">
|
||||
<view class=" padding-tb-0">
|
||||
<view class="image-self-view">
|
||||
<img :src="starUrl+'wd-ic-1.png'" lazy-load class="png" mode="widthFix"></img>
|
||||
@@ -131,7 +131,7 @@
|
||||
</view>
|
||||
<text>红包卡券</text>
|
||||
</view>
|
||||
<view class="cu-item">
|
||||
<view @click="clickFn" class="cu-item">
|
||||
<view class=" padding-tb-0">
|
||||
<view class="image-self-view">
|
||||
<img :src="starUrl+'wd-ic-2.png'" lazy-load class="png" mode="widthFix"></img>
|
||||
@@ -139,7 +139,7 @@
|
||||
</view>
|
||||
<text>活动通知</text>
|
||||
</view>
|
||||
<view class="cu-item">
|
||||
<view @click="clickFn" class="cu-item">
|
||||
<view class=" padding-tb-0">
|
||||
<view class="image-self-view">
|
||||
<img :src="starUrl+'wd-ic-3.png'" lazy-load class="png" mode="widthFix"></img>
|
||||
@@ -147,7 +147,7 @@
|
||||
</view>
|
||||
<text>推荐有礼</text>
|
||||
</view>
|
||||
<view class="cu-item" @tap="goToPage('/BagAuth/pages/agreeMent/OperationGuide')">
|
||||
<view class="cu-item" @tap="goToPage('/BagAuth/pages/agreeMent/OperationGuide')">
|
||||
<view class=" padding-tb-0">
|
||||
<view class="image-self-view">
|
||||
<img :src="starUrl+'wd-ic-4.png'" lazy-load class="png" mode="widthFix"></img>
|
||||
@@ -156,7 +156,7 @@
|
||||
<text>操作说明</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="xu-content padding-sm">
|
||||
<view class="cu-list menu">
|
||||
<view class="cu-item hidden-cu-item">
|
||||
@@ -173,12 +173,12 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-item arrow">
|
||||
<!-- <view @click="clickFn" class="cu-item arrow">
|
||||
<view class="content">
|
||||
<image :src="starUrl+'gywm.png'" class="png" mode="aspectFit"></image>
|
||||
<text class="text-grey padding-left-sm">关于我们</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -207,7 +207,21 @@
|
||||
this.getAmount()
|
||||
},
|
||||
methods: {
|
||||
clickFn(e){
|
||||
uni.showToast({
|
||||
title:'功能正在开发中',
|
||||
icon:'none'
|
||||
})
|
||||
},
|
||||
goToPage(url) {
|
||||
const token = uni.getStorageSync('Authorization')
|
||||
if(!token){
|
||||
uni.showToast({
|
||||
title:'功能正在开发中',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!url) return;
|
||||
uni.navigateTo({
|
||||
url
|
||||
@@ -228,7 +242,7 @@
|
||||
this.routerTo('/BagSetup/setup/setup')
|
||||
}else{
|
||||
uni.reLaunch({
|
||||
url:'../../../BagAuth/pages/login/login'
|
||||
url:'../../../BagAuth/pages/login/login?loginType=true'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user