xiongzhu hace 4 años
padre
commit
3ec0b8813f
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      src/views/asset/Detail.vue

+ 6 - 4
src/views/asset/Detail.vue

@@ -467,7 +467,7 @@ export default {
                 })
                 })
                 .then(() => {
                 .then(() => {
                     if (dayjs().isSameOrBefore(dayjs(this.orderInfo.payTime).add(this.holdDays, 'days'))) {
                     if (dayjs().isSameOrBefore(dayjs(this.orderInfo.payTime).add(this.holdDays, 'days'))) {
-                        this.$toast(this.holdDays + '天才能寄售');
+                        this.$toast('持有满' + this.holdDays + '天才能寄售');
                     } else if (!this.info.consignment) {
                     } else if (!this.info.consignment) {
                         Dialog.confirm({
                         Dialog.confirm({
                             title: '寄售上架',
                             title: '寄售上架',
@@ -493,9 +493,7 @@ export default {
                 });
                 });
         },
         },
         Add() {
         Add() {
-            if (this.userInfo.authStatus === 'SUCCESS') {
-                this.$router.push('/giveSearch?id=' + this.info.id);
-            } else if (this.userInfo.authStatus === 'PENDING' || this.userInfo.authStatus === 'FAIL') {
+            if (this.userInfo.authStatus === 'PENDING' || this.userInfo.authStatus === 'FAIL') {
                 Dialog.confirm({
                 Dialog.confirm({
                     title: '认证信息',
                     title: '认证信息',
                     message: '用户认证中,是否查看认证'
                     message: '用户认证中,是否查看认证'
@@ -509,6 +507,10 @@ export default {
                 }).then(() => {
                 }).then(() => {
                     this.$router.push('/Authentication');
                     this.$router.push('/Authentication');
                 });
                 });
+            } else if (dayjs().isSameOrBefore(dayjs(this.orderInfo.payTime).add(this.holdDays, 'days'))) {
+                this.$toast('持有满' + this.holdDays + '天才能转赠');
+            } else if (this.userInfo.authStatus === 'SUCCESS') {
+                this.$router.push('/giveSearch?id=' + this.info.id);
             }
             }
         },
         },
         Exhibition() {
         Exhibition() {