-
@@ -96,16 +103,25 @@ onMounted(() => {
各位AI小财神的用户,大家好!
-
试运行期间,用户可在AI小财神中查看全市场数据,每个市场可查看20只股票.
+
+ 试运行期间,用户可在AI小财神中查看全市场数据,每个市场可查看20只股票.
+
以下为各个市场可以查看的股票:
-
-
{{ item.market }}:
-
-
- 、
-
+
+
+ {{ item.market }}:
+
+ 、
{{ code }}
@@ -171,7 +187,7 @@ p {
}
.codeItem {
- color: #4591E7;
+ color: #4591e7;
}
.code {
diff --git a/src/views/components/marketTemperature.vue b/src/views/components/marketTemperature.vue
index 07e5878..79e5c13 100644
--- a/src/views/components/marketTemperature.vue
+++ b/src/views/components/marketTemperature.vue
@@ -56,7 +56,13 @@
休市
- {{ item.market_temperature }} | {{ item.stock_temperature }}
+
+ {{ item.market_temperature }}
+
+
+ {{ item.market_temperature }} |
+ {{ item.stock_temperature }}
+
@@ -154,7 +160,7 @@ const months = ref([
"12月",
]);
-const calendarDate = ref(moment().format("YYYY年M月"));
+const calendarDate = ref();
const week = ref(["周一", "周二", "周三", "周四", "周五", "周六", "周日"]);
const KlineCanvs = ref();
@@ -180,11 +186,16 @@ const isIndexCode = computed(() => indexCodes.includes(props.code));
const currentData = ref([]);
const fetchCalendarData = () => {
+ const monthTitle = ref([]);
currentData.value = JSON.parse(JSON.stringify(WDRL.value));
for (let i = 0; i < currentData.value.length; i++) {
const day = moment(currentData.value[i].date).date();
currentData.value[i].day = day;
if (i == 0 || day == 1) {
+ monthTitle.value.push({
+ year: moment(currentData.value[i].date).year(),
+ month: moment(currentData.value[i].date).month() + 1,
+ });
currentData.value[i].month =
moment(currentData.value[i].date).month() + 1;
}
@@ -205,6 +216,16 @@ const fetchCalendarData = () => {
}
}
}
+
+ const stDate = monthTitle.value[0];
+ const edDate = monthTitle.value[monthTitle.value.length - 1];
+ calendarDate.value = `${stDate.year}年${stDate.month}月 ~`;
+ if (stDate.year != edDate.year) {
+ calendarDate.value += `${edDate.year}年${edDate.month}月`;
+ } else {
+ calendarDate.value += `${edDate.month}月`;
+ }
+
console.log(currentData.value);
};