diff --git a/src/views/pages/index.vue b/src/views/pages/index.vue index f8f7933..f848c34 100644 --- a/src/views/pages/index.vue +++ b/src/views/pages/index.vue @@ -164,15 +164,14 @@
- + - +
-
Hot
-
-
+
Hot
+
+
{{ item.title || '--' }}
@@ -187,14 +186,15 @@ - + - +
Hot
-
+
{{ item.title || '--' }}
@@ -209,7 +209,6 @@ -
@@ -237,7 +236,7 @@ export default { scrollPosition: 0, // 添加滚动位置 activeName: '第0个', activeName1: '第0个', - activeName2: '1', + activeName2: 2, banners: [], companyProfile: '',//公司介绍 solvePlan: [], @@ -441,14 +440,14 @@ export default { async getNews(val) { const params = { type: 7, - infoType: val ? val : 1 + infoType: val ? val : 2 } let res = await Api.getColumnInfoList(params) this.newsList = res.data.list.slice(0, 6); }, handleClick(tab, event) { - this.getNews(Number(tab.index) + 1) + this.getNews(this.activeName2) }, handleScroll() { this.scrollPosition = window.scrollY; // 获取当前滚动位置 diff --git a/src/views/pages/news-list.vue b/src/views/pages/news-list.vue index 75f721e..4bb8dfa 100644 --- a/src/views/pages/news-list.vue +++ b/src/views/pages/news-list.vue @@ -8,7 +8,7 @@
{{ banner_data.title }}
{{ banner_data.subtitle }}
- +
@@ -24,7 +24,9 @@
-
Hot
+
+
Hot
+
{{ item.title }}
@@ -36,8 +38,9 @@
- + @@ -48,92 +51,92 @@ diff --git a/vue.config.js b/vue.config.js index 9bbf60f..e4ed845 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,7 +36,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy ['/proxy-api']: { - target: `http://192.168.130.157:48080/`, //luquan Lqzhly@2024! + target: `https://www.hbcjy.com/`, //luquan Lqzhly@2024! // target: `http://api-dashboard.yudao.iocoder.cn`, changeOrigin: true, pathRewrite: {