|
@@ -85,7 +85,22 @@
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<u-popup class="popup qrcode-popup" v-model="showQrcode" :mask-close-able="false" mode="center" border-radius="20" width="90%">
|
|
|
- <vue-qrcode :value='qrcontent' :options="{ width: 200 }"></vue-qrcode>
|
|
|
+ <tki-qrcode
|
|
|
+ ref="qrcode"
|
|
|
+ cid="tki-qrcode-canvas"
|
|
|
+ :val="qrcontent"
|
|
|
+ :size="200"
|
|
|
+ unit="px"
|
|
|
+ background="#000000"
|
|
|
+ foreground="#ffffff"
|
|
|
+ pdground="#ffffff"
|
|
|
+ :iconSize="40"
|
|
|
+ :onval="true"
|
|
|
+ :loadMake="false"
|
|
|
+ :usingComponents="true"
|
|
|
+ :showLoading="false"
|
|
|
+ loadingText="loadingText"
|
|
|
+ />
|
|
|
<view class="qrcode-popup-btn" @click="hideQrcode">关闭</view>
|
|
|
</u-popup>
|
|
|
<u-toast ref="uToast" />
|
|
@@ -97,10 +112,10 @@
|
|
|
let speak = uni.requireNativePlugin("SpeechPlug");
|
|
|
let ALog = uni.requireNativePlugin("AndroidLog")
|
|
|
//#endif
|
|
|
- import VueQrcode from '@chenfengyuan/vue-qrcode'
|
|
|
+ import tkiQrcode from "tki-qrcode";
|
|
|
export default {
|
|
|
components:{
|
|
|
- VueQrcode
|
|
|
+ tkiQrcode
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -235,10 +250,14 @@
|
|
|
// title: res.msg,
|
|
|
// type: 'success',
|
|
|
// });
|
|
|
- this.qrcontent = res.data.qrCodeUrl;
|
|
|
- console.log('this.qrcontent',this.qrcontent);
|
|
|
this.showPayway = false;
|
|
|
this.showQrcode = true;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.qrcontent = res.data.qrCodeUrl;
|
|
|
+ },500)
|
|
|
+
|
|
|
+ // tkiQrcode.methods._makeCode({val:"val"});
|
|
|
+
|
|
|
console.log('gzbankPolypay',res)
|
|
|
}).catch(err=>{
|
|
|
this.$refs.uToast.show({
|