更新
This commit is contained in:
@@ -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';
|
||||
}
|
||||
} )
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user