8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
@@ -13,7 +13,7 @@ const _sfc_main = {
|
||||
commentList: [],
|
||||
page: 1,
|
||||
loadAll: false,
|
||||
getLocaleDate: utils_util.getLocaleDate
|
||||
getLocaleMonthDayHourMinte: utils_util.getLocaleMonthDayHourMinte
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -41,6 +41,15 @@ const _sfc_main = {
|
||||
this.getCommentListData();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击查看事件详情
|
||||
* @param {Object} id
|
||||
*/
|
||||
clickEventItem(id) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/index/eventDetails/eventDetails?id=" + id
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取评论列表数据
|
||||
*/
|
||||
@@ -94,16 +103,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.selectTab == 0 ? {
|
||||
f: common_vendor.f($data.commentList, (item, index, i0) => {
|
||||
return {
|
||||
a: index
|
||||
a: common_vendor.t(item.event.importance),
|
||||
b: common_vendor.t(item.event.title),
|
||||
c: index
|
||||
};
|
||||
})
|
||||
} : {
|
||||
g: common_vendor.f($data.commentList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t($data.getLocaleDate(item.created_at)),
|
||||
b: common_vendor.t(item.content),
|
||||
c: common_vendor.t(item.event_title),
|
||||
d: index
|
||||
a: item.commenter.avatar_url,
|
||||
b: common_vendor.t(item.commenter.nickname),
|
||||
c: common_vendor.t($data.getLocaleMonthDayHourMinte(item.created_at)),
|
||||
d: common_vendor.t(item.content),
|
||||
e: common_vendor.t(item.event.importance),
|
||||
f: common_vendor.t(item.event.title),
|
||||
g: common_vendor.t(item.event.description),
|
||||
h: common_vendor.o(($event) => $options.clickEventItem(item.event.id), index),
|
||||
i: index
|
||||
};
|
||||
})
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user