更新
This commit is contained in:
@@ -308,7 +308,7 @@
|
|||||||
if (!user) {
|
if (!user) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '请您登录',
|
title: '请您登录',
|
||||||
content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
content: "登录中品加油才可以加油 |˛˙꒳˙)♡",
|
||||||
confirmText: '去登陆',
|
confirmText: '去登陆',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
|
|||||||
@@ -88,8 +88,11 @@
|
|||||||
url: '/pages/tabbar/home/home',
|
url: '/pages/tabbar/home/home',
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
// uni.redirectTo({
|
||||||
url: '/BagAuth/pages/login/login'
|
// url: '/BagAuth/pages/login/login'
|
||||||
|
// })
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/tabbar/home/home',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -325,7 +325,10 @@
|
|||||||
if (resSec.confirm) {
|
if (resSec.confirm) {
|
||||||
uni.openSetting({
|
uni.openSetting({
|
||||||
success: (resThird) => {
|
success: (resThird) => {
|
||||||
if (resThird.authSetting['scope.userLocation']) {
|
if (resThird
|
||||||
|
.authSetting[
|
||||||
|
'scope.userLocation'
|
||||||
|
]) {
|
||||||
this.refreshLocation()
|
this.refreshLocation()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -376,10 +379,26 @@
|
|||||||
|
|
||||||
|
|
||||||
showQr() {
|
showQr() {
|
||||||
|
const user = uni.getStorageSync('user');
|
||||||
|
if (!user) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先登录!',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.showThreeSites = true
|
this.showThreeSites = true
|
||||||
},
|
},
|
||||||
|
|
||||||
toCards() {
|
toCards() {
|
||||||
|
const user = uni.getStorageSync('user');
|
||||||
|
if (!user) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先登录!',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/BagMoney/pages/oilCards/oilCards'
|
url: '/BagMoney/pages/oilCards/oilCards'
|
||||||
})
|
})
|
||||||
@@ -494,6 +513,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
openScan() {
|
openScan() {
|
||||||
|
const user = uni.getStorageSync('user');
|
||||||
|
if (!user) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先登录!',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
scanType: 'qrCode',
|
scanType: 'qrCode',
|
||||||
onlyFromCamera: false,
|
onlyFromCamera: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user