Files
JiaZhiQianYan/unpackage/dist/dev/mp-weixin/pagesStock/stockCenterDetails/stockCenterDetails.js
2026-01-29 15:48:33 +08:00

1180 lines
42 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: "公司档案"
},
{
title: "深度分析"
},
// {
// title:'股票行情'
// },
{
title: "财务全景"
},
// {
// title:'盈利预测'
// },
{
title: "动态跟踪"
}
],
selectTab: 0,
companyFilesList: [
{
title: "股权结构"
},
{
title: "管理团队"
},
{
title: "分支机构"
},
{
title: "工商信息"
}
],
//公司档案分类
actualControlInfo: null,
//实际控制信息
concentrationList: [],
//股权集中度列表
topShareholdersList: [],
//十大股东列表
topCirculatingShareholdersList: [],
//十大流通股东列表
managementList: [],
//管理团队列表
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: [],
//产业链相关公司
keyFactorsInfo: null,
//关键因素统计信息
keyFactorsList: [],
//关键因素
timelineInfo: null,
//发展时间线统计信息
timelineList: [],
//发展时间线
caiWuList: [
{
title: "主营数据"
},
{
title: "财务分析"
},
{
title: "财务数据"
}
],
//财务全景分类
selectCaiwu: 0,
financialMetricsList: [],
//财务分析列表数据
financialStockInfo: null,
mainBussinessBarCategoryList: [],
//主营业务柱状图,折线图分类
mainBussinessBarList: [],
//主营业务柱状图数据
mainBussinessLineList: [],
//主营业务折线图数据
productClassificationList: [],
//主营业务产业分类数据
dongTaiList: [
{
title: "新闻动态"
},
{
title: "公司公告"
}
],
//动态跟踪分类
selectDongtai: 0,
newsKeywords: "",
//新闻动态搜索关键字
newsList: [],
//新闻动态数据
companyAnnouncementList: [],
//公司公告数据
getLocalDate: utils_util.getLocalDate,
getRateUpOrDown: utils_util.getRateUpOrDown,
//判断涨跌
getNumStr: utils_util.getNumStr
//获取数字展示万或亿
};
},
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();
},
/**
* 点击展开收起公司简介
*/
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.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 == 1) {
this.getFinancialMetricsData();
}
}
},
/**
* 点击选择动态分类
* @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();
},
detailShow(type) {
if (type == 0) {
this.$refs["detailPopup"].open();
} else {
this.$refs["detailInfoPopup"].open();
}
},
/**
* 查看产业链详情
*/
clickValueChainDetail(item) {
this.selectValueChainInfo = item;
this.getValueChainRelatedCompanyData();
this.$refs["valueChainPopup"].open();
},
/**
* 关闭产业链弹窗
*/
clickCloseValueChainPop() {
this.$refs["valueChainPopup"].close();
},
/**
* 点击自选
*/
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);
}).catch((error) => {
});
},
/**
* 获取分支机构数据
*/
getBranchListData() {
let code = this.stockCode;
if (this.selectSearchStockInfo) {
code = this.selectSearchStockInfo.stock_code;
}
request_api.branchesList(code).then((res) => {
this.branchList = res.data;
}).catch((error) => {
});
},
/**
* 获取综合分析数据
*/
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);
}).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) => {
});
},
/**
* 获取新闻动态数据
*/
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 _easycom_gqjg_view2 = common_vendor.resolveComponent("gqjg-view");
const _easycom_gltd_view2 = common_vendor.resolveComponent("gltd-view");
const _easycom_fzjg_view2 = common_vendor.resolveComponent("fzjg-view");
const _easycom_gsxx_view2 = common_vendor.resolveComponent("gsxx-view");
const _easycom_zlfx_view2 = common_vendor.resolveComponent("zlfx-view");
const _easycom_ywjg_view2 = common_vendor.resolveComponent("ywjg-view");
const _easycom_cyl_view2 = common_vendor.resolveComponent("cyl-view");
const _easycom_fzlc_view2 = common_vendor.resolveComponent("fzlc-view");
const _easycom_zysj_view2 = common_vendor.resolveComponent("zysj-view");
const _easycom_cwfx_view2 = common_vendor.resolveComponent("cwfx-view");
const _easycom_cwsj_view2 = common_vendor.resolveComponent("cwsj-view");
const _easycom_news_view2 = common_vendor.resolveComponent("news-view");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_navBar2 + _easycom_gqjg_view2 + _easycom_gltd_view2 + _easycom_fzjg_view2 + _easycom_gsxx_view2 + _easycom_zlfx_view2 + _easycom_ywjg_view2 + _easycom_cyl_view2 + _easycom_fzlc_view2 + _easycom_zysj_view2 + _easycom_cwfx_view2 + _easycom_cwsj_view2 + _easycom_news_view2 + _easycom_uni_popup2)();
}
const _easycom_navBar = () => "../../components/navBar/navBar.js";
const _easycom_gqjg_view = () => "../../components/gqjg-view/gqjg-view.js";
const _easycom_gltd_view = () => "../../components/gltd-view/gltd-view.js";
const _easycom_fzjg_view = () => "../../components/fzjg-view/fzjg-view.js";
const _easycom_gsxx_view = () => "../../components/gsxx-view/gsxx-view.js";
const _easycom_zlfx_view = () => "../../components/zlfx-view/zlfx-view.js";
const _easycom_ywjg_view = () => "../../components/ywjg-view/ywjg-view.js";
const _easycom_cyl_view = () => "../../components/cyl-view/cyl-view.js";
const _easycom_fzlc_view = () => "../../components/fzlc-view/fzlc-view.js";
const _easycom_zysj_view = () => "../../components/zysj-view/zysj-view.js";
const _easycom_cwfx_view = () => "../../components/cwfx-view/cwfx-view.js";
const _easycom_cwsj_view = () => "../../components/cwsj-view/cwsj-view.js";
const _easycom_news_view = () => "../../components/news-view/news-view.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_navBar + _easycom_gqjg_view + _easycom_gltd_view + _easycom_fzjg_view + _easycom_gsxx_view + _easycom_zlfx_view + _easycom_ywjg_view + _easycom_cyl_view + _easycom_fzlc_view + _easycom_zysj_view + _easycom_cwfx_view + _easycom_cwsj_view + _easycom_news_view + _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: $data.quoteDetailsInfo
}, $data.quoteDetailsInfo ? {
C: common_vendor.t($data.quoteDetailsInfo.market_cap),
D: common_vendor.t($data.quoteDetailsInfo.turnover_rate)
} : {}, {
E: $data.quoteDetailsInfo
}, $data.quoteDetailsInfo ? common_vendor.e({
F: $data.quoteDetailsInfo.total_shares
}, $data.quoteDetailsInfo.total_shares ? {
G: common_vendor.t($data.quoteDetailsInfo.total_shares)
} : {}, {
H: common_vendor.t($data.quoteDetailsInfo.week52_low),
I: common_vendor.t($data.quoteDetailsInfo.week52_high)
}) : {}, {
J: $data.quoteDetailsInfo
}, $data.quoteDetailsInfo ? {
K: common_vendor.t($data.getRateUpOrDown($data.quoteDetailsInfo.net_inflow) ? "" : "+"),
L: common_vendor.t($data.getNumStr($data.quoteDetailsInfo.net_inflow)),
M: common_vendor.n("content flex1 marginR " + ($data.getRateUpOrDown($data.quoteDetailsInfo.net_inflow) ? "down" : "up"))
} : {}, {
N: common_assets._imports_2$11,
O: common_vendor.t($data.getLocalDate($data.stockBasicInfo.establish_date)),
P: common_assets._imports_3$11,
Q: common_vendor.t($data.stockBasicInfo.reg_capital),
R: common_assets._imports_4$10,
S: common_vendor.t($data.stockBasicInfo.province),
T: common_vendor.t($data.stockBasicInfo.city),
U: common_assets._imports_5$6,
V: common_vendor.t($data.stockBasicInfo.company_intro),
W: !$data.isExpandIntro
}, !$data.isExpandIntro ? {} : {}, {
X: common_vendor.t($data.isExpandIntro ? "收起" : "展开全文"),
Y: common_vendor.n("expand " + ($data.isExpandIntro ? "" : "absolute")),
Z: common_vendor.o(($event) => $options.clickExpandOrRetractCompanyIntro()),
aa: common_vendor.n("info relative flex1 " + ($data.isExpandIntro ? "" : "retract"))
}) : {}, {
ab: common_vendor.f($data.tabList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectTab == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickTabItem(index), index)
};
}),
ac: $data.selectTab == 0
}, $data.selectTab == 0 ? common_vendor.e({
ad: 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)
};
}),
ae: $data.selectCompanyFiles == 0
}, $data.selectCompanyFiles == 0 ? {
af: common_vendor.p({
actualControlInfo: $data.actualControlInfo,
concentrationList: $data.concentrationList,
shareholdersList: $data.topShareholdersList,
circulatingShareholdersList: $data.topCirculatingShareholdersList
})
} : {}, {
ag: $data.selectCompanyFiles == 1
}, $data.selectCompanyFiles == 1 ? {
ah: common_vendor.p({
managementList: $data.managementList
})
} : {}, {
ai: $data.selectCompanyFiles == 2
}, $data.selectCompanyFiles == 2 ? {
aj: common_vendor.p({
branchList: $data.branchList
})
} : {}, {
ak: $data.selectCompanyFiles == 3
}, $data.selectCompanyFiles == 3 ? {
al: common_vendor.p({
stockBasicInfo: $data.stockBasicInfo
})
} : {}) : {}, {
am: $data.selectTab == 1
}, $data.selectTab == 1 ? common_vendor.e({
an: 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)
};
}),
ao: $data.selectInDepthAnalysis == 0
}, $data.selectInDepthAnalysis == 0 ? {
ap: common_vendor.o(($event) => $options.clickIndustryRank()),
aq: common_vendor.p({
qualitativeAnalysisInfo: $data.qualitativeAnalysisInfo,
competitivePositionInfo: $data.competitivePositionInfo,
industryRankInfo: $data.industryRankInfo,
mainCompetitorsList: $data.mainCompetitorsList,
scoreList: $data.scoreList,
data: $data.chartData2
})
} : {}, {
ar: $data.selectInDepthAnalysis == 1
}, $data.selectInDepthAnalysis == 1 ? {
as: common_vendor.p({
businessStructureList: $data.businessStructureList,
businessSegmentList: $data.businessSegmentList
})
} : {}, {
at: $data.selectInDepthAnalysis == 2
}, $data.selectInDepthAnalysis == 2 ? {
av: common_vendor.o($options.clickValueChainDetail),
aw: common_vendor.p({
valueChainAnalysisInfo: $data.valueChainAnalysisInfo,
totalNodes: $data.totalNodes,
upstreamList: $data.upstreamList,
coreEnterpriseList: $data.coreEnterpriseList,
downstreamList: $data.downstreamList
})
} : {}, {
ax: $data.selectInDepthAnalysis == 3
}, $data.selectInDepthAnalysis == 3 ? {
ay: common_vendor.o(($event) => $options.detailShow(1)),
az: common_vendor.p({
keyFactorsInfo: $data.keyFactorsInfo,
keyFactorsList: $data.keyFactorsList,
timelineInfo: $data.timelineInfo,
timelineList: $data.timelineList
})
} : {}) : {}, {
aA: $data.selectTab == 2
}, $data.selectTab == 2 ? common_vendor.e({
aB: 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)
};
}),
aC: $data.selectCaiwu == 0
}, $data.selectCaiwu == 0 ? {
aD: common_vendor.p({
stockInfo: $data.financialStockInfo,
barCategoryList: $data.mainBussinessBarCategoryList,
barList: $data.mainBussinessBarList,
lineList: $data.mainBussinessLineList,
productClassificationList: $data.productClassificationList
})
} : {}, {
aE: $data.selectCaiwu == 1
}, $data.selectCaiwu == 1 ? {
aF: common_vendor.p({
dataList: $data.financialMetricsList
})
} : {}, {
aG: $data.selectCaiwu == 2
}, $data.selectCaiwu == 2 ? {} : {}) : {}, {
aH: $data.selectTab == 3
}, $data.selectTab == 3 ? {
aI: 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)
};
}),
aJ: common_vendor.p({
type: $data.selectDongtai,
newsList: $data.newsList,
announcementList: $data.companyAnnouncementList
})
} : {}, {
aK: common_vendor.s("top:" + $data.contentTop + "px;"),
aL: common_vendor.o(($event) => _ctx.sendEventComment()),
aM: _ctx.eventComment,
aN: common_vendor.o(($event) => _ctx.eventComment = $event.detail.value),
aO: common_assets._imports_2$10,
aP: common_assets._imports_3$10,
aQ: common_vendor.o(($event) => $options.clickOptional()),
aR: common_assets._imports_4$9,
aS: common_vendor.o(($event) => $options.clickShare()),
aT: common_assets._imports_9$1,
aU: common_vendor.o(($event) => $options.clickCloseIndustryRankPop()),
aV: 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
};
}),
aW: common_assets._imports_1$13,
aX: common_vendor.sr("industryRankPop", "817d6950-13"),
aY: common_vendor.p({
type: "bottom"
}),
aZ: common_assets._imports_9$1,
ba: common_vendor.o(($event) => $options.clickCloseValueChainPop()),
bb: $data.selectValueChainInfo
}, $data.selectValueChainInfo ? common_vendor.e({
bc: common_vendor.t($data.selectValueChainInfo.node_name),
bd: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
be: common_vendor.t($data.selectValueChainInfo.node_type)
} : {}, {
bf: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bg: common_vendor.t($data.selectValueChainInfo.market_share)
} : {}, {
bh: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bi: common_vendor.t($data.selectValueChainInfo.node_type)
} : {}, {
bj: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bk: common_vendor.t($data.selectValueChainInfo.market_share)
} : {}, {
bl: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bm: common_vendor.t($data.selectValueChainInfo.node_type)
} : {}, {
bn: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bo: common_vendor.t($data.selectValueChainInfo.market_share)
} : {}, {
bp: common_vendor.t($data.selectValueChainInfo.node_description),
bq: common_vendor.t($data.selectValueChainInfo.importance_score),
br: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bs: common_vendor.s("width:" + ($data.selectValueChainInfo.importance_score ? $data.selectValueChainInfo.importance_score : 0) + "%;")
} : {}, {
bt: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bv: common_vendor.s("width:" + $data.selectValueChainInfo.importance_score + "%;")
} : {}, {
bw: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bx: common_vendor.s("width:" + $data.selectValueChainInfo.importance_score + "%;")
} : {}, {
by: common_vendor.t($data.selectValueChainInfo.dependency_degree),
bz: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1
}, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? {
bA: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;")
} : {}, {
bB: $data.selectValueChainInfo.node_level == 0
}, $data.selectValueChainInfo.node_level == 0 ? {
bC: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;")
} : {}, {
bD: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2
}, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? {
bE: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;")
} : {}, {
bF: 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_11$4,
g: common_vendor.t(item.relationships[0].connected_node)
} : {}, {
h: index
});
})
}) : {}, {
bG: common_vendor.sr("valueChainPopup", "817d6950-14"),
bH: common_vendor.p({
type: "bottom",
safeArea: false
}),
bI: common_assets._imports_9$1,
bJ: common_vendor.sr("detailInfoPopup", "817d6950-15"),
bK: 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