|
|
@ -324,8 +324,11 @@ |
|
|
|
success: (resSec) => { |
|
|
|
success: (resSec) => { |
|
|
|
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, |
|
|
@ -654,4 +681,4 @@ |
|
|
|
.my-icon-sm .text-sm { |
|
|
|
.my-icon-sm .text-sm { |
|
|
|
line-height: 1rem; |
|
|
|
line-height: 1rem; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |