Files
JiaZhiQianYan/unpackage/dist/dev/mp-weixin/pagesStock/stockCenterDetails/stockCenterDetails.js
2026-02-04 17:43:41 +08:00

1365 lines
47 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const utils_util = require("../../utils/util.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
navH: common_vendor.inject("navHeight"),
navTitle: "",
//标题
searchResultTop: "",
//搜索结果
contentTop: "",
keywords: "",
//搜索关键字
searchShow: false,
//是否展示搜索结果
searchResultList: [],
//搜索结果
selectSearchStockInfo: null,
//选中的搜索股票信息
stockCode: "300700",
//股票代码 600759 000009 002004 300700
stockBasicInfo: null,
//股票基本信息
quoteDetailsInfo: null,
//股票事实市场价格信息
isExpandIntro: false,
//是否展开公司简介
tabList: [
{
title: "公司档案",
show: true
},
{
title: "深度分析",
show: true
},
// {
// title:'股票行情'
// },
{
title: "财务全景",
show: true
},
// {
// title:'盈利预测'
// },
{
title: "动态跟踪",
show: true
}
],
selectTab: 0,
companyFilesList: [
{
title: "股权结构"
},
{
title: "管理团队"
},
{
title: "分支机构"
},
{
title: "工商信息"
}
],
//公司档案分类
actualControlInfo: null,
//实际控制信息
concentrationList: [],
//股权集中度列表
topShareholdersList: [],
//十大股东列表
topCirculatingShareholdersList: [],
//十大流通股东列表
managementList: [],
//管理团队列表
isManagementEmpty: false,
//管理团队数据是否为空
branchList: [],
//分支机构列表
selectCompanyFiles: 0,
inDepthAnalysisList: [
{
title: "战略分析"
},
{
title: "业务结构"
},
{
title: "产业链"
},
{
title: "发展历程"
}
],
//深度分析分类
selectInDepthAnalysis: 0,
qualitativeAnalysisInfo: null,
//定性分析
competitivePositionInfo: null,
//竞争地位信息
mainCompetitorsList: [],
//主要竞争对手
industryRankInfo: null,
//行业排名数据
industryRankList: [],
//行业排名
scoreList: [
{
icon: "/pagesStock/static/icon/marketPosition.png",
title: "市场地位",
color: "blue",
score: ""
},
{
icon: "/pagesStock/static/icon/technicalStrength.png",
title: "技术实力",
color: "purple",
score: ""
},
{
icon: "/pagesStock/static/icon/brandValue.png",
title: "品牌价值",
color: "purple",
score: ""
},
{
icon: "/pagesStock/static/icon/growthPotential.png",
title: "运营效率",
color: "purple",
score: ""
},
{
icon: "/pagesStock/static/icon/financialHealth.png",
title: "财务健康",
color: "blue",
score: ""
},
{
icon: "/pagesStock/static/icon/innovationAbility.png",
title: "创新能力",
color: "blue",
score: ""
},
{
icon: "/pagesStock/static/icon/riskManagement.png",
title: "风险控制",
color: "purple",
score: ""
},
{
icon: "/pagesStock/static/icon/growthPotential.png",
title: "成长潜力",
color: "purple",
score: ""
}
],
chartData2: [],
//雷达图数据
businessStructureList: [],
//业务结构分析
businessSegmentList: [],
//业务板块详情
valueChainAnalysisInfo: null,
totalNodes: 0,
//供应链总节点数
upstreamList: [],
//上游供应链
coreEnterpriseList: [],
//核心企业
downstreamList: [],
//下游客户
selectValueChainInfo: null,
//点击查看的产业链信息
relatedCompanyList: [],
//产业链相关公司
valueChainFlowsList: [],
//流向图数据
keyFactorsInfo: null,
//关键因素统计信息
keyFactorsList: [],
//关键因素
timelineInfo: null,
//发展时间线统计信息
timelineList: [],
//发展时间线
selectDevelopmentTimelineInfo: null,
caiWuList: [
{
title: "主营数据"
},
{
title: "财务分析"
},
{
title: "财务数据"
}
],
//财务全景分类
selectCaiwu: 0,
financialMetricsList: [],
//财务分析列表数据
financialStockInfo: null,
mainBussinessBarCategoryList: [],
//主营业务柱状图,折线图分类
mainBussinessBarList: [],
//主营业务柱状图数据
mainBussinessLineList: [],
//主营业务折线图数据
productClassificationList: [],
//主营业务产业分类数据
financialBalanceList: [],
//资产负债表
cashFlowList: [],
//现金流量表
incomeStatementList: [],
//利润表
dongTaiList: [
{
title: "新闻动态"
},
{
title: "公司公告"
}
],
//动态跟踪分类
selectDongtai: 0,
newsKeywords: "",
//新闻动态搜索关键字
newsList: [],
//新闻动态数据
companyAnnouncementList: [],
//公司公告数据
getLocalDate: utils_util.getLocalDate,
getRateUpOrDown: utils_util.getRateUpOrDown,
//判断涨跌
getNumStr: utils_util.getNumStr,
//获取数字展示万或亿
isData: false
//是否请求完了数据
};
},
onLoad(e) {
this.searchResultTop = this.navH + (20 + 70) / 750 * common_vendor.inject("windowWidth");
this.contentTop = this.searchResultTop + 30 / 750 * common_vendor.inject("windowWidth");
if (e.code) {
this.stockCode = e.code;
}
this.getStockBasicInfoData();
this.getQuoteDetailsData();
this.getActualControlData();
this.getOwnershipConcentration();
this.getTopShareholdersData();
this.getTopCirculatingShareholdersData();
},
methods: {
/**
* 点击搜索
*/
clickSearch() {
if (this.keywords) {
this.getSearchStockInfoListData();
} else
this.selectSearchStockInfo = null;
},
/**
* 点击搜索结果背景
*/
clickSearchResultBg() {
this.searchShow = false;
},
/**
* 点击搜索结果列表项
*/
clickSearchResultListItem(item) {
this.selectSearchStockInfo = item;
this.searchShow = false;
this.getStockBasicInfoData();
this.getQuoteDetailsData();
if (this.selectTab == 0) {
if (this.selectCompanyFiles == 0) {
this.getActualControlData();
this.getOwnershipConcentration();
this.getTopShareholdersData();
this.getTopCirculatingShareholdersData();
} else if (this.selectCompanyFiles == 1) {
this.isData = false;
this.getManagementTeamData();
} else if (this.selectCompanyFiles == 2) {
this.isData = false;
this.getBranchListData();
}
} else if (this.selectTab == 1) {
if (this.selectInDepthAnalysis == 0) {
this.getComprehensiveAnalysisData();
this.getIndustryRankListData();
}
} else if (this.selectTab == 2) {
this.getFinancialStockInfoData();
this.getFinancialComparisonData();
this.getFinancialMetricsData();
this.getFinancialMainBussinessData();
} else if (this.selectTab == 3) {
this.getNewsListData();
}
},
/**
* 获取买入百分比
*/
getBuyPercent() {
let ratio = this.quoteDetailsInfo.net_active_buy_ratio;
if (ratio) {
return Math.round(utils_util.accAdd(50, utils_util.accDiv(ratio, 2)));
} else
return 0;
},
/**
* 获取卖出百分比
*/
getSellPercent() {
let ratio = this.quoteDetailsInfo.net_active_buy_ratio;
if (ratio) {
return Math.round(utils_util.accSub(50, utils_util.accDiv(ratio, 2)));
} else
return 0;
},
/**
* 点击查看官网
*/
clickOfficialWebsite() {
},
/**
* 点击展开收起公司简介
*/
clickExpandOrRetractCompanyIntro() {
this.isExpandIntro = !this.isExpandIntro;
},
/**
* @param {Object} index
*/
clickTabItem(index) {
if (this.selectTab != index) {
this.selectTab = index;
if (index == 1) {
if (this.selectInDepthAnalysis == 0) {
this.getComprehensiveAnalysisData();
this.getIndustryRankListData();
}
} else if (index == 2) {
this.getFinancialStockInfoData();
this.getFinancialComparisonData();
this.getFinancialMetricsData();
this.getFinancialMainBussinessData();
} else if (index == 3) {
this.getNewsListData();
}
}
},
/**
* 点击选择公司档案分类
* @param {Object} index
*/
clickCompanyFilesItem(index) {
if (this.selectCompanyFiles != index) {
this.selectCompanyFiles = index;
if (index == 1) {
this.getManagementTeamData();
} else if (index == 2) {
this.getBranchListData();
}
}
},
/**
* 点击选择深度分析分类
* @param {Object} index
*/
clickInDepthAnalysisItem(index) {
if (this.selectInDepthAnalysis != index) {
this.selectInDepthAnalysis = index;
if (index == 2) {
this.getValueChainAnalysisData();
} else if (index == 3) {
this.getKeyFactorsTimelineData();
}
}
},
/**
* 点击选择财务全景分类
* @param {Object} index
*/
clickCaiWuItem(index) {
if (this.selectCaiwu != index) {
this.selectCaiwu = index;
if (index == 0) {
this.getFinancialStockInfoData();
this.getFinancialComparisonData();
this.getFinancialMetricsData();
} else if (index == 1) {
this.getFinancialMetricsData();
} else if (index == 2) {
this.getFinancialBalanceSheetData();
this.getCashFlowSheetData();
this.getIncomeStatementSheetData();
}
}
},
/**
* 点击选择动态分类
* @param {Object} index
*/
clickDongTaiItem(index) {
if (this.selectDongtai != index) {
this.selectDongtai = index;
if (index == 0) {
this.getNewsListData();
} else if (index == 1) {
this.getCompanyAnnouncementsData();
}
}
},
/**
* 点击查看行业排名
*/
clickIndustryRank() {
this.$refs["industryRankPop"].open();
},
/**
* 关闭行业排名弹窗
*/
clickCloseIndustryRankPop() {
this.$refs["industryRankPop"].close();
},
/**
* 查看发展时间线详情
*/
clickDevelopmentTimelineDetail(item) {
this.selectDevelopmentTimelineInfo = item;
this.$refs["developmentTimelinePopup"].open();
},
clickCloseDevelopmentTimelinePopup() {
this.$refs["developmentTimelinePopup"].close();
},
/**
* 查看产业链详情
*/
clickValueChainDetail(item) {
this.selectValueChainInfo = item;
this.getValueChainRelatedCompanyData();
this.$refs["valueChainPopup"].open();
},
/**
* 关闭产业链弹窗
*/
clickCloseValueChainPopup() {
this.$refs["valueChainPopup"].close();
},
/**
* 新闻动态搜索
* @param {Object} keywords
*/
clickNewsSearch(keywords) {
this.newsKeywords = keywords;
this.getNewsListData();
},
/**
* 查看新闻动态详情
*/
clickNewsDetail(item) {
common_vendor.index.navigateTo({
url: "/pages/index/eventDetails/eventDetails?id=" + item.id
});
},
/**
* 查看公司公告详情
*/
clickAnnouncementDetail(item) {
common_vendor.wx$1.showLoading({
title: "下载中"
});
common_vendor.wx$1.downloadFile({
url: item.url,
success(res) {
common_vendor.wx$1.openDocument({
filePath: res.tempFilePath,
showMenu: true,
success(res2) {
common_vendor.wx$1.hideLoading();
}
});
}
});
},
/**
* 点击自选
*/
clickOptional() {
},
/**
* 点击分享
*/
clickShare() {
},
/**
* 根据输入内容获取搜索列表项
*/
getSearchStockInfoListData() {
let param = { q: this.keywords, limit: 10 };
request_api.searchStockInfo(param).then((res) => {
this.searchResultList = res.data;
this.searchShow = this.searchResultList.length > 0;
}).catch((error) => {
});
},
/**
* 获取股票基本信息
*/
getStockBasicInfoData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.stockBasicInfo(code).then((res) => {
this.stockBasicInfo = res.data;
this.navTitle = res.data.SECNAME + "(" + res.data.SECCODE + ")";
}).catch((error) => {
});
},
/**
* 获取股票当前市场价格信息
*/
getQuoteDetailsData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.quoteDetailsInfo(code).then((res) => {
this.quoteDetailsInfo = res.data;
}).catch((error) => {
});
},
/**
* 获取实际控制人数据
*/
getActualControlData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.actualControl(code).then((res) => {
this.actualControlInfo = res.data[0];
}).catch((error) => {
});
},
/**
* 获取股权集中度数据
*/
getOwnershipConcentration() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.ownershipConcentration(code).then((res) => {
this.concentrationList = res.data.slice(0, 8);
}).catch((error) => {
});
},
/**
* 获取十大股东列表
*/
getTopShareholdersData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.topShareholdersList(code, { "limit": 10 }).then((res) => {
this.topShareholdersList = res.data;
}).catch((error) => {
});
},
/**
* 获取十大流通股东列表
*/
getTopCirculatingShareholdersData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.topCirculatingShareholdersList(code, { "limit": 10 }).then((res) => {
this.topCirculatingShareholdersList = res.data;
}).catch((error) => {
});
},
/**
* 获取管理团队数据
*/
getManagementTeamData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.managementTeam(code, { active_only: true }).then((res) => {
let data = res.data;
let arr = ["高管", "董事", "监事", "其他"];
let list = [];
for (let item of arr) {
list.push({ key: item, list: [] });
}
this.managementList = data.reduce((acc, item) => {
for (let item1 of acc) {
if (item.position_category.indexOf(item1.key) > -1) {
let keyIndex = -1;
for (let item2 of acc) {
if (item1.key == item2.key) {
keyIndex = acc.indexOf(item2);
break;
}
}
if (keyIndex > -1) {
acc[keyIndex].list.push(item);
} else {
acc.push({ key: item1, list: [item] });
}
}
}
if (item.position_category.indexOf(arr[0]) > -1 && item.position_category.indexOf(arr[1]) > -1 && item.position_category.indexOf(arr[2]) > -1)
;
return acc;
}, list);
var count = 0;
for (let item of this.managementList) {
count += item.list.length;
}
this.isManagementEmpty = count == 0;
this.isData = true;
}).catch((error) => {
this.isData = true;
});
},
/**
* 获取分支机构数据
*/
getBranchListData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.branchesList(code).then((res) => {
this.branchList = res.data;
this.isData = true;
}).catch((error) => {
this.isData = true;
});
},
/**
* 获取综合分析数据
*/
getComprehensiveAnalysisData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.comprehensiveAnalysis(code).then((res) => {
this.qualitativeAnalysisInfo = res.data.qualitative_analysis;
this.competitivePositionInfo = res.data.competitive_position;
this.mainCompetitorsList = this.competitivePositionInfo.analysis.main_competitors.split(",");
this.industryRankInfo = res.data.competitive_position.ranking;
let marketPosition = this.competitivePositionInfo.scores.market_position;
this.scoreList[0].score = marketPosition;
let technology = this.competitivePositionInfo.scores.technology;
this.scoreList[1].score = technology;
let brand = this.competitivePositionInfo.scores.brand;
this.scoreList[2].score = brand;
let operation = this.competitivePositionInfo.scores.operation;
this.scoreList[3].score = operation;
let finance = this.competitivePositionInfo.scores.finance;
this.scoreList[4].score = finance;
let innovation = this.competitivePositionInfo.scores.innovation;
this.scoreList[5].score = innovation;
let risk = this.competitivePositionInfo.scores.risk;
this.scoreList[6].score = risk;
let growth = this.competitivePositionInfo.scores.growth;
this.scoreList[7].score = growth;
this.chartData2 = [[marketPosition, technology, brand, operation, finance, innovation, risk, growth]];
this.businessStructureList = res.data.business_structure;
this.businessSegmentList = res.data.business_segments;
}).catch((error) => {
});
},
/**
* 获取行业排名列表数据
*/
getIndustryRankListData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.industryRankList(code).then((res) => {
this.industryRankList = res.data;
}).catch((error) => {
});
},
/**
* 获取价值链分析数据
*/
getValueChainAnalysisData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.valueChainAnalysis(code).then((res) => {
this.valueChainAnalysisInfo = res.data.analysis_summary;
this.totalNodes = res.data.value_chain_structure.total_nodes;
let nodesByLevel = res.data.value_chain_structure.nodes_by_level;
this.upstreamList = nodesByLevel["level_-2"].concat(nodesByLevel["level_-1"]);
this.coreEnterpriseList = nodesByLevel.level_0;
this.downstreamList = nodesByLevel.level_1.concat(nodesByLevel.level_2);
this.valueChainFlowsList = res.data.value_chain_flows;
}).catch((error) => {
});
},
/**
* 获取价值链相关公司
*/
getValueChainRelatedCompanyData() {
let param = {};
if (this.selectValueChainInfo) {
param.node_name = this.selectValueChainInfo.node_name;
}
request_api.valueChainRelatedCompany(param).then((res) => {
this.relatedCompanyList = res.data;
}).catch((error) => {
});
},
/**
* 获取关键因素和发展时间线数据
*/
getKeyFactorsTimelineData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.keyFactorsTimeline(code).then((res) => {
this.keyFactorsInfo = res.data.key_factors;
this.keyFactorsList = res.data.key_factors.categories;
this.timelineInfo = res.data.development_timeline.statistics;
this.timelineList = res.data.development_timeline.events;
}).catch((error) => {
});
},
/**
* 获取股票信息数据
*/
getFinancialStockInfoData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.financialStockInfo(code).then((res) => {
this.financialStockInfo = res.data;
}).catch((error) => {
});
},
/**
* 获取财务指标数据
*/
getFinancialMetricsData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { limit: 8 };
request_api.financialMetrics(code, param).then((res) => {
this.financialMetricsList = res.data;
}).catch((error) => {
});
},
/**
* 获取财务比较数据
*/
getFinancialComparisonData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { periods: 8 };
request_api.financialComparison(code, param).then((res) => {
let data = res.data;
this.mainBussinessBarCategoryList = [];
this.mainBussinessBarList = [];
this.mainBussinessLineList = [];
for (let item of data) {
let type = item.report_type;
type = type.replace("年三季报", "Q3");
type = type.replace("年中报", "中报");
type = type.replace("年年报", "年报");
this.mainBussinessBarCategoryList.unshift(type);
this.mainBussinessBarList.unshift((parseFloat(item.performance.revenue) / 1e8).toFixed(2));
this.mainBussinessLineList.unshift((parseFloat(item.performance.net_profit) / 1e8).toFixed(2));
}
}).catch((error) => {
});
},
/**
* 获取财务主营业务数据
*/
getFinancialMainBussinessData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { periods: 4 };
request_api.financialMainBusiness(code, param).then((res) => {
this.productClassificationList = res.data.product_classification;
}).catch((error) => {
});
},
/**
* 获取资产负债表数据
*/
getFinancialBalanceSheetData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { limit: 16 };
request_api.financialBalanceSheet(code, param).then((res) => {
this.financialBalanceList = res.data;
}).catch((error) => {
});
},
/**
* 获取现金流量表数据
*/
getCashFlowSheetData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { limit: 16 };
request_api.cashflowSheet(code, param).then((res) => {
this.cashFlowList = res.data;
}).catch((error) => {
});
},
/**
* 获取利润表数据
*/
getIncomeStatementSheetData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { limit: 16 };
request_api.incomeStatementSheet(code, param).then((res) => {
this.incomeStatementList = res.data;
}).catch((error) => {
});
},
/**
* 获取新闻动态数据
*/
getNewsListData() {
let q = this.stockCode;
if (this.newsKeywords) {
q = this.newsKeywords;
}
let param = { importance: "all", sort: "new", q, page: 1, per_page: 10, mode: "vertical" };
request_api.eventList(param, true).then((res) => {
this.newsList = res.data.events;
}).catch((error) => {
});
},
/**
* 获取公司公告数据
*/
getCompanyAnnouncementsData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
let param = { limit: 20 };
request_api.companyAnnouncementsList(code, param).then((res) => {
this.companyAnnouncementList = res.data;
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
const _component_gqjg_view = common_vendor.resolveComponent("gqjg-view");
const _component_gltd_view = common_vendor.resolveComponent("gltd-view");
const _component_fzjg_view = common_vendor.resolveComponent("fzjg-view");
const _component_gsxx_view = common_vendor.resolveComponent("gsxx-view");
const _component_zlfx_view = common_vendor.resolveComponent("zlfx-view");
const _component_ywjg_view = common_vendor.resolveComponent("ywjg-view");
const _component_cyl_view = common_vendor.resolveComponent("cyl-view");
const _component_fzlc_view = common_vendor.resolveComponent("fzlc-view");
const _component_zysj_view = common_vendor.resolveComponent("zysj-view");
const _component_cwfx_view = common_vendor.resolveComponent("cwfx-view");
const _component_cwsj_view = common_vendor.resolveComponent("cwsj-view");
const _component_news_view = common_vendor.resolveComponent("news-view");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_navBar2 + _component_gqjg_view + _component_gltd_view + _component_fzjg_view + _component_gsxx_view + _component_zlfx_view + _component_ywjg_view + _component_cyl_view + _component_fzlc_view + _component_zysj_view + _component_cwfx_view + _component_cwsj_view + _component_news_view + _easycom_uni_popup2)();
}
const _easycom_navBar = () => "../../components/navBar/navBar.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_navBar + _easycom_uni_popup)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
leftText: $data.navTitle,
hideNavBg: true
}),
b: common_assets._imports_0,
c: common_assets._imports_1,
d: common_vendor.o([($event) => $data.keywords = $event.detail.value, ($event) => $options.clickSearch()]),
e: $data.keywords,
f: common_vendor.s("top:" + $data.navH + "px;"),
g: $data.searchShow
}, $data.searchShow ? {
h: common_vendor.f($data.searchResultList, (item, index, i0) => {
return {
a: common_vendor.t(item.stock_code),
b: common_vendor.t(item.stock_name),
c: index,
d: common_vendor.o(($event) => $options.clickSearchResultListItem(item), index)
};
}),
i: common_vendor.s("top:" + $data.searchResultTop + "px;"),
j: common_vendor.o(($event) => $options.clickSearchResultBg())
} : {}, {
k: $data.stockBasicInfo
}, $data.stockBasicInfo ? common_vendor.e({
l: common_vendor.t($data.stockBasicInfo.industry_l1),
m: common_vendor.t($data.stockBasicInfo.sw_industry_l2),
n: $data.quoteDetailsInfo
}, $data.quoteDetailsInfo ? {
o: common_vendor.t($data.quoteDetailsInfo.current_price),
p: common_vendor.n("current " + ($data.getRateUpOrDown($data.quoteDetailsInfo.change_percent) ? "down" : "up")),
q: common_vendor.t($data.quoteDetailsInfo.change_percent),
r: common_vendor.n("chg " + ($data.getRateUpOrDown($data.quoteDetailsInfo.change_percent) ? "down" : "up")),
s: common_vendor.t($data.quoteDetailsInfo.today_open),
t: common_vendor.t($data.quoteDetailsInfo.yesterday_close),
v: common_vendor.t($data.quoteDetailsInfo.today_high),
w: common_vendor.t($data.quoteDetailsInfo.today_low)
} : {}, {
x: $data.quoteDetailsInfo
}, $data.quoteDetailsInfo ? common_vendor.e({
y: common_vendor.t($data.quoteDetailsInfo.pe ? $data.quoteDetailsInfo.pe : "-"),
z: $data.quoteDetailsInfo.float_shares
}, $data.quoteDetailsInfo.float_shares ? {
A: common_vendor.t($data.quoteDetailsInfo.float_shares)
} : {}, {
B: common_vendor.t($data.quoteDetailsInfo.market_cap),
C: common_vendor.t($data.quoteDetailsInfo.turnover_rate),
D: $data.quoteDetailsInfo.total_shares
}, $data.quoteDetailsInfo.total_shares ? {
E: common_vendor.t($data.quoteDetailsInfo.total_shares)
} : {}, {
F: common_vendor.t($data.quoteDetailsInfo.week52_low),
G: common_vendor.t($data.quoteDetailsInfo.week52_high)
}) : {}, {
H: $data.quoteDetailsInfo
}, $data.quoteDetailsInfo ? {
I: common_vendor.t($data.getRateUpOrDown($data.quoteDetailsInfo.net_inflow) ? "" : "+"),
J: common_vendor.t($data.getNumStr($data.quoteDetailsInfo.net_inflow)),
K: common_vendor.n("content flex1 marginR " + ($data.getRateUpOrDown($data.quoteDetailsInfo.net_inflow) ? "down" : "up")),
L: common_vendor.s("width:" + $options.getBuyPercent() + "%"),
M: common_vendor.t($options.getBuyPercent()),
N: common_vendor.t($options.getSellPercent())
} : {}, {
O: common_assets._imports_2$11,
P: common_vendor.t($data.getLocalDate($data.stockBasicInfo.establish_date)),
Q: common_assets._imports_3$10,
R: common_vendor.t($data.stockBasicInfo.reg_capital),
S: common_assets._imports_4$9,
T: common_vendor.t($data.stockBasicInfo.province),
U: common_vendor.t($data.stockBasicInfo.city),
V: common_vendor.o(($event) => $options.clickOfficialWebsite()),
W: common_vendor.t($data.stockBasicInfo.company_intro),
X: !$data.isExpandIntro
}, !$data.isExpandIntro ? {} : {}, {
Y: common_vendor.t($data.isExpandIntro ? "收起" : "展开全文"),
Z: common_vendor.n("expand " + ($data.isExpandIntro ? "" : "absolute")),
aa: common_vendor.o(($event) => $options.clickExpandOrRetractCompanyIntro()),
ab: common_vendor.n("info relative flex1 " + ($data.isExpandIntro ? "" : "retract"))
}) : {}, {
ac: common_vendor.f($data.tabList, (item, index, i0) => {
return common_vendor.e({
a: item.show
}, item.show ? {
b: common_vendor.t(item.title),
c: common_vendor.n("item " + ($data.selectTab == index ? "select" : "")),
d: common_vendor.o(($event) => $options.clickTabItem(index), index)
} : {}, {
e: index
});
}),
ad: $data.selectTab == 0
}, $data.selectTab == 0 ? common_vendor.e({
ae: common_vendor.f($data.companyFilesList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectCompanyFiles == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickCompanyFilesItem(index), index)
};
}),
af: $data.selectCompanyFiles == 0
}, $data.selectCompanyFiles == 0 ? {
ag: common_vendor.p({
actualControlInfo: $data.actualControlInfo,
concentrationList: $data.concentrationList,
shareholdersList: $data.topShareholdersList,
circulatingShareholdersList: $data.topCirculatingShareholdersList
})
} : {}, {
ah: $data.selectCompanyFiles == 1
}, $data.selectCompanyFiles == 1 ? common_vendor.e({
ai: common_vendor.p({
managementList: $data.managementList
}),
aj: $data.isData && $data.isManagementEmpty
}, $data.isData && $data.isManagementEmpty ? {
ak: common_assets._imports_5$5
} : {}) : {}, {
al: $data.selectCompanyFiles == 2
}, $data.selectCompanyFiles == 2 ? common_vendor.e({
am: common_vendor.p({
branchList: $data.branchList
}),
an: $data.isData && $data.branchList.length == 0
}, $data.isData && $data.branchList.length == 0 ? {
ao: common_assets._imports_5$5
} : {}) : {}, {
ap: $data.selectCompanyFiles == 3
}, $data.selectCompanyFiles == 3 ? common_vendor.e({
aq: $data.stockBasicInfo
}, $data.stockBasicInfo ? {
ar: common_vendor.p({
stockBasicInfo: $data.stockBasicInfo
})
} : {}, {
as: $data.isData && !$data.stockBasicInfo
}, $data.isData && !$data.stockBasicInfo ? {
at: common_assets._imports_5$5
} : {}) : {}) : {}, {
av: $data.selectTab == 1
}, $data.selectTab == 1 ? common_vendor.e({
aw: common_vendor.f($data.inDepthAnalysisList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectInDepthAnalysis == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickInDepthAnalysisItem(index), index)
};
}),
ax: $data.selectInDepthAnalysis == 0
}, $data.selectInDepthAnalysis == 0 ? {
ay: common_vendor.o(($event) => $options.clickIndustryRank()),
az: common_vendor.p({
qualitativeAnalysisInfo: $data.qualitativeAnalysisInfo,
competitivePositionInfo: $data.competitivePositionInfo,
industryRankInfo: $data.industryRankInfo,
mainCompetitorsList: $data.mainCompetitorsList,
scoreList: $data.scoreList,
data: $data.chartData2
})
} : {}, {
aA: $data.selectInDepthAnalysis == 1
}, $data.selectInDepthAnalysis == 1 ? {
aB: common_vendor.p({
businessStructureList: $data.businessStructureList,
businessSegmentList: $data.businessSegmentList
})
} : {}, {
aC: $data.selectInDepthAnalysis == 2
}, $data.selectInDepthAnalysis == 2 ? {
aD: common_vendor.o($options.clickValueChainDetail),
aE: common_vendor.p({
valueChainAnalysisInfo: $data.valueChainAnalysisInfo,
totalNodes: $data.totalNodes,
upstreamList: $data.upstreamList,
coreEnterpriseList: $data.coreEnterpriseList,
downstreamList: $data.downstreamList,
valueChainFlowsList: $data.valueChainFlowsList
})
} : {}, {
aF: $data.selectInDepthAnalysis == 3
}, $data.selectInDepthAnalysis == 3 ? {
aG: common_vendor.o($options.clickDevelopmentTimelineDetail),
aH: common_vendor.p({
keyFactorsInfo: $data.keyFactorsInfo,
keyFactorsList: $data.keyFactorsList,
timelineInfo: $data.timelineInfo,
timelineList: $data.timelineList
})
} : {}) : {}, {
aI: $data.selectTab == 2
}, $data.selectTab == 2 ? common_vendor.e({
aJ: common_vendor.f($data.caiWuList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectCaiwu == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickCaiWuItem(index), index)
};
}),
aK: $data.selectCaiwu == 0
}, $data.selectCaiwu == 0 ? {
aL: common_vendor.p({
stockInfo: $data.financialStockInfo,
barCategoryList: $data.mainBussinessBarCategoryList,
barList: $data.mainBussinessBarList,
lineList: $data.mainBussinessLineList,
productClassificationList: $data.productClassificationList,
financialMetricsInfo: $data.financialMetricsList[0]
})
} : {}, {
aM: $data.selectCaiwu == 1
}, $data.selectCaiwu == 1 ? {
aN: common_vendor.p({
dataList: $data.financialMetricsList
})
} : {}, {
aO: $data.selectCaiwu == 2
}, $data.selectCaiwu == 2 ? {
aP: common_vendor.p({
financialBalanceList: $data.financialBalanceList,
cashFlowList: $data.cashFlowList,
incomeStatementList: $data.incomeStatementList
})
} : {}) : {}, {
aQ: $data.selectTab == 3
}, $data.selectTab == 3 ? {
aR: common_vendor.f($data.dongTaiList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectDongtai == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickDongTaiItem(index), index)
};
}),
aS: common_vendor.o($options.clickNewsSearch),
aT: common_vendor.o($options.clickNewsDetail),
aU: common_vendor.o($options.clickAnnouncementDetail),
aV: common_vendor.p({
type: $data.selectDongtai,
newsList: $data.newsList,
announcementList: $data.companyAnnouncementList
})
} : {}, {
aW: common_vendor.s("top:" + $data.contentTop + "px;"),
aX: common_assets._imports_6$1,
aY: common_vendor.o(($event) => $options.clickCloseIndustryRankPop()),
aZ: common_vendor.f($data.industryRankList, (item, index, i0) => {
return {
a: common_vendor.f(item.rankings, (ritem, rindex, i1) => {
return common_vendor.e({
a: common_vendor.t(ritem.industry_name),
b: common_vendor.t(ritem.level_description),
c: ritem.metrics.eps.value
}, ritem.metrics.eps.value ? {
d: common_vendor.t(ritem.metrics.eps.value.toFixed(2))
} : {}, {
e: ritem.metrics.eps.rank
}, ritem.metrics.eps.rank ? {
f: common_vendor.t(ritem.metrics.eps.rank)
} : {}, {
g: ritem.metrics.eps.industry_avg
}, ritem.metrics.eps.industry_avg ? {
h: common_vendor.t(ritem.metrics.eps.industry_avg.toFixed(2))
} : {}, {
i: ritem.metrics.bvps.value
}, ritem.metrics.bvps.value ? {
j: common_vendor.t(ritem.metrics.bvps.value.toFixed(2))
} : {}, {
k: ritem.metrics.bvps.rank
}, ritem.metrics.bvps.rank ? {
l: common_vendor.t(ritem.metrics.bvps.rank)
} : {}, {
m: ritem.metrics.bvps.industry_avg
}, ritem.metrics.bvps.industry_avg ? {
n: common_vendor.t(ritem.metrics.bvps.industry_avg.toFixed(2))
} : {}, {
o: ritem.metrics.roe.value
}, ritem.metrics.roe.value ? {
p: common_vendor.t(ritem.metrics.roe.value.toFixed(2))
} : {}, {
q: common_vendor.t(ritem.metrics.roe.rank),
r: ritem.metrics.roe.industry_avg
}, ritem.metrics.roe.industry_avg ? {
s: common_vendor.t(ritem.metrics.roe.industry_avg.toFixed(2))
} : {}, {
t: ritem.metrics.revenue_growth.value
}, ritem.metrics.revenue_growth.value ? {
v: common_vendor.t(ritem.metrics.revenue_growth.value.toFixed(2))
} : {}, {
w: common_vendor.t(ritem.metrics.revenue_growth.rank),
x: ritem.metrics.revenue_growth.industry_avg
}, ritem.metrics.revenue_growth.industry_avg ? {
y: common_vendor.t(ritem.metrics.revenue_growth.industry_avg.toFixed(2))
} : {}, {
z: ritem.metrics.profit_growth.value
}, ritem.metrics.profit_growth.value ? {
A: common_vendor.t(ritem.metrics.profit_growth.value.toFixed(2))
} : {}, {
B: common_vendor.t(ritem.metrics.profit_growth.rank),
C: ritem.metrics.profit_growth.industry_avg
}, ritem.metrics.profit_growth.industry_avg ? {
D: common_vendor.t(ritem.metrics.profit_growth.industry_avg.toFixed(2))
} : {}, {
E: ritem.metrics.operating_margin.value
}, ritem.metrics.operating_margin.value ? {
F: common_vendor.t(ritem.metrics.operating_margin.value.toFixed(2))
} : {}, {
G: common_vendor.t(ritem.metrics.operating_margin.rank),
H: ritem.metrics.operating_margin.industry_avg
}, ritem.metrics.operating_margin.industry_avg ? {
I: common_vendor.t(ritem.metrics.operating_margin.industry_avg.toFixed(2))
} : {}, {
J: ritem.metrics.debt_ratio.value
}, ritem.metrics.debt_ratio.value ? {
K: common_vendor.t(ritem.metrics.debt_ratio.value.toFixed(2))
} : {}, {
L: ritem.metrics.debt_ratio.rank
}, ritem.metrics.debt_ratio.rank ? {
M: common_vendor.t(ritem.metrics.debt_ratio.rank)
} : {}, {
N: ritem.metrics.debt_ratio.industry_avg
}, ritem.metrics.debt_ratio.industry_avg ? {
O: common_vendor.t(ritem.metrics.debt_ratio.industry_avg.toFixed(2))
} : {}, {
P: ritem.metrics.receivable_turnover.value
}, ritem.metrics.receivable_turnover.value ? {
Q: common_vendor.t(ritem.metrics.receivable_turnover.value.toFixed(2))
} : {}, {
R: ritem.metrics.receivable_turnover.rank
}, ritem.metrics.receivable_turnover.rank ? {
S: common_vendor.t(ritem.metrics.receivable_turnover.rank)
} : {}, {
T: ritem.metrics.receivable_turnover.industry_avg
}, ritem.metrics.receivable_turnover.industry_avg ? {
U: common_vendor.t(ritem.metrics.receivable_turnover.industry_avg.toFixed(2))
} : {}, {
V: rindex
});
}),
b: common_vendor.t(item.period),
c: index
};
}),
ba: common_assets._imports_1$11,
bb: common_vendor.sr("industryRankPop", "817d6950-13"),
bc: common_vendor.p({
type: "bottom"
}),
bd: common_assets._imports_6$1,
be: common_vendor.o(($event) => $options.clickCloseValueChainPopup()),
bf: $data.selectValueChainInfo
}, $data.selectValueChainInfo ? common_vendor.e({
bg: common_vendor.t($data.selectValueChainInfo.node_name),
bh: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bi: common_vendor.t($data.selectValueChainInfo.node_type)
} : {}, {
bj: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bk: common_vendor.t($data.selectValueChainInfo.market_share)
} : {}, {
bl: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bm: common_vendor.t($data.selectValueChainInfo.node_type)
} : {}, {
bn: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bo: common_vendor.t($data.selectValueChainInfo.market_share)
} : {}, {
bp: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bq: common_vendor.t($data.selectValueChainInfo.node_type)
} : {}, {
br: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bs: common_vendor.t($data.selectValueChainInfo.market_share)
} : {}, {
bt: common_vendor.t($data.selectValueChainInfo.node_description),
bv: common_vendor.t($data.selectValueChainInfo.importance_score),
bw: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bx: common_vendor.s("width:" + ($data.selectValueChainInfo.importance_score ? $data.selectValueChainInfo.importance_score : 0) + "%;")
} : {}, {
by: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bz: common_vendor.s("width:" + $data.selectValueChainInfo.importance_score + "%;")
} : {}, {
bA: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bB: common_vendor.s("width:" + $data.selectValueChainInfo.importance_score + "%;")
} : {}, {
bC: common_vendor.t($data.selectValueChainInfo.dependency_degree),
bD: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bE: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;")
} : {}, {
bF: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bG: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;")
} : {}, {
bH: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bI: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;")
} : {}, {
bJ: common_vendor.f($data.relatedCompanyList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.stock_name),
b: common_vendor.t(item.stock_code),
c: common_vendor.t(item.company_name),
d: common_vendor.t(item.node_info.node_description),
e: item.relationships.length > 0
}, item.relationships.length > 0 ? {
f: common_assets._imports_8$4,
g: common_vendor.t(item.relationships[0].connected_node)
} : {}, {
h: index
});
})
}) : {}, {
bK: common_vendor.sr("valueChainPopup", "817d6950-14"),
bL: common_vendor.p({
type: "bottom",
safeArea: false
}),
bM: common_assets._imports_6$1,
bN: common_vendor.o(($event) => $options.clickCloseDevelopmentTimelinePopup()),
bO: $data.selectDevelopmentTimelineInfo
}, $data.selectDevelopmentTimelineInfo ? {
bP: common_vendor.t($data.selectDevelopmentTimelineInfo.event_title),
bQ: common_vendor.t($data.selectDevelopmentTimelineInfo.event_type),
bR: common_vendor.n("eventType " + ($data.selectDevelopmentTimelineInfo.impact_metrics.is_positive == 1 ? "positive" : "negative")),
bS: common_vendor.t($data.selectDevelopmentTimelineInfo.event_date),
bT: common_vendor.t($data.selectDevelopmentTimelineInfo.event_desc),
bU: common_vendor.t($data.selectDevelopmentTimelineInfo.related_info.financial_impact),
bV: common_vendor.n("progress " + ($data.selectDevelopmentTimelineInfo.impact_metrics.is_positive == 1 ? "positive" : "negative")),
bW: common_vendor.s("width: " + $data.selectDevelopmentTimelineInfo.impact_metrics.impact_score + "%;"),
bX: common_vendor.t($data.selectDevelopmentTimelineInfo.impact_metrics.impact_score)
} : {}, {
bY: common_vendor.sr("developmentTimelinePopup", "817d6950-15"),
bZ: common_vendor.p({
type: "bottom",
safeArea: false
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesStock/stockCenterDetails/stockCenterDetails.js.map