更新
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<view class="qrimg">
|
||||
<view class="qrimg" @tap="newQrString">
|
||||
<tki-qrcode ref="qrcode" cid="2" loadMake :val="val" :size="250" unit="upx"
|
||||
background="#fff" foreground="#000" pdground="#000" :icon="iconUrl" iconSize="40" onval
|
||||
background="#fff" :foreground="foreground" :pdground="foreground" :icon="iconUrl" iconSize="40" onval
|
||||
:usingComponents="usingComponents" showLoading />
|
||||
</view>
|
||||
</view>
|
||||
@@ -144,6 +144,7 @@
|
||||
data() {
|
||||
const now = new Date()
|
||||
return {
|
||||
foreground:'#000',
|
||||
oilItem:{},
|
||||
status:"",
|
||||
showtitles:"",
|
||||
@@ -203,6 +204,8 @@
|
||||
this.showQr = true
|
||||
this.showtext =false
|
||||
this.val =res.data.codeStr
|
||||
this.foreground = this.val.indexOf('SHLFC/V1')==-1?'#000':'#1A487E';
|
||||
console.log(this.foreground,'foreground')
|
||||
}
|
||||
} )
|
||||
},
|
||||
@@ -310,7 +313,6 @@
|
||||
let _that = this
|
||||
if(oilItems.listTag == '万金油'){
|
||||
_that.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/wanjinyou.mp3'
|
||||
|
||||
}else if(oilItems.listTag == '星油'){
|
||||
_that.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/xingyouyunzhan.mp3'
|
||||
}else if(oilItems.listTag == '壳牌'){
|
||||
@@ -318,7 +320,6 @@
|
||||
}else if(oilItems.listTag == '上汽联名卡'){
|
||||
_that.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/shangqi.mp3'
|
||||
}
|
||||
|
||||
this.ContextAudio(this.audioUrl)
|
||||
}else{
|
||||
console.log('这里是支付失败')
|
||||
|
||||
Reference in New Issue
Block a user