优化页面

This commit is contained in:
pengxiaolong
2025-06-09 19:18:38 +08:00
parent d30589fd05
commit c5042d08c3
811 changed files with 2799 additions and 503 deletions

View File

@@ -6,7 +6,7 @@
<view class="PersonalInformation">
<view class="header">
<image :src="userinfo.headerIcon" mode="scaleToFill" class="headerIcon" />
<image :src="userinfo.headerIcon" style="width: 144.5rpx; height: 144.5rpx; border-radius: 72.25rpx;" mode="scaleToFill" class="headerIcon" />
</view>
<view>
<view class="name">{{ userinfo.nickName }}</view>
@@ -33,7 +33,7 @@
<view class="card">
<view class="cardContent" v-for="(item,index) in pkInformationdata" :key="index">
<view class="cardImg">
<image :src="item.anchorIcon" mode="scaleToFill" />
<image :src="item.anchorIcon" style="width: 80rpx; height: 80rpx; border-radius: 72.25rpx;" mode="scaleToFill" />
</view>
<view class="Time">{{ formatDate(item.pkTime) }}</view>
<view class="gold"> {{item.coin}}K</view>
@@ -56,7 +56,7 @@
<view class="card">
<view class="cardContent"v-for="(item,index) in myPkRecorddata" :key="index">
<view class="cardImg">
<image :src="item.anchorIconA" mode="scaleToFill" />
<image style="width: 80rpx; height: 80rpx;border-radius: 72.25rpx;" :src="item.anchorIconA" mode="scaleToFill" />
</view>
<view class="Failure"v-if="item.winnerAnchorId !== item.anchorIdA">
失败
@@ -116,6 +116,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";
import { TUILogin } from "@tencentcloud/tui-core";
export default {
data() {
@@ -149,7 +150,7 @@ export default {
page:0,
size:4
},
userInfo: false,
userInfo: true,
}).then((res) => {
if (res.code == 200) {
this.pkInformationdata = res.data;
@@ -211,8 +212,9 @@ export default {
});
},
// 退出登录
logout() {
logout(){
uni.clearStorage()
TUILogin.logout;
uni.reLaunch({
url: "/pages/login/login",
});

View File

@@ -20,7 +20,7 @@
>
<uni-card class="card" v-for="(item, index) in pkList" :key="index">
<view class="Profile">
<image style="width: 89.12rpx; height: 89.12rpx" src="" mode="scaleToFill" />
<image :src="item.anchorIcon" style="width: 89.12rpx; height: 89.12rpx;border-radius: 72.25rpx;" mode="scaleToFill" />
</view>
<view class="Individual">
<view class="Name">{{ item.anchorId }}</view>
@@ -63,8 +63,8 @@
</view>
<view class="time">PK时间:{{ formatDate(item.pkTime) }}</view>
</view>
<view class="handle">
<!-- <view class="handle" v-if="item.status === 0"> -->
<!-- <view class="handle"> -->
<view class="handle" v-if="item.inviteStatus === 0">
<view class="recompose" @click="onRecompose(item)">
<image
style="width: 46rpx; height: 46rpx"
@@ -148,7 +148,7 @@ export default {
page: this.page,
size: 10,
},
userInfo: false,
userInfo: true,
}).then((res) => {
if (res.code == 200) {
this.pkList.push(...res.data);
@@ -170,7 +170,7 @@ export default {
data: {
id: item.id,
},
userInfo: false,
userInfo: true,
}).then((res) => {
if (res.code == 200) {
uni.showToast({