优化页面

This commit is contained in:
pengxiaolong
2025-06-06 22:36:41 +08:00
parent f4901f1312
commit d30589fd05
99 changed files with 1091 additions and 1310 deletions

View File

@@ -54,16 +54,16 @@
</view>
</view>
<view class="card">
<view class="cardContent">
<view class="cardContent"v-for="(item,index) in myPkRecorddata" :key="index">
<view class="cardImg">
<image src="" mode="scaleToFill" />
<image :src="item.anchorIconA" mode="scaleToFill" />
</view>
<!-- <view class="Failure">
<view class="Failure"v-if="item.winnerAnchorId !== item.anchorIdA">
失败
</view> -->
<view class="Result"> 胜利 </view>
<view class="Session"> </view>
<view class="Time"> 20:30 </view>
</view>
<view class="Result" v-else-if="item.winnerAnchorId === item.anchorIdA"> 胜利 </view>
<view class="Session"> {{item.pkNumber}} </view>
<view class="Time">{{TimeFormatting(item.pkTime)}}</view>
</view>
</view>
</view>
@@ -84,7 +84,7 @@
<view class="cardtext">联系客服</view>
</view>
<view class="service">
<view class="service" @click="serviceProtocol">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="../../static/Agreement.png"
@@ -115,6 +115,7 @@
import tabBar from "../../components/tabBar/tabBar";
import request from "../../components/request.js";
import formatDate from "../../components/formatDate.js";
import TimeFormatting from "../../components/TimeFormatting.js";
export default {
data() {
@@ -137,6 +138,7 @@ export default {
},
methods: {
formatDate: formatDate,
TimeFormatting: TimeFormatting,
//获取pk信息
getpkInformation(){
const res = request({
@@ -202,20 +204,15 @@ export default {
url: "/pages/Setting/Setting",
});
},
// 跳转到服务协议页面
serviceProtocol() {
uni.navigateTo({
url: "/pages/Mine/minecomponents/serviceProtocol",
});
},
// 退出登录
logout() {
uni.removeStorage({
key: "chatInfo",
});
uni.removeStorage({
key: "userinfo",
});
uni.removeStorage({
key: "userSig",
});
uni.removeStorage({
key: "lastPage",
});
uni.clearStorage()
uni.reLaunch({
url: "/pages/login/login",
});

View File

@@ -1,6 +1,12 @@
<template>
<view class="contact">
<h1>联系方式</h1>
<view class="bg">
<image class="bgImg" src="../../../static/HomeBackground.png" mode="scaleToFill" />
</view>
<view class="Return" @click="onBack">
<image class="ReturnImg" src="../../../static/Return.png" mode="scaleToFill" />
</view>
<view class="title">联系客服</view>
</view>
</template>
@@ -15,17 +21,46 @@
// 页面加载时执行
},
methods: {
// 方法定义
onBack() {
// 返回上一页
wx.navigateBack({
delta: 1
})
}
}
}
</script>
<style scoped>
.contact{
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.bg {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: absolute;
top: 110rpx;
left: 35rpx;
width: 46rpx;
height: 46rpx;
}
.title {
position: absolute;
top: 120rpx;
left: 315rpx;
font-size: 34rpx;
color: #100e0f;
font-weight: 500;
}
.ReturnImg {
width: 100%;
height: 100%;
}
</style>

View File

@@ -102,31 +102,7 @@ export default {
slidetext: "我发布的PK", // 导航栏文字
pkmyRecordlist: [], // PK记录列表
pkInvitationRecordlist: [], // PK记录列表
pkRecordlist: [{
winnerId: "1",
pkTime: "1626211200",
anchorIdA: "123",
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
userAcoin: "100",
anchorIdB: "456",
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
userBcoin: "200",
senderA: "123",
senderB: "456",
},
{
winnerId: "2",
pkTime: "1626211200",
anchorIdA: "789",
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
userAcoin: "100",
anchorIdB: "101",
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
userBcoin: "200",
senderA: "789",
senderB: "101",
},
], // PK记录列表
pkRecordlist: [], // PK记录列表
userinfo: {}, // 用户信息
page: 0, // 页码
};

View File

@@ -215,7 +215,7 @@ export default {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = "";
this.genders = 0;
this.numberCoins = "";
this.remarks = "";
this.datetimesingle = "";
@@ -234,7 +234,7 @@ export default {
//判断是否为空
if (
this.nameAnchor == "" && this.nameAnchor == null ||
this.genders == "" && this.genders == null ||
this.genders == 0 && this.genders == null ||
this.numberCoins =="" && this.numberCoins == null ||
this.datetimesingle == "" && this.datetimesingle == null ||
this.countrys == "" && his.countrys == null ||

View File

@@ -0,0 +1,66 @@
<template>
<view class="service-protocol">
<view class="bg">
<image class="bgImg" src="../../../static/HomeBackground.png" mode="scaleToFill" />
</view>
<view class="Return" @click="onBack">
<image class="ReturnImg" src="../../../static/Return.png" mode="scaleToFill" />
</view>
<view class="title">服务协议</view>
</view>
</template>
<script>
export default {
data() {
return {
title: "Hello",
};
},
onLoad() {
// 页面加载时执行
},
methods: {
onBack() {
// 返回上一页
wx.navigateBack({
delta: 1,
});
},
},
};
</script>
<style scoped>
.bg {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: absolute;
top: 110rpx;
left: 35rpx;
width: 46rpx;
height: 46rpx;
}
.title {
position: absolute;
top: 120rpx;
left: 315rpx;
font-size: 34rpx;
color: #100e0f;
font-weight: 500;
}
.ReturnImg {
width: 100%;
height: 100%;
}
</style>