v2.2.5 2022-11-3
1.优化部分代码 2.去掉微信未开放功能
This commit is contained in:
+41
-11
@@ -3,22 +3,37 @@
|
||||
<!-- 主体区域 -->
|
||||
<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">
|
||||
{{tip.msg}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="tip" v-else></view>
|
||||
<!-- 轮播图 -->
|
||||
<swiper class="swiper" v-if="(swiper!='')" :indicator-dots="swiper.indicatorDots"
|
||||
: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"
|
||||
<swiper class="swiper"
|
||||
v-if="(swiper!='')"
|
||||
:indicator-dots="swiper.indicatorDots"
|
||||
: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">
|
||||
<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}}
|
||||
</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>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@@ -27,13 +42,23 @@
|
||||
<view class="pics" v-if="(pics!='')">
|
||||
<!-- 瀑布流左边 -->
|
||||
<view class="left">
|
||||
<icard class="icard" v-for="(item,index) in leftList" :key="index" :url="item.url"
|
||||
:source="item.source" :id="item.id" @tap="showImg(item)"></icard>
|
||||
<icard class="icard"
|
||||
v-for="(item,index) in leftList"
|
||||
:key="index"
|
||||
:url="item.url"
|
||||
:source="item.source"
|
||||
:id="item.id"
|
||||
@tap="showImg(item)"></icard>
|
||||
</view>
|
||||
<!-- 瀑布流右边 -->
|
||||
<view class="right">
|
||||
<icard class="icard" v-for="(item,index) in rightList" :key="index" :url="item.url"
|
||||
:source="item.source" :id="item.id" @tap="showImg(item)"></icard>
|
||||
<icard class="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 class="pics" v-else>
|
||||
@@ -95,6 +120,11 @@
|
||||
uni.stopPullDownRefresh();
|
||||
}, 1000);
|
||||
},
|
||||
computed: {
|
||||
tipStyle() {
|
||||
return ['level-' + this.tip.level];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getDataByOnline() {
|
||||
const that = this;
|
||||
|
||||
@@ -250,6 +250,11 @@
|
||||
2.实现抽奖页面创建后台逻辑<br />
|
||||
<b>v2.2.3 2022-10-26</b><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({
|
||||
url: `/pages/utils/showText/showText?nodes=${log}`
|
||||
|
||||
@@ -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