|
|
|
@ -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, |
|
|
|
|