Browse Source

二维码海报

twodate
Enzo 5 years ago
parent
commit
815b4a9ae1
  1. 20
      pages/bill/bill.vue

20
pages/bill/bill.vue

@ -5,6 +5,9 @@
<button class='zfbtn m_l' @tap='formSubmit()'>
<image src="../../static/center/collect-active.png" class='img'></image>
</button>
<tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="115" unit="px" background="#fff" foreground="#000"
pdground="#000" :onval="true" :loadMake="true" />
<view class="canvas-box">
<canvas style="width: 375px;height: 667px;position:fixed;top:9999px" canvas-id="mycanvas" />
@ -21,16 +24,14 @@
},
data() {
return {
qrcode: '',
qrcodeImg: '',
code: '',
base64Img: '', //
checkArea: '0',
img: "../../static/images/empty.png",
wechat: "../../static/images/tabbar/home.png",
quan: "../../static/images/tabbar/my.png",
touxiang: "../../static/images/system/payfail.png",
code: "E7AI98",
inputValue: "",
maskHidden: false,
name: "kk",
@ -38,15 +39,8 @@
}
},
methods: {
result(e) {
uni.setStorage({
key: 'shareImg',
data: e
})
this.qrcodeImg = e
},
saveIamge(e) {
this.share(e)
qrR(data) {
this.base64Img = data;
},

Loading…
Cancel
Save