From 4168995df51782b4ea631e9bdc42959bb4cd8570 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Wed, 15 Jul 2020 17:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=95=B0=E6=8D=AE=E5=88=86?= =?UTF-8?q?=E6=9E=90=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/data-analysis/my-application.vue | 148 ++++++++++++++++++++- 1 file changed, 146 insertions(+), 2 deletions(-) diff --git a/src/pages/data-analysis/my-application.vue b/src/pages/data-analysis/my-application.vue index 04b731f..e31e9dd 100644 --- a/src/pages/data-analysis/my-application.vue +++ b/src/pages/data-analysis/my-application.vue @@ -50,7 +50,37 @@ - + + + ({ @@ -334,9 +366,77 @@ export default { unit: "个" } ], // 应用评分 + hotSearchHeader: [], // 热门搜索 表头 + hotSearchData: [ + { + hotIndex: 1, + name: "地图视频融合服务1", + count: 666, + increases: 1.28, + }, + { + hotIndex: 2, + name: "地图视频融合服务2", + count: 666, + increases: 0.03, + }, + { + hotIndex: 3, + name: "地图视频融合服务3", + count: 666, + increases: 0.58, + }, + { + hotIndex: 4, + name: "地图视频融合服务4", + count: 666, + increases: -0.28, + }, + { + hotIndex: 5, + name: "地图视频融合服务5", + count: 666, + increases: -0.58, + }, + ], // 热门搜索 数据 }), - mounted() {}, + mounted() { + this.hotSearchHeader = [ + { + label: "排名", + type: "hot-index", + width: 100, + align: "center", + }, + { + label: "应用名称", + prop: "name", + type: "button", + callback: this.detailHotSearch, + }, + { + label: "搜索次数", + prop: "count", + width: 100, + align: "center", + }, + { + label: "日涨幅", + prop: "increases", + width: 100, + sortType: "0", // 0:升序 1:降序 + sortable: true, + align: "center", + }, + ] + }, methods: { + detailHotSearch(item) { + console.log("查看热搜详情"); + }, + hotSearchSortChange(sortInfo) { + console.log("应用热门搜索: " + sortInfo); + }, changeServiceTypeBtn(index) { console.log("应用类型分析: " + index); }, @@ -426,4 +526,48 @@ export default { height: calc(100% - 36px); margin-top: 15px; } +.service-hot-search { + display: flex; + justify-content: flex-start; + align-items: stretch; + height: calc(100% - 21px); + margin-top: 0; +} +.service-hot-search > .left-content { + width: 260px; + flex-shrink: 0; + padding: 0 20px; + box-sizing: border-box; + margin-right: 10px; +} +.service-hot-search > .right-content { + flex-grow: 1; + overflow-x: hidden; + overflow-y: auto; +} +.hot-line { + height: 50%; +} +.hot-line-title { + font-size: 14px; + line-height: 36px; + color: #8890a7; +} +.hot-line-chart { + height: calc(100% - 36px); + background-color: pink; +} + + + \ No newline at end of file -- 2.26.0