diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9aa264 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# 数据前瞻平台前端 \ No newline at end of file diff --git a/src/assets/img/index/customer.jpg b/src/assets/img/index/customer.jpg deleted file mode 100644 index 69cb274..0000000 Binary files a/src/assets/img/index/customer.jpg and /dev/null differ diff --git a/src/assets/img/index/customer.png b/src/assets/img/index/customer.png new file mode 100644 index 0000000..2bea868 Binary files /dev/null and b/src/assets/img/index/customer.png differ diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue index 1df0e1e..0a69e23 100644 --- a/src/pages/index/list/index.vue +++ b/src/pages/index/list/index.vue @@ -238,7 +238,7 @@

售前咨询

-

刘兰

+

刘老师

18019930142

diff --git a/src/pages/screen/list/index.vue b/src/pages/screen/list/index.vue index acdbe40..f00ea39 100644 --- a/src/pages/screen/list/index.vue +++ b/src/pages/screen/list/index.vue @@ -129,25 +129,27 @@
- 加密货币行情 + 中国GDP年率报告
- - - - + + +
币种最新价24H成交量24H涨跌时间年率
+
+
+ - - - - - - +
{{ item.currencyPair }}${{ item.amount }}{{ parseInt(item.total) }}M

{{ (item.percent * 100).toFixed(2) }}%

@@ -281,15 +283,22 @@ export default { stompClientMarket: null, stompClient: null, goodsSell: [], - cryptoList: [] + cryptoList: [], + gdps: [] } }, mounted() { - this.connect() + this.getList() this.renderChart() this.renderMap() }, methods: { + // 中国gdp + getList() { + this.$get(`${this.api.visualPreview}?tableName=hg_zg_gm_zhongguogdpnianlvbaogao&tableId=17`).then(({ comment, data }) => { + this.gdps = data + }).catch(res => {}) + }, // 获取加密货币实时行情 getCrypto() { this.$get(`${this.api.getTopList}`).then(res => { @@ -1215,9 +1224,13 @@ export default { // 表格滚动效果 scrollTable() { const dom = this.$refs.tableWrap + const dom1 = this.$refs.gdpList setInterval(() => { dom.scrollTop += 1 if (dom.clientHeight + dom.scrollTop === dom.scrollHeight) dom.scrollTop = 0 + + dom1.scrollTop += 1 + if (dom1.clientHeight + dom1.scrollTop === dom1.scrollHeight) dom1.scrollTop = 0 }, 30) } }