This commit is contained in:
caolc
2023-05-06 11:18:15 +08:00
parent 8874f28bd4
commit fea1c29b96
10 changed files with 303 additions and 303 deletions

View File

@@ -11,8 +11,7 @@
<text :class="PageCur=='home'?'text-red':'text-gray'">
加油站
</text>
</view>
</view>
<view class="action text-gray add-action" @tap="NavChange" data-cur="scan">
<button class="cu-btn cuIcon-scan sl shadow" :class="PageCur=='scan'?'bg-main-oil':'bg-gradual-orange'"></button>
<text :class="PageCur=='scan'?'text-red':'text-gray'">
@@ -63,22 +62,10 @@
url: '../../packageOrders/pages/printTicket/printTicket'
})
},
onShow() {
// uni.showToast({
// title:'这里是show'
// })
//console.log('这里是indexonshow')
uni.setStorageSync('orderType',null)
// uni.preloadPage({url: "/pages/station-info/scan-camera/scan-camera"});
onShow() {
const token = uni.getStorageSync('Authorization')
const openid = uni.getStorageSync('device')
// //console.log('++++++++++++')
// //console.log(token)
// //console.log(openid)
// //console.log('++++++++++++')
if (token && openid) {
// this.getUserInfo()
// this.getSiteInfo()
const openid = uni.getStorageSync('device')
if (token && openid) {
} else {
uni.showToast({
title: '您还没有登录哦',
@@ -87,11 +74,9 @@
setTimeout(function() {
uni.reLaunch({
url: '/pages/login/boforeLogin/boforeLogin',
success: () => {
//console.log('跳转成功')
success: () => {
},
fail: (err) => {
//console.log(err)
fail: (err) => {
}
})
}, 1500);
@@ -253,6 +238,11 @@
NavChange: function(e) {
this.PageCur = e.currentTarget.dataset.cur
if (this.PageCur == "scan") {
uni.showToast({
title:'功能开发中',
icon:'none'
});
return
this.scanQr()
}
},