上传代码
This commit is contained in:
@@ -10,15 +10,29 @@
|
||||
<view class="title">站内信</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="building">
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">暂无数据</view>
|
||||
<view class="scrollView">
|
||||
<scroll-view
|
||||
show-scrollbar="false"
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
refresher-enabled="true"
|
||||
refresher-threshold="40"
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
lower-threshold="100"
|
||||
@scrolltolower="onScrollToLower"
|
||||
:refresher-triggered="triggered"
|
||||
>
|
||||
<view class="card" v-for="(item, index) in list" :key="index">
|
||||
<view class="cardTitle">{{ item.title }}</view>
|
||||
<view class="cardContent">
|
||||
{{ item.content }}
|
||||
</view>
|
||||
<view class="cardTime">
|
||||
<view class="cardTimeTitle">{{ item.time }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
@@ -28,10 +42,14 @@
|
||||
|
||||
<script>
|
||||
import tabBar from "../../components/tabBar/tabBar";
|
||||
import request from "../../components/request.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
list: [],
|
||||
triggered: false,
|
||||
page: 0,
|
||||
pageSize: 10,
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
@@ -43,10 +61,43 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
this.getlist();
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
|
||||
//获取列表数据
|
||||
getlist() {
|
||||
request({
|
||||
url: "systemMessage/list",
|
||||
data: {
|
||||
page: this.page,
|
||||
size: this.pageSize,
|
||||
},
|
||||
method: "POST",
|
||||
}).then((res) => {
|
||||
this.triggered = false;
|
||||
console.log(res);
|
||||
if (res.code === 200) {
|
||||
this.list.push(...res.data);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
//下拉刷新
|
||||
onRefresherRefresh() {
|
||||
console.log("下拉刷新");
|
||||
this.triggered = true;
|
||||
this.list = [];
|
||||
this.page = 0;
|
||||
this.getlist();
|
||||
},
|
||||
|
||||
//上拉加载
|
||||
onScrollToLower() {
|
||||
this.page ++;
|
||||
this.getlist();
|
||||
},
|
||||
|
||||
},
|
||||
components: {
|
||||
tabBar,
|
||||
@@ -70,7 +121,7 @@ export default {
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 345rpx;
|
||||
left: 335rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
@@ -98,4 +149,61 @@ export default {
|
||||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
.scrollView{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.scroll{
|
||||
width: 100%;
|
||||
height: 93%;
|
||||
}
|
||||
.card{
|
||||
width: 570rpx;
|
||||
background-color: #ffffff;
|
||||
margin-top: 20rpx;
|
||||
margin-left: 50rpx;
|
||||
margin-right: 50rpx;
|
||||
border-radius: 20rpx;
|
||||
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding-left: 40rpx;
|
||||
padding-right: 40rpx;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 40rpx;
|
||||
}
|
||||
.cardTitle{
|
||||
width: 570rpx;
|
||||
height: 60rpx;
|
||||
margin-top: -10rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
overflow: hidden; /* 隐藏溢出 */
|
||||
text-overflow: ellipsis; /* 显示省略号 */
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cardContent{
|
||||
width: 570rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding: 30rpx 0;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.cardTime{
|
||||
width: 100%;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
align-items: center;
|
||||
}
|
||||
.cardTimeTitle{
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="copyright">版权所有 © 2025 ...................</view>
|
||||
<!-- <view class="copyright">版权所有 © 2025 ...................</view> -->
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="tabBar">
|
||||
|
||||
@@ -16,15 +16,9 @@
|
||||
</view>
|
||||
<view class="title">联系客服</view>
|
||||
<view class="content">
|
||||
<view class="building">
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">建设中~</view>
|
||||
<view class="contactContent">
|
||||
<view class="Title">长按下方复制客服邮箱,即可直接发送邮件给客服,我们将竭诚为您服务!</view>
|
||||
<text class="copy-text" @longpress="handleCopy">{{ content }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -35,6 +29,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
content:"PK@TikTok0.xyz"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -49,8 +44,26 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//长按复制邮箱
|
||||
handleCopy() {
|
||||
// 复制到剪贴板
|
||||
uni.setClipboardData({
|
||||
data: this.content,
|
||||
success: () => {
|
||||
// 显示成功提示
|
||||
uni.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'success',
|
||||
duration: 1500
|
||||
});
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error('复制失败:', err);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
// 返回上一页
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
@@ -82,7 +95,7 @@ export default {
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 335rpx;
|
||||
left: 325rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
@@ -99,6 +112,14 @@ export default {
|
||||
right: 0rpx;
|
||||
bottom: 100rpx;
|
||||
}
|
||||
.contactContent{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.building {
|
||||
width: 100%;
|
||||
height: 90%;
|
||||
@@ -114,4 +135,27 @@ export default {
|
||||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
.Title{
|
||||
width: 80%;
|
||||
font-size: 30rpx;
|
||||
color: #4fcacd;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.copy-text{
|
||||
width: 60%;
|
||||
height: 200rpx;
|
||||
font-size: 28rpx;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 100rpx;
|
||||
line-height: 200rpx;
|
||||
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
|
||||
border-radius:20rpx;
|
||||
padding: 20rpx;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -8,16 +8,30 @@
|
||||
</view>
|
||||
<view class="title">服务协议</view>
|
||||
<view class="content">
|
||||
<view class="building">
|
||||
<view>
|
||||
<image
|
||||
style="width: 500rpx;"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/building.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="buildingTitle">建设中~</view>
|
||||
<scroll-view show-scrollbar="false" scroll-y="true" class="scroll">
|
||||
<view class="serviceProtocolContent">
|
||||
<view class="spctitlecss">《PK 助手 Global》用户服务协议</view>
|
||||
<view class="spccontent">欢迎您使用《PK 助手 Global》(以下简称“本小程序”)。在使用本小程序提供的各项服务前,请您务必认真阅读并充分理解本协议内容,特别是免除或限制责任的条款。您的使用行为即视为对本协议全部内容的认可。</view>
|
||||
<view class="spctitle">一、服务内容</view>
|
||||
<view class="spccontent">本小程序为用户提供包括但不限于 TikTok PK 约战信息展示、约定、实时监控、排行榜、数据分析等辅助功能。所有服务仅供用户个人学习、交流或辅助使用,不构成商业承诺或担保。</view>
|
||||
<view class="spctitle"> 二、用户使用规范</view>
|
||||
<view class="spccontent"> 1. 用户不得利用本小程序进行任何违法、违规或侵害他人合法权益的行为;</view>
|
||||
<view class="spccontent"> 2. 不得试图干扰、破坏小程序正常运行;</view>
|
||||
<view class="spccontent"> 3. 不得逆向分析、复制、出售、转让或非法传播小程序内容与技术。</view>
|
||||
<view class="spctitle"> 三、隐私与数据保护</view>
|
||||
<view class="spccontent">我们高度重视您的隐私权,本小程序可能会收集部分必要的设备信息或行为数据(如使用频率、操作日志),仅用于优化产品功能。我们承诺不收集任何个人敏感信息(如身份证号、支付信息、联系人等),不对外披露或转让任何用户数据,除非法律法规要求。</view>
|
||||
<view class="spctitle"> 四、免责声明</view>
|
||||
<view class="spccontent">1. 本小程序作为辅助工具,不对第三方平台的可用性、稳定性、数据准确性做出保证;</view>
|
||||
<view class="spccontent">2. 如因网络、平台变动、设备问题等不可控因素造成服务中断或异常,开发者不承担责任;</view>
|
||||
<view class="spccontent">3. 对于用户因使用本程序产生的任何直接或间接损失,开发者不承担法律责任。</view>
|
||||
<view class="spctitle"> 五、知识产权</view>
|
||||
<view class="spccontent">本小程序及其所有内容(包括界面、图标、代码、文案等)归开发者所有,受相关法律保护。未经授权,禁止任何形式的复制、传播、修改或商业使用。</view>
|
||||
<view class="spctitle"> 六、协议修改与终止</view>
|
||||
<view class="spccontent">我们有权根据需要不时更新本协议,并以适当方式通知用户。修改后的协议一经公布即视为生效,若您继续使用本程序,则视为接受修改内容。如您不同意本协议或其任何修改内容,您应立即停止使用。</view>
|
||||
<view class="spctitle"> 七、适用法律与争议解决</view>
|
||||
<view class="spccontent">本协议的订立、执行与解释及争议的解决均应适用中华人民共和国法律。因本协议产生的任何争议,双方应友好协商解决,协商不成的,提交开发者所在地人民法院诉讼解决。</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -106,4 +120,36 @@ export default {
|
||||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
.scroll{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.serviceProtocolContent{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.spctitlecss{
|
||||
font-size: 30rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.spctitle{
|
||||
width: 650rpx;
|
||||
font-size: 24rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.spccontent{
|
||||
width: 650rpx;
|
||||
font-size: 20rpx;
|
||||
color: #666666;
|
||||
text-align: justify;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
<template>
|
||||
<view class="return" @click="Return">
|
||||
<image
|
||||
style="width: 40rpx; height: 40rpx"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="container">
|
||||
<button class="login-btn" open-type="chooseAvatar" @chooseavatar="Userinfo">
|
||||
<image class="avatar" :src="userinfo"></image>
|
||||
@@ -24,7 +31,7 @@ export default {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
return {
|
||||
userinfo:"",
|
||||
userinfo: "",
|
||||
name: "",
|
||||
id: "",
|
||||
info: {},
|
||||
@@ -60,6 +67,12 @@ export default {
|
||||
// this.id = JSON.parse(info).id
|
||||
},
|
||||
methods: {
|
||||
// 返回首页
|
||||
Return() {
|
||||
uni.reLaunch({
|
||||
url: "/pages/Home/Home",
|
||||
});
|
||||
},
|
||||
// 输入昵称
|
||||
inputName(e) {
|
||||
this.name = e.detail.value;
|
||||
@@ -71,10 +84,7 @@ export default {
|
||||
},
|
||||
// 微信登录
|
||||
async wxLogin(e) {
|
||||
if (
|
||||
this.name !== "" &&
|
||||
this.userinfo !== ""
|
||||
) {
|
||||
if (this.name !== "" && this.userinfo !== "") {
|
||||
uni.showLoading({
|
||||
title: "登录中...",
|
||||
mask: true,
|
||||
@@ -116,7 +126,7 @@ export default {
|
||||
//````````````````````````````````````````````````````````````````````
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
@@ -170,4 +180,10 @@ export default {
|
||||
background-color: #11cb2a00;
|
||||
color: #fff;
|
||||
}
|
||||
.return {
|
||||
position: fixed;
|
||||
top: 100rpx;
|
||||
left: 80rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
<template>
|
||||
<view class="return" @click="Return">
|
||||
<image
|
||||
style="width:40rpx;height:40rpx;"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="container">
|
||||
<image class="logo" :src="userInfo.avatarUrl"></image>
|
||||
<view class="nickname"> {{ userInfo.nickName }}</view>
|
||||
<button class="login-btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
|
||||
使用微信登录
|
||||
使用手机号快捷登录
|
||||
</button>
|
||||
<view class="return" @click="Return">返回首页</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -156,11 +162,9 @@ export default {
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.return{
|
||||
margin-top: 30rpx;
|
||||
width: 300rpx;
|
||||
height: 100rpx;
|
||||
color: rgb(255, 255, 255);
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
position: fixed;
|
||||
top: 100rpx;
|
||||
left: 80rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user