This commit is contained in:
xiaozhiyong
2023-09-19 09:00:12 +08:00
parent 5a73a4e9a6
commit 506d04100c
3 changed files with 28 additions and 31 deletions

View File

@@ -26,8 +26,8 @@
name: 'cu-custom',
computed: {
style() {
var StatusBar= this.StatusBar;
var CustomBar= this.CustomBar;
var StatusBar = this.StatusBar;
var CustomBar = this.CustomBar;
var bgImage = this.bgImage;
var style = `height:${CustomBar}px;padding-top:${StatusBar}px;`;
if (this.bgImage) {
@@ -37,7 +37,7 @@
}
},
props: {
backCard:{
backCard: {
type: Boolean,
default: false
},
@@ -45,9 +45,9 @@
type: String,
default: ''
},
callBack:{
type:Function,
default:()=>null
callBack: {
type: Function,
default: () => null
},
isBack: {
type: [Boolean, String],
@@ -57,35 +57,35 @@
type: String,
default: ''
},
isPay:{
isPay: {
type: Boolean,
default: false
}
},
methods: {
BackPage() {
if(this.callBack){
BackPage() {
if (this.callBack) {
this.callBack()
}else{
if(this.backCard == true){
} else {
if (this.backCard == true) {
uni.redirectTo({
url:'/BagMoney/pages/oilCards/oilCards'
})
return
}
if(this.isPay == true){
uni.switchTab({
url:'/pages/tabbar/station/stationList'
url: '/BagMoney/pages/oilCards/oilCards'
})
return
}
uni.navigateBack({})
return
}
if (this.isPay == true) {
uni.switchTab({
url: '/pages/tabbar/station/stationList'
})
return
}
uni.navigateBack()
}
// uni.navigateBack({
// delta: 1
// });
// uni.navigateBack({
// delta: 1
// });
}
}
}