10.13 修改时间筛选逻辑,去掉分时图线上圆圈展示,修改K线图颜色

This commit is contained in:
尚政杰
2025-10-13 16:48:21 +08:00
parent bf2388c3ec
commit b53bb9715e
93 changed files with 736 additions and 352 deletions

View File

@@ -210,14 +210,16 @@ const _sfc_main = {
}).exec();
},
onPullDownRefresh() {
this.page = 1;
this.getEventListData();
this.clickSearch();
},
methods: {
loadMoreData() {
if (!this.loadAll) {
this.page++;
this.getEventListData();
if (this.selectScreenCategory == 0) {
this.getEventListData();
} else
this.getHotEventListData();
}
},
async init() {
@@ -229,7 +231,10 @@ const _sfc_main = {
*/
clickSearch() {
this.page = 1;
this.getEventListData();
if (this.selectTimeCategory == 0) {
this.getEventListData();
} else
this.getHotEventListData();
},
/**
* 点击事件筛选
@@ -364,16 +369,23 @@ const _sfc_main = {
*/
clickSelectDate(item) {
if (this.startDate) {
let date1 = new Date(this.startDate);
let date2 = new Date(item.date);
if (date1 > date2) {
this.endDate = this.startDate;
this.endTimeStamp = this.startTimeStamp;
if (this.endDate) {
this.startDate = item.date;
this.startTimeStamp = item.timestamp;
this.endDate = null;
this.endTimeStamp = null;
} else {
this.endDate = item.date;
this.endTimeStamp = item.timestamp;
let date1 = new Date(this.startDate);
let date2 = new Date(item.date);
if (date1 > date2) {
this.endDate = this.startDate;
this.endTimeStamp = this.startTimeStamp;
this.startDate = item.date;
this.startTimeStamp = item.timestamp;
} else {
this.endDate = item.date;
this.endTimeStamp = item.timestamp;
}
}
} else {
this.startDate = item.date;
@@ -533,6 +545,7 @@ const _sfc_main = {
title: res.message,
icon: "none"
});
this.clickSearch();
}).catch((error) => {
});
},
@@ -540,6 +553,11 @@ const _sfc_main = {
* 查看事件详情
*/
clickEventItem(id) {
let that = this;
common_vendor.index.$on("editSuccess", (res) => {
that.clickSearch();
common_vendor.index.$off("editSuccess");
});
common_vendor.index.navigateTo({
url: "/pages/index/eventDetails/eventDetails?id=" + id
});
@@ -829,7 +847,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
q: $data.secondScrollLeft
} : {}, {
r: common_vendor.s("top:" + $data.contentTop + "px"),
s: common_vendor.sr("chartRef", "9dfd58d8-0"),
s: common_vendor.sr("chartRef", "eb4215a0-0"),
t: common_vendor.f($data.eventList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.importance),
@@ -866,8 +884,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.t(sitem.stock_name),
b: common_vendor.t(($data.getRateUpOrDown(sitem.daily_change) ? "" : "+") + sitem.daily_change),
c: sindex,
d: common_vendor.o(($event) => $options.clickLookRelatedStockItem(item.id, sitem.stock_code), sindex)
c: common_vendor.n("change " + ($data.getRateUpOrDown(sitem.daily_change) ? "down" : "up")),
d: sindex,
e: common_vendor.o(($event) => $options.clickLookRelatedStockItem(item.id, sitem.stock_code), sindex)
};
}),
x: common_vendor.t($data.getLocaleTime(item.created_at)),
@@ -894,7 +913,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
}),
C: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
D: common_vendor.sr("sortPopup", "9dfd58d8-1"),
D: common_vendor.sr("sortPopup", "eb4215a0-1"),
E: common_vendor.p({
type: "top",
["mask-background-color"]: "transparent"
@@ -1063,7 +1082,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
aq: common_vendor.o(($event) => $options.clickCancel()),
ar: common_vendor.o(($event) => $options.clickCertain()),
as: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
at: common_vendor.sr("screenPopup", "9dfd58d8-2"),
at: common_vendor.sr("screenPopup", "eb4215a0-2"),
av: common_vendor.p({
type: "top"
})