v2.2.5 2022-11-3
1.优化部分代码 2.去掉微信未开放功能
This commit is contained in:
+41
-11
@@ -3,22 +3,37 @@
|
|||||||
<!-- 主体区域 -->
|
<!-- 主体区域 -->
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<!-- 提示区域 -->
|
<!-- 提示区域 -->
|
||||||
<view class="tip" :class="'level-'+tip.level" v-if="(tip!='')&&(tip.isShow)" @tap="showTip()">
|
<view class="tip"
|
||||||
|
:class="tipStyle"
|
||||||
|
v-if="(tip!='')&&(tip.isShow)"
|
||||||
|
@tap="showTip()">
|
||||||
<text class="tip-text">
|
<text class="tip-text">
|
||||||
{{tip.msg}}
|
{{tip.msg}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="tip" v-else></view>
|
<view class="tip" v-else></view>
|
||||||
<!-- 轮播图 -->
|
<!-- 轮播图 -->
|
||||||
<swiper class="swiper" v-if="(swiper!='')" :indicator-dots="swiper.indicatorDots"
|
<swiper class="swiper"
|
||||||
:vertical="swiper.vertical" :circular="swiper.circular" :interval="swiper.interval"
|
v-if="(swiper!='')"
|
||||||
:duration="swiper.duration" :autoplay="swiper.autoplay">
|
:indicator-dots="swiper.indicatorDots"
|
||||||
<swiper-item v-for="(item,index) in swiper.background" :key="index"
|
:vertical="swiper.vertical"
|
||||||
|
:circular="swiper.circular"
|
||||||
|
:interval="swiper.interval"
|
||||||
|
:duration="swiper.duration"
|
||||||
|
:autoplay="swiper.autoplay">
|
||||||
|
<swiper-item
|
||||||
|
v-for="(item,index) in swiper.background"
|
||||||
|
:key="index"
|
||||||
@tap="item.clickable?swiperTap(item.action,item.content):null">
|
@tap="item.clickable?swiperTap(item.action,item.content):null">
|
||||||
<view class="swiper-item" v-if="item.type=='color'" :style="{backgroundColor:item.background}">
|
<view class="swiper-item"
|
||||||
|
v-if="item.type=='color'"
|
||||||
|
:style="{backgroundColor: item.background}">
|
||||||
{{item.text}}
|
{{item.text}}
|
||||||
</view>
|
</view>
|
||||||
<image class="swiper-item" v-if="item.type=='image'" :src="item.background" :mode="item.imageMode">
|
<image class="swiper-item"
|
||||||
|
v-if="item.type=='image'"
|
||||||
|
:src="item.background"
|
||||||
|
:mode="item.imageMode">
|
||||||
</image>
|
</image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@@ -27,13 +42,23 @@
|
|||||||
<view class="pics" v-if="(pics!='')">
|
<view class="pics" v-if="(pics!='')">
|
||||||
<!-- 瀑布流左边 -->
|
<!-- 瀑布流左边 -->
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<icard class="icard" v-for="(item,index) in leftList" :key="index" :url="item.url"
|
<icard class="icard"
|
||||||
:source="item.source" :id="item.id" @tap="showImg(item)"></icard>
|
v-for="(item,index) in leftList"
|
||||||
|
:key="index"
|
||||||
|
:url="item.url"
|
||||||
|
:source="item.source"
|
||||||
|
:id="item.id"
|
||||||
|
@tap="showImg(item)"></icard>
|
||||||
</view>
|
</view>
|
||||||
<!-- 瀑布流右边 -->
|
<!-- 瀑布流右边 -->
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<icard class="icard" v-for="(item,index) in rightList" :key="index" :url="item.url"
|
<icard class="icard"
|
||||||
:source="item.source" :id="item.id" @tap="showImg(item)"></icard>
|
v-for="(item,index) in rightList"
|
||||||
|
:key="index"
|
||||||
|
:url="item.url"
|
||||||
|
:source="item.source"
|
||||||
|
:id="item.id"
|
||||||
|
@tap="showImg(item)"></icard>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="pics" v-else>
|
<view class="pics" v-else>
|
||||||
@@ -95,6 +120,11 @@
|
|||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
tipStyle() {
|
||||||
|
return ['level-' + this.tip.level];
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDataByOnline() {
|
getDataByOnline() {
|
||||||
const that = this;
|
const that = this;
|
||||||
|
|||||||
@@ -250,6 +250,11 @@
|
|||||||
2.实现抽奖页面创建后台逻辑<br />
|
2.实现抽奖页面创建后台逻辑<br />
|
||||||
<b>v2.2.3 2022-10-26</b><br />
|
<b>v2.2.3 2022-10-26</b><br />
|
||||||
1.实现根据人数自动开奖的功能<br />
|
1.实现根据人数自动开奖的功能<br />
|
||||||
|
<b>v2.2.4 2022-10-28</b><br />
|
||||||
|
1.更新部分代码<br />
|
||||||
|
<b>v2.2.5 2022-11-3</b><br />
|
||||||
|
1.优化部分代码<br />
|
||||||
|
2.去掉微信未开放功能<br />
|
||||||
`;
|
`;
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/utils/showText/showText?nodes=${log}`
|
url: `/pages/utils/showText/showText?nodes=${log}`
|
||||||
|
|||||||
@@ -91,15 +91,16 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
picUrl: app.globalData.website + "/image/other/image_tool_bayinhe.jpg",
|
flag: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
audioPlay(flag) {
|
audioPlay(flag) {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
this.flag = flag;
|
||||||
var srcMic = "";
|
var srcMic = "";
|
||||||
uni.request({
|
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) {
|
success(res) {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
@@ -131,6 +132,11 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
picUrl() {
|
||||||
|
return app.globalData.website + "/image/other/image_tool_bayinhe.jpg";
|
||||||
|
}
|
||||||
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
this.audioPause();
|
this.audioPause();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="top-block"></view>
|
<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>
|
<button class="tq-share" open-type="share"></button>
|
||||||
</textarea>
|
</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>
|
<text class="tq-tip">长按图片进行保存</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -15,15 +15,18 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: ""
|
url: "https://www.lailab.cn/miniprogram/tools/qrcode.php?text=",
|
||||||
|
qrurl: "",
|
||||||
|
text: ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
qrurl(){
|
||||||
|
return this.url + this.text;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInputValue(e) {
|
|
||||||
// 获取到input的值
|
|
||||||
let value = e.detail.value;
|
|
||||||
this.url = "https://www.lailab.cn/miniprogram/tools/qrcode.php?text=" + value;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="top-block"></view>
|
<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>
|
<button class="ms-share" open-type="share"></button>
|
||||||
</textarea>
|
</textarea>
|
||||||
<text class="ms-output" @longtap="copyOutCode()">{{outcode?outcode:"长按复制"}}</text>
|
<text class="ms-output" @longtap="copyOutCode()">{{outcode?outcode:"可长按复制"}}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -15,14 +15,16 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
outcode: ''
|
outcode: '',
|
||||||
|
text: "",
|
||||||
|
tip: `输入内容自动识别 编码:支持字母、数字、空格 解码:支持.-\\`,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
watch: {
|
||||||
inputValue(e) {
|
text(value){
|
||||||
const that = this;
|
const that = this;
|
||||||
// 获取到input的值
|
// 获取到input的值
|
||||||
const value = e.detail.value + ' .';
|
value += ' .';
|
||||||
var operate = 'encode';
|
var operate = 'encode';
|
||||||
if (value.indexOf('-') >= 0) {
|
if (value.indexOf('-') >= 0) {
|
||||||
operate = 'decode';
|
operate = 'decode';
|
||||||
@@ -42,7 +44,9 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
copyOutCode() {
|
copyOutCode() {
|
||||||
const that = this;
|
const that = this;
|
||||||
if(that.outcode=='')return;
|
if(that.outcode=='')return;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
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,
|
num: 0,
|
||||||
gongde: 500,
|
gongde: 500,
|
||||||
useanim: false,
|
useanim: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user