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