Browse Source

二期海报

twodate
Enzo 5 years ago
parent
commit
7b1272af8c
  1. 6
      pages.json
  2. 48
      pages/bill/bill.vue

6
pages.json

@ -3,6 +3,12 @@
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/bill/bill",
"style": {
"navigationBarTitleText": "生成海报"
}
},
{
"path": "pages/index/index",
"style": {

48
pages/bill/bill.vue

@ -0,0 +1,48 @@
<template>
<view>
分享海报
<view class="qrcode-hidden" style="height: 100px;width: 100%;">
<tkiQrcod cid="qrcode"
@result="result"
ref="qrcode"
:val="qrcode"
onval
:size="340"
:showLoading="false"
/></view>
<image src="../../static/images/empty.png" mode="aspectFill" style="width: 200rpx;height: 200rpx;"></image>
<view class="save-pic bg-blueself discenter animation-slide-right" @click="saveIamge" data-provider="save" data-scene="">保存分享海报</view>
</view>
</template>
<script>
import tkiQrcode from "tki-qrcode"; //
export default {
components: {
tkiQrcode
},
data() {
return {
qrcode: '',
qrcodeImg: '',
code: ''
}
},
methods: {
result(e) {
uni.setStorage({ key: 'shareImg', data: e })
this.qrcodeImg = e
},
saveIamge(e) {
this.share(e)
},
},
onLoad() {
this.qrcode = 'dadaa'
}
}
</script>
<style>
</style>
Loading…
Cancel
Save