diff --git a/components/task/taskItem.vue b/components/task/taskItem.vue
index c161127..b260f56 100644
--- a/components/task/taskItem.vue
+++ b/components/task/taskItem.vue
@@ -62,6 +62,15 @@
进行中
+
+
+ {{extend.not_done_count||0}}/{{extend.total||0}}
+
+
+ {{extend.done_count||0}}/{{extend.total||0}}
+
+
进行中
@@ -106,19 +115,15 @@
},
data() {
return {
-
+ extend: {}
};
},
- created() {
- try {
-
- } catch (e) {
- //TODO handle the exception
- }
+ mounted() {
+ this.$props.datas.extend ? this.extend = this.$props.datas.extend : null;
},
methods: {
navTo(url) {
- if(this.isTimeInRange()) return Toast('任务正在结算中')
+ if (this.isTimeInRange()) return Toast('任务正在结算中')
if (url) {
uni.showLoading({
title: '加载中',
@@ -146,7 +151,7 @@
this.navTo(`/subpkg/property/vehicle?task_id=${this.$props.datas?.id}`)
} else if (this.$props.datas.type == 33) {
let is_show = true;
- if(uni.$u.timeFormat(Date.now(), 'yyyy-mm-dd')!=this.$props.datas?.end_time) is_show = false;
+ if (uni.$u.timeFormat(Date.now(), 'yyyy-mm-dd') != this.$props.datas?.end_time) is_show = false;
this.navTo(`/subpkg/blockTransaction/blockTransaction?task_id=${this.$props.datas?.id}&is_show=${is_show}`)
} else if (this.$props.datas.type == 34) {
this.navTo(`/subpkg/otherTask/otherTask?task_id=${this.$props.datas?.id}`)
@@ -158,17 +163,17 @@
const now = new Date();
const startTime = new Date(now.getTime());
const endTime = new Date(now.getTime());
-
+
// 设置开始时间为当天的 22:55:00
startTime.setHours(22);
startTime.setMinutes(55);
startTime.setSeconds(0);
-
+
// 设置结束时间为当天的 23:59:59
endTime.setHours(23);
endTime.setMinutes(59);
endTime.setSeconds(59);
-
+
// 判断当前时间是否在时间范围内
return now >= startTime && now <= endTime;
}