This commit is contained in:
caolc
2023-07-05 18:19:02 +08:00
parent e883da3fff
commit cf253870a3
17 changed files with 861 additions and 343 deletions

View File

@@ -45,6 +45,10 @@
type: String,
default: ''
},
callBack:{
type:Function,
default:()=>null
},
isBack: {
type: [Boolean, String],
default: false
@@ -59,21 +63,25 @@
}
},
methods: {
BackPage() {
if(this.backCard == true){
uni.redirectTo({
url:'/BagMoney/pages/oilCards/oilCards'
})
return
}
if(this.isPay == true){
uni.switchTab({
url:'/pages/tabbar/station/stationList'
})
return
BackPage() {
if(this.callBack){
this.callBack()
}else{
if(this.backCard == true){
uni.redirectTo({
url:'/BagMoney/pages/oilCards/oilCards'
})
return
}
if(this.isPay == true){
uni.switchTab({
url:'/pages/tabbar/station/stationList'
})
return
}
uni.navigateBack({})
}
console.log('++++++++++++')
uni.navigateBack({})
// uni.navigateBack({
// delta: 1
// });