This commit is contained in:
abu 2025-05-02 17:22:45 +08:00
parent c9fd0fedb8
commit 0185f1eaf2
14 changed files with 583 additions and 558 deletions

BIN
CustomStartPage/origin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 KiB

After

Width:  |  Height:  |  Size: 680 KiB

View File

@ -2,13 +2,13 @@
"version": "1", "version": "1",
"prompt": "template", "prompt": "template",
"title": "用户协议和隐私政策", "title": "用户协议和隐私政策",
"message": "  请你务必审慎阅读、充分理解“用户协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://www.wzj.net.cn/fuwuxieyi.html\">《用户协议》</a>和<a href=\"http://www.wzj.net.cn/yinsizhengce/342.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message": "  请你务必审慎阅读、充分理解“用户协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://www.wzj.net.cn/yonhuxieyi.html\">《用户协议》</a>和<a href=\"http://www.wzj.net.cn/yinsizhengce.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意并接受", "buttonAccept": "同意并接受",
"buttonRefuse": "暂不同意", "buttonRefuse": "暂不同意",
"hrefLoader": "system|default", "hrefLoader": "system|default",
"second": { "second": {
"title": "确认提示", "title": "确认提示",
"message": "  进入应用前,你需先同意<a href=\"https://wuzhongjie.com.cn/fuwuxieyi.html\" >《用户协议》</a>和<a href=\"http://wuzhongjie.com.cn/yinsizhengce.html\">《隐私政策》</a>,否则将退出应用。", "message": "  进入应用前,你需先同意<a href=\"https://wuzhongjie.com.cn/yonhuxieyi.html\" >《用户协议》</a>和<a href=\"http://wuzhongjie.com.cn/yinsizhengce.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续", "buttonAccept": "同意并继续",
"buttonRefuse": "退出应用" "buttonRefuse": "退出应用"
}, },

View File

@ -24,7 +24,7 @@
:style="{ :style="{
height: sliderHeight, height: sliderHeight,
width: sliderWidth, width: sliderWidth,
'z-index': 101, 'z-index': 101
}" }"
direction="horizontal" direction="horizontal"
> >
@ -35,7 +35,7 @@
:style="{ :style="{
height: sliderHeight, height: sliderHeight,
width: sliderWidth, width: sliderWidth,
'margin-top': imgbKH, 'margin-top': imgbKH
}" }"
></image> ></image>
</movable-view> </movable-view>
@ -49,13 +49,7 @@
<movable-area <movable-area
class="flex-row-start" class="flex-row-start"
style=" style="width: 100%; background-color: #efefef; height: 80rpx; border-radius: 40rpx; margin-top: 30rpx"
width: 100%;
background-color: #efefef;
height: 80rpx;
border-radius: 40rpx;
margin-top: 30rpx;
"
> >
<movable-view <movable-view
scale-value="1" scale-value="1"
@ -63,14 +57,7 @@
damping="50" damping="50"
:x="movePv" :x="movePv"
class="flex-row-center" class="flex-row-center"
style=" style="border-radius: 50%; height: 100rpx; width: 100rpx; background-color: #ffffff; border: 2rpx solid #e3e3e3; margin-top: -13rpx"
border-radius: 50%;
height: 100rpx;
width: 100rpx;
background-color: #ffffff;
border: 2rpx solid #e3e3e3;
margin-top: -13rpx;
"
direction="horizontal" direction="horizontal"
@change="moveChange" @change="moveChange"
@touchend="end" @touchend="end"
@ -81,14 +68,25 @@
v-if="endLoad" v-if="endLoad"
name="arrow-right" name="arrow-right"
></u-icon> ></u-icon>
<u-icon :color="mainColor" size="40" v-else name="reload"></u-icon> <u-icon
:color="mainColor"
size="40"
v-else
name="reload"
></u-icon>
</movable-view> </movable-view>
<text style="padding-left: 140rpx" :style="{ color: col }">{{ <text
hasImg style="padding-left: 140rpx"
}}</text> :style="{ color: col }"
>
{{ hasImg }}
</text>
</movable-area> </movable-area>
<view class="flex-row-around padding-top" style="width: 100%"> <view
class="flex-row-around padding-top"
style="width: 100%"
>
<u-icon <u-icon
@click="hide" @click="hide"
:color="mainColor" :color="mainColor"
@ -96,10 +94,18 @@
name="close" name="close"
></u-icon> ></u-icon>
<text class="cu-tag bg-cyan round" @click="getCode">刷新拼图</text> <text
<text class="my-neirong-sm cuIcon-safe" style="color: #c1c1c1" class="cu-tag bg-cyan round"
>Lili-FRAMEWORK</text @click="getCode"
> >
刷新拼图
</text>
<text
class="my-neirong-sm cuIcon-safe"
style="color: #c1c1c1"
>
Lili-FRAMEWORK
</text>
</view> </view>
</view> </view>
</view> </view>
@ -107,71 +113,71 @@
</template> </template>
<script> <script>
import api from "@/config/api.js"; import api from '@/config/api.js';
import storage from "@/utils/storage.js"; import storage from '@/utils/storage.js';
import uuid from "@/utils/uuid.modified.js"; import uuid from '@/utils/uuid.modified.js';
const phone = uni.getSystemInfoSync(); const phone = uni.getSystemInfoSync();
const l = phone.screenWidth / 750; const l = phone.screenWidth / 750;
export default { export default {
name: "verification", name: 'verification',
created() { created() {
// //
this.scHight = phone.screenHeight / 2 - 200 + "px"; this.scHight = phone.screenHeight / 2 - 200 + 'px';
this.getCode(); this.getCode();
}, },
props: { props: {
height: { height: {
type: String, type: String,
default: "80rpx", default: '80rpx'
}, },
width: { width: {
type: String, type: String,
default: "350rpx", default: '350rpx'
}, },
left: { left: {
type: String, type: String,
default: "180rpx", default: '180rpx'
}, },
top: { top: {
type: String, type: String,
default: "30rpx", default: '30rpx'
}, },
business: { business: {
type: String, type: String,
default: "LOGIN", default: 'LOGIN'
}, }
}, },
data() { data() {
return { return {
mainColor: this.$mainColor, mainColor: this.$mainColor,
flage: false, flage: false,
key: "", //key key: '', //key
vsrtx: "点击进行验证", // vsrtx: '点击进行验证', //
vsr: false, // vsr: false, //
hid: true, hid: true,
col: "#838383", col: '#838383',
movePv: 0, movePv: 0,
hasImg: "拖动滑块已完成拼图", hasImg: '拖动滑块已完成拼图',
spcode: "", spcode: '',
tl: 0, tl: 0,
moveCode: 0, moveCode: 0,
//X //X
moveX: 0, moveX: 0,
// //
originalHeight: "", originalHeight: '',
// //
originalWidth: "", originalWidth: '',
// //
sliderHeight: "", sliderHeight: '',
// //
sliderWidth: "", sliderWidth: '',
scHight: 0, scHight: 0,
// //
img: "", img: '',
// //
imgbk: "", imgbk: '',
endLoad: true, endLoad: true,
imgbKH: "", imgbKH: ''
}; };
}, },
methods: { methods: {
@ -192,30 +198,31 @@ export default {
}, },
// //
getCode() { getCode() {
this.col = "#b3afae"; this.col = '#b3afae';
this.hasImg = "图片加载中..."; this.hasImg = '图片加载中...';
if (!storage.getUuid()) { if (!storage.getUuid()) {
storage.setUuid(uuid.v1()); // storage.setUuid(uuid.v1());
storage.setUuid('wzj666');
} }
uni.request({ uni.request({
url: api.common + "/common/slider/" + this.business, url: api.common + '/common/slider/' + this.business,
header: { header: {
uuid: storage.getUuid(), uuid: storage.getUuid()
}, },
success: (res) => { success: (res) => {
this.col = "#838383"; this.col = '#838383';
this.hasImg = "拖动滑块以完成拼图"; this.hasImg = '拖动滑块以完成拼图';
var data = res.data.result; var data = res.data.result;
// base64 // base64
this.img = data.backImage; this.img = data.backImage;
this.imgbk = data.slidingImage; this.imgbk = data.slidingImage;
// //
this.imgbKH = data.randomY * 1.8 + "rpx"; this.imgbKH = data.randomY * 1.8 + 'rpx';
this.originalHeight = data.originalHeight * 1.8 + "rpx"; this.originalHeight = data.originalHeight * 1.8 + 'rpx';
this.originalWidth = data.originalWidth * 1.8 + "rpx"; this.originalWidth = data.originalWidth * 1.8 + 'rpx';
this.sliderHeight = data.sliderHeight * 1.8 + "rpx"; this.sliderHeight = data.sliderHeight * 1.8 + 'rpx';
this.sliderWidth = data.sliderWidth * 1.8 + "rpx"; this.sliderWidth = data.sliderWidth * 1.8 + 'rpx';
// //
this.tl = 1 / (1.8 * l); this.tl = 1 / (1.8 * l);
// //
@ -223,35 +230,28 @@ export default {
// //
this.key = data.key; this.key = data.key;
this.$store.state.verificationKey = data.key; this.$store.state.verificationKey = data.key;
}, }
}); });
}, },
end(e) { end(e) {
this.endLoad = false; this.endLoad = false;
// //
uni.request({ uni.request({
method: "POST", method: 'POST',
url: url: api.common + '/common/slider/' + this.business + '?xPos=' + parseInt(this.moveCode * this.tl),
api.common +
"/common/slider/" +
this.business +
"?xPos=" +
parseInt(this.moveCode * this.tl),
header: { header: {
uuid: storage.getUuid(), uuid: storage.getUuid()
}, },
success: (res) => { success: (res) => {
this.endLoad = true; this.endLoad = true;
res.data.result == false res.data.result == false ? (res.data.result = false) : (res.data.result = true);
? (res.data.result = false)
: (res.data.result = true);
if (res.data && res.data.result) { if (res.data && res.data.result) {
//key, //key,
this.$emit("send", this.key); this.$emit('send', this.key);
this.hide(); this.hide();
this.vsr = true; this.vsr = true;
this.vsrtx = "已通过验证"; this.vsrtx = '已通过验证';
} else { } else {
this.getCode(); // this.getCode(); //
if (this.movePv == 1) { if (this.movePv == 1) {
@ -262,22 +262,22 @@ export default {
} }
}, },
fail: (res) => { fail: (res) => {
this.$msg("连接服务器失败"); this.$msg('连接服务器失败');
}, }
}); });
}, },
// //
moveChange(e) { moveChange(e) {
this.moveX = e.detail.x; this.moveX = e.detail.x;
this.moveCode = e.detail.x; this.moveCode = e.detail.x;
}, }
}, }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./animation.css"; @import './animation.css';
@import "./icon.css"; @import './icon.css';
// @import './main.css'; // @import './main.css';
.dh-wt { .dh-wt {
animation: at 1.1s ease; animation: at 1.1s ease;

View File

@ -637,6 +637,10 @@ export default {
return graceNumber(num); return graceNumber(num);
}, },
async likeOrDislikeVlog(item) { async likeOrDislikeVlog(item) {
var info = storage.getVlogUserInfo();
if (info != null) {
this.userId = info.id;
}
// 没登录拒绝操作 // 没登录拒绝操作
if (this.userId == '') { if (this.userId == '') {
uni.navigateTo({ uni.navigateTo({

View File

@ -637,6 +637,10 @@ export default {
return graceNumber(num); return graceNumber(num);
}, },
async likeOrDislikeVlog(item) { async likeOrDislikeVlog(item) {
var info = storage.getVlogUserInfo();
if (info != null) {
this.userId = info.id;
}
// 没登录拒绝操作 // 没登录拒绝操作
if (this.userId == '') { if (this.userId == '') {
uni.navigateTo({ uni.navigateTo({

View File

@ -628,6 +628,10 @@ export default {
return graceNumber(num); return graceNumber(num);
}, },
async likeOrDislikeVlog(item) { async likeOrDislikeVlog(item) {
var info = storage.getVlogUserInfo();
if (info != null) {
this.userId = info.id;
}
// 没登录拒绝操作 // 没登录拒绝操作
if (this.userId == '') { if (this.userId == '') {
uni.navigateTo({ uni.navigateTo({

View File

@ -9,8 +9,10 @@ const dev = {
common: "http://43.143.227.203:8890", common: "http://43.143.227.203:8890",
buyer: "http://43.143.227.203:8888", buyer: "http://43.143.227.203:8888",
vlog: "http://43.143.227.203:8099", vlog: "http://43.143.227.203:8099",
// vlog: "http://192.168.1.86:8099",
web: "http://43.143.227.203:8099", web: "http://43.143.227.203:8099",
seller: "http://43.143.227.203:8889", seller: "http://43.143.227.203:8889",
}; };
// 生产环境 // 生产环境
const prod = { const prod = {
@ -19,6 +21,7 @@ const prod = {
common: "http://43.143.227.203:8890", common: "http://43.143.227.203:8890",
buyer: "http://43.143.227.203:8888", buyer: "http://43.143.227.203:8888",
vlog: "http://43.143.227.203:8099", vlog: "http://43.143.227.203:8099",
// vlog: "http://192.168.1.86:8099",
web: "http://43.143.227.203:8099", web: "http://43.143.227.203:8099",
seller: "http://43.143.227.203:8889", seller: "http://43.143.227.203:8889",
}; };

View File

@ -1,5 +1,5 @@
{ {
"name": "wzj4", "name": "无终街",
"appid": "__UNI__6DB512D", "appid": "__UNI__6DB512D",
"description": "admin", "description": "admin",
"versionName": "4.0.0", "versionName": "4.0.0",

View File

@ -8,7 +8,7 @@
:value="nickname" :value="nickname"
:model="nickname" :model="nickname"
placeholder="请填入昵称~" placeholder="请填入昵称~"
maxlength="8" maxlength="14"
@input="typingContent" @input="typingContent"
/> />
<view class="length-cal"> <view class="length-cal">

View File

@ -647,6 +647,10 @@ export default {
return graceNumber(num); return graceNumber(num);
}, },
async likeOrDislikeVlog(item) { async likeOrDislikeVlog(item) {
var info = storage.getVlogUserInfo();
if (info != null) {
this.userId = info.id;
}
// 没登录拒绝操作 // 没登录拒绝操作
if (this.userId == '') { if (this.userId == '') {
uni.navigateTo({ uni.navigateTo({
@ -768,7 +772,7 @@ export default {
if (objData == null) { if (objData == null) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '视频丢失' title: '视频审核中'
}); });
return; return;
} }
@ -965,7 +969,7 @@ export default {
if (objData == null) { if (objData == null) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '视频丢失' title: '视频审核中'
}); });
return; return;
} }

View File

@ -198,23 +198,27 @@ export default {
url: serverUrl + '/vlog/publish', url: serverUrl + '/vlog/publish',
data: vlog, data: vlog,
success(result) { success(result) {
if (result.data.status == 200) { console.log(result);
// uni.showToast({
// title: result.data.msg,
// icon: 'none',
// duration: 2000
// });
uni.switchTab({ uni.switchTab({
url: '/pages/me/me' url: '/pages/me/me'
}); });
} else { // if (result.data.status == 200) {
uni.showToast({ // // uni.showToast({
title: result.data.msg, // // title: result.data.msg,
icon: 'none', // // icon: 'none',
duration: 3000 // // duration: 2000
}); // // });
}
// uni.switchTab({
// url: '/pages/me/me'
// });
// } else {
// uni.showToast({
// title: result.data.msg,
// icon: 'none',
// duration: 3000
// });
// }
}, },
complete() { complete() {
this.upFlage = true; this.upFlage = true;

View File

@ -686,6 +686,7 @@ export default {
newCommentObject.commentUserFace = myUserInfo.face; newCommentObject.commentUserFace = myUserInfo.face;
newCommentObject.isLike = 0; newCommentObject.isLike = 0;
newCommentObject.vlogerId = userId; newCommentObject.vlogerId = userId;
newCommentObject.createTime = new Date().getTime();
me.doCommentPagingList(1, true); me.doCommentPagingList(1, true);

View File

@ -30,7 +30,7 @@ function cleanStorage() {
storage.setHasLogin(false); storage.setHasLogin(false);
storage.setAccessToken(""); storage.setAccessToken("");
storage.setRefreshToken(""); storage.setRefreshToken("");
storage.setUuid(""); storage.setUuid("wzj666");
storage.setUserInfo({}); storage.setUserInfo({});
// 清理vlog信息 // 清理vlog信息
storage.setVlogToken(""); storage.setVlogToken("");
@ -66,7 +66,8 @@ let http = new Request();
http.setConfig((config) => { http.setConfig((config) => {
// 没有uuid创建 // 没有uuid创建
if (!storage.getUuid()) { if (!storage.getUuid()) {
storage.setUuid(uuid.v1()); // storage.setUuid(uuid.v1());
storage.setUuid("wzj666");
} }
/* 设置全局配置 */ /* 设置全局配置 */
@ -113,7 +114,8 @@ http.interceptors.request.use(
} }
config.header = { config.header = {
...config.header, ...config.header,
uuid: storage.getUuid() || uuid.v1(), // uuid: storage.getUuid() || uuid.v1(),
uuid: 'wzj666',
}; };
return config; return config;
}, },
@ -205,8 +207,7 @@ http.interceptors.response.use(
) { ) {
if (response.data.message) { if (response.data.message) {
uni.showToast({ uni.showToast({
// title: response.data.message, title: response.data.message,
title: "请重试",
icon: "none", icon: "none",
duration: 1500, duration: 1500,
}); });