v2.2.5 2022-11-3
1.优化部分代码 2.去掉微信未开放功能
This commit is contained in:
@@ -91,15 +91,16 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
picUrl: app.globalData.website + "/image/other/image_tool_bayinhe.jpg",
|
||||
flag: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
audioPlay(flag) {
|
||||
let that = this;
|
||||
this.flag = flag;
|
||||
var srcMic = "";
|
||||
uni.request({
|
||||
url: "https://www.lailab.cn/miniprogram/tools/bayinhe.php?flag=" + flag,
|
||||
url: app.globalData.website + "/tools/bayinhe.php?flag=" + that.flag,
|
||||
success(res) {
|
||||
// console.log(res);
|
||||
if (res.statusCode == 200) {
|
||||
@@ -131,6 +132,11 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
picUrl() {
|
||||
return app.globalData.website + "/image/other/image_tool_bayinhe.jpg";
|
||||
}
|
||||
},
|
||||
onHide() {
|
||||
this.audioPause();
|
||||
},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="top-block"></view>
|
||||
<textarea class="ms-input" placeholder="输入内容自动识别" maxlength="-1" @input="inputValue">
|
||||
<textarea class="ms-input" :placeholder="tip" maxlength="-1" v-model="text">
|
||||
<button class="ms-share" open-type="share"></button>
|
||||
</textarea>
|
||||
<text class="ms-output" @longtap="copyOutCode()">{{outcode?outcode:"长按复制"}}</text>
|
||||
<text class="ms-output" @longtap="copyOutCode()">{{outcode?outcode:"可长按复制"}}</text>
|
||||
|
||||
</view>
|
||||
|
||||
@@ -15,14 +15,16 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
outcode: ''
|
||||
outcode: '',
|
||||
text: "",
|
||||
tip: `输入内容自动识别 编码:支持字母、数字、空格 解码:支持.-\\`,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
inputValue(e) {
|
||||
watch: {
|
||||
text(value){
|
||||
const that = this;
|
||||
// 获取到input的值
|
||||
const value = e.detail.value + ' .';
|
||||
value += ' .';
|
||||
var operate = 'encode';
|
||||
if (value.indexOf('-') >= 0) {
|
||||
operate = 'decode';
|
||||
@@ -42,7 +44,9 @@
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
copyOutCode() {
|
||||
const that = this;
|
||||
if(that.outcode=='')return;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
bgurl: "https://www.lailab.cn/miniprogram/image/other/image_tool_muyu.jpg",
|
||||
bgurl: app.globalData.website + "/image/other/image_tool_muyu.jpg",
|
||||
num: 0,
|
||||
gongde: 500,
|
||||
useanim: false,
|
||||
|
||||
Reference in New Issue
Block a user