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 | 225 ++++++++++++-------------------------------------------
1 files changed, 50 insertions(+), 175 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..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
@@ -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 {
@@ -380,10 +232,33 @@
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;
+ var _this3 = this;
if (!this.code) {
this.error = 1;
return;
@@ -394,10 +269,10 @@
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({
@@ -406,7 +281,7 @@
}
});
} else {
- _this.error = 2;
+ _this3.error = 2;
}
});
this.show1 = false;
@@ -417,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(encodeURIComponent(res.data))
});
} else {
- _this.error = 2;
+ _this3.error = 2;
}
});
}
@@ -453,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,
@@ -474,24 +349,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 +377,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