1.4 修改概念中心日期默认传值
This commit is contained in:
@@ -135,7 +135,6 @@ const _sfc_main = {
|
||||
this.selectStartMonth = startYear + "年" + startMonth + "月";
|
||||
this.startDateStr = this.selectStartDateStr = startYear + "-" + (startMonth > 9 ? startMonth : "0" + startMonth) + "-" + (startDay > 9 ? startDay : "0" + startDay);
|
||||
this.generateMonthDateListData();
|
||||
this.getConceptCenterData();
|
||||
this.getNewestPriceDateData();
|
||||
this.getRankListData();
|
||||
this.getMemberStatusData();
|
||||
@@ -300,7 +299,7 @@ const _sfc_main = {
|
||||
return;
|
||||
}
|
||||
this.startDateStr = this.selectStartDateStr;
|
||||
this.endDateStr = this.endDateStr;
|
||||
this.endDateStr = this.selectEndDateStr;
|
||||
this.getRankListData();
|
||||
},
|
||||
/**
|
||||
@@ -499,7 +498,13 @@ const _sfc_main = {
|
||||
* 获取概念中心数据
|
||||
*/
|
||||
getConceptCenterData() {
|
||||
let param = { query: this.keywords, size: 10, page: this.page, sort_by: this.sortType, isJson: 1, trade_date: this.selectDateStr };
|
||||
let dateStr = this.selectDateStr;
|
||||
let selectDateTimestamp = new Date(this.selectDateStr).getTime();
|
||||
let newestTimeStamp = new Date(this.newestPriceDate).getTime();
|
||||
if (selectDateTimestamp > newestTimeStamp) {
|
||||
dateStr = this.newestPriceDate;
|
||||
}
|
||||
let param = { query: this.keywords, size: 10, page: this.page, sort_by: this.sortType, isJson: 1, trade_date: dateStr };
|
||||
request_api.eventRelatedConcept(param).then((res) => {
|
||||
this.isRefreshing = false;
|
||||
if (res.page == 1) {
|
||||
@@ -520,6 +525,7 @@ const _sfc_main = {
|
||||
getNewestPriceDateData() {
|
||||
request_api.newestPriceDate().then((res) => {
|
||||
this.newestPriceDate = res.latest_trade_date;
|
||||
this.getConceptCenterData();
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
@@ -647,7 +653,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
w: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
x: common_assets._imports_11$1,
|
||||
y: common_vendor.o(($event) => $options.clickRankClose()),
|
||||
z: common_assets._imports_8,
|
||||
z: common_assets._imports_8$1,
|
||||
A: common_vendor.t($data.startDateStr),
|
||||
B: common_vendor.t($data.endDateStr),
|
||||
C: common_vendor.f($data.cycleList, (item, index, i0) => {
|
||||
@@ -684,11 +690,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: index == 0
|
||||
}, index == 0 ? {
|
||||
b: common_assets._imports_9$1
|
||||
b: common_assets._imports_9
|
||||
} : {}, {
|
||||
c: index == 1
|
||||
}, index == 1 ? {
|
||||
d: common_assets._imports_10$2
|
||||
d: common_assets._imports_10$1
|
||||
} : {}, {
|
||||
e: index == 2
|
||||
}, index == 2 ? {
|
||||
@@ -710,10 +716,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
} : {}) : common_vendor.e({
|
||||
n: $data.selectTab == 0 || $data.selectTab == 1
|
||||
}, $data.selectTab == 0 || $data.selectTab == 1 ? {
|
||||
o: common_assets._imports_12$1,
|
||||
o: common_assets._imports_12$2,
|
||||
p: common_vendor.t(item.news_count)
|
||||
} : {}, {
|
||||
q: common_assets._imports_13$1,
|
||||
q: common_assets._imports_13$2,
|
||||
r: common_vendor.t(item.news_count),
|
||||
s: $data.selectTab == 2
|
||||
}, $data.selectTab == 2 ? {
|
||||
@@ -746,7 +752,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
V: common_assets._imports_13,
|
||||
V: common_assets._imports_13$1,
|
||||
W: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
|
||||
@@ -41,8 +41,8 @@ const _sfc_main = {
|
||||
let currentDay = currentDate.getDate();
|
||||
this.selectMonthIndex = 20 * 12 + currentMonth - 1;
|
||||
this.selectMonth = currentYear + "年" + currentMonth + "月";
|
||||
this.startDateStr = currentYear + "-" + currentMonth + "-01";
|
||||
this.endDateStr = this.selectDateStr = currentYear + "-" + currentMonth + "-" + (currentDay > 9 ? currentDay : "0" + currentDay);
|
||||
this.startDateStr = currentYear + "-" + (currentMonth > 9 ? currentMonth : "0" + currentMonth) + "-01";
|
||||
this.endDateStr = this.selectDateStr = currentYear + "-" + (currentMonth > 9 ? currentMonth : "0" + currentMonth) + "-" + (currentDay > 9 ? currentDay : "0" + currentDay);
|
||||
this.generateMonthDateListData();
|
||||
if (e.id) {
|
||||
this.conceptId = e.id;
|
||||
|
||||
Reference in New Issue
Block a user