|
|
@@ -89,13 +89,7 @@
|
|
|
<img class="grid-img" src="@assets/discover/info_icon_lvzhougongyi.png" />
|
|
|
</template>
|
|
|
</van-grid-item>
|
|
|
- <van-grid-item
|
|
|
- text="拍卖中心"
|
|
|
- :to="{
|
|
|
- path: '/auction'
|
|
|
- }"
|
|
|
- v-if="!$store.state.review"
|
|
|
- >
|
|
|
+ <van-grid-item text="拍卖中心" @click="goAuction" v-if="!$store.state.review">
|
|
|
<template v-slot:icon>
|
|
|
<img class="grid-img" src="@assets/info_icon_paimaixilie.png" />
|
|
|
</template>
|
|
|
@@ -386,6 +380,20 @@ export default {
|
|
|
.catch(() => {
|
|
|
this.wait();
|
|
|
});
|
|
|
+ },
|
|
|
+ goAuction() {
|
|
|
+ this.$http
|
|
|
+ .get('/sysConfig/get/auction_show')
|
|
|
+ .then(res => {
|
|
|
+ if (res.value === true || res.value === '1') {
|
|
|
+ this.$router.push('/auction');
|
|
|
+ } else {
|
|
|
+ return Promise.reject();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.wait();
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
activated() {
|