8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
619
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
619
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
@@ -45,10 +45,20 @@ const _sfc_main = {
|
||||
//选中月份下标
|
||||
selectMonth: "",
|
||||
//选中年月
|
||||
industryTopCategoryList: [],
|
||||
//行业一级分类
|
||||
industryCategoryList: [],
|
||||
//行业分类数组
|
||||
industryKeywords: "",
|
||||
//行业分类搜索关键词
|
||||
searchResultList: [],
|
||||
//行业分类搜索结果数组
|
||||
selectIndustryTopCategory: 0,
|
||||
//
|
||||
//选中行业一级分类
|
||||
selectIndustrySecondCategory: -1,
|
||||
//选中行业二级分类
|
||||
selectIndustryThirdCategory: -1,
|
||||
//选中行业三级分类
|
||||
selectIndustryForthCategory: -1,
|
||||
//选中行业四级分类
|
||||
selectScreenCategory: 0,
|
||||
importanceList: [],
|
||||
//重要性数组
|
||||
@@ -65,7 +75,7 @@ const _sfc_main = {
|
||||
grid: {
|
||||
left: "0%",
|
||||
right: "0%",
|
||||
top: "0%",
|
||||
top: "10%",
|
||||
bottom: "20%"
|
||||
},
|
||||
xAxis: [
|
||||
@@ -105,71 +115,10 @@ const _sfc_main = {
|
||||
position: "top",
|
||||
fontSize: 12
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: 0,
|
||||
itemStyle: { color: "#355422" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 44,
|
||||
itemStyle: { color: "#35542299" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 315,
|
||||
itemStyle: { color: "#355422CC" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 1264,
|
||||
itemStyle: { color: "#355422" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 1064,
|
||||
itemStyle: { color: "#ACB0C0" },
|
||||
label: {
|
||||
textStyle: { color: "#666" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 1809,
|
||||
itemStyle: { color: "#C00000" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 602,
|
||||
itemStyle: { color: "#C00000CC" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 44,
|
||||
itemStyle: { color: "#C0000099" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
itemStyle: { color: "#C00000" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
}
|
||||
]
|
||||
itemStyle: {
|
||||
borderRadius: [5, 5, 0, 0]
|
||||
},
|
||||
data: []
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -182,13 +131,13 @@ const _sfc_main = {
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.contentTop = this.navH + (75 + 20) / 750 * this.windowWidth;
|
||||
this.contentTop = this.navH + (74 + 20) / 750 * this.windowWidth;
|
||||
this.listTop = this.contentTop + (22 + 80 + 72) / 750 * this.windowWidth;
|
||||
this.sortListTop = this.navH + (22 + 80 + 80) / 750 * this.windowWidth;
|
||||
this.getEventFilterListData();
|
||||
this.getEventListData();
|
||||
this.getIndustryCategoryListData();
|
||||
this.getStockCategoryListData();
|
||||
Promise.all([this.getEventFilterListData(), this.getIndustryCategoryListData(), this.getStockCategoryListData()]).then((res) => {
|
||||
this.getEventListData();
|
||||
}).catch((error) => {
|
||||
});
|
||||
let currentDate = /* @__PURE__ */ new Date();
|
||||
let currentYear = currentDate.getFullYear();
|
||||
let currentMonth = currentDate.getMonth() + 1;
|
||||
@@ -347,12 +296,17 @@ const _sfc_main = {
|
||||
clickTopCategoryItem(event, index) {
|
||||
if (this.selectTopCategory != index) {
|
||||
this.selectTopCategory = index;
|
||||
this.selectSecondCategory = 0;
|
||||
let offsetLeft = event.currentTarget.offsetLeft;
|
||||
this.topScrollLeft = offsetLeft - this.topScrollWidth / 2;
|
||||
if (index == 0) {
|
||||
this.listTop = this.contentTop + (22 + 80 + 72) / 750 * this.windowWidth;
|
||||
} else
|
||||
this.listTop = this.contentTop + (22 + 80 + 72 + 44 + 44) / 750 * this.windowWidth;
|
||||
this.listTop = this.contentTop + (22 + 80 + 72 + 42 + 42) / 750 * this.windowWidth;
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -364,6 +318,10 @@ const _sfc_main = {
|
||||
this.selectSecondCategory = index;
|
||||
let offsetLeft = event.currentTarget.offsetLeft;
|
||||
this.secondScrollLeft = offsetLeft - this.secondScrollWidth / 2;
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -425,11 +383,121 @@ const _sfc_main = {
|
||||
/**
|
||||
* 选择行业分类一级分类
|
||||
*/
|
||||
clickSelectIndustryTopCategoryItem(index) {
|
||||
clickIndustryTopCategoryItem(index) {
|
||||
if (this.selectIndustryTopCategory != index) {
|
||||
this.selectIndustryTopCategory = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 行业分类搜索
|
||||
*/
|
||||
industrySearch(e) {
|
||||
let keywords = e.detail.value;
|
||||
this.industryKeywords = keywords;
|
||||
let arr = [];
|
||||
for (let item of this.industryCategoryList) {
|
||||
let index = this.industryCategoryList.indexOf(item);
|
||||
for (let item1 of item.hierarchy) {
|
||||
let index1 = item.hierarchy.indexOf(item1);
|
||||
let arr1 = [];
|
||||
if (item1.level1_sector.indexOf(keywords) > -1) {
|
||||
arr1.push(item1);
|
||||
arr.push({ classification_name: item.classification_name, hierarchy: arr1 });
|
||||
}
|
||||
for (let item2 of item1.level2_sectors) {
|
||||
let index2 = item1.level2_sectors.indexOf(item2);
|
||||
let arr2 = [];
|
||||
if (item2.level2_sector.indexOf(keywords) > -1) {
|
||||
arr2.push(item2);
|
||||
arr1.push({ level1_sector: item1.level1_sector, level2_sectors: arr2 });
|
||||
arr.push({ classification_name: item.classification_name, hierarchy: arr1 });
|
||||
}
|
||||
for (let item3 of item2.level3_sectors) {
|
||||
let index3 = item2.level3_sectors.indexOf(item3);
|
||||
let arr3 = [];
|
||||
if (item3.level3_sector.indexOf(keywords) > -1) {
|
||||
item3.index = index;
|
||||
item3.index1 = index1;
|
||||
item3.index2 = index2;
|
||||
item3.index3 = index3;
|
||||
arr3.push(item3);
|
||||
arr2.push({ level2_sector: item2.level2_sector, level3_sectors: arr3 });
|
||||
arr1.push({ level1_sector: item1.level1_sector, level2_sectors: arr2 });
|
||||
arr.push({ classification_name: item.classification_name, hierarchy: arr1 });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.searchResultList = arr;
|
||||
},
|
||||
/**
|
||||
* 点击选择搜索结果
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickIndustrySearchItem(item) {
|
||||
this.industryKeywords = "";
|
||||
this.selectIndustryTopCategory = item.index;
|
||||
this.selectIndustrySecondCategory = item.index1;
|
||||
this.selectIndustryThirdCategory = item.index2;
|
||||
this.selectIndustryForthCategory = item.index3;
|
||||
},
|
||||
/**
|
||||
* 选择行业分类二级分类
|
||||
*/
|
||||
clickIndustrySecondCategoryItem(index) {
|
||||
if (this.selectIndustrySecondCategory != index) {
|
||||
this.selectIndustrySecondCategory = index;
|
||||
}
|
||||
this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[index].isSpread = !this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[index].isSpread;
|
||||
},
|
||||
/**
|
||||
* 选择行业分类三级分类
|
||||
*/
|
||||
clickIndustryThirdCategoryItem(sindex, index) {
|
||||
if (this.selectIndustrySecondCategory != sindex) {
|
||||
this.selectIndustrySecondCategory = sindex;
|
||||
}
|
||||
if (this.selectIndustryThirdCategory != index) {
|
||||
this.selectIndustryThirdCategory = index;
|
||||
}
|
||||
this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[index].isSpread = !this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[index].isSpread;
|
||||
},
|
||||
/**
|
||||
* 选择行业分类四级分类
|
||||
*/
|
||||
clickIndustryForthCategoryItem(sindex, tindex, index) {
|
||||
if (this.selectIndustrySecondCategory != sindex) {
|
||||
this.selectIndustrySecondCategory = sindex;
|
||||
}
|
||||
if (this.selectIndustryThirdCategory != tindex) {
|
||||
this.selectIndustryThirdCategory = tindex;
|
||||
}
|
||||
if (this.selectIndustryForthCategory != index) {
|
||||
this.selectIndustryForthCategory = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业二级分类
|
||||
*/
|
||||
deleteIndustrySecondCategoryItem() {
|
||||
this.selectIndustrySecondCategory = -1;
|
||||
this.selectIndustryThirdCategory = -1;
|
||||
this.selectIndustryForthCategory = -1;
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业三级分类
|
||||
*/
|
||||
deleteIndustryThirdCategoryItem() {
|
||||
this.selectIndustryThirdCategory = -1;
|
||||
this.selectIndustryForthCategory = -1;
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业四级分类
|
||||
*/
|
||||
deleteIndustryForthCategoryItem() {
|
||||
this.selectIndustryForthCategory = -1;
|
||||
},
|
||||
/**
|
||||
* 点击选择重要性
|
||||
*/
|
||||
@@ -447,11 +515,12 @@ const _sfc_main = {
|
||||
},
|
||||
/**
|
||||
* 点击相关股票
|
||||
* @param {Object} code
|
||||
* @param {Object} id 事件id
|
||||
* @param {Object} code 股票代码
|
||||
*/
|
||||
clickLookRelatedStockItem(code) {
|
||||
clickLookRelatedStockItem(id, code) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/index/stockDetails/stockDetails?code=" + code
|
||||
url: "/pages/index/stockDetails/stockDetails?type=1&code=" + code + "&id=" + id
|
||||
});
|
||||
},
|
||||
/**
|
||||
@@ -479,66 +548,88 @@ const _sfc_main = {
|
||||
* 获取事件筛选项
|
||||
*/
|
||||
getEventFilterListData() {
|
||||
request_api.filterOptions().then((res) => {
|
||||
if (res.code == 200) {
|
||||
let timeList = [...res.data.sort_options];
|
||||
this.timeCategoryList = timeList.splice(0, 2);
|
||||
let sortList = [...res.data.sort_options];
|
||||
for (let item of sortList) {
|
||||
if (item.name == "最新") {
|
||||
item.icon = "/static/icon/home/new.png";
|
||||
}
|
||||
if (item.name == "热门") {
|
||||
item.icon = "/static/icon/home/hot.png";
|
||||
}
|
||||
if (item.name == "收益率") {
|
||||
item.icon = "/static/icon/home/yield.png";
|
||||
return new Promise((resolve, reject) => {
|
||||
request_api.filterOptions().then((res) => {
|
||||
if (res.code == 200) {
|
||||
resolve(1);
|
||||
let timeList = [...res.data.sort_options];
|
||||
this.timeCategoryList = timeList.splice(0, 2);
|
||||
let sortList = [...res.data.sort_options];
|
||||
for (let item of sortList) {
|
||||
if (item.name == "最新") {
|
||||
item.icon = "/static/icon/home/new.png";
|
||||
}
|
||||
if (item.name == "热门") {
|
||||
item.icon = "/static/icon/home/hot.png";
|
||||
}
|
||||
if (item.name == "收益率") {
|
||||
item.icon = "/static/icon/home/yield.png";
|
||||
}
|
||||
}
|
||||
this.sortList = res.data.sort_options.splice(0, 3);
|
||||
this.importanceList = res.data.importance_options;
|
||||
this.importanceList.unshift({ desc: "全部", key: "all", name: "全部" });
|
||||
} else {
|
||||
reject(1);
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
this.sortList = res.data.sort_options.splice(0, 3);
|
||||
this.importanceList = res.data.importance_options;
|
||||
this.importanceList.unshift({ desc: "全部", key: "all", name: "全部" });
|
||||
} else
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
}).catch((error) => {
|
||||
reject(1);
|
||||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取行业分类
|
||||
*/
|
||||
getIndustryCategoryListData() {
|
||||
request_api.industryCategoryList().then((res) => {
|
||||
this.industryTopCategoryList = res.data;
|
||||
}).catch((error) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
request_api.industryCategoryList().then((res) => {
|
||||
this.industryCategoryList = res.data;
|
||||
resolve(1);
|
||||
}).catch((error) => {
|
||||
reject(1);
|
||||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取股票分类
|
||||
*/
|
||||
getStockCategoryListData() {
|
||||
request_api.stockCategoryList().then((res) => {
|
||||
if (res.code == 200) {
|
||||
for (let item of res.data) {
|
||||
item.sub_sectors.unshift("全部");
|
||||
return new Promise((resolve, reject) => {
|
||||
request_api.stockCategoryList().then((res) => {
|
||||
if (res.code == 200) {
|
||||
for (let item of res.data) {
|
||||
item.sub_sectors.unshift("全部");
|
||||
}
|
||||
res.data.unshift({ primary_sector: "全部", sub_sectors: [] });
|
||||
this.stockCategoryList = res.data;
|
||||
resolve(1);
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
reject(1);
|
||||
}
|
||||
res.data.unshift({ primary_sector: "全部", sub_sectors: [] });
|
||||
this.stockCategoryList = res.data;
|
||||
} else
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
}).catch((error) => {
|
||||
reject(1);
|
||||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取事件列表数据
|
||||
*/
|
||||
getEventListData() {
|
||||
let param = { page: this.page, keywords: this.keywords };
|
||||
let param = { page: this.page, q: this.keywords };
|
||||
if (this.selectTopCategory > 0) {
|
||||
param.stock_sector = this.stockCategoryList[this.selectTopCategory].primary_sector;
|
||||
}
|
||||
if (this.selectSecondCategory > 0) {
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory];
|
||||
}
|
||||
if (this.startDate) {
|
||||
param.start_date = this.startDate;
|
||||
}
|
||||
@@ -551,35 +642,125 @@ const _sfc_main = {
|
||||
if (this.selectSortKey) {
|
||||
param.sort = this.selectSortKey;
|
||||
}
|
||||
if (this.selectIndustryForthCategory > -1) {
|
||||
param.industry_level = 4;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level2_sectors[this.selectIndustryThirdCategory].level3_sectors[this.selectIndustryForthCategory].level3_sector;
|
||||
} else {
|
||||
if (this.selectIndustryThirdCategory > -1) {
|
||||
param.industry_level = 3;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level2_sectors[this.selectIndustryThirdCategory].level2_sector;
|
||||
} else {
|
||||
if (this.selectIndustrySecondCategory > -1) {
|
||||
param.industry_level = 2;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level1_sector;
|
||||
} else {
|
||||
param.industry_level = 1;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].classification_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
request_api.eventList(param).then((res) => {
|
||||
if (res.success) {
|
||||
let valueData = [];
|
||||
let data = res.data.overall_stats.change_distribution;
|
||||
valueData.push({
|
||||
value: data.limit_down,
|
||||
itemStyle: { color: "#35542266" },
|
||||
label: {
|
||||
textStyle: { color: "#35542266" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.down_over_5,
|
||||
itemStyle: { color: "#35542299" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.down_5_to_1,
|
||||
itemStyle: { color: "#355422CC" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.down_within_1,
|
||||
itemStyle: { color: "#355422" },
|
||||
label: {
|
||||
textStyle: { color: "#355422" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.flat,
|
||||
itemStyle: { color: "#ACB0C0" },
|
||||
label: {
|
||||
textStyle: { color: "#666" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.up_within_1,
|
||||
itemStyle: { color: "#C00000" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.up_1_to_5,
|
||||
itemStyle: { color: "#C00000CC" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.up_over_5,
|
||||
itemStyle: { color: "#C0000099" },
|
||||
label: {
|
||||
textStyle: { color: "#C00000" }
|
||||
}
|
||||
});
|
||||
valueData.push({
|
||||
value: data.limit_up,
|
||||
itemStyle: { color: "#C0000066" },
|
||||
label: {
|
||||
textStyle: { color: "#C0000066" }
|
||||
}
|
||||
});
|
||||
this.option.series[0].data = valueData;
|
||||
this.init();
|
||||
if (this.page == 1) {
|
||||
this.eventList = res.data.events;
|
||||
} else
|
||||
this.eventList = this.eventList.concat(res.data.events);
|
||||
this.loadAll = !res.data.pagination.has_next;
|
||||
}
|
||||
}).catch((error) => {
|
||||
});
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
if (!token) {
|
||||
let param1 = { email: "1198731706@qq.com", password: "Aa123456", isJson: 1 };
|
||||
request_api.loginByEmail(param1).then((res) => {
|
||||
if (res.code == 200) {
|
||||
common_vendor.index.setStorageSync("token", res.data.token);
|
||||
} else
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
});
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 获取热门事件数据
|
||||
*/
|
||||
getHotEventListData() {
|
||||
request_api.homeData().then((res) => {
|
||||
let param = { page: this.page, q: this.keywords };
|
||||
if (this.selectTopCategory > 0) {
|
||||
param.stock_sector = this.stockCategoryList[this.selectTopCategory].primary_sector;
|
||||
}
|
||||
if (this.selectSecondCategory > 0) {
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory];
|
||||
}
|
||||
if (this.startDate) {
|
||||
param.start_date = this.startDate;
|
||||
}
|
||||
if (this.endDate) {
|
||||
param.end_date = this.endDate;
|
||||
}
|
||||
if (this.selectImportanceIndex > 0) {
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key;
|
||||
}
|
||||
if (this.selectSortKey) {
|
||||
param.sort = this.selectSortKey;
|
||||
}
|
||||
request_api.homeData(param).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (this.page == 1) {
|
||||
this.eventList = res.data.events;
|
||||
@@ -596,12 +777,14 @@ const _sfc_main = {
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_l_echart2 = common_vendor.resolveComponent("l-echart");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
_easycom_uni_popup2();
|
||||
(_easycom_l_echart2 + _easycom_uni_popup2)();
|
||||
}
|
||||
const _easycom_l_echart = () => "../../uni_modules/lime-echart/components/l-echart/l-echart.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_popup();
|
||||
(_easycom_l_echart + _easycom_uni_popup)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
@@ -646,7 +829,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
q: $data.secondScrollLeft
|
||||
} : {}, {
|
||||
r: common_vendor.s("top:" + $data.contentTop + "px"),
|
||||
s: common_vendor.f($data.eventList, (item, index, i0) => {
|
||||
s: common_vendor.sr("chartRef", "9dfd58d8-0"),
|
||||
t: common_vendor.f($data.eventList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.importance),
|
||||
b: common_vendor.n("level " + item.importance),
|
||||
@@ -683,7 +867,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_vendor.t(sitem.stock_name),
|
||||
b: common_vendor.t(($data.getRateUpOrDown(sitem.daily_change) ? "" : "+") + sitem.daily_change),
|
||||
c: sindex,
|
||||
d: common_vendor.o(($event) => $options.clickLookRelatedStockItem(sitem.stock_code), sindex)
|
||||
d: common_vendor.o(($event) => $options.clickLookRelatedStockItem(item.id, sitem.stock_code), sindex)
|
||||
};
|
||||
}),
|
||||
x: common_vendor.t($data.getLocaleTime(item.created_at)),
|
||||
@@ -695,13 +879,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
D: index
|
||||
});
|
||||
}),
|
||||
t: common_assets._imports_3,
|
||||
v: common_assets._imports_4,
|
||||
w: common_assets._imports_7,
|
||||
x: common_vendor.s("top:" + $data.listTop + "px"),
|
||||
y: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
z: common_assets._imports_11$1,
|
||||
A: common_vendor.f($data.sortList, (item, index, i0) => {
|
||||
v: common_assets._imports_3,
|
||||
w: common_assets._imports_4,
|
||||
x: common_assets._imports_10,
|
||||
y: common_vendor.s("top:" + $data.listTop + "px"),
|
||||
z: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
A: common_assets._imports_13$1,
|
||||
B: common_vendor.f($data.sortList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
@@ -709,15 +893,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickSortListItem(item), index)
|
||||
};
|
||||
}),
|
||||
B: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
C: common_vendor.sr("sortPopup", "9dfd58d8-0"),
|
||||
D: common_vendor.p({
|
||||
C: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
D: common_vendor.sr("sortPopup", "9dfd58d8-1"),
|
||||
E: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent"
|
||||
}),
|
||||
E: common_assets._imports_2,
|
||||
F: common_vendor.s("height:" + $data.menuH + "px;"),
|
||||
G: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
|
||||
F: common_assets._imports_2,
|
||||
G: common_vendor.s("height:" + $data.menuH + "px;"),
|
||||
H: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item),
|
||||
b: $data.selectScreenCategory == index
|
||||
@@ -727,22 +911,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: common_vendor.o(($event) => $options.clickScreenCategoryItem(index), index)
|
||||
});
|
||||
}),
|
||||
H: $data.selectScreenCategory == 0
|
||||
I: $data.selectScreenCategory == 0
|
||||
}, $data.selectScreenCategory == 0 ? {
|
||||
I: common_vendor.t($data.startDate),
|
||||
J: common_vendor.t($data.endDate),
|
||||
K: common_assets._imports_11,
|
||||
L: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
M: common_vendor.t($data.selectMonth),
|
||||
N: common_assets._imports_12,
|
||||
O: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
P: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
J: common_vendor.t($data.startDate),
|
||||
K: common_vendor.t($data.endDate),
|
||||
L: common_assets._imports_5,
|
||||
M: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
N: common_vendor.t($data.selectMonth),
|
||||
O: common_assets._imports_6,
|
||||
P: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
Q: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
Q: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
R: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.isToday || item.date == $data.startDate || item.date == $data.endDate
|
||||
}, item.isToday || item.date == $data.startDate || item.date == $data.endDate ? {
|
||||
@@ -763,22 +947,111 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
R: $data.selectScreenCategory == 1
|
||||
}, $data.selectScreenCategory == 1 ? {
|
||||
S: common_vendor.f($data.industryTopCategoryList, (item, index, i0) => {
|
||||
S: $data.selectScreenCategory == 1
|
||||
}, $data.selectScreenCategory == 1 ? common_vendor.e({
|
||||
T: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.classification_name),
|
||||
b: common_vendor.n("item " + ($data.selectIndustryTopCategory == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSelectIndustryTopCategoryItem(index), index)
|
||||
d: common_vendor.o(($event) => $options.clickIndustryTopCategoryItem(index), index)
|
||||
};
|
||||
}),
|
||||
T: common_assets._imports_1,
|
||||
U: common_vendor.t($data.industryTopCategoryList[$data.selectIndustryTopCategory].classification_name)
|
||||
U: common_assets._imports_1,
|
||||
V: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
|
||||
W: $data.industryKeywords,
|
||||
X: $data.industryKeywords.length > 0
|
||||
}, $data.industryKeywords.length > 0 ? {
|
||||
Y: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.f(item.hierarchy, (sitem, sindex, i1) => {
|
||||
return {
|
||||
a: common_vendor.f(sitem.level2_sectors, (titem, tindex, i2) => {
|
||||
return {
|
||||
a: common_vendor.f(titem.level3_sectors, (fitem, findex, i3) => {
|
||||
return {
|
||||
a: common_vendor.f(fitem.level3_sector + "/" + titem.level2_sector + "/" + sitem.level1_sector, (citem, cindex, i4) => {
|
||||
return {
|
||||
a: common_vendor.t(citem),
|
||||
b: common_vendor.n($data.industryKeywords.indexOf(citem) > -1 ? "key" : ""),
|
||||
c: cindex
|
||||
};
|
||||
}),
|
||||
b: common_vendor.o(($event) => $options.clickIndustrySearchItem(fitem), findex),
|
||||
c: findex
|
||||
};
|
||||
}),
|
||||
b: tindex
|
||||
};
|
||||
}),
|
||||
b: sindex
|
||||
};
|
||||
}),
|
||||
b: index
|
||||
};
|
||||
})
|
||||
} : common_vendor.e({
|
||||
Z: $data.selectIndustrySecondCategory > -1
|
||||
}, $data.selectIndustrySecondCategory > -1 ? common_vendor.e({
|
||||
aa: $data.selectIndustrySecondCategory > -1
|
||||
}, $data.selectIndustrySecondCategory > -1 ? {
|
||||
ab: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level1_sector),
|
||||
ac: common_assets._imports_13,
|
||||
ad: common_vendor.o(($event) => $options.deleteIndustrySecondCategoryItem())
|
||||
} : {}, {
|
||||
V: $data.selectScreenCategory == 2
|
||||
ae: $data.selectIndustryThirdCategory > -1
|
||||
}, $data.selectIndustryThirdCategory > -1 ? {
|
||||
af: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level2_sector),
|
||||
ag: common_assets._imports_13,
|
||||
ah: common_vendor.o(($event) => $options.deleteIndustryThirdCategoryItem())
|
||||
} : {}, {
|
||||
ai: $data.selectIndustryForthCategory > -1
|
||||
}, $data.selectIndustryForthCategory > -1 ? {
|
||||
aj: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level3_sectors[$data.selectIndustryForthCategory].level3_sector),
|
||||
ak: common_assets._imports_13,
|
||||
al: common_vendor.o(($event) => $options.deleteIndustryForthCategoryItem())
|
||||
} : {}) : {}, {
|
||||
am: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].classification_name),
|
||||
an: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy, (sitem, sindex, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($data.selectIndustrySecondCategory == sindex && sitem.isSpread ? "-" : "+"),
|
||||
b: common_vendor.t(sitem.level1_sector),
|
||||
c: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex ? "select" : "")),
|
||||
d: common_vendor.o(($event) => $options.clickIndustrySecondCategoryItem(sindex), sindex),
|
||||
e: sitem.isSpread
|
||||
}, sitem.isSpread ? {
|
||||
f: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[sindex].level2_sectors, (titem, tindex, i1) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && titem.isSpread ? "-" : "+"),
|
||||
b: common_vendor.t(titem.level2_sector),
|
||||
c: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex ? "select" : "")),
|
||||
d: common_vendor.o(($event) => $options.clickIndustryThirdCategoryItem(sindex, tindex), tindex),
|
||||
e: titem.isSpread
|
||||
}, titem.isSpread ? {
|
||||
f: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[tindex].level3_sectors, (fitem, findex, i2) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(fitem.level3_sector),
|
||||
b: $data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex
|
||||
}, $data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex ? {
|
||||
c: common_assets._imports_14
|
||||
} : {}, {
|
||||
d: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex ? "select" : "")),
|
||||
e: common_vendor.o(($event) => $options.clickIndustryForthCategoryItem(sindex, tindex, findex), findex),
|
||||
f: findex
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
g: tindex
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
g: sindex
|
||||
});
|
||||
})
|
||||
})) : {}, {
|
||||
ao: $data.selectScreenCategory == 2
|
||||
}, $data.selectScreenCategory == 2 ? {
|
||||
W: common_vendor.f($data.importanceList, (item, index, i0) => {
|
||||
ap: common_vendor.f($data.importanceList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.n("item " + ($data.selectImportanceIndex == index ? "select" : "")),
|
||||
@@ -787,11 +1060,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
X: common_vendor.o(($event) => $options.clickCancel()),
|
||||
Y: common_vendor.o(($event) => $options.clickCertain()),
|
||||
Z: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
|
||||
aa: common_vendor.sr("screenPopup", "9dfd58d8-1"),
|
||||
ab: common_vendor.p({
|
||||
aq: common_vendor.o(($event) => $options.clickCancel()),
|
||||
ar: common_vendor.o(($event) => $options.clickCertain()),
|
||||
as: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
|
||||
at: common_vendor.sr("screenPopup", "9dfd58d8-2"),
|
||||
av: common_vendor.p({
|
||||
type: "top"
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user