优化页面
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user