自定义扫码界面

This commit is contained in:
xk_guohonglei
2020-10-28 10:47:16 +08:00
parent 9320a99366
commit 679c43a03e
10 changed files with 301 additions and 189 deletions

View File

@@ -15,13 +15,13 @@
@result="qrR" />
</view>
</view>
<view @tap="refreashQr" class="text-center padding-bottom-xs padding-bottom-xs">
<view @tap="refreashQr" class="text-center padding-top padding-bottom-xs padding-bottom-xs">
<text class="color-999 font-12">
<text class="cuIcon-refresh padding-right-xs"></text>
<!-- 付款码自动 25s -->
付款码
付款码
<text class="oil-main-color">
刷新
刷新
</text>
</text>
</view>
@@ -93,7 +93,7 @@
// 引入二维码库
import QR from "@/utils/wxqrcode.js" // 二维码生成器
import cloudSiteApi from '@/api/cloud-site.js'
import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue" //二维码生成器
export default {
components: {
@@ -103,6 +103,7 @@
data() {
return {
oilList: [],
xkPrice:'',
modalName: 'mod',
oilSiteName: '',
qrImg: "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1102530589,2787379918&fm=11&gp=0.jpg",
@@ -183,7 +184,7 @@
console.log('5555')
},
qrInit() {
this.qrImg = QR.createQrCodeImg('我是您粑粑', {
this.qrImg = QR.createQrCodeImg({
size: parseInt(300) //二维码大小
})
console.log('this.qrImg', this.qrImg)