周立森 5 anni fa
parent
commit
1b634c9f7a

+ 75
- 40
src/App.vue Vedi File

@@ -48,14 +48,12 @@
48 48
     <el-drawer :visible.sync="navdrawer" :show-close="true" size="80%">
49 49
       <div>
50 50
         <el-row style="text-align: center;">
51
-
52
-          
53
-              
54
-        <el-col :span="24" >
55
-          <img src="./assets/image/mobile/Sidemenulogo.png" width="46%" style="margin: 0 auto">
56
-           </el-col>
51
+          <el-col :span="24">
52
+            <img src="./assets/image/mobile/Sidemenulogo.png" width="46%" class="logoimg" />
53
+          </el-col>
54
+          <el-col class="line"></el-col>
57 55
           <el-col :span="24" class="a">
58
-            <a href="/">01 回到首页</a>
56
+            <a href="/" class="btn1">01 回到首页</a>
59 57
           </el-col>
60 58
 
61 59
           <el-col :span="24" class="a">
@@ -75,7 +73,7 @@
75 73
           </el-col>
76 74
 
77 75
           <el-col :span="24" class="a">
78
-             <button type="button" class="btn btn-default" @click="navdrawer = flase" style="color:black;font-size: 24px;">继续浏览</button>
76
+            <button type="button" class="btn btn-default" @click="navdrawer = flase" style="color:black;font-size: 24px;">继续浏览</button>
79 77
           </el-col>
80 78
         </el-row>
81 79
       </div>
@@ -85,21 +83,6 @@
85 83
       <router-view />
86 84
     </div>
87 85
 
88
-    <!--                      
89
-                      
90
-                      <div id="nav" class="navbar navbar-default navbar-fixed-top">
91
-                        
92
-                        <router-link to="/">首页</router-link> |
93
-                        <router-link to="/case">案例</router-link>
94
-                        <router-link to="/dynamic">动态</router-link>
95
-                        <router-link to="/about">关于</router-link>
96
-                        <router-link to="/contact">联系</router-link>
97
-                      </div>
98
-                    <div>
99
-           
100
-                        </div>glyphicon glyphicon-menu-up
101
-    <router-view/>-->
102
-
103 86
     <div class="coll">
104 87
       <div>
105 88
         <div class="btn btn-default" href="#" role="button" @mouseenter="enter1()" style="position:fixed;right:0;bottom:306px;margin:0;padding:0;z-index: 3;">
@@ -145,7 +128,7 @@ export default {
145 128
     }
146 129
   },
147 130
   components: {
148
-    ClickContact,
131
+
149 132
   },
150 133
   methods: {
151 134
     enter1 () {
@@ -204,7 +187,11 @@ export default {
204 187
   width: 80% !important;
205 188
 }
206 189
 </style>
207
-
190
+<style scoped>
191
+p {
192
+  margin: 0 50px;
193
+}
194
+</style>
208 195
 
209 196
 <style>
210 197
 #app {
@@ -222,7 +209,18 @@ export default {
222 209
 .coll {
223 210
   display: none;
224 211
 }
225
-
212
+.navbar-toggle {
213
+  margin: 0 10px 0 0;
214
+  /* padding: 0; */
215
+  border: none;
216
+}
217
+.iconfont {
218
+  border: none;
219
+  font-size: 30px;
220
+}
221
+.iconfont:hover {
222
+  color: red;
223
+}
226 224
 @media (min-width: 992px) {
227 225
   .coll {
228 226
     display: block;
@@ -236,10 +234,11 @@ export default {
236 234
  border: #000;
237 235
 } */
238 236
   .page-footer {
239
-    margin-top: 94px;
237
+    height: 120px;
240 238
   }
241 239
   .footer-p {
242
-    padding: 54px auto !important;
240
+    line-height: 120px;
241
+    font-size: 20px;
243 242
     margin: 0;
244 243
   }
245 244
 }
@@ -261,41 +260,77 @@ export default {
261 260
 .main {
262 261
   padding-bottom: 9.4rem;
263 262
 }
263
+.rtl #drawer__title{
264
+  margin: 0;
265
+}
264 266
 @media (max-width: 992px) {
265 267
   .navbar-brand {
266 268
     padding: 0;
267 269
   }
268 270
   .logo {
269
-    width: 300px;
270
-    height: 50px;
271
+    margin-top: 16.5px;
272
+    margin-left: 20px;
273
+    width: 150px;
274
+    height: 25px;
275
+    background-size: 100% 100% !important;
271 276
     background: url("./assets/logo1.png");
272 277
   }
273
-  .a{
278
+  .logoimg {
279
+    margin: -20px auto 20px ;
280
+  }
281
+  .a {
274 282
     font-size: 2.4rem;
275 283
     margin-top: 2rem;
276 284
     color: #000;
277
-     
278 285
   }
279
-  .a a{
286
+  .a a {
280 287
     color: #000;
281 288
   }
289
+ 
290
+
291
+  .line {
292
+    height: 2px;
293
+    width: 300px;
294
+    background: -webkit-linear-gradient(
295
+      left,
296
+      rgba(255, 255, 255, 0),
297
+      #aaa,
298
+      rgba(255, 255, 255, 0)
299
+    );
300
+    background: linear-gradient(
301
+      to right,
302
+      rgba(255, 255, 255, 0),
303
+      #aaa,
304
+      rgba(255, 255, 255, 0)
305
+    );
306
+    margin-bottom: 80px;
307
+  }
308
+  .btn1 {
309
+    font-size: 24px !important;
310
+    color: black !important;
311
+    border: none !important;
312
+  }
313
+  .btn1:hover {
314
+    color: red !important;
315
+    text-decoration: none;
316
+  }
317
+  .btn1:active {
318
+    color: red !important;
319
+    text-decoration: none;
320
+  }
282 321
 }
283 322
 </style>
284 323
 
285 324
 
286 325
 <style lang="less" scoped>
287 326
 @media (min-width: 992px) {
288
-  .navbar {
289
-    padding: 30px 0;
290
-    z-index: 50;
291
-    height: 116px;
292
-  }
293
-
294 327
   .navbar {
295 328
     padding: 30px 0;
296 329
     // background-color: transparent;
297 330
     border: none;
298
-
331
+    padding: 30px 0;
332
+    z-index: 50;
333
+    height: 116px;
299 334
     margin: 0;
300 335
 
301 336
     .navbar-brand {

+ 2
- 2
src/components/Business.vue Vedi File

@@ -129,9 +129,9 @@ export default {
129 129
       
130 130
       
131 131
     }).then(con => {
132
-      console.log(con,"124")
132
+      // console.log(con,"124")
133 133
        this.service = con;
134
-      window.console.log(this.service, "543");
134
+      // window.console.log(this.service, "543");
135 135
     })
136 136
 
137 137
    

+ 5
- 2
src/components/Wheelplanting.vue Vedi File

@@ -33,6 +33,9 @@ import apis from '../config/api';
33 33
 
34 34
 export default {
35 35
   name: "wheelplanting",
36
+  props: [
37
+    'direction',
38
+  ],
36 39
   data () {
37 40
     return {
38 41
       data: '',
@@ -59,9 +62,8 @@ export default {
59 62
     initSwiper () {
60 63
       if (!this.swiper) {
61 64
         this.swiper = new Swiper(".swiper-container", {
62
-          // loop: true,
63 65
           autoplay: true,
64
-          direction: "vertical",
66
+          direction: this.direction || 'horizontal',
65 67
           observer: true,
66 68
           observeSlideChildren: true,
67 69
 
@@ -84,6 +86,7 @@ export default {
84 86
   .wheelplanting .con-swiper {
85 87
     width: 100%;
86 88
     height: 100vh;
89
+    z-index: 60;
87 90
   }
88 91
 }
89 92
 @media (max-width: 992px){

+ 70
- 71
src/components/mobnav.vue Vedi File

@@ -10,97 +10,96 @@
10 10
 </template>
11 11
 
12 12
 <script>
13
-export default {
14
-   data () {
15
-    return {
16
-      cover: {},
17
-      casetype: [],
18
-      caselist: [],
19
-      num: 1,
13
+// export default {
14
+//    data () {
15
+//     return {
16
+//       cover: {},
17
+//       casetype: [],
18
+//       caselist: [],
19
+//       num: 1,
20 20
 
21
-      allLoaded: false,//数据全部加载
22
-    }
23
-  },
24
-  components: {
21
+//       allLoaded: false,//数据全部加载
22
+//     }
23
+//   },
24
+//   components: {
25 25
 
26
-  },
26
+//   },
27 27
 
28
-  created () {
29
-    // window.console.log(this.cover, "543");
30
-    // 封面
31
-    request({
32
-      ...apis.case.cover,
28
+//   created () {
33 29
 
34
-    }).then(data => {
35
-      this.cover = data[0];
36
-    })
30
+//     // 封面
31
+//     request({
32
+//       ...apis.case.cover,
37 33
 
34
+//     }).then(data => {
35
+//       this.cover = data[0];
36
+//     })
38 37
 
39
-    // axios.get('http://localhost:8080/pc/case/cover')
40 38
 
41
-    // 分类
42
-    // axios.get('http://localhost:8080/pc/caseType/list')
43
-    request({
44
-      ...apis.caseType.list,
45
-    })
46
-      .then(res => {
47 39
 
48
-        this.casetype = res.records;
49 40
 
50
-      })
51
-    // 内容http://localhost:8080/pc/case/{case}/list
52
-    request({
53
-      ...apis.case.list,
54
-      urlData: { type: 'case' },
55
-      params: { pageNum: this.num, pageSize: 8 }
56
-    }).then(con => {
57
-      // console.log(con,"124")
58
-      this.caselist = con.records;
59
-      // window.console.log(this.caselist, "543");
60
-    }).catch()
41
+//     // 分类
42
+//     request({
43
+//       ...apis.caseType.list,
44
+//     })
45
+//       .then(res => {
61 46
 
47
+//         this.casetype = res.records;
62 48
 
63
-  },
49
+//       })
64 50
 
65
-  computed: {
51
+//     request({
52
+//       ...apis.case.list,
53
+//       urlData: { type: 'case' },
54
+//       params: { pageNum: this.num, pageSize: 8 }
55
+//     }).then(con => {
56
+  
57
+//       this.caselist = con.records;
58
+  
59
+//     }).catch()
66 60
 
67
-  },
68 61
 
69
-  methods: {
70
-    add (a) {
62
+//   },
63
+
64
+//   computed: {
65
+
66
+//   },
67
+
68
+//   methods: {
69
+//     add (a) {
71 70
      
72
-      console.log(this.num, "124")
73
-      request({
74
-        ...apis.case.list,
75
-        urlData: { type: 'case' },
76
-        params: { pageNum: a, pageSize: 8 }
77
-      }).then(con => {
78
-        console.log(con, "124")
79
-        this.caselist = this.caselist.concat(con.records);
80
-        if(con.total%8) this.allLoaded=true;
71
+//       console.log(this.num, "124")
72
+//       request({
73
+//         ...apis.case.list,
74
+//         urlData: { type: 'case' },
75
+//         params: { pageNum: a, pageSize: 8 }
76
+//       }).then(con => {
77
+//         console.log(con, "124")
78
+//         this.caselist = this.caselist.concat(con.records);
79
+//         if(con.total%8) this.allLoaded=true;
81 80
       
82
-        // this.caselist = con.records;
83
-
84
-      })
85
-    },
86
-
87
-    classification (Type) {
88
-       request({
89
-        ...apis.case.list,
90
-        urlData: { type: 'case' },
91
-        params: { pageNum: a, pageSize: 8  }
92
-      }).then(con => {
93
-        console.log(con, "124")
94
-        this.caselist = this.caselist.concat(con.records);
81
+//         // this.caselist = con.records;
82
+
83
+//       })
84
+//     },
85
+
86
+//     classification (Type) {
87
+//        request({
88
+//         ...apis.case.list,
89
+//         urlData: { type: 'case' },
90
+//         params: { pageNum: a, pageSize: 8  }
91
+//       }).then(con => {
92
+//         // console.log(con, "124")
93
+//         this.caselist = this.caselist.concat(con.records);
95 94
         
96 95
       
97
-        // this.caselist = con.records;
96
+//         // this.caselist = con.records;
98 97
 
99
-      })
100
-    }
101
-  }
98
+//       })
99
+//     }
100
+//   }
102 101
 
103 102
 
104
-}
103
+// }
105 104
 
106 105
 </script>

+ 0
- 95
src/components/wheelplanting1.vue Vedi File

@@ -1,95 +0,0 @@
1
-<template>
2
-<!-- 手机 -->
3
-  <div class="wheelplanting1">
4
-    <div class="swiper-container con-swiper">
5
-      <div class="swiper-wrapper">
6
-        <!-- <div class="col-md-2 col-xs-2" v-for="(item,index) in blogs" :key="index+'img'">
7
-            <img  :src="item.logoImg" alt class="ph-logo" />
8
-        </div>-->
9
-        <!-- <div v-for="item in blogs" :key="item">
10
-          <div class="swiper-slide">
11
-            <img :src="item.imageUrl" width="100%" height="" alt />
12
-          </div>
13
-        </div>-->
14
-        <div class="swiper-slide" v-for="(url,index) in blogs" :key="index+'url'">
15
-          <img :src="url.imageUrl" width="100%" height="100%" />
16
-        </div>
17
-        <!-- <div class="swiper-slide">
18
-          <img src="http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1566890344965.png?Expires=1568717732&OSSAccessKeyId=LTAIkc75dpkJw8Lb" width="100%" height="100%" />
19
-        </div>
20
-        <div class="swiper-slide">
21
-          <img src="http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1566890344965.png?Expires=1568717732&OSSAccessKeyId=LTAIkc75dpkJw8Lb" width="100%" height="100%" />
22
-        </div>-->
23
-      </div>
24
-      <div class="swiper-pagination"></div>
25
-    </div>
26
-  </div>
27
-</template>
28
-
29
-<script>
30
-import Swiper from "swiper";
31
-import "swiper/dist/css/swiper.min.css";
32
-import request from '../../utils/request';
33
-import apis from '../config/api';
34
-
35
-export default {
36
-  name: "wheelplanting1",
37
-  data () {
38
-    return {
39
-      data: '',
40
-      blogs: {},
41
-    };
42
-  },
43
-  components: {},
44
-
45
-  mounted () {
46
-
47
-
48
-    new Swiper(".swiper-container", {
49
-      loop: true,
50
-      autoplay: true,
51
-      // direction: "vertical",
52
-      observer: true,
53
-      observeSlideChildren: true,
54
-
55
-      pagination: {
56
-        el: ".swiper-pagination",
57
-        hideOnClick: true
58
-      }
59
-    });
60
-
61
-
62
-
63
-
64
-
65
-  },
66
-  created () {
67
-    // axios.get('http://localhost:8080/pc/carousel/list')
68
-    request({
69
-      ...apis.carousel.list,
70
-    }).then(data => {
71
-
72
-      this.blogs = data;
73
-    })
74
-
75
-
76
-
77
-  }
78
-};
79
-</script>
80
-
81
-<style scoped>
82
-@media (min-width: 992px) {
83
-  .wheelplanting .con-swiper {
84
-    width: 100%;
85
-    height: 100vh;
86
-  }
87
-}
88
-@media (max-width: 992px){
89
-  
90
-  .wheelplanting .con-swiper {
91
-    width: 100%;
92
-   height: 300px;
93
-  }
94
-}
95
-</style>

+ 8
- 1
src/router.js Vedi File

@@ -78,6 +78,13 @@ export default new Router({
78 78
       component: () => import(/* webpackChunkName: "mobnav" */ './components/mobnav.vue')
79 79
     },
80 80
     
81
-    // // 
81
+    // {
82
+    //   path: '/wheelplantings',
83
+    //   name: 'wheelplantings',
84
+    //   // route level code-splitting
85
+    //   // this generates a separate chunk (about.[hash].js) for this route
86
+    //   // which is lazy-loaded when the route is visited.
87
+    //   component: () => import(/* webpackChunkName: "wheelplantings" */ './components/wheelplantings.vue')
88
+    // },
82 89
   ]
83 90
 })

+ 132
- 54
src/views/About.vue Vedi File

@@ -5,15 +5,15 @@
5 5
     </div>
6 6
 
7 7
     <div class="contanier st">
8
-      <div class="row">
9
-        <div class="col-md-12">
8
+      <div class="row" style="margin-left:0;margin-right:0">
9
+        <div class="">
10 10
           <div class="sssss">
11
-            <p class="text-left" style="font-size: 2.4rem">
11
+            <p class="text-left">
12 12
               南京福予文化传媒有限公司成立于2018年6月,是一家崇尚服务与品质的广告创意公司,拥有多元化的团队体系及全案服务能
13 13
               力。从品牌策略到营销策划、广告创意、设计成型、落地执行、一站式解决客户所需。
14 14
             </p>
15 15
             <br />
16
-            <div class="col-md-12">
16
+            <div class="">
17 17
               <div class="abc">
18 18
                 <img src="../assets/image/about/FOYO.jpg" style="width:100%" />
19 19
               </div>
@@ -22,7 +22,7 @@
22 22
         </div>
23 23
       </div>
24 24
 
25
-      <div class="row about-1">
25
+      <div class="row about-1"  style="margin-left:0;margin-right:0">
26 26
         <div class="col-xs-6 col-md-3">
27 27
           <img src="../assets/image/about/Advantage1.png" class="about-1-img" alt="..." />
28 28
           <div class="caption">
@@ -71,23 +71,23 @@
71 71
               部分服务支持先出预案
72 72
               <br />满意再付定金。
73 73
               <br />承诺比市面上同档次广告公司
74
-              的服务价位低20%以上!
74
+              <br />的服务价位低20%以上!
75 75
             </p>
76 76
           </div>
77 77
         </div>
78 78
       </div>
79 79
 
80
-      <div class="row">
81
-        <h1 style="padding-top: 32px; font-size: 4.8rem">我们的团队</h1>
80
+      <div class="row"  style="margin-left:0;margin-right:0">
81
+        <h1 class="h1">我们的团队</h1>
82 82
       </div>
83 83
 
84
-      <div class="row about-2">
85
-        <div class="col-xs-12 col-md-6">
84
+      <div class="row about-2" style="margin-left:0;margin-right:0">
85
+        <div class="col-xs-12 col-md-6" >
86 86
           <div style="float:left;">
87 87
             <img src="../assets/image/about/Photo_sfg.jpg" class="about-ph1" alt="..." />
88 88
           </div>
89 89
           <div class style="padding: 0;float:right;">
90
-            <div class="text-left" style="">
90
+            <div class="text-left" style>
91 91
               <h1 class="teamh1">孙福高</h1>
92 92
               <p class="teamp1">创始人兼艺术总监</p>
93 93
               <p class="teamp2">
@@ -117,7 +117,7 @@
117 117
           </div>
118 118
         </div>
119 119
       </div>
120
-      <div class="row about-3">
120
+      <div class="row about-3"  style="margin-left:0;margin-right:0">
121 121
         <div class="col-xs-2 col-md-2">
122 122
           <img src="../assets/image/about/Photo_1.jpg" alt="..." class="ph5" />
123 123
         </div>
@@ -144,32 +144,36 @@
144 144
 
145 145
 
146 146
 <style scoped>
147
-.sssss {
148
-  padding: 40px 20px;
149
-}
150 147
 
151
-.about-1-img {
152
-  width: 100%;
153
-}
154 148
 @media (min-width: 768px) {
155
-  .about-ph1 {
156
-  }
149
+ 
157 150
 }
158 151
 
159 152
 @media (max-width: 768px) {
160
-  .about-2 div{
161
-    margin-top: 40px;
153
+  .about {
154
+    padding-top: 58px;
162 155
   }
156
+  .about-1-img {
157
+    width: 60px;
158
+    height: 60px;
159
+  }
160
+  .sssss {
161
+    font-size: 1rem;
162
+
163
+    padding: 20px 20px;
164
+  }
165
+  .about-1 {
166
+    border-top: 2px solid #e5e5e5;
167
+    padding-top: 30px;
168
+    padding-bottom: 30px;
169
+    border-bottom: 2px solid #e5e5e5;
170
+  }
171
+
163 172
   .teamh1 {
164 173
     margin-top: 0;
165 174
     /* font-size: 2rem; */
166 175
   }
167
-  .teamp1 {
168
-    /* font-size: 1.6rem; */
169
-  }
170
-  .teamp1 {
171
-    /* font-size: 1.6rem; */
172
-  }
176
+  
173 177
 }
174 178
 
175 179
 /* 中等屏幕(桌面显示器,大于等于 992px) */
@@ -189,7 +193,13 @@
189 193
   }
190 194
 
191 195
   .st div div .sssss {
192
-    padding: 0 79px;
196
+    padding: 40px 20px;
197
+
198
+    font-size: 2.4rem;
199
+  }
200
+  .h1 {
201
+    padding-top: 32px;
202
+    font-size: 4.8rem;
193 203
   }
194 204
 
195 205
   h2 {
@@ -208,9 +218,6 @@
208 218
     padding: 78px 0 84px 0;
209 219
     border-bottom: 2px solid #e5e5e5;
210 220
   }
211
-  .about-2 {
212
-    padding-top: 123px;
213
-  }
214 221
 
215 222
   .ph5 {
216 223
     width: 100%;
@@ -218,15 +225,15 @@
218 225
   }
219 226
   .teamh1 {
220 227
     margin-top: 0;
221
-    font-size: 3.6rem;
228
+    font-size: 1.9vw;
222 229
   }
223 230
   .teamp1 {
224
-    font-size: 2.2rem;
231
+    font-size: 1.1vw;
225 232
     color: #595757;
226 233
     margin-bottom: 20px;
227 234
   }
228 235
   .teamp2 {
229
-    font-size: 2.2rem;
236
+    font-size: 1.1vw;
230 237
   }
231 238
 }
232 239
 
@@ -236,29 +243,100 @@
236 243
 </style>
237 244
 
238 245
 <style lang="less" scoped>
239
-.about-2 {
240
-  padding-top: 60px;
241
-  div {
242
-    .about-ph1 {
243
-      float: left;
244
-      width: 50%;
245
-      height: 100%;
246
-      padding: 0 40px 0 40px;
246
+
247
+@media (min-width: 992) and (max-width: 1200) { 
248
+  
249
+ }
250
+
251
+@media (min-width: 992px) {
252
+  .about-2 {
253
+    padding-top: 60px;
254
+    div {
255
+      .about-ph1 {
256
+        float: left;
257
+        width: 50%;
258
+     
259
+        padding: 0 40px ;
260
+      }
261
+    }
262
+  }
263
+  .about-3 {
264
+    margin: 0;
265
+    padding-top: 100px;
266
+    padding-left: 40px;
267
+    padding-right: 40px;
268
+    div {
269
+      margin: 0;
270
+      padding: 0;
271
+      img {
272
+        width: 100%;
273
+      }
247 274
     }
248 275
   }
249 276
 }
277
+@media (max-width: 992px) {
278
+  .about-1 {
279
+    padding: 20px 30px;
280
+    div {
281
+      .about-1-img {
282
+      }
283
+      .caption {
284
+        h2 {
285
+          font-size: 1.2rem;
286
+          font-weight: bold;
287
+        }
288
+        .p1 {
289
+          font-size: 0.8rem;
290
+        }
291
+      }
292
+    }
293
+  }
294
+  .h1{
295
+    font-size: 2.2rem;
296
+    font-weight: bold;
297
+    margin-bottom: 24px;
298
+  }
299
+  .about-2 {
300
+     
301
+    div {margin-top: 20px;
302
+      div {
303
+        .about-ph1 {
304
+          margin-left: 10px;
305
+          margin-right: 10px;
306
+          float: left;
307
+          width: 120px;
308
+         
309
+        }
310
+      }
311
+      div {
312
+        div {
313
+          h1 {
314
+            font-size: 1.3rem;
315
+            font-weight: bold;
316
+            margin-bottom: 6px
317
+          }
318
+          .teamp1{
319
+            font-size: 1.2rem;
320
+            margin: 2px;
321
+          }
322
+          .teamp2{
323
+            font-size: 1.2rem;
324
+          }
325
+        }
326
+      }
327
+    }
328
+  }
329
+  .about-3 {
330
+    margin-top: 28px;
250 331
 
251
-.about-3 {
252
-  margin: 0;
253
-  padding-top: 100px;
254
-  padding-left: 40px;
255
-  padding-right: 40px;
256
-  div {
257
-    margin: 0;
258
-    padding: 0;
259
-    img {
260
-      width: 100%;
332
+    div {
333
+      margin: 0;
334
+      padding: 0;
335
+      img {
336
+        width: 100%;
337
+      }
261 338
     }
262 339
   }
263 340
 }
264
-</style>
341
+</style>
342
+

+ 58
- 24
src/views/Case.vue Vedi File

@@ -5,10 +5,10 @@
5 5
       <!-- width="100%" height="300"> -->
6 6
     </div>
7 7
 
8
-    <div class="border-bottom">
9
-      <div id="bs-example-navbar-collapse-2">
10
-        <button type="button" class="btn-link" style="color:black;font-size: 24px;padding: 25px" @click="() => filterCase()">全部案例</button>
11
-        <button v-for="cas in casetype" :key="cas.id" @click="() => filterCase(cas)" type="button" class="btn-link" style="color:black;font-size: 24px;padding: 25px">{{cas.typeName}}</button>
8
+    <div class="border-bottom comtype">
9
+      <div>
10
+        <button type="button" class="btn1 btn-link" style="color:black;font-size: 24px;padding: 25px" @click="() => filterCase()">全部案例</button>
11
+        <button v-for="cas in casetype" :key="cas.id" @click="() => filterCase(cas)" type="button" class="btn1 btn-link" style="color:black;font-size: 24px;padding: 25px">{{cas.typeName}}</button>
12 12
       </div>
13 13
     </div>
14 14
 
@@ -19,7 +19,7 @@
19 19
         </div>
20 20
       </div>
21 21
       <div class="col-xs-6">
22
-        <el-button class="btn-link" @click="drawer = true" type="button" style="margin-left: 16px;">全部案例</el-button>
22
+        <el-button class="btn-link mobbtn" @click="drawer = true" type="button" style="margin-left: 16px;">全部案例</el-button>
23 23
       </div>
24 24
     </div>
25 25
     <el-drawer :visible.sync="drawer" :direction="direction" :show-close="true" size="80%">
@@ -28,7 +28,7 @@
28 28
           <el-col :span="24">
29 29
             <button type="button" @click="addall()" class="btn-link" style="color:black;font-size: 24px;">全部案例</button>
30 30
           </el-col>
31
-          <el-col :span="24" :offset="6" v-for="cas in casetype" :key="cas.id" @click="() => filterCase(cas)">
31
+          <el-col :span="24" v-for="cas in casetype" :key="cas.id" @click="() => filterCase(cas)">
32 32
             <button type="button" class="btn-link" style="color:black;font-size: 24px">{{cas.typeName}}</button>
33 33
           </el-col>
34 34
           <el-col :span="24">
@@ -41,12 +41,14 @@
41 41
     <div class="contanier center-block dyn-main">
42 42
       <div class="row">
43 43
         <div class="col-md-6 col-xs-6" v-for="(item,index) in caselist" :key="index" :class="{ marginTP: index > 1 }">
44
-          <case-card :thumb="item.caseCoverImg" :title="item.caseTitle" :caption="item.caseSummary"></case-card>
44
+          <a href="/details">
45
+            <case-card :thumb="item.caseCoverImg" :title="item.caseTitle" :caption="item.caseSummary"></case-card>
46
+          </a>
45 47
         </div>
46 48
       </div>
47 49
     </div>
48 50
 
49
-    <div>
51
+    <div style="margin-top:40px">
50 52
       <button type="button" v-if="!allLoaded" class="btn btn-default" @click="more">加载更多</button>
51 53
       <p v-else>已经到底了~更多案例尽请期待~</p>
52 54
     </div>
@@ -71,7 +73,7 @@ export default {
71 73
       cover: {},
72 74
       casetype: [],
73 75
       caselist: [],
74
-      
76
+
75 77
       conditions: {
76 78
         pageNum: 0,
77 79
         pageSize: 8,
@@ -113,11 +115,11 @@ export default {
113 115
   },
114 116
 
115 117
   methods: {
116
-    getCaseList(filters = {}) {
118
+    getCaseList (filters = {}) {
117 119
       const params = {
118
-            ...this.conditions,
119
-            ...filters
120
-          }
120
+        ...this.conditions,
121
+        ...filters
122
+      }
121 123
 
122 124
       return new Promise((resolve, reject) => {
123 125
         request({
@@ -157,11 +159,31 @@ export default {
157 159
 </script>
158 160
 
159 161
 <style scoped>
160
-.case {
161
-  margin-top: 116px;
162
-}
162
+
163 163
 .border-bottom {
164 164
   /* display: none; */
165
+  border-bottom: 1px solid #bfbfbf;
166
+      margin-top: 10px !important;
167
+}
168
+ .btn1 {
169
+    font-size: 24px !important;
170
+    color: black !important;
171
+    border: none !important;
172
+  }
173
+  .btn1:hover {
174
+    color: red !important;
175
+    text-decoration: none;
176
+  }
177
+.mobbtn{
178
+color: #e03723;
179
+   
180
+  padding:12px 40px;
181
+
182
+    border-radius: 0px;
183
+
184
+    background-color: rgb(252, 151, 252);
185
+    border: 2px solid #bfbfbf;
186
+  
165 187
 }
166 188
 
167 189
 .text-left {
@@ -178,16 +200,23 @@ export default {
178 200
 }
179 201
 
180 202
 @media (max-width: 992px) {
203
+  .case{
204
+    margin-top: 58px;
205
+  }
181 206
   .comtype {
182 207
     display: none;
208
+    border-bottom: 1px solid #bfbfbf;
209
+  }
210
+  .dyn-main {
211
+    margin-top: 20px;
183 212
   }
184 213
 }
185
-
186
-  
187
-
188
-  .marginTP {
189
-    margin-top: 3rem;
214
+.row {
215
+    margin: 0;
190 216
   }
217
+.marginTP {
218
+  margin-top: 3rem;
219
+}
191 220
 
192 221
 @media (min-width: 992px) {
193 222
   .main {
@@ -199,12 +228,17 @@ export default {
199 228
     justify-content: center;
200 229
   }
201 230
   .case {
202
-    background-color: #fafafa;
203
-  }
231
+  margin-top: 116px;
232
+  margin-bottom: -116px;
233
+  padding-bottom: 116px; 
234
+  background-color: #fafafa;
235
+}
236
+  
204 237
   .mobtype {
205 238
     display: none;
206 239
   }
207 240
 
241
+  
208 242
   .btn {
209 243
     font-size: 24px;
210 244
     margin-top: 88px;
@@ -218,7 +252,7 @@ export default {
218 252
     color: #e03723;
219 253
     border: 1px solid #e03723;
220 254
   }
221
-  
255
+
222 256
   .dyn-main {
223 257
     padding-top: 55px;
224 258
     width: 80%;

+ 3
- 4
src/views/Contact.vue Vedi File

@@ -9,7 +9,7 @@
9 9
       <div class="contact-main">
10 10
         <h1 style="margin-bottom:70px">联系我们</h1>
11 11
 
12
-        <div class="row">
12
+        <div class="row" style="margin:0">
13 13
           <div class="col-md-6 col-xs-6 st1" style="border-right: 1px solid #aaa;">
14 14
             <img class="img1" src="../assets/image/contact/weixin.jpg" />
15 15
             <div>
@@ -67,10 +67,9 @@
67 67
 } */
68 68
 @media (max-width: 992px) {
69 69
   .contact {
70
-    padding-top: 60px;
71
-  }
72
-  .st1 {
70
+    margin-top: 60px;
73 71
   }
72
+  
74 73
   .img1{
75 74
     width: 100%;
76 75
   }

+ 277
- 69
src/views/Details.vue Vedi File

@@ -1,75 +1,66 @@
1 1
 <template>
2 2
   <div class="details">
3 3
     <div class="head">
4
-      <img src="../assets/image/case/首屏banner.jpg" width="100%" height="100%" />
4
+      <img :src="datas.caseCoverImg" width="100%" />
5 5
     </div>
6 6
 
7
-    <div>
8
-      <div class="contanier st">
9
-        <div class="row">
10
-          <h1 style="font-size: 4.8em">1234</h1>
11
-        </div>
12
-        <div class="row">
13
-          <!-- <a style="font-size: 4.8em">客户:</a>
14
-        <img src="../assets/image/case2/客户logo.jpg" alt="">
15
-        <a>所属行业:</a>
16
-          <a>智能家居</a>-->
17
-          <p style="font-size: 24px; color: #3e3a39">
18
-            客户:
19
-            <img src="../assets/image/case2/客户logo.jpg" alt /> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所属行业: 智能家居
20
-          </p>
21
-        </div>
22
-        <div class="row">
23
-          <div class="border-top"><img src="" width="100%" height= /></div>
24
-        </div>
25
-        <div class="row">
26
-          <div class="col-xs-6 col-md-6">
27
-            <div class="pull-left">
28
-              <a class="btn-default" href="#" role="button">
29
-                <img src="../assets/image/case2/赞.png" alt />
30
-              </a>赞 | 234
31
-            </div>
7
+    <div class="contanier st">
8
+      <h1 style>{{datas.caseTitle}}</h1>
9
+
10
+      <p style>
11
+        客户:
12
+        <img :src="datas.caseLogoImg" alt />
13
+        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所属行业:{{datas.caseIndustry}}
14
+      </p>
15
+
16
+      <div class="border-top" v-html="datas.content"></div>
17
+
18
+      <div class="row" style="margin:0">
19
+        <div class="col-xs-6 col-md-6" style="padding 0;">
20
+          <div class="pull-left">
21
+            <span role="button" class="iconfont icon-zan"></span>
22
+            <span>赞 | 234</span>
32 23
           </div>
33
-          <div class="col-xs-6 col-md-6">
34
-            <div class="pull-right">
35
-              分享:
36
-              <a class="btn-default" href="#" role="button">
37
-                <img src="../assets/image/case2/微信icon.png" alt />
38
-              </a>
39
-              <a class="btn-default" href="#" role="button">
40
-                <img src="../assets/image/case2/微博icon.png" alt />
41
-              </a>
42
-            </div>
24
+        </div>
25
+        <div class="col-xs-6 col-md-6" style="padding 0;">
26
+          <div class="pull-right">
27
+            分享:
28
+            <a class="btn-default" href="#" role="button">
29
+              <img src="../assets/image/case2/微信icon.png" alt />
30
+            </a>
31
+            <a class="btn-default" href="#" role="button">
32
+              <img src="../assets/image/case2/微博icon.png" alt />
33
+            </a>
43 34
           </div>
44 35
         </div>
45 36
       </div>
46
-
47
-      <div class="contanier center-block" style="width: 80%;border-bottom: 1px solid #aaa;">
48
-        <div class="row case-2">
49
-          <div class="col-xs-4 col-md-4 case-3">
50
-            <button type="button" class="btn-link pull-left case-3 button-hover" style="font-size: 24px;color:black;border:none;">上一个案例</button>
51
-          </div>
52
-          <div class="col-xs-4 col-md-4 case-3">
53
-            <button type="button" class="btn btn-default button-hover">返回</button>
54
-          </div>
55
-          <div class="col-xs-4 col-md-4 case-3">
56
-            <button type="button" class="btn-link pull-right case-3 button-hover" style="font-size: 24px;color:black;border:none;">下一个案例</button>
57
-          </div>
37
+    </div>
38
+    <div class="contanier center-block next-prev" style>
39
+      <div class="row case-2">
40
+        <div class="col-xs-4 col-md-4 case-3">
41
+          <button type="button" class="btn1 btn-link pull-left case-3 button-hover prev-page">上一个案例</button>
42
+        </div>
43
+        <div class="col-xs-4 col-md-4 case-3">
44
+          <button type="button" class="btn btn-default button-hover">返回</button>
45
+        </div>
46
+        <div class="col-xs-4 col-md-4 case-3">
47
+          <button type="button" class="btn1 btn-link pull-right case-3 button-hover next-page">下一个案例</button>
58 48
         </div>
59 49
       </div>
60 50
     </div>
61 51
 
62 52
     <div class="center-block" style="width: 80%">
63
-      <div class="row">
64
-        <h2 style="margin-top:64px;margin-bottom:30px">更多好案例</h2>
65
-      </div>
66
-      <div class="row">
67
-        <div v-for="item in 4" :key="item">
68
-          <div class="col-xs-6 col-md-3" style="padding:0">
69
-            <a href="#" class="st4">
70
-              <img src="../assets/image/home/Case2.jpg" style="margin: 0;width: 100%;" />
71
-            </a>
72
-          </div>
53
+      <h2>更多好案例</h2>
54
+
55
+      <div class="row home-case" style="padding:0;width: 100%;">
56
+        <div class="col-xs-6 col-md-3 home-case" style="margin:0" v-for="(item,index) in 4" :key="index">
57
+          <a href="/details">
58
+            <div class="st4" style="{background: `url(${../assets/image/home/Case2.jpg})`}">
59
+              <div class="casetitle">
60
+                <p>{{item.caseTitle}}</p>
61
+              </div>
62
+            </div>
63
+          </a>
73 64
         </div>
74 65
       </div>
75 66
     </div>
@@ -87,18 +78,200 @@ export default {
87 78
 
88 79
 <script scoped>
89 80
 // @ is an alias to /src
90
-
81
+import request from '../../utils/request'
82
+import apis from '../config/api';
91 83
 
92 84
 export default {
93 85
   name: 'details',
86
+
87
+  data () {
88
+    return {
89
+      datas: {},
90
+      morecase: [],
91
+    }
92
+  },
94 93
   components: {
95 94
 
96
-  }
95
+  },
96
+  created () {
97
+    this.getDetail()
98
+  },
99
+  methods: {
100
+    getDetail () {
101
+      const id = this.$route.query.id;
102
+      const type = this.$route.query.type;
103
+      const taCaseTypeId = this.$route.query.taCaseTypeId;
104
+      request({
105
+        ...apis.case.list,
106
+        urlData: { type: type },
107
+        params: { pageNum: 1, pageSize: 1, id: id },
108
+        query: {}
109
+      }).then(con => {
110
+        console.log(con, "124")
111
+        this.datas = con.records[0];
112
+        // window.console.log(this.caselist, "543");
113
+      })
114
+
115
+      request({
116
+        ...apis.case.list,
117
+        urlData: { type: type },
118
+        params: { pageNum: 1, pageSize: 4, }
119
+      }).then(con => {
120
+        console.log(con, "456")
121
+        console.log(taCaseTypeId, "456")
122
+        // this.morecase = con.records[0];
123
+        // window.console.log(this.caselist, "543");
124
+      })
125
+    }
126
+
127
+  },
128
+
97 129
 }
98 130
 </script>
99 131
 
132
+<style lang="less" scoped>
133
+@media (min-width: 992px) {
134
+  .pull-left {
135
+    font-size: 3.6rem;
136
+    .iconfont {
137
+      font-size: 3.6rem;
138
+    }
139
+  }
140
+  .pull-right {
141
+    font-size: 3.6rem;
142
+  }
143
+  .head {
144
+    img {
145
+      width: 100%;
146
+      height: 600px;
147
+    }
148
+  }
149
+  .st {
150
+    h1 {
151
+      font-size: 4.8rem;
152
+    }
153
+    p {
154
+      font-size: 2.4rem;
155
+      color: #3e3a39;
156
+    }
157
+    .border-top {
158
+      padding-top: 50px;
159
+
160
+      border-top: 1px solid #aaa;
161
+    }
162
+  }
163
+  .button-hover:hover {
164
+    color: #e03723;
165
+    border: 1px solid #e03723;
166
+  }
167
+  .btn1 {
168
+    font-size: 2.4rem !important;
169
+    color: black !important;
170
+    border: none !important;
171
+  }
172
+  .btn1:hover {
173
+    color: red !important;
174
+    text-decoration: none;
175
+  }
176
+  .btn {
177
+    width: 195px;
178
+    height: 49px;
179
+    font-size: 2.4rem;
180
+    background-color: #fff;
181
+    border: 1px solid #aaaaaa;
182
+    border-radius: 0px;
183
+  }
184
+  .next-prev {
185
+    width: 80%;
186
+    border-bottom: 1px solid #aaa;
187
+    .case2 {
188
+      .case3 {
189
+      }
190
+    }
191
+  }
192
+  h2 {
193
+    margin-top: 64px;
194
+    margin-bottom: 30px;
195
+  }
196
+}
197
+
198
+@media (max-width: 992px) {
199
+  .btn1 {
200
+    font-size: 1.2rem !important;
201
+    color: black !important;
202
+    border: none !important;
203
+  }
204
+  .btn1:hover {
205
+    color: red !important;
206
+    text-decoration: none;
207
+  }
208
+  .btn {
209
+    width: 100px;
210
+    padding: 3px;
211
+    font-size: 1.2rem;
212
+    background-color: #fff;
213
+    border: 1px solid #aaaaaa;
214
+    border-radius: 0px;
215
+  }
216
+  .pull-left {
217
+    .iconfont {
218
+      font-size: 2.4rem;
219
+    }
220
+  }
221
+  .pull-right {
222
+  }
223
+  .st {
224
+    h1 {
225
+      font-size: 2rem;
226
+      img {
227
+        width: 192px;
228
+        height: 95px;
229
+      }
230
+    }
231
+    p {
232
+      font-size: 1.4rem;
233
+      img {
234
+        width: 35%;
235
+      }
236
+    }
237
+    .border-top {
238
+      padding-top: 20px;
239
+
240
+      border-top: 1px solid #aaa;
241
+    }
242
+  }
243
+
244
+  .next-prev {
245
+    width: 100%;
246
+    padding-bottom: 20px;
247
+    border-bottom: 1px solid #aaa;
248
+    .case2 {
249
+      margin: 0;
250
+      .case3 {
251
+      }
252
+    }
253
+  }
254
+  h2{
255
+    font-size: 2rem;
256
+  }
257
+}
258
+</style>
259
+
100 260
 <style scoped>
101 261
 @media (min-width: 992px) {
262
+  .details {
263
+    margin-top: 116px;
264
+  }
265
+
266
+  .coverimg {
267
+    width: 100%;
268
+
269
+    padding-bottom: 35%;
270
+    background-size: 100% 100% !important;
271
+    position: relative;
272
+
273
+    margin: 0;
274
+  }
102 275
   .case {
103 276
     padding-top: 116px;
104 277
   }
@@ -112,11 +285,6 @@ export default {
112 285
     border-radius: 0;
113 286
     border: 2px solid #bcbcbc;
114 287
   }
115
-  .border-top {
116
-    padding-top: 50px;
117
-
118
-    border-top: 1px solid #aaa;
119
-  }
120 288
 
121 289
   .case-2 {
122 290
     margin: 70px 0;
@@ -126,16 +294,56 @@ export default {
126 294
     margin: 0;
127 295
     padding: 0;
128 296
   }
129
-  .btn {
130
-    width: 195px;
131
-    height: 49px;
297
+  /* .btn {
132 298
     font-size: 24px;
299
+    margin-top: 88px;
300
+    padding: 12px 150px;
301
+    border-radius: 0px;
302
+    color: #000;
133 303
     background-color: #fff;
134 304
     border: 1px solid #aaaaaa;
135 305
   }
136
-  .button-hover:hover {
306
+  .btn:hover {
137 307
     color: #e03723;
138 308
     border: 1px solid #e03723;
309
+  } */
310
+
311
+  .home-case {
312
+    padding: 0;
313
+    margin: 0;
314
+    border: none;
315
+  }
316
+  .st4 {
317
+    width: 100%;
318
+
319
+    padding-bottom: 100%;
320
+    background-size: 100% 100% !important;
321
+    position: relative;
322
+
323
+    margin: 0;
324
+  }
325
+  .st4 .casetitle {
326
+    display: none;
327
+  }
328
+
329
+  .st4:hover .casetitle {
330
+    position: absolute;
331
+    width: 100%;
332
+    height: 100%;
333
+    float: left;
334
+    padding: 0 auto;
335
+    background: rgba(0, 0, 0, 0.7);
336
+    align-items: center;
337
+    display: -webkit-flex;
338
+    display: flex;
339
+
340
+    text-align: center;
341
+  }
342
+  .st4:hover .casetitle p {
343
+    text-align: center;
344
+    display: block;
345
+    color: #fff;
346
+    width: 100%;
139 347
   }
140 348
 }
141 349
 </style>

+ 78
- 55
src/views/Dynamic.vue Vedi File

@@ -6,33 +6,33 @@
6 6
       <!-- width="100%" height="300"> -->
7 7
     </div>
8 8
 
9
-    <div class="border-bottom">
9
+    <div class="border-bottom comtype">
10 10
       <div>
11
-        <button type="button" class="btn-link" @click="() => filterCase()" style="color:black;font-size: 24px;padding: 25px">全部动态</button>
12
-        <button v-for="cas in casetype" :key="cas.id" @click="() => filterCase(cas)" type="button" class="btn-link" style="color:black;font-size: 24px;padding: 25px">{{cas.typeName}}</button>
11
+        <button type="button" class="btn1 btn-link" @click="() => filterCase()" style="color:black;font-size: 24px;padding: 25px">全部动态</button>
12
+        <button v-for="cas in casetype" :key="cas.id" @click="() => filterCase(cas)" type="button" class="btn1 btn-link" style="color:black;font-size: 24px;padding: 25px">{{cas.typeName}}</button>
13 13
       </div>
14 14
     </div>
15 15
 
16
-    <div>
17
-      <div class="row">
16
+    <div class="row mobtype border-bottom">
17
+   
18 18
         <div class="col-xs-6">
19
-          <div>选择想看的案例类型:</div>
19
+          <div> <p style="line-height:40px">选择想看的动态类型:</p></div>
20 20
         </div>
21 21
         <div class="col-xs-6">
22
-          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">全部动态</button>
22
+          <el-button class="btn-link mobbtn" @click="drawer = true" type="button" style="margin-left: 16px;">全部动态</el-button>
23 23
         </div>
24
-      </div>
24
+  
25 25
     </div>
26 26
     <el-drawer :visible.sync="drawer" :direction="direction" :before-close="handleClose" :show-close="true" size="80%">
27 27
       <div>
28 28
         <el-row>
29
-          <el-col :span="24" :offset="6">
30
-            <button type="button" class="btn-link" style="color:black;font-size: 24px;">全部案例</button>
29
+          <el-col :span="24">
30
+            <button type="button" class="btn-link" style="color:black;font-size: 24px;">全部动态</button>
31 31
           </el-col>
32
-          <el-col :span="24" :offset="6" v-for="cas in casetype" :key="cas" @click="classification(cas.typeName)">
32
+          <el-col :span="24" v-for="cas in casetype" :key="cas" @click="classification(cas.typeName)">
33 33
             <button type="button" class="btn-link" style="color:black;font-size: 24px">{{cas.typeName}}</button>
34 34
           </el-col>
35
-          <el-col :span="24" :offset="6">
35
+          <el-col :span="24">
36 36
             <button type="button" class="btn btn-default" @click="drawer = flase" style="color:black;font-size: 24px;position:fixed;bottom:100px;">返回</button>
37 37
           </el-col>
38 38
         </el-row>
@@ -47,7 +47,7 @@
47 47
       </div>
48 48
     </div>
49 49
 
50
-    <div>
50
+    <div style="margin-top:40px" >
51 51
       <button type="button" class="btn btn-default" @click="more" v-if="!allLoaded">加载更多</button>
52 52
       <p v-else>已经到底了~更多案例尽请期待~</p>
53 53
     </div>
@@ -69,7 +69,7 @@ export default {
69 69
       cover: {},
70 70
       casetype: [],
71 71
       caselist: [],
72
-      
72
+
73 73
       conditions: {
74 74
         pageNum: 0,
75 75
         pageSize: 8,
@@ -98,14 +98,14 @@ export default {
98 98
     // 分类
99 99
     // axios.get('http://localhost:8080/pc/dynamicType/list')
100 100
     request({
101
-      ...apis.dynamicType.list,
101
+      ...apis.caseType.list,
102 102
     })
103 103
       .then(res => {
104
-        
104
+
105 105
         this.casetype = (res.records || []).filter(x => x.type === 'movement');
106 106
 
107 107
       })
108
-    
108
+
109 109
     this.getCaseList()
110 110
   },
111 111
 
@@ -114,11 +114,11 @@ export default {
114 114
   },
115 115
 
116 116
   methods: {
117
-    getCaseList(filters = {}) {
117
+    getCaseList (filters = {}) {
118 118
       const params = {
119
-            ...this.conditions,
120
-            ...filters
121
-          }
119
+        ...this.conditions,
120
+        ...filters
121
+      }
122 122
 
123 123
       return new Promise((resolve, reject) => {
124 124
         request({
@@ -159,37 +159,51 @@ export default {
159 159
 
160 160
 <style scoped>
161 161
 
162
-
163
-
164
-.dynamic {
165
-  margin-top: 116px;
166
-}
167 162
 .border-bottom {
168 163
   /* display: none; */
164
+  border-bottom: 1px solid #bfbfbf;
165
+      margin-top: 10px !important;
169 166
 }
170
-
171
-.marginTP {
172
-  margin-top: 3rem;
173
-}
174
-
167
+ .btn1 {
168
+    font-size: 24px !important;
169
+    color: black !important;
170
+    border: none !important;
171
+  }
172
+  .btn1:hover {
173
+    color: red !important;
174
+    text-decoration: none;
175
+  }
175 176
 .text-left {
176 177
   color: #000;
177 178
 }
179
+
178 180
 .case-ph {
179
-    bottom: 0;
180
-    width: 100%;
181
+  bottom: 0;
182
+  width: 100%;
181 183
 
182
-    height: 0;
183
-    padding-bottom: 65%;
184
-    background-size: 100% 100% !important;
185
-  }
184
+  height: 0;
185
+  padding-bottom: 65%;
186
+  background-size: 100% 100% !important;
187
+}
186 188
 
187
-  @media (max-width: 992px) {
188
-    .comtype{
189
-      display: none;
190
-    }
191
-    
189
+@media (max-width: 992px) {
190
+  .dynamic{
191
+    margin-top: 58px;
192 192
   }
193
+  .comtype {
194
+    display: none;
195
+    border-bottom: 1px solid #bfbfbf;
196
+  }
197
+  .dyn-main {
198
+    margin-top: 20px;
199
+  }
200
+}
201
+.row {
202
+    margin: 0;
203
+  }
204
+.marginTP {
205
+  margin-top: 3rem;
206
+}
193 207
 
194 208
 @media (min-width: 992px) {
195 209
   .main {
@@ -201,12 +215,17 @@ export default {
201 215
     justify-content: center;
202 216
   }
203 217
   .dynamic {
204
-    background-color: #fafafa;
205
-  }
206
-.mobtype{
207
-  display: none;
218
+  margin-top: 116px;
219
+  margin-bottom: -116px;
220
+  padding-bottom: 116px; 
221
+  background-color: #fafafa;
208 222
 }
209 223
   
224
+  .mobtype {
225
+    display: none;
226
+  }
227
+
228
+  
210 229
   .btn {
211 230
     font-size: 24px;
212 231
     margin-top: 88px;
@@ -220,15 +239,6 @@ export default {
220 239
     color: #e03723;
221 240
     border: 1px solid #e03723;
222 241
   }
223
-  .ph {
224
-    padding: 12px 34px 0 34px;
225
-  }
226
-
227
-  .ph:hover .ph-houver {
228
-    transform: translate3d(0, -20px, 0);
229
-    /* margin-top: -20px; */
230
-    box-shadow: 0 20px 5px #888888;
231
-  }
232 242
 
233 243
   .dyn-main {
234 244
     padding-top: 55px;
@@ -242,4 +252,17 @@ export default {
242 252
     padding: 10px;
243 253
   }
244 254
 }
255
+
256
+
257
+.mobbtn{
258
+color: #e03723;
259
+   
260
+  padding:12px 40px;
261
+
262
+    border-radius: 0px;
263
+
264
+    background-color: rgb(252, 151, 252);
265
+    border: 2px solid #bfbfbf;
266
+  
267
+}
245 268
 </style>

+ 115
- 95
src/views/Home.vue Vedi File

@@ -36,29 +36,16 @@
36 36
       </div>
37 37
     </nav>
38 38
 
39
-    
40
-      <div class="aarow_box animated aarowMove">
41
-        <div class="aarow" @click="arrow()"></div>
42
-      </div>
43
-   
44
-
45
-    <div class="contanier next-page">
46
-      <div class="row">
47
-        <div class="col-md-12 home-wheel">
48
-          <Wheelplanting></Wheelplanting>
49
-        </div>
50
-      </div>
51
-      <!-- <div class="contanier next-page1">
52
-      <div class="row">
53
-        <div class="col-md-12 home-wheel">
54
-          <Wheelplanting1></Wheelplanting1>
55
-        </div>
56
-      </div> -->
57
-
58
-
39
+    <div class="aarow_box animated aarowMove">
40
+      <div class="aarow" @click="arrow()"></div>
41
+    </div>
59 42
 
60
-      <div id="pos" style="margin:116px"></div>
43
+    <div class="home-wheel">
44
+      <Wheelplanting :direction="isMobilePhone ? '' : 'vertical'" style="z-index:60"></Wheelplanting>
45
+    </div>
61 46
 
47
+    <div id="pos" style="margin-top:-110px"></div>
48
+    <div class="contanier" style="margin-top: 110px">
62 49
       <div class="row">
63 50
         <div class="col-md-12" style="padding:0;width: 100%;">
64 51
           <h2>多元化服务 一站式解决客户需求</h2>
@@ -67,8 +54,9 @@
67 54
 
68 55
       <div class="row">
69 56
         <div class="col-md-12" style="padding:0;width: 100%;">
70
-          <p>
71
-            核心团队拥有八年以上营销策划及创业设计经验,团队能力多元化,服务体系立体化。
57
+          <p class="p1">
58
+            核心团队拥有八年以上营销策划及创业设计经验,
59
+            <br v-if="isMobilePhone" />团队能力多元化,服务体系立体化。
72 60
             <br />我们懂得多,您就更省心!
73 61
           </p>
74 62
         </div>
@@ -106,7 +94,6 @@
106 94
             <h4>创意设计</h4>
107 95
             <p class="text-left business-text">
108 96
               平面设计
109
-              <br />平面设计
110 97
               <small>(海报/展架/画册/包装...)</small>
111 98
               <br />数字媒体
112 99
               <small>(H5/短视频/小程序...)</small>
@@ -136,13 +123,13 @@
136 123
     <div class="contanier home-case top-case">
137 124
       <div class="row home-case" style="padding:0;width: 100%;">
138 125
         <div class="col-xs-6 col-md-3 home-case" v-for="(item,index) in caselist" :key="index">
139
-          <a href="/details">
126
+          <router-link :to="{ name: 'details', query: { id: item.id , type: item.type , taCaseTypeId: item.taCaseTypeId}}">
140 127
             <div class="st4" :style="{background: `url(${item.caseCoverImg})`}">
141 128
               <div class="casetitle">
142 129
                 <p>{{item.caseTitle}}</p>
143 130
               </div>
144 131
             </div>
145
-          </a>
132
+          </router-link>
146 133
         </div>
147 134
       </div>
148 135
     </div>
@@ -156,7 +143,7 @@
156 143
         <div class="col-md-12" style="padding:0;width: 100%;">
157 144
           <h1>以品质答谢信任</h1>
158 145
         </div>
159
-        <div class="col-md-12" style="padding:0;width: 100%;">
146
+        <div class="col-md-12" style="padding:0;width: 100%; color:#595757">
160 147
           <p>
161 148
             至始至终将服务放到首位!
162 149
             <br class="br-logotop" />用更好的创意,助力客户创造品牌价值
@@ -184,7 +171,7 @@
184 171
         </div>
185 172
       </div>
186 173
     </div>
187
-    <a class="btn btn-default btn-lg" href="/dynamic" role="button">更多动态</a>
174
+    <a class="btn btn-default btn-lg dynbtn" href="/dynamic" role="button">更多动态</a>
188 175
   </div>
189 176
 </template>
190 177
 
@@ -194,18 +181,21 @@
194 181
 
195 182
 // const times = x => '*'.repeat(x - 1).split('*')
196 183
 
197
-import { scrollIntoView } from 'scroll-js' 
198
-
184
+import { scrollIntoView } from 'scroll-js'
199 185
 import Wheelplanting from "@/components/Wheelplanting.vue";
200 186
 // import Business from "@/components/Business.vue";
201
-// import Wheelplanting1 from "@/components/Wheelplanting1.vue";
187
+
202 188
 import request from '../../utils/request'
203 189
 import apis from '../config/api';
190
+import { isMobilePhone } from '../../utils'
191
+
192
+
204 193
 export default {
205 194
   name: "home",
206 195
   data () {
207 196
     return {
208 197
       scrolled: false,
198
+      isMobilePhone,
209 199
       show: true,
210 200
       data: '',
211 201
       blogs: {},
@@ -216,17 +206,11 @@ export default {
216 206
     };
217 207
   },
218 208
   computed: {
219
-    // rows () {
220
-    //   if (this.blogs && this.blogs.length) {
221
-    //     return times[Math.ceil(this.blogs.length / this.deskCols)]
222
-    //   } else {
223
-    //     return []
224
-    //   }
225
-    // }
209
+
226 210
   },
227 211
   components: {
228 212
     Wheelplanting,
229
-    // Wheelplanting1,
213
+    // Wheelplantings,
230 214
     // Business,
231 215
   },
232 216
   mounted () {
@@ -234,14 +218,17 @@ export default {
234 218
       this.scrolled = (document.documentElement.scrollTop || document.body.scrollTop) > 300
235 219
     })
236 220
 
237
-    
221
+
238 222
   },
239
-  methods:{
240
-      arrow(){
241
-        // document.getElementsByClassName('home')[0].scrollTop=100;
242
-        // document.querySelector('#pos').scrollTo()
243
-        scrollIntoView(document.querySelector('#pos'), document.body, { behavior: 'smooth' })
244
-      }
223
+  watch () {
224
+
225
+  },
226
+  methods: {
227
+    arrow () {
228
+
229
+      scrollIntoView(document.querySelector('#pos'), document.body, { behavior: 'smooth' })
230
+    },
231
+
245 232
   },
246 233
 
247 234
   created () {
@@ -287,12 +274,16 @@ export default {
287 274
 </script>
288 275
 
289 276
 <style scoped>
290
-.home {
291
-}
292 277
 @media (max-width: 992px) {
293 278
   .business-text {
294 279
     display: none;
295 280
   }
281
+  h2 {
282
+    margin-top: 20px;
283
+    font-size: 20px;
284
+    font-weight: bold;
285
+    letter-spacing:1px;
286
+  }
296 287
   h3 {
297 288
     font-size: 2.4rem;
298 289
     padding: 0px;
@@ -303,8 +294,21 @@ export default {
303 294
     color: #fff;
304 295
     margin: 0;
305 296
   }
297
+  .p1 {
298
+    padding-bottom: 10px !important;
299
+  }
300
+  h4 {
301
+    font-size: 1.6rem;
302
+    padding: 5px;
303
+    background-color: red;
304
+    color: #fff;
305
+    margin: 0;
306
+    height: 30px;
307
+    letter-spacing: 6px;
308
+  }
306 309
   .st {
307
-    padding: 0 !important;
310
+    margin-bottom: 30px !important;
311
+    padding: 0 1% !important;
308 312
   }
309 313
   .sw {
310 314
     padding: 2% !important;
@@ -339,14 +343,60 @@ export default {
339 343
     border: none;
340 344
   }
341 345
 
342
-  .home-wheel {
343
-    width: 100%;
344
-    height: 300px;
345
-    padding: 0;
346
-    z-index: 60;
346
+  p {
347
+    padding: 0 0 30px 0;
348
+    font-size: 1.2rem;
349
+    color: #595757;
350
+  }
351
+  .btn {
352
+    font-size: 1.2rem;
353
+    margin-top: 30px;
354
+    width: 140px;
355
+
356
+    border-radius: 0px;
357
+    color: #000;
358
+    background-color: #fff;
359
+    border: 2px solid #aaaaaa;
360
+  }
361
+  h1 {
362
+    margin-top: 30px;
363
+
364
+    font-size: 1.8rem;
365
+    font-weight: bold;
366
+    letter-spacing: 0.3rem;
367
+  }
368
+  .dynbtn {
369
+    margin-top: 0px !important;
347 370
   }
348 371
 }
372
+
349 373
 @media (min-width: 992px) {
374
+  h1 {
375
+    margin: 0;
376
+    padding-top: 85px;
377
+  }
378
+  .btn {
379
+    font-size: 24px;
380
+    margin-top: 41px;
381
+    padding: 12px 50px;
382
+    border-radius: 0px;
383
+    color: #000;
384
+    background-color: #fff;
385
+    border: 2px solid #aaaaaa;
386
+  }
387
+  .btn:hover {
388
+    color: #e03723;
389
+    border: 1px solid #e03723;
390
+  }
391
+
392
+  p {
393
+    padding: 28px 0 50px 0;
394
+    font-size: 2.4rem;
395
+    color: #595757;
396
+  }
397
+  h2 {
398
+    margin-top: 86px;
399
+  }
350 400
   h3 {
351 401
     font-size: 2.4rem;
352 402
     padding: 30px;
@@ -356,6 +406,14 @@ export default {
356 406
     color: #fff;
357 407
     margin: 0;
358 408
   }
409
+  h4 {
410
+    font-size: 2.4rem;
411
+    padding: 10px;
412
+    background-color: red;
413
+    color: #fff;
414
+    margin: 0;
415
+    height: 43px;
416
+  }
359 417
   .sw {
360 418
     padding: 33px;
361 419
   }
@@ -384,9 +442,9 @@ export default {
384 442
     border: none;
385 443
   }
386 444
 
387
- .top-news{
388
-   margin-top: 110px;
389
- }
445
+  .top-news {
446
+    margin-top: 110px;
447
+  }
390 448
 
391 449
   .aarow_box {
392 450
     width: 26px;
@@ -436,12 +494,6 @@ export default {
436 494
   margin: 0;
437 495
 }
438 496
 
439
-.home-wheel {
440
-  width: 100%;
441
-
442
-  padding: 0;
443
-  z-index: 60;
444
-}
445 497
 /* .home-business {
446 498
   widows: 1300px;
447 499
   height: 600px;
@@ -456,38 +508,6 @@ export default {
456 508
   justify-content: center;
457 509
 }
458 510
 
459
-.btn {
460
-  font-size: 24px;
461
-  margin-top: 41px;
462
-  padding: 12px 50px;
463
-  border-radius: 0px;
464
-  color: #000;
465
-  background-color: #fff;
466
-  border: 1px solid #aaaaaa;
467
-}
468
-.btn:hover {
469
-  color: #e03723;
470
-  border: 1px solid #e03723;
471
-}
472
-
473
-h1 {
474
-  margin: 0;
475
-  padding-top: 85px;
476
-}
477
-p {
478
-  padding: 28px 0 50px 0;
479
-  font-size: 2.4rem;
480
-  color: #595757;
481
-}
482
-
483
-h4 {
484
-  font-size: 2.4rem;
485
-  padding: 10px;
486
-  background-color: red;
487
-  color: #fff;
488
-  margin: 0;
489
-  height: 43px;
490
-}
491 511
 .st4 {
492 512
   width: 100%;
493 513
 

+ 2
- 0
utils/index.js Vedi File

@@ -0,0 +1,2 @@
1
+
2
+export const isMobilePhone = document.body.clientWidth < 768