1
This commit is contained in:
@@ -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
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user