This commit is contained in:
shijingjing
2022-05-27 15:30:17 +08:00
parent f114f81888
commit 341a77efb4

View File

@@ -24,7 +24,7 @@
<div class="address">{{ detail.address }}</div>
</div>
</div>
<div class="btn-wrapper" v-if="type==1">
<div class="btn-wrapper" v-if="detail.openId == user.openId">
<div class="btn" @click="unDo" hover-class="text-hover">撤销发布</div>
</div>
<!-- <div class="btn" @click="unDo" v-if="type==1">撤销发布</div> -->
@@ -32,6 +32,7 @@
</template>
<script>
import {mapState} from 'vuex'
export default {
name: "agDetail",
appName: "农产品详情",
@@ -47,6 +48,9 @@ export default {
this.type = opt.type;
this.getDetail();
},
computed: {
...mapState(['user'])
},
methods: {
preview(index) {
this.$previewImage(this.detail.files, index, "url");