10.13 修改时间筛选逻辑,去掉分时图线上圆圈展示,修改K线图颜色
This commit is contained in:
@@ -52,29 +52,26 @@ const _sfc_main = {
|
||||
confine: true
|
||||
},
|
||||
grid: {
|
||||
left: "0%",
|
||||
right: "0%",
|
||||
left: "10%",
|
||||
right: "6%",
|
||||
top: "0%",
|
||||
bottom: "20%"
|
||||
},
|
||||
xAxis: [
|
||||
{
|
||||
type: "category",
|
||||
data: [],
|
||||
axisTick: {
|
||||
show: false
|
||||
},
|
||||
axisLine: {
|
||||
show: false
|
||||
}
|
||||
}
|
||||
],
|
||||
xAxis: {
|
||||
type: "category",
|
||||
scale: true,
|
||||
data: [],
|
||||
// axisTick:{ show:false },
|
||||
axisLine: { show: false },
|
||||
axisLabel: { show: false }
|
||||
},
|
||||
yAxis: [
|
||||
{
|
||||
type: "value",
|
||||
show: false,
|
||||
axisTick: { show: false },
|
||||
scale: true
|
||||
scale: true,
|
||||
axisLabel: { show: false },
|
||||
splitLine: { show: false }
|
||||
}
|
||||
],
|
||||
series: {
|
||||
@@ -116,13 +113,29 @@ const _sfc_main = {
|
||||
const chartDom = that.$refs["chartRef" + index][0];
|
||||
chartDom.init(echarts).then((res) => {
|
||||
let option = { ...that.option };
|
||||
let categoryData = [];
|
||||
let valueData = [];
|
||||
for (let item1 of item.minute_chart_data) {
|
||||
categoryData.push(item1.time);
|
||||
valueData.push(item1.close);
|
||||
}
|
||||
option.series.data = valueData;
|
||||
option.xAxis.data = categoryData;
|
||||
let time = that.eventDetails.event_start_time.split("T")[1];
|
||||
let firstOpen = item.minute_chart_data[0].open;
|
||||
option.series.markLine.data = [{ yAxis: firstOpen }];
|
||||
option.series.markLine.data = [
|
||||
{
|
||||
xAxis: time,
|
||||
lineStyle: {
|
||||
type: "solid",
|
||||
width: 1,
|
||||
color: "#ffd700"
|
||||
}
|
||||
},
|
||||
{
|
||||
yAxis: firstOpen
|
||||
}
|
||||
];
|
||||
let lastClose = item.minute_chart_data.slice(-1)[0].close;
|
||||
if (lastClose >= firstOpen) {
|
||||
option.series.itemStyle.color = "#EF5350";
|
||||
@@ -231,6 +244,8 @@ const _sfc_main = {
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
common_vendor.index.$emit("editSuccess");
|
||||
this.getEventRelatedStockData();
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
@@ -382,11 +397,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t(item.stock_name),
|
||||
b: common_vendor.t(item.stock_code),
|
||||
c: common_vendor.sr("chartRef" + index, "6e1a61f1-1-" + i0, {
|
||||
c: common_vendor.sr("chartRef" + index, "52d9c4e6-1-" + i0, {
|
||||
"f": 1
|
||||
}),
|
||||
d: "chartRef" + index,
|
||||
e: "6e1a61f1-1-" + i0,
|
||||
e: "52d9c4e6-1-" + i0,
|
||||
f: common_vendor.t(item.trade_data ? item.trade_data.open_price : ""),
|
||||
g: common_vendor.t(item.trade_data ? item.trade_data.latest_price : ""),
|
||||
h: common_vendor.t(item.trade_data ? item.trade_data.change_pct : ""),
|
||||
@@ -495,13 +510,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
P: common_vendor.o(($event) => $options.sendReplyComment()),
|
||||
Q: $data.replyComment,
|
||||
R: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
|
||||
S: common_vendor.sr("popup", "6e1a61f1-2"),
|
||||
S: common_vendor.sr("popup", "52d9c4e6-2"),
|
||||
T: common_vendor.p({
|
||||
type: "bottom"
|
||||
}),
|
||||
U: common_assets._imports_13$1,
|
||||
V: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
|
||||
W: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
|
||||
W: common_vendor.sr("expectScorePopup", "52d9c4e6-3"),
|
||||
X: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent"
|
||||
@@ -526,7 +541,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
k: common_vendor.o(($event) => $options.clickStockItem(item.stock_code), index)
|
||||
});
|
||||
}),
|
||||
ab: common_vendor.sr("stockPopup", "6e1a61f1-4"),
|
||||
ab: common_vendor.sr("stockPopup", "52d9c4e6-4"),
|
||||
ac: common_vendor.p({
|
||||
type: "bottom"
|
||||
})
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -46,6 +46,9 @@
|
||||
color: #666;
|
||||
line-height: 1.2rem;
|
||||
}
|
||||
.eventDetailsC .eventContent .ai {
|
||||
color: #C00000;
|
||||
}
|
||||
.eventDetailsC .categoryList {
|
||||
white-space: nowrap;
|
||||
margin-top: 10rpx;
|
||||
@@ -115,6 +118,9 @@
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.eventDetailsC .targetList .item .content .ai {
|
||||
color: #C00000;
|
||||
}
|
||||
.eventDetailsC .conceptList {
|
||||
padding: 30rpx 25rpx;
|
||||
}
|
||||
@@ -313,6 +319,9 @@
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.eventDetailsC .historyEventList .list .item .eventInfoC .content .ai {
|
||||
color: #C00000;
|
||||
}
|
||||
.eventDetailsC .historyEventList .list .item .eventInfoC .increaseRateList {
|
||||
white-space: nowrap;
|
||||
padding: 0 30rpx;
|
||||
@@ -646,3 +655,6 @@
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.stockPopup .list .item .content .ai {
|
||||
color: #C00000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user