Jelajahi Sumber

Merge branch 'dev' of xiongzhu/raex_front into master

panhui 4 tahun lalu
induk
melakukan
022f5aad77
1 mengubah file dengan 9 tambahan dan 2 penghapusan
  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: {