|
@@ -22,8 +22,8 @@
|
|
|
</view>
|
|
|
<view class="btns">
|
|
|
<u-button type="warning" text="分享好友" class="share"></u-button>
|
|
|
- <u-button type="error" text="立即联系" class="contact" @click="toContact"></u-button>
|
|
|
- <u-button type="primary" text="立即购买" class="buy" @click="toBuy"></u-button>
|
|
|
+ <u-button type="error" text="立即联系" class="contact" @click="toContact" v-if="!isMine"></u-button>
|
|
|
+ <u-button type="primary" text="立即购买" class="buy" @click="toBuy" v-if="!isMine"></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -67,7 +67,7 @@
|
|
|
<view class="remark-container">
|
|
|
<view class="title">
|
|
|
<view class="tit">全部留言</view>
|
|
|
- <view class="right">内容违规,我要举报</view>
|
|
|
+ <view class="right" v-if="!isMine">内容违规,我要举报</view>
|
|
|
</view>
|
|
|
<view class="item" v-for="(item, index) in remarkList" :key="index">
|
|
|
<view class="top">
|
|
@@ -90,7 +90,7 @@
|
|
|
<template slot="footer">
|
|
|
<view class="bottom-container">
|
|
|
<u-button text="留言" type="primary" shape="circle" @click="openRemark()"></u-button>
|
|
|
- <u-button text="操作" type="primary" shape="circle" @click="isShowActionDialog = true"></u-button>
|
|
|
+ <u-button text="操作" type="primary" shape="circle" @click="isShowActionDialog = true" v-if="isMine"></u-button>
|
|
|
</view>
|
|
|
</template>
|
|
|
</zj-page-layout>
|
|
@@ -146,6 +146,12 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ computed: {
|
|
|
+ isMine() {
|
|
|
+ return this.$store.state.user.userId === this.detail.userId;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
onLoad({id}) {
|
|
|
this.id = id;
|
|
|
this.getDetail();
|