This commit is contained in:
caolc
2022-12-01 16:04:48 +08:00
parent 7130e6e200
commit f9077ade64
5 changed files with 20 additions and 16 deletions

View File

@@ -14,7 +14,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>
@@ -164,6 +164,7 @@
export default {
data() {
return {
foreground:'#000',
showQr:false,
val:'',
id: '',
@@ -213,7 +214,8 @@
this.showQr = false
}else if(res.code == 20000){
this.showQr = true
this.val =res.data.codeStr
this.val =res.data.codeStr;
this.foreground = this.val.indexOf('SHLFC/V1')==-1?'#000':'#1A487E';
}
} )
},