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 | 323 ++++++++++++++++++-----------------------------------
1 files changed, 111 insertions(+), 212 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..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
@@ -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 {
@@ -356,7 +222,8 @@
code: '',
num: 0,
error: false,
- timer: null
+ timer: null,
+ loading: false
};
},
onLoad: function onLoad(option) {
@@ -366,63 +233,92 @@
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;
- 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(url.data)
+ 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(res.data)
+ 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) {
@@ -439,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,
@@ -460,64 +356,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