diff --git a/src/api/request.js b/src/api/request.js index 8465626..340ce58 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -2,7 +2,7 @@ import axios from 'axios' // create an axios instance const service = axios.create({ - baseURL: '/api', // https://www.meta-autotv.com/homeC + baseURL: '/api', // /api timeout: 1000 * 30 // request timeout }) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 4234ee4..1e20191 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -2,10 +2,12 @@
- + + +
@@ -110,8 +112,9 @@ export default { for (const iter of data.list) { this.carouselList.push({ src: iter.image, - title: iter.link, - subtitle: iter.link + title: iter.title, + subtitle: iter.subtitle, + link: iter.link }) } } @@ -203,6 +206,10 @@ export default { .lunbo { background-size: auto; background-position: center; + a{ + width: 100%; + height: 100%; + } } #hot, #daliay { width: 100%; @@ -210,10 +217,10 @@ export default { display: flex; align-items: center; justify-content: center; - padding: 30px 0; + padding: 25px 0; .content { width: 1200px; - height: 90%; + // height: 90%; display: flex; flex-direction: column; justify-content: space-between; @@ -224,7 +231,7 @@ export default { // min-height: 470px; // background: black; display: flex; - padding-bottom: 30px; + // padding-bottom: 30px; .lr { width: 50%; height: 100%; @@ -316,17 +323,21 @@ export default { } #daliay { background: #F2F4F8; + padding-top: 60px; .top { justify-content: space-between; + position: relative; .yyzrbtxt, .yyzrbimg{ height: 100%; width: 47%; .txtcontent { - width: 100%; height: 80% !important; text-align: left; + margin-right: 50px; + margin-right: 50px; .logo { - margin-bottom: 30px; + margin-bottom: 50px; + margin-top: -18px; } .title { border-left: 7px solid #07CAAF; @@ -334,7 +345,6 @@ export default { font-weight: bold; color: #0D1114; width: 90%; - height: 79px; text-align: left; padding-left:30px; @@ -346,12 +356,13 @@ export default { line-height: 30px; width: 100%; text-align: left; + margin-top: 40px; } } .btn { - height: 20%; width:100%; - position: relative; + position: absolute; + bottom: 55px; .more { position: absolute; left: 0px; diff --git a/vue.config.js b/vue.config.js index cdd100c..6428d00 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,6 +6,7 @@ function resolve (dir) { module.exports = { configureWebpack: { + devtool: 'source map', resolve: { alias: { '@': resolve('src')