From f5ea01314df6f552e8b15b1af283a7b278610ab6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 15 五月 2024 17:36:16 +0800
Subject: [PATCH] 提交一把

---
 wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_application/addition_subtraction_application.js |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_application/addition_subtraction_application.js b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_application/addition_subtraction_application.js
index 02f4d26..ce69fb9 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_application/addition_subtraction_application.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_application/addition_subtraction_application.js
@@ -357,6 +357,7 @@
                       _this2.maxDate = _this2.formatTimeStamp(e.value[0].endTime);
                     }
                   }
+                  _this2.confirm2();
                   _this2.show = false;
                 }
               case 4:
@@ -388,6 +389,20 @@
         }
       });
     },
+    confirm2: function confirm2(e) {
+      var _this4 = this;
+      this.$u.api.getChangeCountCyclePriceVO({
+        applyId: this.id,
+        validTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd') + ' 00:00:00'
+      }).then(function (res) {
+        if (res.code === 200) {
+          _this4.model.cyclePrice = res.data.cyclePrice;
+          _this4.show1 = false;
+        } else {
+          _this4.model.startDate = '';
+        }
+      });
+    },
     // 鑾峰彇鏄庡ぉ鏃ユ湡
     getTomorrow: function getTomorrow() {
       var today = new Date();
@@ -416,10 +431,10 @@
       return "".concat(year, "-").concat(month, "-").concat(day);
     },
     submit: function submit() {
-      var _this4 = this;
+      var _this5 = this;
       this.$refs.uForm.validate().then(function (res) {
         uni.navigateTo({
-          url: "/pages/addition_subtraction/addition_subtraction?id=".concat(_this4.model.id, "&codeId=").concat(_this4.id, "&cyclePrice=").concat(_this4.model.cyclePrice, "&startDate=").concat(_this4.model.startDate, "&code=").concat(_this4.model.code)
+          url: "/pages/addition_subtraction/addition_subtraction?id=".concat(_this5.model.id, "&codeId=").concat(_this5.id, "&cyclePrice=").concat(_this5.model.cyclePrice, "&startDate=").concat(_this5.model.startDate, "&code=").concat(_this5.model.code)
         });
       }).catch(function (errors) {});
     }

--
Gitblit v1.9.3