panhui há 4 anos atrás
pai
commit
6fff0c0e7f
1 ficheiros alterados com 9 adições e 2 exclusões
  1. 9 2
      src/views/product/Detail.vue

+ 9 - 2
src/views/product/Detail.vue

@@ -400,7 +400,7 @@ export default {
     },
     mounted() {
         this.$store.dispatch('getUsedBuy');
-        this.$store.dispatch('getTime');
+        // this.$store.dispatch('getTime');
         this.$store.dispatch('getUserInfo');
         console.log(this.$route.params);
         if (this.$route.params.id) {
@@ -606,7 +606,14 @@ export default {
                 //             this.goAuth();
                 //         });
                 // }
-                else {
+                else if (this.info.minimumCharge && !this.$store.state.userInfo.canSale) {
+                    this.$dialog
+                        .alert({
+                            title: '提示',
+                            message: '绿洲石未达到' + this.info.minimumCharge + '或未实名认证'
+                        })
+                        .then(() => {});
+                } else {
                     this.$router.push({
                         path: '/submit',
                         query: {