1.4 修改概念中心日期默认传值
This commit is contained in:
@@ -47,7 +47,9 @@ const _sfc_main = {
|
||||
loadAll: false,
|
||||
getLocaleHourMinute: utils_util.getLocaleHourMinute,
|
||||
replaceAnswerLabel: utils_util.replaceAnswerLabel,
|
||||
accMul: utils_util.accMul
|
||||
accMul: utils_util.accMul,
|
||||
isData: false
|
||||
//是否请求过数据了
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -293,6 +295,7 @@ const _sfc_main = {
|
||||
param.category = this.stockCategoryList[this.selectTopCategory].primary_sector;
|
||||
}
|
||||
request_api.calendarEventList(param).then((res) => {
|
||||
this.isData = true;
|
||||
this.isRefreshing = false;
|
||||
if (res.code == 200) {
|
||||
if (res.data.page == 1) {
|
||||
@@ -309,6 +312,7 @@ const _sfc_main = {
|
||||
});
|
||||
}).catch((error) => {
|
||||
this.isRefreshing = false;
|
||||
this.isData = true;
|
||||
});
|
||||
},
|
||||
/**
|
||||
@@ -553,22 +557,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
z: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
A: $data.isRefreshing,
|
||||
B: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
C: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
D: common_assets._imports_4$1,
|
||||
E: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
F: common_vendor.t($data.selectMonth),
|
||||
G: common_assets._imports_5,
|
||||
H: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
I: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
z: $data.isData && ($data.selectTab == 0 && $data.eventList.length == 0 || $data.selectTab == 1 && $data.dataList.length == 0)
|
||||
}, $data.isData && ($data.selectTab == 0 && $data.eventList.length == 0 || $data.selectTab == 1 && $data.dataList.length == 0) ? {
|
||||
A: common_assets._imports_4$1
|
||||
} : {}, {
|
||||
B: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
C: $data.isRefreshing,
|
||||
D: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
E: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
F: common_assets._imports_5,
|
||||
G: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
H: common_vendor.t($data.selectMonth),
|
||||
I: common_assets._imports_6,
|
||||
J: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
K: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
J: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
L: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.isToday || item.date == $data.selectDate
|
||||
}, item.isToday || item.date == $data.selectDate ? {
|
||||
@@ -584,9 +592,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
|
||||
});
|
||||
}),
|
||||
K: common_vendor.s("margin-top:" + $data.navH + "px;"),
|
||||
L: common_vendor.sr("popup", "2cf1ca64-3"),
|
||||
M: common_vendor.p({
|
||||
M: common_vendor.s("margin-top:" + $data.navH + "px;"),
|
||||
N: common_vendor.sr("popup", "2cf1ca64-3"),
|
||||
O: common_vendor.p({
|
||||
type: "top"
|
||||
})
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -400,6 +400,24 @@ page {
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.noDataC {
|
||||
margin-top: 200rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
.noDataC .icon {
|
||||
width: 412rpx;
|
||||
height: auto;
|
||||
}
|
||||
.noDataC .title {
|
||||
margin-top: 8rpx;
|
||||
font-size: 32rpx;
|
||||
color: #939393;
|
||||
}
|
||||
.noDataC .subtitle {
|
||||
margin-top: 16rpx;
|
||||
font-size: 26rpx;
|
||||
color: #646464;
|
||||
}
|
||||
.popup {
|
||||
background-color: white;
|
||||
padding: 30rpx 0;
|
||||
|
||||
@@ -153,7 +153,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
l: common_vendor.f($data.investDetails.related_stocks, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.code + " " + item.name),
|
||||
b: common_vendor.t($data.accMul(item.score, 100)),
|
||||
b: common_vendor.t(item.score),
|
||||
c: item.sw_primary_sector
|
||||
}, item.sw_primary_sector ? {
|
||||
d: common_vendor.t(item.sw_primary_sector)
|
||||
|
||||
Reference in New Issue
Block a user