|
|
|
@ -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){ |
|
|
|
|
url: '/BagMoney/pages/oilCards/oilCards' |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (this.isPay == true) { |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url:'/pages/tabbar/station/stationList' |
|
|
|
|
url: '/pages/tabbar/station/stationList' |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
uni.navigateBack({}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
uni.navigateBack() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// uni.navigateBack({ |
|
|
|
|
// delta: 1 |
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// uni.navigateBack({ |
|
|
|
|
// delta: 1 |
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|