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