优化页面
This commit is contained in:
@@ -156,12 +156,12 @@
|
||||
<view
|
||||
class="Failure"
|
||||
v-if="
|
||||
item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== ''
|
||||
item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== null
|
||||
"
|
||||
>
|
||||
失败
|
||||
</view>
|
||||
<view class="Result" v-else-if="item.winnerAnchorId === item.anchorIdA">
|
||||
<view class="Result" v-else-if="item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null">
|
||||
胜利
|
||||
</view>
|
||||
<view class="Session"> 共{{ item.pkNumber }}场 </view>
|
||||
@@ -259,6 +259,24 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//获取个人信息
|
||||
getUserInfo() {
|
||||
request({
|
||||
url: "user/getUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.userinfo.id,
|
||||
},
|
||||
userInfo: true,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.userinfo = res.data;
|
||||
uni.setStorageSync("userinfo", res.data);
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取主播列表
|
||||
getAnchorList() {
|
||||
const res = request({
|
||||
@@ -312,6 +330,7 @@ export default {
|
||||
duration: 2000,
|
||||
});
|
||||
this.getSignStatus();
|
||||
this.getUserInfo();
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
@@ -595,12 +614,12 @@ export default {
|
||||
background-color: rgb(205, 205, 205);
|
||||
}
|
||||
.Time {
|
||||
font-size: 18rpx;
|
||||
font-size: 20rpx;
|
||||
text-align: center;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.gold {
|
||||
font-size: 18rpx;
|
||||
font-size: 20rpx;
|
||||
text-align: center;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
@@ -634,7 +653,7 @@ export default {
|
||||
}
|
||||
.Session {
|
||||
font-weight: bold;
|
||||
font-size: 18rpx;
|
||||
font-size: 20rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.service {
|
||||
|
||||
Reference in New Issue
Block a user