فهرست منبع

合约期规则优化

hml 2 سال پیش
والد
کامیت
1c09c0b090
1فایلهای تغییر یافته به همراه8 افزوده شده و 7 حذف شده
  1. 8 7
      purchase_H5/src/components/unbuyModal.vue

+ 8 - 7
purchase_H5/src/components/unbuyModal.vue

@@ -260,14 +260,15 @@ export default {
           let orderMonth = parseInt(orderTime.substring(4, 6))
           let orderDay = parseInt(orderTime.substring(6, 8))
           if (orderYear == year) {
-            if ((month - orderMonth) < 6) {
+            if ((month - orderMonth) < 5) {
+              this.opoutShow = true
+            } else {
+              this.unbuyClick()
+            }
+          } else if ((year - orderYear) == 1) {
+            let number = (12 - orderMonth) + month
+            if (number < 5) {
               this.opoutShow = true
-            } else if ((month - orderMonth) == 6) {
-              if (day - orderDay > 0) {
-                this.unbuyClick()
-              } else {
-                this.opoutShow = true
-              }
             } else {
               this.unbuyClick()
             }