From 22271e641e4505ba906c3770905b7e84e3ad8d85 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 02 四月 2024 17:05:57 +0800
Subject: [PATCH] mrshi
---
wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js | 137 ++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 121 insertions(+), 16 deletions(-)
diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js
index b02219c..9402af3 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js
@@ -146,12 +146,15 @@
var g0 = _vm.info ? [2, 1, 5, 0].includes(_vm.info.status) : null
if (!_vm._isMounted) {
_vm.e0 = function ($event) {
- _vm.show2 = true
+ _vm.show = true
}
_vm.e1 = function ($event) {
- _vm.show1 = true
+ _vm.show2 = true
}
_vm.e2 = function ($event) {
+ _vm.show = true
+ }
+ _vm.e3 = function ($event) {
_vm.show2 = true
}
}
@@ -199,7 +202,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
+/* WEBPACK VAR INJECTION */(function(uni) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
@@ -207,6 +210,10 @@
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
+//
+//
+//
+//
//
//
//
@@ -383,7 +390,13 @@
}, {
name: '鍑忎繚浜哄憳'
// id: ['1']
- }]
+ }],
+
+ type: null,
+ code: '',
+ num: 0,
+ error: false,
+ timer: null
};
},
onLoad: function onLoad(options) {
@@ -395,6 +408,52 @@
this.getList();
},
methods: {
+ // 鏌ョ湅pdf
+ seePdf: function seePdf(url) {
+ if (!url) return;
+ uni.downloadFile({
+ url: url,
+ success: function success(res) {
+ var filePath = res.tempFilePath;
+ uni.openDocument({
+ filePath: filePath,
+ success: function success(res) {}
+ });
+ }
+ });
+ },
+ 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);
+ },
+ // 鎵撳紑鍙戦�侀獙璇佺爜寮圭獥
+ openmessage: function openmessage(type) {
+ this.code = '';
+ clearInterval(this.timer);
+ this.error = '';
+ this.timer = null;
+ this.num = 0;
+ this.type = type;
+ this.show1 = true;
+ },
IdCard: function IdCard(UUserCard) {
var idcard = UUserCard.toString();
//鑾峰彇骞撮緞
@@ -415,16 +474,16 @@
this.getList();
},
getInfo: function getInfo() {
- var _this = this;
+ var _this3 = this;
this.$u.api.applyChangeById(this.id).then(function (res) {
if (res.code === 200) {
- _this.info = res.data;
+ _this3.info = res.data;
}
});
},
// 鍔犲噺淇濅汉鍛�
getList: function getList() {
- var _this2 = this;
+ var _this4 = this;
if (this.next) return;
this.$u.api.applyChagneDetailPage({
capacity: 10,
@@ -436,35 +495,81 @@
}).then(function (res) {
if (res.code === 200) {
if (res.data.records.length > 0) {
- var _this2$list;
- _this2.page++;
- (_this2$list = _this2.list).push.apply(_this2$list, (0, _toConsumableArray2.default)(res.data.records));
+ var _this4$list;
+ _this4.page++;
+ (_this4$list = _this4.list).push.apply(_this4$list, (0, _toConsumableArray2.default)(res.data.records));
} else {
- _this2.next = true;
+ _this4.next = true;
}
}
});
},
+ // 鐢宠閫�鍥�
confirm: function confirm() {
- this.show = false;
+ var _this5 = this;
+ this.$u.api.applyChangeOpt({
+ applyId: this.info.id,
+ optType: 3
+ }).then(function (res) {
+ if (res.code === 200) {
+ _this5.show = false;
+ }
+ });
},
cancel: function cancel() {
this.show = false;
},
+ // 绛剧讲
confirm1: function confirm1() {
- this.show1 = false;
+ var _this6 = this;
+ if (!this.code) {
+ this.error = 1;
+ return;
+ }
+ // 绛剧讲鐢宠鍗�
+ if (this.type === 1) {
+ console.log('绛剧讲鐢宠鍗�');
+ this.$u.api.validateCode({
+ code: this.code
+ }).then(function (res) {
+ if (res.code === 200) {
+ _this6.error = '';
+ _this6.show1 = false;
+ _this6.$u.api.getJiajianBaoSignLink({
+ id: _this6.info.id
+ }).then(function (url) {
+ if (url.code === 200) {
+ uni.navigateTo({
+ url: "/pages/webView/webView?url=".concat(url.data)
+ });
+ }
+ });
+ } else {
+ _this6.error = 2;
+ }
+ });
+ this.show1 = false;
+ }
},
cancel1: function cancel1() {
this.show1 = false;
},
+ // 鍏抽棴璁㈠崟
confirm2: function confirm2() {
- this.show2 = false;
+ var _this7 = this;
+ this.$u.api.applyChangeOpt({
+ applyId: this.info.id,
+ optType: 6
+ }).then(function (res) {
+ if (res.code === 200) {
+ _this7.show2 = false;
+ }
+ });
},
cancel2: function cancel2() {
this.show2 = false;
},
returnStyle: function returnStyle(type) {
- if (!type) return;
if ([2].includes(type)) {
return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);';
} else if ([0, 1].includes(type)) {
@@ -474,7 +579,6 @@
}
},
returnStyle1: function returnStyle1(type) {
- if (!type) return;
if ([2].includes(type)) {
return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)';
} else if ([0, 1].includes(type)) {
@@ -486,6 +590,7 @@
}
};
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