优化页面

This commit is contained in:
pengxiaolong
2025-06-11 22:16:44 +08:00
parent 3c2d7e5959
commit 931d867c09
806 changed files with 87462 additions and 331 deletions

View File

@@ -22,13 +22,13 @@
@scrolltolower="onScrollToLower"
:refresher-triggered="triggered"
>
<uni-card v-if="list.length !== 0" v-for="(item, index) in list">
<uni-card v-if="list.length !== 0" v-for="(item, index) in list" :key="index">
<view class="content-list" @click="goDetail(item)">
<!-- `````````````````````````` -->
<image class="headShot" :src="item.anchorIcon" mode="scaleToFill" />
<!-- `````````````````````````````````````` -->
<view class="content-list-title">
<view class="cardname">{{ item.anchorId }}</view>
<view class="cardname">{{ item.disPlayId }}</view>
<view class="content-list-info">
<view
:class="{ Gendermale: item.sex === '1', Genderfemale: item.sex === '2' }"
@@ -59,7 +59,7 @@
</scroll-view>
</view>
<view class="tabBar">
<tabBar></tabBar>
<tabBar :tabIndex="0"></tabBar>
</view>
</template>
@@ -108,6 +108,7 @@ export default {
key: "chatInfo",
success: (res) => {
this.chatInfo = res.data;
console.log("chatInfo", this.chatInfo);
TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);
},
});
@@ -148,12 +149,14 @@ export default {
title: "加载中...",
mask: true,
});
console.log("id", item.id);
console.log("id", item.id,this.info.id);
//获取详情
const res = await request({
url: "pk/pkInfoDetail",
method: "POST",
data: {
id: item.id,
userId: this.info.id,
},
userInfo: true,
});
@@ -187,6 +190,7 @@ export default {
formatDate: formatDate,
async pkList(condition) {
//获取list
const res = await request({
url: "pk/pkList",
method: "POST",
@@ -195,6 +199,7 @@ export default {
page: this.page,
size: this.size,
condition: condition,
userId: this.info.id,
},
userInfo: false,
});