pull/12/head
xiaozhiyong 1 year ago
parent 5a73a4e9a6
commit 506d04100c
  1. 5
      BagStation/pages/stationDetail/stieQr.vue
  2. 28
      colorui/components/cu-custom.vue

@ -69,7 +69,7 @@
<view class="qrimg" @tap="newQrString"> <view class="qrimg" @tap="newQrString">
<tki-qrcode ref="qrcode" cid="2" loadMake :val="val" :size="400" unit="upx" <tki-qrcode ref="qrcode" cid="2" loadMake :val="val" :size="400" unit="upx"
background="#fff" foreground="#000" pdground="#000" :icon="iconUrl" iconSize="40" onval background="#fff" foreground="#000" pdground="#000" :icon="iconUrl" iconSize="40" onval
:usingComponents="usingComponents" showLoading @result="qrR" /> :usingComponents="usingComponents" showLoading />
</view> </view>
</view> </view>
</view> </view>
@ -298,9 +298,6 @@
}) })
}) })
return target return target
},
qrR() {
}, },
newQrString() { newQrString() {
this.getQrString(this.activeCard) this.getQrString(this.activeCard)

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

Loading…
Cancel
Save