From b79a39d92db3baae7c3c8587e2858561bec0d6ca Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 17 四月 2024 14:37:34 +0800
Subject: [PATCH] mrshi

---
 wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js |  288 ++++++++++++++++++---------------------------------------
 1 files changed, 90 insertions(+), 198 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 b4f897b..90c0530 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
@@ -138,9 +138,12 @@
       _vm.show = true
     }
     _vm.e1 = function ($event) {
-      _vm.show2 = true
+      _vm.show = true
     }
     _vm.e2 = function ($event) {
+      _vm.show2 = true
+    }
+    _vm.e3 = function ($event) {
       _vm.show2 = true
     }
   }
@@ -194,148 +197,11 @@
   value: true
 });
 exports.default = void 0;
-var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
 var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
-var _methods;
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
+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 {
@@ -366,10 +232,33 @@
   onReachBottom: function onReachBottom() {
     this.getList();
   },
-  methods: (_methods = {
+  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;
+      var _this3 = this;
       if (!this.code) {
         this.error = 1;
         return;
@@ -380,19 +269,19 @@
           code: this.code
         }).then(function (res) {
           if (res.code === 200) {
-            _this.error = '';
-            _this.show1 = false;
-            _this.$u.api.getJiajianBaoSignLink({
-              id: _this.info.id
+            _this3.error = '';
+            _this3.show1 = false;
+            _this3.$u.api.getJiajianBaoSignLink({
+              id: _this3.info.id
             }).then(function (url) {
               if (url.code === 200) {
                 uni.navigateTo({
-                  url: "/pages/webView/webView?url=".concat(url.data)
+                  url: "/pages/webView/webView?url=".concat(encodeURIComponent(url.data))
                 });
               }
             });
           } else {
-            _this.error = 2;
+            _this3.error = 2;
           }
         });
         this.show1 = false;
@@ -403,13 +292,13 @@
           code: this.code
         }).then(function (res) {
           if (res.code === 200) {
-            _this.error = '';
-            _this.show1 = false;
+            _this3.error = '';
+            _this3.show1 = false;
             uni.navigateTo({
-              url: "/pages/webView/webView?url=".concat(res.data)
+              url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data))
             });
           } else {
-            _this.error = 2;
+            _this3.error = 2;
           }
         });
       }
@@ -439,16 +328,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,
@@ -460,64 +349,67 @@
       }).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();
         }
       });
     },
     cancel: function cancel() {
       this.show = false;
-    }
-  }, (0, _defineProperty2.default)(_methods, "confirm1", function confirm1() {
-    this.show1 = false;
-  }), (0, _defineProperty2.default)(_methods, "cancel1", function cancel1() {
-    this.show1 = false;
-  }), (0, _defineProperty2.default)(_methods, "confirm2", function confirm2() {
-    var _this5 = this;
-    this.$u.api.applyChangeOpt({
-      applyId: this.info.id,
-      optType: 6
-    }).then(function (res) {
-      if (res.code === 200) {
-        _this5.show2 = false;
-        _this5.getDetail();
+    },
+    cancel1: function cancel1() {
+      this.show1 = false;
+    },
+    confirm2: function confirm2() {
+      var _this7 = this;
+      this.$u.api.applyChangeOpt({
+        applyId: this.info.id,
+        optType: 6
+      }).then(function (res) {
+        if (res.code === 200) {
+          _this7.show2 = false;
+          _this7.getDetail();
+        }
+      });
+    },
+    cancel2: function cancel2() {
+      this.show2 = false;
+    },
+    returnStyle: function returnStyle(type) {
+      if ([2].includes(type)) {
+        return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);';
+      } else if ([1, 0, 7].includes(type)) {
+        return 'linear-gradient( 180deg, #FBC88C 0%, #F7F7F7 100%);';
+      } else if ([3, 4, 5, 8, 6].includes(type)) {
+        return '';
       }
-    });
-  }), (0, _defineProperty2.default)(_methods, "cancel2", function cancel2() {
-    this.show2 = false;
-  }), (0, _defineProperty2.default)(_methods, "returnStyle", function returnStyle(type) {
-    if ([2].includes(type)) {
-      return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);';
-    } else if ([1, 0].includes(type)) {
-      return 'linear-gradient( 180deg, #FBC88C 0%, #F7F7F7 100%);';
-    } else if ([3, 4, 5, 8, 6].includes(type)) {
-      return '';
+    },
+    returnStyle1: function returnStyle1(type) {
+      if ([2].includes(type)) {
+        return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)';
+      } else if ([1, 0, 7].includes(type)) {
+        return 'linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);';
+      } else if ([3, 4, 5, 8, 6].includes(type)) {
+        return '#ffffff';
+      }
     }
-  }), (0, _defineProperty2.default)(_methods, "returnStyle1", function returnStyle1(type) {
-    if ([2].includes(type)) {
-      return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)';
-    } else if ([1, 0].includes(type)) {
-      return 'linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);';
-    } else if ([3, 4, 5, 8, 6].includes(type)) {
-      return '#ffffff';
-    }
-  }), _methods)
+  }
 };
 exports.default = _default;
 /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

--
Gitblit v1.9.3