周立森 5 years ago
parent
commit
73a496172a

+ 3
- 1
src/App.vue View File

28
       </div>
28
       </div>
29
     </div>
29
     </div>
30
     <div class="page-footer" style="background-color:#1b1b1b">
30
     <div class="page-footer" style="background-color:#1b1b1b">
31
-      <p class="footer-p" style="color:rgb(255,255,255)">Copyright © 2019 FOYO All rights reserved.</p>
31
+      <p class="footer-p" style="color:rgb(255,255,255)">Copyright © 2020 FOYO All rights reserved. 苏ICP备19049305号-1</p>
32
     </div>
32
     </div>
33
   </div>
33
   </div>
34
 </template>
34
 </template>
36
 
36
 
37
 <script>
37
 <script>
38
 import ClickContact from "@/components/ClickContact.vue";
38
 import ClickContact from "@/components/ClickContact.vue";
39
+import { isMobilePhone } from '../utils'
39
 
40
 
40
 export default {
41
 export default {
41
   data () {
42
   data () {
46
       key: 1,
47
       key: 1,
47
       navdrawer: false,
48
       navdrawer: false,
48
       direction: 'rtl',
49
       direction: 'rtl',
50
+      isMobilePhone
49
     }
51
     }
50
   },
52
   },
51
 
53
 

+ 5
- 3
src/components/Business.vue View File

1
 <template>
1
 <template>
2
   <div class="business">
2
   <div class="business">
3
-    <div v-if="show" class="st">
3
+    <div v-if="show && !isMobilePhone" class="st">
4
       <div class="swiper-father">
4
       <div class="swiper-father">
5
         <div class="swiper-container swiper-list" style="width: 100%">
5
         <div class="swiper-container swiper-list" style="width: 100%">
6
           <div class="swiper-wrapper">
6
           <div class="swiper-wrapper">
20
       </div>
20
       </div>
21
     </div>
21
     </div>
22
 
22
 
23
-    <div v-if="!show" class="row st">
23
+    <div v-else class="row st">
24
       <div class="col-xs-6 col-md-3 sw" v-for="(item,index) in service" :key="index">
24
       <div class="col-xs-6 col-md-3 sw" v-for="(item,index) in service" :key="index">
25
         <img :src="item.serviceImageUrl" width="100%" height="100%" alt="..." />
25
         <img :src="item.serviceImageUrl" width="100%" height="100%" alt="..." />
26
         <div class>
26
         <div class>
37
 import "swiper/dist/css/swiper.min.css";
37
 import "swiper/dist/css/swiper.min.css";
38
 import request from '../../utils/request'
38
 import request from '../../utils/request'
39
 import apis from '../config/api';
39
 import apis from '../config/api';
40
+import { isMobilePhone } from '../../utils'
40
 
41
 
41
 export default {
42
 export default {
42
   name: "business",
43
   name: "business",
43
   data () {
44
   data () {
44
     return {
45
     return {
45
       show: false,
46
       show: false,
46
-      service: []
47
+      service: [],
48
+      isMobilePhone
47
     };
49
     };
48
   },
50
   },
49
   components: {},
51
   components: {},

+ 12
- 11
src/components/CaseCard.vue View File

46
         margin: 0;
46
         margin: 0;
47
         padding: 0;
47
         padding: 0;
48
         font-weight: 400;
48
         font-weight: 400;
49
-        font-size: 3rem;
49
+        
50
+        font-size: 2.4rem;
50
         color: #000;
51
         color: #000;
51
         line-height: 1.2em;
52
         line-height: 1.2em;
52
       }
53
       }
53
       text-decoration: none !important;
54
       text-decoration: none !important;
54
       .caption {
55
       .caption {
55
         font-size: 2rem;
56
         font-size: 2rem;
56
-        color: #727171;
57
+        color: #595757;
57
 
58
 
58
         line-height: 1.2em;
59
         line-height: 1.2em;
59
         margin-top: 6px;
60
         margin-top: 6px;
87
     .body {
88
     .body {
88
       padding: 0.3rem 1rem;
89
       padding: 0.3rem 1rem;
89
       text-align: left;
90
       text-align: left;
90
-height: 7.9vw;
91
+// height: 7.9vw;
91
       h3 {
92
       h3 {
92
         margin: 0;
93
         margin: 0;
93
         padding: 0;
94
         padding: 0;
94
         font-weight: 400;
95
         font-weight: 400;
95
-        font-size: 2.7vw;
96
+        font-size: 13px;
96
         color: #000;
97
         color: #000;
97
-        line-height: 4.2vw;
98
+        line-height: 17px;
98
       }
99
       }
99
 
100
 
100
       .caption {
101
       .caption {
101
-        font-size: 1.9vw;
102
-        color: #727171;
103
-        line-height: 2.7vw;
102
+        font-size: 10px;
103
+        color: #595757;
104
+        line-height: 13px;
104
       }
105
       }
105
     }
106
     }
106
   }
107
   }
115
         margin: 0;
116
         margin: 0;
116
         padding: 0;
117
         padding: 0;
117
 
118
 
118
-        font-size: 2.1rem;
119
+        font-size: 20px;
119
 
120
 
120
         line-height: 0.84em;
121
         line-height: 0.84em;
121
       }
122
       }
122
       text-decoration: none !important;
123
       text-decoration: none !important;
123
       .caption {
124
       .caption {
124
-        font-size: 1.4rem;
125
+        font-size: 1.7rem;
125
 
126
 
126
         line-height: 0.84em;
127
         line-height: 0.84em;
127
-        margin-top: 4.2px;
128
+        margin-top: 10px;
128
       }
129
       }
129
     }
130
     }
130
   }
131
   }

+ 1
- 1
src/components/ClickContact.vue View File

57
   }
57
   }
58
   h1{
58
   h1{
59
     font-size: 2.4rem;
59
     font-size: 2.4rem;
60
-    margin-bottom: 40px;
60
+    margin-bottom: 80px;
61
   }
61
   }
62
 
62
 
63
   .contact-1 .contact-main {
63
   .contact-1 .contact-main {

+ 16
- 3
src/components/Navbars.vue View File

67
           </div>
67
           </div>
68
         </el-row>
68
         </el-row>
69
         <el-col :span="24" class="a">
69
         <el-col :span="24" class="a">
70
-          <button type="button" class="btn rebtn" @click="navdrawer = flase" style="color:black;font-size: 24px;">继续浏览</button>
70
+          <button type="button" class="btn rebtn" @click="navdrawer = false" style="color:black;font-size: 24px;">继续浏览</button>
71
         </el-col>
71
         </el-col>
72
       </div>
72
       </div>
73
     </el-drawer>
73
     </el-drawer>
90
     }
90
     }
91
   },
91
   },
92
   mounted () {
92
   mounted () {
93
-    this.routepath = this.$route.path;
94
-    // console.log(this.routepath);
93
+    const routepath = this.$route.path;
94
+    // /e/.test("The best things in life are free!")
95
+    if(/case/.test(routepath)){
96
+      this.routepath = '/case';
97
+      // console.log(this.routepath);
98
+    }else if(/share/.test(routepath)){
99
+     
100
+      this.routepath = '/Share';
101
+      // console.log(this.routepath);
102
+    
103
+    }else{
104
+      this.routepath = routepath;
105
+      // console.log(this.routepath);
106
+    }
107
+    
95
   },
108
   },
96
 
109
 
97
 
110
 

+ 1
- 1
src/components/Wheelplanting.vue View File

4
       <div class="swiper-wrapper">
4
       <div class="swiper-wrapper">
5
         <div class="swiper-slide" v-for="(url,index) in blogs" :key="index+'url'">
5
         <div class="swiper-slide" v-for="(url,index) in blogs" :key="index+'url'">
6
           <div class="size">
6
           <div class="size">
7
-            <router-link :to="{ name: 'details', params: { id: url.link }}" v-if="url.link" class="routelink">
7
+            <router-link :to="{ name: 'details', params: { type: url.type=='movement'?'share':'case', id: url.link }}" v-if="url.link" class="routelink">
8
            <img class="imgrul" :src="url.imageUrl" style="object-fit: cover" />
8
            <img class="imgrul" :src="url.imageUrl" style="object-fit: cover" />
9
           </router-link>
9
           </router-link>
10
             <img v-else class="imgrul" :src="url.imageUrl" style="object-fit: cover"/>
10
             <img v-else class="imgrul" :src="url.imageUrl" style="object-fit: cover"/>

+ 1
- 1
src/router.js View File

45
       component: () => import(/* webpackChunkName: "Contact" */ './views/Contact.vue')
45
       component: () => import(/* webpackChunkName: "Contact" */ './views/Contact.vue')
46
     },
46
     },
47
     {
47
     {
48
-      path: '/details/:id',
48
+      path: '/:type/details/:id',
49
       name: 'details',
49
       name: 'details',
50
       // route level code-splitting
50
       // route level code-splitting
51
       // this generates a separate chunk (about.[hash].js) for this route
51
       // this generates a separate chunk (about.[hash].js) for this route

+ 2
- 2
src/views/About.vue View File

10
         <div class>
10
         <div class>
11
           <div class="sssss">
11
           <div class="sssss">
12
             <p class="text-left">
12
             <p class="text-left">
13
-              南京福予文化传媒有限公司成立于2018年6月,是一家崇尚服务与品质的广告创意公司,拥有多元化的团队体系及全案服务能力。从品牌策略到营销策划、广告创意、设计成型、落地执行、一站式解决客户所需。
13
+              南京福予文化传媒有限公司成立于2018年,是一家以服务与品质为本的广告创意公司,拥有多元化的团队体系及全案服务能力。从品牌策略到营销策划,从广告创意到落地执行,一站式解决客户所需。
14
             </p>
14
             </p>
15
             <br />
15
             <br />
16
             <div class>
16
             <div class>
111
                 职业广告人;
111
                 职业广告人;
112
                 <br />丰富的产品推广及活动策划经验;
112
                 <br />丰富的产品推广及活动策划经验;
113
                 <br />江苏省省级政府项目主策划;
113
                 <br />江苏省省级政府项目主策划;
114
-                <br />带领团队服务于华为,渣打(中国总部),德勤(中国)等重要项目。
114
+                <br />带领团队服务于华为、渣打(中国总部)、德勤(中国)等重要项目。
115
               </p>
115
               </p>
116
             </div>
116
             </div>
117
           </div>
117
           </div>

+ 20
- 21
src/views/Case.vue View File

3
     <Navbars></Navbars>
3
     <Navbars></Navbars>
4
     <div class="top"></div>
4
     <div class="top"></div>
5
     <div>
5
     <div>
6
-      <img class="coverimg" :style="{background: `url(${cover.coverImg})`}" />
6
+      <img class="coverimg" :src="cover.coverImg"  />
7
       <!-- width="100%" height="300"> -->
7
       <!-- width="100%" height="300"> -->
8
     </div>
8
     </div>
9
 
9
 
21
         </div>
21
         </div>
22
       </div>
22
       </div>
23
       <div class="col-xs-6">
23
       <div class="col-xs-6">
24
-        <el-button class="btn-link mobbtn" @click="drawer = true" type="button" style="margin-left: 16px;width:140px;padding-left:0;padding-right:0;font-weight:bold">{{currentTypeName}}</el-button>
24
+        <el-button class="btn-link mobbtn" @click="drawer = true" type="button" style="z-index: 50; margin-left: 16px;width:140px;padding-left:0;padding-right:0;font-weight:bold">{{currentTypeName}}</el-button>
25
       </div>
25
       </div>
26
     </div>
26
     </div>
27
 
27
 
32
             <button type="button" @click="() => filterCase()" class="btn-link" style="color:black;font-size: 24px;" :class="{btnactive:thisbtn==''}">全部案例</button>
32
             <button type="button" @click="() => filterCase()" class="btn-link" style="color:black;font-size: 24px;" :class="{btnactive:thisbtn==''}">全部案例</button>
33
           </el-col>-->
33
           </el-col>-->
34
           <el-col :span="24">
34
           <el-col :span="24">
35
-            <van-picker class="values" :columns="columns" @cancel="drawer = false"  @confirm="onConfirm" @change="onChange"  />
35
+            <van-picker class="values" :columns="columns" @cancel="drawer = false" @confirm="onConfirm" @change="onChange" />
36
           </el-col>
36
           </el-col>
37
           <!-- <el-col :span="24" v-for="cas in casetype" :key="cas.id"> value-key=''
37
           <!-- <el-col :span="24" v-for="cas in casetype" :key="cas.id"> value-key=''
38
          
38
          
46
     <div class="contanier center-block dyn-main">
46
     <div class="contanier center-block dyn-main">
47
       <div class="row">
47
       <div class="row">
48
         <div class="col-md-6 col-xs-6 cards" v-for="(item,index) in caselist" :key="index" :class="{ marginTP: index > 1 }">
48
         <div class="col-md-6 col-xs-6 cards" v-for="(item,index) in caselist" :key="index" :class="{ marginTP: index > 1 }">
49
-          <router-link :to="{ name: 'details', params: { id: item.id }}" class="routelink">
50
-            <case-card :thumb="item.caseCoverImg" :title="item.caseTitle" :caption="item.caseSummary" class="casecard"></case-card>
49
+          <router-link :to="{ name: 'details', params: { type: 'case', id: item.id }}" class="routelink">
50
+            <case-card :thumb="(item.listImg||item.caseCoverImg)" :title="item.caseTitle" :caption="item.caseSummary" class="casecard"></case-card>
51
           </router-link>
51
           </router-link>
52
         </div>
52
         </div>
53
       </div>
53
       </div>
128
     // axios.get('http://localhost:8080/pc/caseType/list')
128
     // axios.get('http://localhost:8080/pc/caseType/list')
129
     request({
129
     request({
130
       ...apis.caseType.list,
130
       ...apis.caseType.list,
131
+      params: { pageNum: 1, pageSize: 999 }
131
     })
132
     })
132
       .then(res => {
133
       .then(res => {
133
-         this.casetype = (res.records || []).filter(x => x.type === 'case');
134
+        this.casetype = (res.records || []).filter(x => x.type === 'case');
134
         // console.log(res.records || []).filter(x => x.type === 'case')
135
         // console.log(res.records || []).filter(x => x.type === 'case')
135
         let type = (res.records || []).filter(x => x.type === 'case');
136
         let type = (res.records || []).filter(x => x.type === 'case');
136
 
137
 
137
         type.map((row, index) => {
138
         type.map((row, index) => {
138
           this.columns[index + 1] = row.typeName
139
           this.columns[index + 1] = row.typeName
139
           this.indexs[index] = row.id
140
           this.indexs[index] = row.id
140
-        
141
+
141
         });
142
         });
142
 
143
 
143
         //      return data.map((row, inx) => {
144
         //      return data.map((row, inx) => {
170
     //         console.log(res)
171
     //         console.log(res)
171
     //       },
172
     //       },
172
     onChange (picker, value, index) {
173
     onChange (picker, value, index) {
173
-      console.log(picker);
174
+     
174
       this.value = value
175
       this.value = value
175
       this.index = index
176
       this.index = index
176
-      console.log(`当前值:${value}, 当前索引:${index}`);
177
+
177
     },
178
     },
178
 
179
 
179
     onConfirm (value, index) {
180
     onConfirm (value, index) {
219
 
220
 
220
       if (this.value) {
221
       if (this.value) {
221
 
222
 
222
-        console.log(this.value, this.indexs, '111111111')
223
-
224
-this.currentTypeName = this.value
223
+        this.currentTypeName = this.value
225
 
224
 
226
-        this.getCaseList({ pageNum: 1, caseType: this.value=='全部案例' ? '': this.indexs[this.index-1] })
225
+        this.getCaseList({ pageNum: 1, caseType: this.value == '全部案例' ? '' : this.indexs[this.index - 1] })
227
         this.currentTypeName = this.value
226
         this.currentTypeName = this.value
228
-        
227
+
229
         this.drawer = false;
228
         this.drawer = false;
230
 
229
 
231
       } else {
230
       } else {
232
-        console.log(caseType)
231
+      
233
         this.currentTypeName = caseType ? caseType.typeName : '全部案例'
232
         this.currentTypeName = caseType ? caseType.typeName : '全部案例'
234
 
233
 
235
         this.getCaseList({ pageNum: 1, caseType: caseType ? caseType.id : '' })
234
         this.getCaseList({ pageNum: 1, caseType: caseType ? caseType.id : '' })
401
   }
400
   }
402
 }
401
 }
403
 .coverimg {
402
 .coverimg {
404
-  width: 100%;
405
-  /* padding-bottom: 37px; */
406
-  /* height: 100%; */
403
+  width: 100vw;
407
 
404
 
408
-  height: 0;
409
-  padding-bottom: 40.3%;
410
-  background-size: 100% 100% !important;
405
+
406
+  height: 35.8vw;
407
+  z-index: 99;
408
+  /* padding-bottom: 35.8%;
409
+  background-size: 100% 100% !important; */
411
 }
410
 }
412
 .btn-link {
411
 .btn-link {
413
   outline: none;
412
   outline: none;

+ 100
- 15
src/views/Details.vue View File

8
 
8
 
9
     <div class="contanier st">
9
     <div class="contanier st">
10
       <h1 style>{{current.caseTitle}}</h1>
10
       <h1 style>{{current.caseTitle}}</h1>
11
-      <div v-if="type=='分享'" class="row p1">
11
+      <div v-if="type=='分享'" class="row p1 ">
12
         <div class="movment col-xs-12 col-md-6">分享时间:{{date}}</div>
12
         <div class="movment col-xs-12 col-md-6">分享时间:{{date}}</div>
13
         <!-- <br v-if="isMobilePhone" /> -->
13
         <!-- <br v-if="isMobilePhone" /> -->
14
         <div class="movment col-xs-12 col-md-6">
14
         <div class="movment col-xs-12 col-md-6">
15
-          <div v-if="current.islink==0" class="">来源:{{current.linkName}}</div>
16
-          <a v-if="current.islink==1" :href="current.caseLink" target="view_window" style="color:#3e3a39">来源:{{current.linkName}}</a>
15
+          <div v-if="!current.caseLink" class>来源:{{current.linkName}}</div>
16
+          <a v-if="current.caseLink" :href="current.caseLink" target="view_window" style="color:#3e3a39">来源:{{current.linkName}}</a>
17
         </div>
17
         </div>
18
       </div>
18
       </div>
19
       <div v-else class="row p1">
19
       <div v-else class="row p1">
24
         <p class="col-xs-6 col-md-6 p2">所属行业:{{current.caseIndustry}}</p>
24
         <p class="col-xs-6 col-md-6 p2">所属行业:{{current.caseIndustry}}</p>
25
       </div>
25
       </div>
26
 
26
 
27
-      <div class="border-top" v-html="current.content"></div>
27
+      <div class="border-top htmlImg" v-html="content">
28
+
29
+      </div>
28
 
30
 
29
       <div class="row zan-share" style="margin-left :0; margin-right:0">
31
       <div class="row zan-share" style="margin-left :0; margin-right:0">
30
         <div class="col-xs-6 col-md-6" style="padding 0;">
32
         <div class="col-xs-6 col-md-6" style="padding 0;">
105
       detail: {},
107
       detail: {},
106
       activeColor: '#000',
108
       activeColor: '#000',
107
       isMobilePhone,
109
       isMobilePhone,
108
-      date: moment().format('YYYY年MM月DD日 h:mm')
110
+      date: moment().format('YYYY年MM月DD日 h:mm'),
111
+      content: ''
109
     }
112
     }
110
   },
113
   },
111
   components: {
114
   components: {
169
         ...apis.case.get,
172
         ...apis.case.get,
170
         urlData: { id },
173
         urlData: { id },
171
       }).then(res => {
174
       }).then(res => {
175
+
176
+        // ../uploadimage/
177
+        
172
         this.detail = res || {}
178
         this.detail = res || {}
179
+        
180
+        let content = res.current.content.replace(/\.\.\/uploadimage/g, '/uploadimage')
173
 
181
 
182
+        this.content = content
174
         this.type = this.detail.current.type == 'case' ? '案例' : '分享'
183
         this.type = this.detail.current.type == 'case' ? '案例' : '分享'
175
         // console.log(this.detail.current, '1234')
184
         // console.log(this.detail.current, '1234')
176
-        console.log(this.detail, '1234')
185
+      
177
         this.url = window.location.href
186
         this.url = window.location.href
178
         this.activeColor = '#000'
187
         this.activeColor = '#000'
179
       })
188
       })
232
     margin-bottom: 0px;
241
     margin-bottom: 0px;
233
     text-align: left;
242
     text-align: left;
234
     padding-left: 15px;
243
     padding-left: 15px;
244
+    margin:0
235
   }
245
   }
236
   .p2 {
246
   .p2 {
237
     line-height: 30px;
247
     line-height: 30px;
343
   h2 {
353
   h2 {
344
     margin-top: 64px;
354
     margin-top: 64px;
345
     margin-bottom: 30px;
355
     margin-bottom: 30px;
346
-    font-size: 2.4rem
356
+    font-size: 2.4rem;
347
   }
357
   }
348
   .st5 {
358
   .st5 {
349
     width: 80%;
359
     width: 80%;
415
       padding-top: 20px;
425
       padding-top: 20px;
416
       margin-top: 2px;
426
       margin-top: 2px;
417
       border-top: 1px solid #aaa;
427
       border-top: 1px solid #aaa;
428
+      // width: 90%;
418
     }
429
     }
419
     .zan-share {
430
     .zan-share {
420
       margin-top: 30px;
431
       margin-top: 30px;
547
   }
558
   }
548
   .p2 {
559
   .p2 {
549
     line-height: 55px;
560
     line-height: 55px;
550
-    font-size: 2.4rem
561
+    font-size: 2.4rem;
551
   }
562
   }
552
 }
563
 }
553
 </style>
564
 </style>
564
   //     font-size: 3rem;
575
   //     font-size: 3rem;
565
   //     line-height: 3.4rem;
576
   //     line-height: 3.4rem;
566
   //   }
577
   //   }
567
-   .movment {
578
+  .movment {
568
     font-size: 1.7rem;
579
     font-size: 1.7rem;
569
-  
570
   }
580
   }
571
   .st h1 {
581
   .st h1 {
572
     font-size: 3rem;
582
     font-size: 3rem;
585
     }
595
     }
586
   }
596
   }
587
 
597
 
588
-  .btn1{
598
+  .btn1 {
589
     font-size: 1.7rem !important;
599
     font-size: 1.7rem !important;
590
   }
600
   }
591
 
601
 
592
   .pull-right {
602
   .pull-right {
593
     font-size: 1.7rem;
603
     font-size: 1.7rem;
594
   }
604
   }
595
- 
596
 }
605
 }
597
-@media (min-width: 1550px){
598
-  .sharetext{
606
+@media (min-width: 992px) and (max-width: 1550px) {
607
+  .sharetext {
599
     font-size: 2.4rem;
608
     font-size: 2.4rem;
600
-    line-height:5.8rem;
609
+    line-height: 5.8rem;
601
   }
610
   }
602
 }
611
 }
603
 a {
612
 a {
604
   color: #000;
613
   color: #000;
605
 }
614
 }
615
+</style>
616
+
617
+<style lang="less">
618
+.htmlImg img {
619
+  max-width: 100%;
620
+  min-width: 100px;
621
+  height: auto;
622
+  margin: 0 auto;
623
+  display: block;
624
+}
625
+.htmlImg iframe {
626
+  max-width: 100%;
627
+  min-width: 100px;
628
+  width: 100%;
629
+ width: 1920px;
630
+   height: 1080px;
631
+  margin: 0 auto;
632
+  display: block;
633
+}
634
+.htmlImg video {
635
+  max-width: 100%;
636
+  min-width: 100px;
637
+  height: auto;
638
+  margin: 0 auto;
639
+  display: block;
640
+}
641
+@media (min-width: 1550px) and (max-width: 1980px) {
642
+  .htmlImg iframe {
643
+   width: 1280px;
644
+   height: 720px;
645
+  }
646
+  .htmlImg video {
647
+   width: 1280px;
648
+   height: 720px;
649
+  }
650
+}
651
+@media (min-width: 992px) and (max-width: 1550px) {
652
+  .htmlImg iframe {
653
+   width: 900px;
654
+  height: 550px;
655
+  }
656
+  .htmlImg video {
657
+    width: 900px;
658
+   height: 550px;
659
+  }
660
+}
661
+@media (max-width: 992px) {
662
+  .htmlImg img {
663
+    background-size: contain !important;
664
+
665
+    height: auto;
666
+    margin: 0 auto;
667
+    display: block;
668
+    width: 90%;
669
+  }
670
+  .htmlImg iframe {
671
+    max-width: 100% !important;
672
+    min-width: 100px !important;
673
+    min-height: 170px !important;
674
+    height: 170px;
675
+    margin: 0 auto;
676
+    display: block;
677
+    width: 90%;
678
+  }
679
+
680
+  .htmlImg video {
681
+    background-size: contain !important;
682
+    max-width: 100% !important;
683
+    min-width: 100px !important;
684
+min-height: 170px !important;
685
+    height: 170px;
686
+    margin: 0 auto;
687
+    display: block;
688
+    width: 90%;
689
+  }
690
+}
606
 </style>
691
 </style>

+ 14
- 14
src/views/Dynamic.vue View File

3
     <div class="top"></div>
3
     <div class="top"></div>
4
     <Navbars></Navbars>
4
     <Navbars></Navbars>
5
     <div>
5
     <div>
6
-      <img class="coverimg" :style="{background: `url(${cover.coverImg})`}" />
6
+      <img class="coverimg" :src="cover.coverImg"  />
7
       <!-- width="100%" height="300"> -->
7
       <!-- width="100%" height="300"> -->
8
     </div>
8
     </div>
9
 
9
 
21
         </div>
21
         </div>
22
       </div>
22
       </div>
23
       <div class="col-xs-6">
23
       <div class="col-xs-6">
24
-        <el-button class="btn-link mobbtn" @click="drawer = true" type="button" style="margin-left: 16px;;width:140px;padding-left:0;padding-right:0;font-weight:bold">{{currentTypeName}}</el-button>
24
+        <el-button class="btn-link mobbtn" @click="drawer = true" type="button" style=" z-index: 50;margin-left: 16px;;width:140px;padding-left:0;padding-right:0;font-weight:bold">{{currentTypeName}}</el-button>
25
       </div>
25
       </div>
26
     </div>
26
     </div>
27
     <el-drawer :visible.sync="drawer" :direction="direction" :show-close="true" size="80%" style="text-align: center;">
27
     <el-drawer :visible.sync="drawer" :direction="direction" :show-close="true" size="80%" style="text-align: center;">
34
             <van-picker class="values" :columns="columns" @cancel="drawer = false" @confirm="onConfirm" @change="onChange" />
34
             <van-picker class="values" :columns="columns" @cancel="drawer = false" @confirm="onConfirm" @change="onChange" />
35
           </el-col>
35
           </el-col>
36
         </el-row>
36
         </el-row>
37
-        <button type="button" class="btn rebtn" @click="drawer = flase" style="text-align:center;color:black">确定</button>
37
+        <button type="button" class="btn rebtn" @click="() => filterCase()"  style="text-align:center;color:black">确定</button>
38
       </div>
38
       </div>
39
     </el-drawer>
39
     </el-drawer>
40
 
40
 
41
     <div class="contanier center-block dyn-main">
41
     <div class="contanier center-block dyn-main">
42
       <div class="row">
42
       <div class="row">
43
         <div class="col-md-6 col-xs-6 cards" v-for="(item,index) in caselist" :key="index" :class="{ marginTP: index > 1 }">
43
         <div class="col-md-6 col-xs-6 cards" v-for="(item,index) in caselist" :key="index" :class="{ marginTP: index > 1 }">
44
-          <router-link :to="{ name: 'details', params: { id: item.id }}" class="routelink">
45
-            <case-card :thumb="item.caseCoverImg" :title="item.caseTitle" :caption="item.caseSummary" class="casecard"></case-card>
44
+          <router-link :to="{ name: 'details', params: { type:'share', id: item.id }}" class="routelink">
45
+            <case-card :thumb="item.listImg||item.caseCoverImg" :title="item.caseTitle" :caption="item.caseSummary" class="casecard"></case-card>
46
           </router-link>
46
           </router-link>
47
         </div>
47
         </div>
48
       </div>
48
       </div>
109
     })
109
     })
110
     request({
110
     request({
111
       ...apis.caseType.list,
111
       ...apis.caseType.list,
112
+      params: { pageNum: 1, pageSize: 999 }
112
     })
113
     })
113
       .then(res => {
114
       .then(res => {
114
         this.casetype = (res.records || []).filter(x => x.type === 'movement');
115
         this.casetype = (res.records || []).filter(x => x.type === 'movement');
125
   },
126
   },
126
   methods: {
127
   methods: {
127
     onChange (picker, value, index) {
128
     onChange (picker, value, index) {
128
-      console.log(picker);
129
+  
129
       this.value = value
130
       this.value = value
130
       this.index = index
131
       this.index = index
131
-      console.log(`当前值:${value}, 当前索引:${index}`);
132
+      
132
     },
133
     },
133
 
134
 
134
     onConfirm (value, index) {
135
     onConfirm (value, index) {
169
 
170
 
170
       if (this.value) {
171
       if (this.value) {
171
 
172
 
172
-        console.log(this.value, this.indexs, '111111111')
173
 
173
 
174
         this.currentTypeName = this.value
174
         this.currentTypeName = this.value
175
 
175
 
346
   }
346
   }
347
 }
347
 }
348
 .coverimg {
348
 .coverimg {
349
-  width: 100%;
350
-  /* padding-bottom: 37px; */
351
-  /* height: 100%; */
349
+  width: 100vw;
350
+ 
352
 
351
 
353
-  height: 0;
354
-  padding-bottom: 40.3%;
355
-  background-size: 100% 100% !important;
352
+  height:35.8vw;
353
+  z-index: 90;
354
+  /* padding-bottom: 35.8%;
355
+  background-size: 100% 100% !important; */
356
 }
356
 }
357
 .btn-link {
357
 .btn-link {
358
   outline: none;
358
   outline: none;

+ 5
- 9
src/views/Home.vue View File

52
       <div class="row">
52
       <div class="row">
53
         <div class="col-md-12" style="padding:0;width: 100%;">
53
         <div class="col-md-12" style="padding:0;width: 100%;">
54
           <p class="p1">
54
           <p class="p1">
55
-            核心团队拥有八年以上营销策划及创业设计经验,
55
+            核心团队拥有十五年以上营销策划及创意设计经验,
56
             <br v-if="isMobilePhone" />团队能力多元化,服务体系立体化。
56
             <br v-if="isMobilePhone" />团队能力多元化,服务体系立体化。
57
             <br />我们懂得多,您就更省心!
57
             <br />我们懂得多,您就更省心!
58
           </p>
58
           </p>
65
     <div class="contanier home-case top-case">
65
     <div class="contanier home-case top-case">
66
       <div class="row home-case" style="padding:0;width: 100%;">
66
       <div class="row home-case" style="padding:0;width: 100%;">
67
         <div class="col-xs-6 col-md-3 home-case" v-for="(item,index) in caselist" :key="index">
67
         <div class="col-xs-6 col-md-3 home-case" v-for="(item,index) in caselist" :key="index">
68
-          <router-link :to="{ name: 'details', params: { id: item.id }}">
68
+          <router-link :to="{ name: 'details', params: { type:'case',id: item.id }}">
69
             <div class="st4" :style="{background: `url(${item.caseCoverImg})`}">
69
             <div class="st4" :style="{background: `url(${item.caseCoverImg})`}">
70
               <div class="casetitle">
70
               <div class="casetitle">
71
                 <div style="width: 100%">
71
                 <div style="width: 100%">
106
         <div class="contanier st top-news">
106
         <div class="contanier st top-news">
107
           <div class="row">
107
           <div class="row">
108
             <div class="col-xs-6 col-md-6 home-news-hover home-news" v-for="(item,index) in dynamiclist" :key="index">
108
             <div class="col-xs-6 col-md-6 home-news-hover home-news" v-for="(item,index) in dynamiclist" :key="index">
109
-              <router-link :to="{ name: 'details', params: { id: item.id }}" class="routelink">
109
+              <router-link :to="{ name: 'details', params: {type:'share', id: item.id }}" class="routelink">
110
                 <div :style="{background: `url(${item.caseCoverImg})`}" class="home-dynamic">
110
                 <div :style="{background: `url(${item.caseCoverImg})`}" class="home-dynamic">
111
                   <h3 class="text-left" style>{{item.caseTitle}}</h3>
111
                   <h3 class="text-left" style>{{item.caseTitle}}</h3>
112
                 </div>
112
                 </div>
113
               </router-link>
113
               </router-link>
114
             </div>
114
             </div>
115
-            <!-- item.caseCoverImg -->
115
+          
116
           </div>
116
           </div>
117
         </div>
117
         </div>
118
       </div>
118
       </div>
200
   created () {
200
   created () {
201
 
201
 
202
     //合作伙伴
202
     //合作伙伴
203
-    // 
204
-    // console.log(isMobilePhone)
205
-    // axios.get('http://localhost:8080/pc/partner/list/?pageNum=1&pageSize=18')
203
+  
206
     request({
204
     request({
207
       ...apis.partner.list,
205
       ...apis.partner.list,
208
       params: { pageNum: 1, pageSize: 18 }
206
       params: { pageNum: 1, pageSize: 18 }
214
 
212
 
215
       })
213
       })
216
 
214
 
217
-    // axios.get('http://localhost:8080/pc/case/case/list/?pageNum=1&pageSize=8')
218
-
219
     request({
215
     request({
220
       ...apis.case.list,
216
       ...apis.case.list,
221
       urlData: { type: 'case' },
217
       urlData: { type: 'case' },

+ 0
- 1
utils/request.js View File

9
   // const data = (rawData instanceof FormData) ? rawData : JSON.stringify(rawData)
9
   // const data = (rawData instanceof FormData) ? rawData : JSON.stringify(rawData)
10
   const token = localStorage.getItem('x-token') || ''
10
   const token = localStorage.getItem('x-token') || ''
11
   const contenType = (rawData instanceof FormData) ? 'multipart/form-data' : 'application/json'
11
   const contenType = (rawData instanceof FormData) ? 'multipart/form-data' : 'application/json'
12
-  
13
   return new Promise((resolve, reject) => {
12
   return new Promise((resolve, reject) => {
14
     axios({
13
     axios({
15
       ...config,
14
       ...config,

+ 1
- 1
vue.config.js View File

2
   devServer: {
2
   devServer: {
3
     proxy:  {
3
     proxy:  {
4
       '/api': {
4
       '/api': {
5
-        target: 'http://localhost:8080',
5
+        target: 'http://localhost:8081',
6
         ws: true,
6
         ws: true,
7
         changeOrigin: true,
7
         changeOrigin: true,
8
         pathRewrite: {'^/api': ''}
8
         pathRewrite: {'^/api': ''}