"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: [], //产业链相关公司 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 //获取数字展示万或亿 }; }, 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(); }, /** * 获取买入百分比 */ getBuyPercent() { let ratio = this.quoteDetailsInfo.net_active_buy_ratio; return Math.round(utils_util.accAdd(50, utils_util.accDiv(ratio, 2))); }, /** * 获取卖出百分比 */ getSellPercent() { let ratio = this.quoteDetailsInfo.net_active_buy_ratio; return Math.round(utils_util.accSub(50, utils_util.accDiv(ratio, 2))); }, /** * 点击查看官网 */ 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(); }, /** * 点击自选 */ 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); 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: 8 }; 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: 8 }; 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: 8 }; 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 _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: 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$11, R: common_vendor.t($data.stockBasicInfo.reg_capital), S: common_assets._imports_4$10, 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 { 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) }; }), 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 ? { ai: common_vendor.p({ managementList: $data.managementList }) } : {}, { aj: $data.selectCompanyFiles == 2 }, $data.selectCompanyFiles == 2 ? { ak: common_vendor.p({ branchList: $data.branchList }) } : {}, { al: $data.selectCompanyFiles == 3 }, $data.selectCompanyFiles == 3 ? { am: common_vendor.p({ stockBasicInfo: $data.stockBasicInfo }) } : {}) : {}, { an: $data.selectTab == 1 }, $data.selectTab == 1 ? common_vendor.e({ ao: 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) }; }), ap: $data.selectInDepthAnalysis == 0 }, $data.selectInDepthAnalysis == 0 ? { aq: common_vendor.o(($event) => $options.clickIndustryRank()), ar: common_vendor.p({ qualitativeAnalysisInfo: $data.qualitativeAnalysisInfo, competitivePositionInfo: $data.competitivePositionInfo, industryRankInfo: $data.industryRankInfo, mainCompetitorsList: $data.mainCompetitorsList, scoreList: $data.scoreList, data: $data.chartData2 }) } : {}, { as: $data.selectInDepthAnalysis == 1 }, $data.selectInDepthAnalysis == 1 ? { at: common_vendor.p({ businessStructureList: $data.businessStructureList, businessSegmentList: $data.businessSegmentList }) } : {}, { av: $data.selectInDepthAnalysis == 2 }, $data.selectInDepthAnalysis == 2 ? { aw: common_vendor.o($options.clickValueChainDetail), ax: common_vendor.p({ valueChainAnalysisInfo: $data.valueChainAnalysisInfo, totalNodes: $data.totalNodes, upstreamList: $data.upstreamList, coreEnterpriseList: $data.coreEnterpriseList, downstreamList: $data.downstreamList, valueChainFlowsList: $data.valueChainFlowsList }) } : {}, { ay: $data.selectInDepthAnalysis == 3 }, $data.selectInDepthAnalysis == 3 ? { az: common_vendor.o($options.clickDevelopmentTimelineDetail), aA: common_vendor.p({ keyFactorsInfo: $data.keyFactorsInfo, keyFactorsList: $data.keyFactorsList, timelineInfo: $data.timelineInfo, timelineList: $data.timelineList }) } : {}) : {}, { aB: $data.selectTab == 2 }, $data.selectTab == 2 ? common_vendor.e({ aC: 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) }; }), aD: $data.selectCaiwu == 0 }, $data.selectCaiwu == 0 ? { aE: common_vendor.p({ stockInfo: $data.financialStockInfo, barCategoryList: $data.mainBussinessBarCategoryList, barList: $data.mainBussinessBarList, lineList: $data.mainBussinessLineList, productClassificationList: $data.productClassificationList, financialMetricsInfo: $data.financialMetricsList[0] }) } : {}, { aF: $data.selectCaiwu == 1 }, $data.selectCaiwu == 1 ? { aG: common_vendor.p({ dataList: $data.financialMetricsList }) } : {}, { aH: $data.selectCaiwu == 2 }, $data.selectCaiwu == 2 ? { aI: common_vendor.p({ financialBalanceList: $data.financialBalanceList, cashFlowList: $data.cashFlowList, incomeStatementList: $data.incomeStatementList }) } : {}) : {}, { aJ: $data.selectTab == 3 }, $data.selectTab == 3 ? { aK: 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) }; }), aL: common_vendor.p({ type: $data.selectDongtai, newsList: $data.newsList, announcementList: $data.companyAnnouncementList }) } : {}, { aM: common_vendor.s("top:" + $data.contentTop + "px;"), aN: common_vendor.o(($event) => _ctx.sendEventComment()), aO: _ctx.eventComment, aP: common_vendor.o(($event) => _ctx.eventComment = $event.detail.value), aQ: common_assets._imports_2$10, aR: common_assets._imports_3$10, aS: common_vendor.o(($event) => $options.clickOptional()), aT: common_assets._imports_4$9, aU: common_vendor.o(($event) => $options.clickShare()), aV: common_assets._imports_8, aW: common_vendor.o(($event) => $options.clickCloseIndustryRankPop()), aX: 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 }; }), aY: common_assets._imports_1$13, aZ: common_vendor.sr("industryRankPop", "817d6950-13"), ba: common_vendor.p({ type: "bottom" }), bb: common_assets._imports_8, bc: common_vendor.o(($event) => $options.clickCloseValueChainPopup()), bd: $data.selectValueChainInfo }, $data.selectValueChainInfo ? common_vendor.e({ be: common_vendor.t($data.selectValueChainInfo.node_name), 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.node_type) } : {}, { 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.market_share) } : {}, { bj: $data.selectValueChainInfo.node_level == 0 }, $data.selectValueChainInfo.node_level == 0 ? { bk: common_vendor.t($data.selectValueChainInfo.node_type) } : {}, { bl: $data.selectValueChainInfo.node_level == 0 }, $data.selectValueChainInfo.node_level == 0 ? { bm: common_vendor.t($data.selectValueChainInfo.market_share) } : {}, { 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.node_type) } : {}, { 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.market_share) } : {}, { br: common_vendor.t($data.selectValueChainInfo.node_description), bs: common_vendor.t($data.selectValueChainInfo.importance_score), bt: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 }, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? { bv: common_vendor.s("width:" + ($data.selectValueChainInfo.importance_score ? $data.selectValueChainInfo.importance_score : 0) + "%;") } : {}, { bw: $data.selectValueChainInfo.node_level == 0 }, $data.selectValueChainInfo.node_level == 0 ? { bx: common_vendor.s("width:" + $data.selectValueChainInfo.importance_score + "%;") } : {}, { by: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 }, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? { bz: common_vendor.s("width:" + $data.selectValueChainInfo.importance_score + "%;") } : {}, { bA: common_vendor.t($data.selectValueChainInfo.dependency_degree), bB: $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 }, $data.selectValueChainInfo.node_level == -2 || $data.selectValueChainInfo.node_level == -1 ? { bC: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;") } : {}, { bD: $data.selectValueChainInfo.node_level == 0 }, $data.selectValueChainInfo.node_level == 0 ? { bE: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;") } : {}, { bF: $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 }, $data.selectValueChainInfo.node_level == 1 || $data.selectValueChainInfo.node_level == 2 ? { bG: common_vendor.s("width:" + ($data.selectValueChainInfo.dependency_degree ? $data.selectValueChainInfo.dependency_degree : 0) + "%;") } : {}, { bH: 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_10$3, g: common_vendor.t(item.relationships[0].connected_node) } : {}, { h: index }); }) }) : {}, { bI: common_vendor.sr("valueChainPopup", "817d6950-14"), bJ: common_vendor.p({ type: "bottom", safeArea: false }), bK: common_assets._imports_8, bL: common_vendor.o(($event) => $options.clickCloseDevelopmentTimelinePopup()), bM: $data.selectDevelopmentTimelineInfo }, $data.selectDevelopmentTimelineInfo ? { bN: common_vendor.t($data.selectDevelopmentTimelineInfo.event_title), bO: common_vendor.t($data.selectDevelopmentTimelineInfo.event_type), bP: common_vendor.n("eventType " + ($data.selectDevelopmentTimelineInfo.impact_metrics.is_positive == 1 ? "positive" : "negative")), bQ: common_vendor.t($data.selectDevelopmentTimelineInfo.event_date), bR: common_vendor.t($data.selectDevelopmentTimelineInfo.event_desc), bS: common_vendor.t($data.selectDevelopmentTimelineInfo.related_info.financial_impact), bT: common_vendor.n("progress " + ($data.selectDevelopmentTimelineInfo.impact_metrics.is_positive == 1 ? "positive" : "negative")), bU: common_vendor.s("width: " + $data.selectDevelopmentTimelineInfo.impact_metrics.impact_score + "%;"), bV: common_vendor.t($data.selectDevelopmentTimelineInfo.impact_metrics.impact_score) } : {}, { bW: common_vendor.sr("developmentTimelinePopup", "817d6950-15"), bX: 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