v2.2.5 2022-11-3

1.优化部分代码
2.去掉微信未开放功能
This commit is contained in:
2022-11-03 22:49:14 +08:00
parent bb7d4ae74a
commit c994fcca33
7 changed files with 84 additions and 30 deletions
+11 -8
View File
@@ -1,10 +1,10 @@
<template>
<view class="container">
<view class="top-block"></view>
<textarea class="tq-input" placeholder="请输入文字/网址" maxlength="-1" @input="getInputValue">
<textarea class="tq-input" placeholder="请输入文字/网址" maxlength="-1" v-model="text">
<button class="tq-share" open-type="share"></button>
</textarea>
<image class="tq-qrcode" :src="url" show-menu-by-longpress="true"></image>
<image class="tq-qrcode" :src="qrurl" show-menu-by-longpress="true"></image>
<text class="tq-tip">长按图片进行保存</text>
</view>
@@ -15,15 +15,18 @@
export default {
data() {
return {
url: ""
url: "https://www.lailab.cn/miniprogram/tools/qrcode.php?text=",
qrurl: "",
text: ""
}
},
computed: {
qrurl(){
return this.url + this.text;
}
},
methods: {
getInputValue(e) {
// 获取到input的值
let value = e.detail.value;
this.url = "https://www.lailab.cn/miniprogram/tools/qrcode.php?text=" + value;
},
},
onShareAppMessage() {
return {