优化页面

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

@@ -133,11 +133,12 @@
</view>
</view>
</view>
<view class="button" v-if="PkIDInfodata.pkStatus === 0">
<!-- 邀请信息 -->
<view class="button" v-if="PkIDInfodata.pkStatus === 0 && ReceiverData.senderId !== id">
<button class="accept" @click="operation(1)">接受邀请</button>
<button class="reject" @click="operation(2)">拒绝邀请</button>
</view>
<view v-if="ReceiverData.senderId === id && PkIDInfodata.pkStatus === 0" class="button buttontext">等待对方接受邀请</view>
<view v-if="PkIDInfodata.pkStatus === 1" class="button buttontext">已接受邀请</view>
<view v-if="PkIDInfodata.pkStatus === 2" class="button buttontext">已拒绝邀请</view>
</view>
@@ -154,9 +155,16 @@ export default {
SenderData: {},
ReceiverData: {},
PkIDInfodata: {},
id: "",
};
},
onLoad(options) {
uni.getStorage({
key: "userinfo",
success: (res) => {
this.id = res.data.id;
},
});
this.customData = JSON.parse(options.customData);
this.getPkyourInfo();
this.getPkmineInfo();