周立森 5 年前
父节点
当前提交
423842396d
共有 5 个文件被更改,包括 122 次插入47 次删除
  1. 20
    9
      src/App.vue
  2. 48
    12
      src/components/Share.vue
  3. 25
    3
      src/views/Contact.vue
  4. 28
    22
      src/views/Details.vue
  5. 1
    1
      src/views/Home.vue

+ 20
- 9
src/App.vue 查看文件

@@ -82,9 +82,9 @@
82 82
     <div class="main">
83 83
       <router-view />
84 84
     </div>
85
-
85
+<div id="hide">
86 86
     <div class="coll">
87
-      <div>
87
+      <div >
88 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;">
89 89
           <img src="./assets/image/联系我们.jpg" alt style="position:fixed;right:0;bottom:306px;margin:0;padding:0;z-index: 3;" />
90 90
         </div>
@@ -105,7 +105,7 @@
105 105
         </a>
106 106
       </div>
107 107
     </div>
108
-
108
+</div>
109 109
     <div class="page-footer" style="background-color:#1b1b1b">
110 110
       <p class="footer-p" style="color:rgb(255,255,255)">© 2019 All rights reserved.</p>
111 111
     </div>
@@ -174,9 +174,20 @@ export default {
174 174
       this.scrolled = (document.documentElement.scrollTop || document.body.scrollTop) > 200
175 175
     })
176 176
 
177
+    window.onscroll=function(){
178
+    var scrollTop = document.documentElement.scrollTop||document.body.scrollTop;
179
+    if(scrollTop!=0)
180
+    {
181
+        document.getElementById("hide").style.display="block";  
182
+        
183
+    }else{document.getElementById("hide").style.display="none";  }
184
+}
185
+
177 186
 
178 187
   }
179 188
 
189
+  
190
+
180 191
 
181 192
 
182 193
 }
@@ -229,10 +240,7 @@ p {
229 240
     padding-left: 10%;
230 241
     padding-right: 10%;
231 242
   }
232
-  /* .a:hover{
233
- text-decoration:underline !important;
234
- border: #000;
235
-} */
243
+  
236 244
   .page-footer {
237 245
     height: 120px;
238 246
   }
@@ -249,6 +257,9 @@ p {
249 257
 .rtl #drawer__title{
250 258
   margin: 0;
251 259
 }
260
+#hide{
261
+  display: none
262
+}
252 263
 @media (max-width: 992px) {
253 264
   .navbar-brand {
254 265
     padding: 0;
@@ -289,7 +300,7 @@ p {
289 300
       #aaa,
290 301
       rgba(255, 255, 255, 0)
291 302
     );
292
-    margin-bottom: 80px;
303
+    margin-bottom: 30px;
293 304
   }
294 305
   .btn1 {
295 306
     font-size: 24px !important;
@@ -330,7 +341,7 @@ p {
330 341
     .nav {
331 342
       font-size: 2.6rem;
332 343
       li {
333
-        margin-left: 40px;
344
+        margin-left: 2vw;
334 345
         a {
335 346
           color: #000;
336 347
 

+ 48
- 12
src/components/Share.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2
-  <div class="social-share" data-initialized="true">
3
-    <a href="#" class="social-share-icon icon-wechat">
2
+  <div class="social-share" data-initialized="true" style="display: contents;">
3
+    <a href="#" class="social-share-icon icon-wechat" >
4 4
       <img src="../assets/image/case2/微信icon.png" class="share" alt />
5 5
     </a>
6 6
     <a href="#" class="social-share-icon icon-weibo">
@@ -18,22 +18,22 @@ export default {
18 18
   data () {
19 19
     return {
20 20
       defautlOpt: {
21
-        url                 : '', // 网址,默认使用 window.location.href
22
-        source              : '', // 来源(QQ空间会用到), 默认读取head标签:<meta name="site" content="http://overtrue" />
23
-        title               : '', // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" />
24
-        origin              : '', // 分享 @ 相关 twitter 账号
25
-        description         : '', // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" />
26
-        image               : '', // 图片, 默认取网页中第一个img标签
27
-        sites               : ['weibo','wechat'], // 启用的站点
21
+        url: '', // 网址,默认使用 window.location.href
22
+        source: '', // 来源(QQ空间会用到), 默认读取head标签:<meta name="site" content="http://overtrue" />
23
+        title: '', // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" />
24
+        origin: '', // 分享 @ 相关 twitter 账号
25
+        description: '', // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" />
26
+        image: '', // 图片, 默认取网页中第一个img标签
27
+        sites: ['weibo', 'wechat'], // 启用的站点
28 28
         // disabled            : ['qzone', 'qq', 'douban', 'google', 'facebook', 'twitter'], // 禁用的站点
29
-        wechatQrcodeTitle   : '微信扫一扫:分享', // 微信二维码提示文字
30
-        wechatQrcodeHelper  : '<p>微信里点“发现”,扫一下</p><p>二维码便可将本文分享至朋友圈。</p>'
29
+        wechatQrcodeTitle: '微信扫一扫:分享', // 微信二维码提示文字
30
+        wechatQrcodeHelper: '<p>微信里点“发现”,扫一下</p><p>二维码便可将本文分享至朋友圈。</p>'
31 31
       }
32 32
     }
33 33
   },
34 34
   watch: {
35 35
     config: {
36
-      handler(nw) {
36
+      handler (nw) {
37 37
         this.initShare(nw || {})
38 38
       },
39 39
       immediate: true,
@@ -60,5 +60,41 @@ export default {
60 60
 </script>
61 61
 
62 62
 <style lang="less" scoped>
63
+@media (min-width: 992px) {
64
+  .social-share .social-share-icon {
65
+    border: none;
66
+    height: 58px;
67
+    width: 58px;
68
+  }
69
+  .social-share {
70
+    a {
71
+      &:before {
72
+        content: none;
73
+      }
74
+      .share {
75
+        width: 58px;
76
+        height: 58px;
77
+      }
78
+    }
79
+  }
80
+}
63 81
 
82
+@media (max-width: 992px) {
83
+ .social-share .social-share-icon {
84
+    border: none;
85
+    height: 26px;
86
+    width: 26px;
87
+  }
88
+  .social-share {
89
+    a {
90
+      &:before {
91
+        content: none;
92
+      }
93
+      .share {
94
+        width: 26px;
95
+        height: 26px;
96
+      }
97
+    }
98
+  }
99
+}
64 100
 </style>

+ 25
- 3
src/views/Contact.vue 查看文件

@@ -32,17 +32,39 @@
32 32
           </a>
33 33
         </div>
34 34
       </div>
35
-      <div class style=" ">
36
-        <p style="padding-top: 70px;font-size: 3.6rem">
35
+      <div class="address" style=" ">
36
+        <p class="p1">
37 37
           <strong>南京福予文化传媒有限公司</strong>
38 38
         </p>
39 39
 
40
-        <p style="font-size: 3rem;padding-top: 14px;">地址:南京市江宁区秣周东路12号悠谷三号楼(砂之船奥特莱斯旁)</p>
40
+        <p class="p2">地址:南京市江宁区秣周东路12号悠谷三号楼(砂之船奥特莱斯旁)</p>
41 41
       </div>
42 42
     </div>
43 43
   </div>
44 44
 </template>
45 45
 
46
+<style lang="less" scoped>
47
+@media (max-width: 992px){
48
+    .address{
49
+    .p1{
50
+      padding-top: 70px;font-size: 2.0rem
51
+    }
52
+    .p2{
53
+font-size: 1.2rem;padding-top: 14px;
54
+    }
55
+  }
56
+}
57
+@media (min-width: 992px){
58
+  .address{
59
+    .p1{
60
+      padding-top: 70px;font-size: 3.6rem
61
+    }
62
+    .p2{
63
+      font-size: 3rem;padding-top: 14px;
64
+    }
65
+  }
66
+}
67
+</style>
46 68
 
47 69
 <style scoped>
48 70
 /* .contact-box {

+ 28
- 22
src/views/Details.vue 查看文件

@@ -7,7 +7,7 @@
7 7
     <div class="contanier st">
8 8
       <h1 style>{{current.caseTitle}}</h1>
9 9
 
10
-      <p style>
10
+      <p >
11 11
         客户:
12 12
         <img :src="current.caseLogoImg" alt />
13 13
         &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所属行业:{{current.caseIndustry}}
@@ -19,21 +19,15 @@
19 19
         <div class="col-xs-6 col-md-6" style="padding 0;">
20 20
           <div class="pull-left" @click="postLike">
21 21
             <span role="button" class="iconfont icon-zan"></span>
22
-            <span>赞 | {{current.likeNum || 0}}</span>
22
+            <span class="zantext">赞 | {{current.likeNum || 0}}</span>
23 23
           </div>
24 24
         </div>
25 25
         <div class="col-xs-6 col-md-6" style="padding 0;">
26
-          <div class="pull-right">
27
-            分享:
28
-            <share :config="shareConfig"/>
29
-       <!-- <wb:share-button addition="number" type="button"></wb:share-button> -->
30
-            <!-- <share :config="config"></share> -->
31
-            <!-- <a class="btn-default" href="#" role="button">
32
-              <img src="../assets/image/case2/微信icon.png" class="share" alt />
33
-            </a>-->
34
-            <!-- <a class="btn-default" href="#" role="button">
35
-              <img src="../assets/image/case2/微博icon.png" class="share" alt />
36
-            </a> -->
26
+          <div class="pull-right" >
27
+            
28
+            <div style=" display: flex;"><span class="sharetext" >分享:</span><share :config="shareConfig"/></div> <div></div>
29
+  
30
+  
37 31
           </div>
38 32
         </div>
39 33
       </div>
@@ -206,6 +200,7 @@ export default {
206 200
     }
207 201
   }
208 202
   .pull-right {
203
+    display: flex;
209 204
     font-size: 3.6rem;
210 205
   }
211 206
   .head {
@@ -259,10 +254,10 @@ export default {
259 254
   .next-prev {
260 255
     width: 80%;
261 256
     border-bottom: 1px solid #aaa;
262
-    .case2 {
263
-      .case3 {
264
-      }
265
-    }
257
+    // .case2 {
258
+    //   .case3 {
259
+    //   }
260
+    // }
266 261
   }
267 262
   h2 {
268 263
     margin-top: 64px;
@@ -297,6 +292,14 @@ export default {
297 292
     }
298 293
   }
299 294
   .pull-right {
295
+    display: flex;
296
+  }
297
+  .zantext{
298
+    // margin-top: -3px;
299
+    margin-left: 10px;
300
+  }
301
+  .sharetext{
302
+display:inline-block;line-height:42px
300 303
   }
301 304
   .st {
302 305
     h1 {
@@ -327,17 +330,20 @@ export default {
327 330
     border-bottom: 1px solid #aaa;
328 331
     .case2 {
329 332
       margin: 0 !important;
330
-      .case3 {
331
-      }
333
+      // .case3 {
334
+      // }
332 335
     }
333 336
   }
334 337
   h2 {
335 338
     font-size: 2rem;
336 339
   }
337 340
 
338
-  .share {
339
-    width: 10vw;
340
-  }
341
+  // .share {
342
+  //   width: 10vw;
343
+  // }
344
+  // share{
345
+  //   // margin: -20px;
346
+  // }
341 347
   .home-case {
342 348
     padding: 0;
343 349
   }

+ 1
- 1
src/views/Home.vue 查看文件

@@ -591,7 +591,7 @@ export default {
591 591
     .nav {
592 592
       font-size: 2.6rem;
593 593
       li {
594
-        margin-left: 40px;
594
+        margin-left: 2.1vw;
595 595
         a {
596 596
           color: #fff;
597 597