1.4 修改概念中心日期默认传值

This commit is contained in:
尚政杰
2026-01-04 18:13:05 +08:00
parent 091c1372fd
commit 260fc7bebf
107 changed files with 480 additions and 256 deletions

View File

@@ -25,10 +25,6 @@ const _sfc_main = {
{
icon: "/static/icon/home/eventLevel.png",
title: "事件等级"
},
{
icon: "/static/icon/home/sort.png",
title: "最新排序"
}
],
keywords: "",
@@ -273,7 +269,7 @@ const _sfc_main = {
*/
clickSortListItem(item) {
this.selectSortKey = item.key;
this.$refs["screenPopup"].close();
this.clickCancel();
this.clickSearch();
},
/**
@@ -289,6 +285,30 @@ const _sfc_main = {
clickCancel() {
this.$refs["screenPopup"].close();
},
/**
* 点击筛选弹窗重置
*/
clickReset() {
if (this.selectScreenCategory == 0) {
this.selectQuickTimeIndex = -1;
this.startDateStr = this.endDateStr = "";
} else if (this.selectScreenCategory == 1) {
this.industryKeywords = "";
this.searchResultList = [];
this.selectIndustryTopCategory = 0;
this.selectIndustrySecondCategory = 0;
this.selectIndustryThirdCategory = 0;
this.searchIndustryTopCategory = 0;
this.searchIndustrySecondCategory = 0;
this.searchIndustryThirdCategory = 0;
} else if (this.selectScreenCategory == 2) {
for (let item of this.importanceList) {
item.select = false;
}
}
this.clickCancel();
this.clickSearch();
},
/**
* 点击筛选弹窗确定
*/
@@ -597,21 +617,7 @@ const _sfc_main = {
request_api.filterOptions().then((res) => {
if (res.code == 200) {
resolve(1);
let timeList = [...res.data.sort_options];
this.timeCategoryList = timeList.splice(0, 2);
let sortList = [...res.data.sort_options];
for (let item of sortList) {
if (item.name == "最新") {
item.icon = "/static/icon/home/new.png";
}
if (item.name == "热门") {
item.icon = "/static/icon/home/hot.png";
}
if (item.name == "收益率") {
item.icon = "/static/icon/home/yield.png";
}
}
this.sortTypeList = res.data.sort_options.slice(0, 3);
this.timeCategoryList = res.data.sort_options;
this.importanceList = res.data.importance_options;
this.importanceList.unshift({ desc: "全部", key: "all", name: "全部" });
} else {
@@ -838,7 +844,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
i: common_vendor.f($data.timeCategoryList, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.n("item " + ($data.selectTimeCategory == index ? "select" : "")),
b: common_vendor.n("item flex1 " + ($data.selectTimeCategory == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickTimeCategoryItem(index), index)
};
@@ -878,23 +884,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
v: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_week_chg) ? "down" : "up")),
w: common_vendor.t($data.getLocaleTime(item.created_at)),
x: common_vendor.t(item.view_count),
y: common_vendor.t(item.post_count),
z: common_vendor.t(item.follower_count),
A: common_vendor.o(($event) => $options.clickFollowEvent(item.id), index),
B: common_vendor.o(($event) => $options.clickEventItem(item.id), index),
C: index
y: common_vendor.t(item.follower_count),
z: common_vendor.o(($event) => $options.clickFollowEvent(item.id), index),
A: common_vendor.t(item.post_count),
B: common_vendor.t(item.follower_count),
C: common_vendor.o(($event) => $options.clickFollowEvent(item.id), index),
D: common_vendor.o(($event) => $options.clickEventItem(item.id), index),
E: index
});
}),
l: common_assets._imports_3$1,
m: common_assets._imports_4,
n: common_assets._imports_10$1,
o: common_vendor.s("top:" + $data.listTop + "px"),
p: $data.isRefreshing,
q: common_vendor.o(($event) => $options.pullDownRefresh()),
r: common_vendor.o(($event) => $options.loadMoreData()),
s: common_assets._imports_2,
t: common_vendor.s("height:" + $data.menuH + "px;"),
v: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
m: common_assets._imports_12,
n: common_assets._imports_4,
o: common_assets._imports_8,
p: common_vendor.s("top:" + $data.listTop + "px"),
q: $data.isRefreshing,
r: common_vendor.o(($event) => $options.pullDownRefresh()),
s: common_vendor.o(($event) => $options.loadMoreData()),
t: common_assets._imports_2,
v: common_vendor.s("height:" + $data.menuH + "px;"),
w: common_vendor.o(($event) => $options.clickCancel()),
x: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
return common_vendor.e({
a: item.icon,
b: common_vendor.t(item.title),
@@ -905,10 +915,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: index
});
}),
w: common_assets._imports_3,
x: $data.selectScreenCategory == 0
y: common_assets._imports_3,
z: $data.selectScreenCategory == 0
}, $data.selectScreenCategory == 0 ? common_vendor.e({
y: common_vendor.f($data.quickTimeList, (item, index, i0) => {
A: common_vendor.f($data.quickTimeList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectQuickTimeIndex == index ? "select" : "")),
@@ -916,65 +926,65 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickQuickTimeItem(index, item), index)
};
}),
z: common_assets._imports_9,
A: $data.startDateStr
B: common_assets._imports_10,
C: $data.startDateStr
}, $data.startDateStr ? {
B: common_vendor.t($data.startDateStr)
D: common_vendor.t($data.startDateStr)
} : {}, {
C: common_assets._imports_9,
D: $data.endDateStr
E: common_assets._imports_10,
F: $data.endDateStr
}, $data.endDateStr ? {
E: common_vendor.t($data.endDateStr)
G: common_vendor.t($data.endDateStr)
} : {}, {
F: common_vendor.f($data.yearList, (item, index, i0) => {
H: common_vendor.f($data.yearList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
G: common_vendor.f($data.monthList, (item, index, i0) => {
I: common_vendor.f($data.monthList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
H: common_vendor.f($data.dayList, (item, index, i0) => {
J: common_vendor.f($data.dayList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
I: $data.startDateValue,
J: common_vendor.o((...args) => $options.startDateChange && $options.startDateChange(...args)),
K: common_vendor.f($data.yearList, (item, index, i0) => {
K: $data.startDateValue,
L: common_vendor.o((...args) => $options.startDateChange && $options.startDateChange(...args)),
M: common_vendor.f($data.yearList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
L: common_vendor.f($data.monthList, (item, index, i0) => {
N: common_vendor.f($data.monthList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
M: common_vendor.f($data.dayList, (item, index, i0) => {
O: common_vendor.f($data.dayList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
N: $data.endDateValue,
O: common_vendor.o((...args) => $options.endDateChange && $options.endDateChange(...args))
P: $data.endDateValue,
Q: common_vendor.o((...args) => $options.endDateChange && $options.endDateChange(...args))
}) : {}, {
P: $data.selectScreenCategory == 1
R: $data.selectScreenCategory == 1
}, $data.selectScreenCategory == 1 ? common_vendor.e({
Q: common_assets._imports_10,
R: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
S: $data.industryKeywords,
T: $data.industryKeywords.length > 0
S: common_assets._imports_11,
T: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
U: $data.industryKeywords,
V: $data.industryKeywords.length > 0
}, $data.industryKeywords.length > 0 ? common_vendor.e({
U: common_vendor.f($data.searchResultList, (item, index, i0) => {
W: common_vendor.f($data.searchResultList, (item, index, i0) => {
return {
a: common_vendor.t(item.level1_sector),
b: common_vendor.n("item relative " + ($data.searchIndustryTopCategory == index ? "select" : "")),
@@ -982,7 +992,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickSearchIndustryTopCategoryItem(index, item), index)
};
}),
V: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors, (item, index, i0) => {
X: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors, (item, index, i0) => {
return {
a: common_vendor.t(item.level2_sector),
b: common_vendor.n("item relative " + ($data.searchIndustrySecondCategory == index ? "select" : "")),
@@ -990,14 +1000,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickSearchIndustrySecondCategoryItem(index, item), index)
};
}),
W: $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0
Y: $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0
}, $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0 ? {
X: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors[$data.searchIndustrySecondCategory].level3_sectors, (item, index, i0) => {
Z: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors[$data.searchIndustrySecondCategory].level3_sectors, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.level3_sector),
b: $data.searchIndustryThirdCategory == index
}, $data.searchIndustryThirdCategory == index ? {
c: common_assets._imports_11
c: common_assets._imports_12$1
} : {}, {
d: common_vendor.n("item flex relative " + ($data.searchIndustryThirdCategory == index ? "select" : "")),
e: index,
@@ -1005,7 +1015,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}) : common_vendor.e({
Y: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
aa: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
return {
a: common_vendor.t(item.level1_sector),
b: common_vendor.n("item relative " + ($data.selectIndustryTopCategory == index ? "select" : "")),
@@ -1013,7 +1023,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickIndustryTopCategoryItem(index), index)
};
}),
Z: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors, (item, index, i0) => {
ab: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors, (item, index, i0) => {
return {
a: common_vendor.t(item.level2_sector),
b: common_vendor.n("item relative " + ($data.selectIndustrySecondCategory == index ? "select" : "")),
@@ -1021,14 +1031,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickIndustrySecondCategoryItem(index), index)
};
}),
aa: $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0
ac: $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0
}, $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0 ? {
ab: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors[$data.selectIndustrySecondCategory].level3_sectors, (item, index, i0) => {
ad: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors[$data.selectIndustrySecondCategory].level3_sectors, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.level3_sector),
b: $data.selectIndustryThirdCategory == index
}, $data.selectIndustryThirdCategory == index ? {
c: common_assets._imports_11
c: common_assets._imports_12$1
} : {}, {
d: common_vendor.n("item flex relative " + ($data.selectIndustryThirdCategory == index ? "select" : "")),
e: index,
@@ -1036,14 +1046,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {})) : {}, {
ac: $data.selectScreenCategory == 2
ae: $data.selectScreenCategory == 2
}, $data.selectScreenCategory == 2 ? {
ad: common_vendor.f($data.importanceList, (item, index, i0) => {
af: common_vendor.f($data.importanceList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: item.select
}, item.select ? {
c: common_assets._imports_12
c: common_assets._imports_13
} : {}, {
d: common_vendor.n("item flex " + (item.select ? "select" : "")),
e: index,
@@ -1051,9 +1061,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}, {
ae: $data.selectScreenCategory == 3
ag: $data.selectScreenCategory == 3
}, $data.selectScreenCategory == 3 ? {
af: common_vendor.f($data.sortTypeList, (item, index, i0) => {
ah: common_vendor.f($data.sortTypeList, (item, index, i0) => {
return {
a: item.icon,
b: common_vendor.t(item.name),
@@ -1063,14 +1073,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {}, {
ag: $data.selectScreenCategory != 3
ai: $data.selectScreenCategory != 3
}, $data.selectScreenCategory != 3 ? {
ah: common_vendor.o(($event) => $options.clickCancel()),
ai: common_vendor.o(($event) => $options.clickCertain())
aj: common_vendor.o(($event) => $options.clickReset()),
ak: common_vendor.o(($event) => $options.clickCertain())
} : {}, {
aj: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
ak: common_vendor.sr("screenPopup", "9dfd58d8-1"),
al: common_vendor.p({
al: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
am: common_vendor.sr("screenPopup", "9dfd58d8-1"),
an: common_vendor.p({
type: "top"
})
});