12.17 事件详情相关概念,概念中心增加下拉刷新,分页加载,增加新闻详情展示

This commit is contained in:
尚政杰
2025-12-17 17:42:24 +08:00
parent 13c783a0ad
commit e24b4000fb
106 changed files with 1583 additions and 1143 deletions

View File

@@ -20,6 +20,9 @@ const _sfc_main = {
//相关标的
conceptList: [],
//相关概念
page: 1,
loadAll: false,
//是否加载完毕
historyEventList: [],
//历史事件
historyEventRelatedStockList: [],
@@ -153,6 +156,14 @@ const _sfc_main = {
});
}, 300);
},
loadMoreData() {
if (this.selectCategory == 1) {
if (!this.loadAll) {
this.page++;
this.getEventRelatedConceptData();
}
}
},
/**
* 点击切换分类
*/
@@ -162,6 +173,8 @@ const _sfc_main = {
if (index == 0) {
this.getEventRelatedStockData();
} else if (index == 1) {
this.page = 1;
this.loadAll = false;
this.getEventRelatedConceptData();
} else if (index == 2) {
this.getEventHistoryEventData();
@@ -354,9 +367,16 @@ const _sfc_main = {
*/
getEventRelatedConceptData() {
let eventDetails = this.eventDetails;
let param = { query: eventDetails.event_title, size: 10, page: 1, sort_by: "_score", isJson: 1 };
let param = { query: eventDetails.event_title, size: 10, page: this.page, sort_by: "_score", isJson: 1 };
request_api.eventRelatedConcept(param).then((res) => {
this.conceptList = res.results;
if (res.page == 1) {
this.conceptList = res.results;
} else {
this.conceptList = this.conceptList.concat(res.results);
}
if (res.page == res.total_pages) {
this.loadAll = true;
}
}).catch((error) => {
});
},
@@ -528,25 +548,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
x: common_assets._imports_5$2,
y: common_assets._imports_3$4
} : {}, {
z: common_vendor.s("top:" + $data.navH + "px;")
z: common_vendor.s("top:" + $data.navH + "px;"),
A: common_vendor.o(($event) => $options.loadMoreData())
}) : {}, {
A: $data.eventDetails
B: $data.eventDetails
}, $data.eventDetails ? {
B: common_vendor.o(($event) => $options.sendEventComment()),
C: $data.eventComment,
D: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
E: common_assets._imports_3$1,
F: common_vendor.t($data.eventDetails.view_count),
G: common_assets._imports_4,
H: common_vendor.t($data.eventDetails.post_count),
I: common_vendor.o(($event) => $options.clickComment()),
J: common_assets._imports_10$1,
K: common_vendor.t($data.eventDetails.follower_count),
L: common_vendor.o(($event) => $options.clickFollow())
C: common_vendor.o(($event) => $options.sendEventComment()),
D: $data.eventComment,
E: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
F: common_assets._imports_3$1,
G: common_vendor.t($data.eventDetails.view_count),
H: common_assets._imports_4,
I: common_vendor.t($data.eventDetails.post_count),
J: common_vendor.o(($event) => $options.clickComment()),
K: common_assets._imports_10$1,
L: common_vendor.t($data.eventDetails.follower_count),
M: common_vendor.o(($event) => $options.clickFollow())
} : {}, {
M: common_assets._imports_11$1,
N: common_vendor.o(($event) => $options.closeCommentPopup()),
O: common_vendor.f($data.commentList, (item, index, i0) => {
N: common_assets._imports_11$1,
O: common_vendor.o(($event) => $options.closeCommentPopup()),
P: common_vendor.f($data.commentList, (item, index, i0) => {
return {
a: item.user.avatar_url,
b: common_vendor.t(item.user.username),
@@ -558,25 +579,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
h: index
};
}),
P: common_assets._imports_12$2,
Q: $data.isFocus,
R: common_vendor.o(($event) => $options.sendReplyComment()),
S: $data.replyComment,
T: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
U: common_vendor.sr("popup", "6e1a61f1-2"),
V: common_vendor.p({
Q: common_assets._imports_12$2,
R: $data.isFocus,
S: common_vendor.o(($event) => $options.sendReplyComment()),
T: $data.replyComment,
U: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
V: common_vendor.sr("popup", "6e1a61f1-2"),
W: common_vendor.p({
type: "bottom"
}),
W: common_assets._imports_13$1,
X: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
Y: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
Z: common_vendor.p({
X: common_assets._imports_13,
Y: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
Z: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
aa: common_vendor.p({
type: "top",
["mask-background-color"]: "transparent"
}),
aa: common_assets._imports_11$1,
ab: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
ac: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
ab: common_assets._imports_11$1,
ac: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
ad: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.stock_name + "(" + item.stock_code + ")"),
b: common_vendor.t(item.correlation * 100),
@@ -594,21 +615,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
k: common_vendor.o(($event) => $options.clickStockItem(item.stock_code), index)
});
}),
ad: common_vendor.sr("stockPopup", "6e1a61f1-4"),
ae: common_vendor.p({
ae: common_vendor.sr("stockPopup", "6e1a61f1-4"),
af: common_vendor.p({
type: "bottom"
}),
af: common_assets._imports_14,
ag: common_assets._imports_15,
ah: common_assets._imports_16,
ag: common_assets._imports_14,
ah: common_assets._imports_15,
ai: common_assets._imports_16,
aj: common_assets._imports_17,
aj: common_assets._imports_16,
ak: common_assets._imports_17,
al: common_assets._imports_17,
am: common_vendor.o(($event) => $options.clickLater()),
an: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
ao: common_vendor.sr("vipPopup", "6e1a61f1-5"),
ap: common_vendor.p({
am: common_assets._imports_17,
an: common_vendor.o(($event) => $options.clickLater()),
ao: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
ap: common_vendor.sr("vipPopup", "6e1a61f1-5"),
aq: common_vendor.p({
type: "center"
})
});