From a43f9d75a9e0ba2720b3c438a0c5ece7be0eb110 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 28 五月 2025 18:23:45 +0800
Subject: [PATCH] git ch

---
 wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js |  260 ++++++++++++++-------------------------------------
 1 files changed, 71 insertions(+), 189 deletions(-)

diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js b/wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js
index 608bd2b..14b3594 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js
@@ -198,158 +198,10 @@
 });
 exports.default = void 0;
 var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
+var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
+var _vuex = __webpack_require__(/*! vuex */ 160);
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
 var _default = {
   data: function data() {
     return {
@@ -370,7 +222,8 @@
       code: '',
       num: 0,
       error: false,
-      timer: null
+      timer: null,
+      loading: false
     };
   },
   onLoad: function onLoad(option) {
@@ -380,63 +233,92 @@
   onReachBottom: function onReachBottom() {
     this.getList();
   },
+  computed: _objectSpread({}, (0, _vuex.mapState)(['userInfo'])),
   methods: {
+    send: function send() {
+      var _this = this;
+      this.$u.api.sendSms({
+        phone: this.userInfo.mobile
+      }).then(function (res) {
+        if (res.code === 200) {
+          _this.num = 60;
+          _this.setTime();
+        }
+      });
+    },
+    setTime: function setTime() {
+      var _this2 = this;
+      this.timer = setInterval(function () {
+        if (_this2.num === 0) {
+          clearInterval(_this2.timer);
+          _this2.timer = null;
+          return;
+        }
+        _this2.num = _this2.num - 1;
+      }, 1000);
+    },
     // 绛剧讲
     confirm1: function confirm1() {
-      var _this = this;
-      if (!this.code) {
-        this.error = 1;
-        return;
-      }
+      var _this3 = this;
+      // if (!this.code) {
+      // 	this.error = 1
+      // 	return
+      // }
+      this.loading = true;
       // 绛剧讲鎶曚繚鍗�
       if (this.type === 1) {
         this.$u.api.validateCode({
           code: this.code
         }).then(function (res) {
           if (res.code === 200) {
-            _this.error = '';
-            _this.show1 = false;
-            _this.$u.api.getJiajianBaoSignLink({
-              id: _this.info.id
+            // this.error = ''
+            // this.show1 = false
+            _this3.$u.api.getJiajianBaoSignLink({
+              id: _this3.info.id
             }).then(function (url) {
+              _this3.loading = false;
               if (url.code === 200) {
                 uni.navigateTo({
                   url: "/pages/webView/webView?url=".concat(encodeURIComponent(url.data))
                 });
               }
             });
-          } else {
-            _this.error = 2;
           }
+          //  else {
+          // 	this.error = 2
+          // }
         });
-        this.show1 = false;
+        // this.show1 = false
         // 鐢宠鍗�
       } else if (this.type === 2) {
         this.$u.api.getChangeMemberListOnlineSignLink({
           businessId: this.info.id,
           code: this.code
         }).then(function (res) {
+          _this3.loading = false;
           if (res.code === 200) {
-            _this.error = '';
-            _this.show1 = false;
+            // this.error = ''
+            // this.show1 = false
             uni.navigateTo({
               url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data))
             });
-          } else {
-            _this.error = 2;
           }
+          //  else {
+          // 	this.error = 2
+          // }
         });
       }
     },
     // 鎵撳紑鍙戦�侀獙璇佺爜寮圭獥
     openmessage: function openmessage(type) {
-      this.code = '';
-      clearInterval(this.timer);
-      this.error = '';
-      this.timer = null;
-      this.num = 0;
+      // this.code = ''
+      // clearInterval(this.timer)
+      // this.error = ''
+      // this.timer = null
+      // this.num = 0
       this.type = type;
-      this.show1 = true;
+      this.confirm1();
+      // this.show1 = true
     },
     // 鏌ョ湅pdf
     seePdf: function seePdf(url) {
@@ -453,16 +335,16 @@
       });
     },
     getDetail: function getDetail() {
-      var _this2 = this;
+      var _this4 = this;
       this.$u.api.applyChangeById(this.id).then(function (res) {
         if (res.code === 200) {
-          _this2.info = res.data;
-          _this2.getList();
+          _this4.info = res.data;
+          _this4.getList();
         }
       });
     },
     getList: function getList() {
-      var _this3 = this;
+      var _this5 = this;
       if (this.next) return;
       this.$u.api.applyChagneDetailPage({
         capacity: 10,
@@ -474,24 +356,24 @@
       }).then(function (res) {
         if (res.code === 200) {
           if (res.data.records.length > 0) {
-            var _this3$list;
-            _this3.page++;
-            (_this3$list = _this3.list).push.apply(_this3$list, (0, _toConsumableArray2.default)(res.data.records));
+            var _this5$list;
+            _this5.page++;
+            (_this5$list = _this5.list).push.apply(_this5$list, (0, _toConsumableArray2.default)(res.data.records));
           } else {
-            _this3.next = true;
+            _this5.next = true;
           }
         }
       });
     },
     confirm: function confirm() {
-      var _this4 = this;
+      var _this6 = this;
       this.$u.api.applyChangeOpt({
         applyId: this.info.id,
         optType: 3
       }).then(function (res) {
         if (res.code === 200) {
-          _this4.show = false;
-          _this4.getDetail();
+          _this6.show = false;
+          _this6.getDetail();
         }
       });
     },
@@ -502,14 +384,14 @@
       this.show1 = false;
     },
     confirm2: function confirm2() {
-      var _this5 = this;
+      var _this7 = this;
       this.$u.api.applyChangeOpt({
         applyId: this.info.id,
         optType: 6
       }).then(function (res) {
         if (res.code === 200) {
-          _this5.show2 = false;
-          _this5.getDetail();
+          _this7.show2 = false;
+          _this7.getDetail();
         }
       });
     },

--
Gitblit v1.9.3