xiaozhiyong 8 months ago
parent 3c1fc03e1f
commit da0f4e6589
  1. 2
      BagStation/pages/stationDetail/stationDetail.vue
  2. 7
      pages/index/startPage/startPage.vue
  3. 29
      pages/tabbar/home/home.vue

@ -308,7 +308,7 @@
if (!user) {
uni.showModal({
title: '请您登录',
content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
content: "登录中品加油才可以加油 |˛˙꒳˙)♡",
confirmText: '去登陆',
success: (res) => {
if (res.confirm) {

@ -88,8 +88,11 @@
url: '/pages/tabbar/home/home',
})
} else {
uni.redirectTo({
url: '/BagAuth/pages/login/login'
// uni.redirectTo({
// url: '/BagAuth/pages/login/login'
// })
uni.switchTab({
url: '/pages/tabbar/home/home',
})
}
}

@ -325,7 +325,10 @@
if (resSec.confirm) {
uni.openSetting({
success: (resThird) => {
if (resThird.authSetting['scope.userLocation']) {
if (resThird
.authSetting[
'scope.userLocation'
]) {
this.refreshLocation()
}
}
@ -376,10 +379,26 @@
showQr() {
const user = uni.getStorageSync('user');
if (!user) {
uni.showToast({
title: '请先登录!',
icon: 'none'
})
return
}
this.showThreeSites = true
},
toCards() {
const user = uni.getStorageSync('user');
if (!user) {
uni.showToast({
title: '请先登录!',
icon: 'none'
})
return
}
uni.navigateTo({
url: '/BagMoney/pages/oilCards/oilCards'
})
@ -494,6 +513,14 @@
},
openScan() {
const user = uni.getStorageSync('user');
if (!user) {
uni.showToast({
title: '请先登录!',
icon: 'none'
})
return
}
uni.scanCode({
scanType: 'qrCode',
onlyFromCamera: false,

Loading…
Cancel
Save