panhui há 3 anos atrás
pai
commit
fa75ce3427
2 ficheiros alterados com 30 adições e 15 exclusões
  1. 29 14
      src/views/Discover.vue
  2. 1 1
      src/views/asset/Detail.vue

+ 29 - 14
src/views/Discover.vue

@@ -266,20 +266,6 @@ export default {
             empty: false,
             scrollTop: 0,
             sort: 'collection',
-            selectOptions: [
-                {
-                    label: '数字商品',
-                    value: 'collection'
-                },
-                {
-                    label: '元域名',
-                    value: 'domain'
-                },
-                {
-                    label: '个人作品',
-                    value: 'collection_MY'
-                }
-            ],
             icons: [
                 require('../assets/info_icon_lvzhoutoutiao.png'),
                 require('../assets/info_icon_lvzhougongyi.png'),
@@ -310,6 +296,35 @@ export default {
             } else {
                 return this.list;
             }
+        },
+        selectOptions() {
+            if (!this.$store.state.review) {
+                return [
+                    {
+                        label: '数字商品',
+                        value: 'collection'
+                    },
+                    {
+                        label: '元域名',
+                        value: 'domain'
+                    },
+                    {
+                        label: '个人作品',
+                        value: 'collection_MY'
+                    }
+                ];
+            } else {
+                return [
+                    {
+                        label: '数字商品',
+                        value: 'collection'
+                    },
+                    {
+                        label: '个人作品',
+                        value: 'collection_MY'
+                    }
+                ];
+            }
         }
     },
     mounted() {

+ 1 - 1
src/views/asset/Detail.vue

@@ -498,7 +498,7 @@
                 </div>
 
                 <div class="more-btns-content" v-else>
-                    <van-button v-if="!isOlder" @click="Consignment" type="primary" block round>
+                    <van-button v-if="!isOlder && !$store.state.review" @click="Consignment" type="primary" block round>
                         {{ info.consignment ? '取消一口价' : '一口价拍卖' }}
                     </van-button>
                     <!-- <van-button v-if="!isOlder" @click="publish" color="#FF7F1F" block round> 竞价拍卖 </van-button> -->