Bladeren bron

微网站

xiaoming_global 5 jaren geleden
bovenliggende
commit
3b4cb49264

+ 10 - 5
src/router/index.js Bestand weergeven

@@ -118,6 +118,7 @@ var _constant_router_map = [
118 118
     path: "/contact",
119 119
     component: () => import("@/scrm_pages/contact/contact")
120 120
   },
121
+  
121 122
   {
122 123
     path: "/",
123 124
     component: () => import("@/scrm_pages/microHome/microHome")
@@ -174,11 +175,11 @@ var _constant_router_map = [
174 175
     component: () => import("@/scrm_pages/activitylist/activitylistdetail")
175 176
   },
176 177
 
177
-  //联系我们
178
-  {
179
-    path: "/contactus",
180
-    component: () => import("@/scrm_pages/contactus/contactus")
181
-  },
178
+  // //联系我们
179
+  // {
180
+  //   path: "/contactus",
181
+  //   component: () => import("@/scrm_pages/contactus/contactus")
182
+  // },
182 183
 
183 184
   {
184 185
     path: "/card",
@@ -189,6 +190,10 @@ var _constant_router_map = [
189 190
     path:"/custom",
190 191
     component: () =>import("@/scrm_pages/custom/custom")
191 192
   },
193
+  {
194
+    path:"/contactus",
195
+    component: () => import("@/scrm_pages/contact/contactus")
196
+  },
192 197
 
193 198
   {
194 199
     path: "/activity/preview",

+ 78 - 64
src/scrm_pages/contact/contact.vue Bestand weergeven

@@ -1,36 +1,37 @@
1 1
 <template>
2
-  <div>
3
-    <div v-for="item in this.ordmodel" :key="item.id" >
4
-    <div class="focusImg" v-if="item.mode_type == 1">
5
-      <div class="swiper-container">
6
-        <div class="swiper-wrapper">
7
-          <div class="swiper-slide"  v-for="it in item.Conrotation" :key="it.id">
8
-            <img class="imgtwo" :src="it.images"/>
2
+  <div class="page_contact">
3
+    <div v-for="item in this.ordmodel" :key="item.id">
4
+      <div class="focusImg" v-if="item.mode_type == 1">
5
+        <div class="swiper-container">
6
+          <div class="swiper-wrapper">
7
+            <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
8
+              <img class="imgtwo" :src="it.images" />
9
+            </div>
9 10
           </div>
11
+          <!-- 如果需要分页器 -->
12
+          <div class="swiper-pagination"></div>
10 13
         </div>
11
-        <!-- 如果需要分页器 -->
12
-        <div class="swiper-pagination"></div>
13 14
       </div>
14
-    </div>
15
-    <!-- <div class="detail"> -->
16
-    <div class="row one detail" v-if="item.mode_type == 2">
17
-      <p class="title">{{item.title}}:</p>
18
-      <p class="msg">{{item.Hosaddress.address}}</p>
19
-    </div>
20
-    <div class="row" v-if="item.mode_type == 3">
21
-      <div v-for="it in Connectways" :key="it.id">
22
-        <p class="title">{{it.title}}:</p>
23
-        <p class="msg">{{it.content}}</p><br>
24
-       </div>
25
-    </div>
26
-    <div class="row" v-if="item.mode_type == 4">
27
-      <p class="title">{{item.title}}:</p>
28
-      <p class="msg">{{item.Worktime.worktime}}</p>
29
-    </div>
30
-    <div class="row one" v-if="item.mode_type == 5">
31
-      <p class="title">{{item.title}}:</p>
32
-      <p class="msg">{{item.Rideway.ride_way}}</p>
33
-    </div>
15
+      <!-- <div class="detail"> -->
16
+      <div class="row one detail" v-if="item.mode_type == 2">
17
+        <p class="title">{{item.title}}:</p>
18
+        <p class="msg">{{item.Hosaddress.address}}</p>
19
+      </div>
20
+      <div class="row" v-if="item.mode_type == 3">
21
+        <div v-for="it in Connectways" :key="it.id">
22
+          <p class="title">{{it.title}}:</p>
23
+          <p class="msg">{{it.content}}</p>
24
+          <br />
25
+        </div>
26
+      </div>
27
+      <div class="row" v-if="item.mode_type == 4">
28
+        <p class="title">{{item.title}}:</p>
29
+        <p class="msg">{{item.Worktime.worktime}}</p>
30
+      </div>
31
+      <div class="row one" v-if="item.mode_type == 5">
32
+        <p class="title">{{item.title}}:</p>
33
+        <p class="msg">{{item.Rideway.ride_way}}</p>
34
+      </div>
34 35
     </div>
35 36
   </div>
36 37
 </template>
@@ -51,7 +52,6 @@ export default {
51 52
     initSwiper() {
52 53
       var mySwiper1 = new Swiper(".swiper-container", {
53 54
         loop: true, // 循环模式选项
54
-        // 如果需要分页器
55 55
         pagination: {
56 56
           el: ".swiper-pagination"
57 57
         },
@@ -96,44 +96,58 @@ export default {
96 96
 </script>
97 97
 
98 98
 <style lang="scss" scoped>
99
-.focusImg {
100
-  width: 23.4375rem;
101
-  height: 11.5625rem;
102
-  img {
103
-    width: 100%;
104
-    height: 100%;
99
+.page_contact {
100
+  overflow: hidden;
101
+  height: 100%;
102
+  > div:nth-of-type(2) {
103
+    min-height: 5.125rem;
104
+  }
105
+  .focusImg {
106
+    width: 23.4375rem;
107
+    height: 11.5625rem;
108
+    img {
109
+      width: 100%;
110
+      height: 100%;
111
+    }
112
+    .swiper-container {
113
+      height: 100%;
114
+    }
105 115
   }
106
-  .swiper-container {
107
-    height: 100%;
116
+
117
+  .space {
118
+    margin: 0 1.25rem;
108 119
   }
109
-}
120
+  .row {
121
+    font-size: 1rem;
122
+    font-weight: 600;
123
+    color: rgba(7, 18, 40, 1);
124
+    line-height: 2.375rem;
125
+    min-height: 2.375rem;
126
+    width: 21.125rem;
127
+    margin: 0 1.25rem;
128
+    // border: 1px solid #000;
110 129
 
111
-.space {
112
-  margin: 0 1.25rem;
113
-}
114
-.row {
115
-  font-size: 1rem;
116
-  font-weight: 600;
117
-  color: rgba(7, 18, 40, 1);
118
-  line-height: 2.375rem;
119
-  height: 2.375rem;
120
-  width: 21.125rem;
121
-  margin: 0 1.25rem;
122
-  .title {
123
-    float: left;
130
+    .title {
131
+      float: left;
132
+      width: 5rem;
133
+    }
134
+    .msg {
135
+      float: left;
136
+      width: 16rem;
137
+      line-height: 2.375rem;
138
+      min-height: 2.375rem;
139
+      word-wrap: break-word;
140
+      word-break: break-all;
141
+      // overflow-x: hidden;
142
+    }
124 143
   }
125
-  .msg {
126
-    float: left;
127
-    width: 16rem;
144
+  .one {
145
+    min-height: 2.375rem;
146
+    // line-height: 3rem;
147
+  }
148
+  .detail {
149
+    width: 21.125rem;
150
+    margin: 1.1875rem 1.25rem 0 1.25rem;
128 151
   }
129 152
 }
130
-.one {
131
-  height: 3rem;
132
-  line-height: 1.5rem;
133
-}
134
-.detail {
135
-  width: 21.125rem;
136
-  margin: 1.1875rem 1.25rem 0 1.25rem;
137
-}
138
-
139 153
 </style>

+ 266 - 0
src/scrm_pages/contact/contactus.vue Bestand weergeven

@@ -0,0 +1,266 @@
1
+<template>
2
+  <div class="page_home">
3
+         <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
4
+      <div v-for="item in this.ordmodel" :key="item.id">
5
+       <div class="focusImg" v-if="item.mode_type == 1">
6
+        <div class="swiper-container">
7
+          <div class="swiper-wrapper">
8
+            <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
9
+              <img class="imgtwo" :src="it.images" />
10
+            </div>
11
+          </div>
12
+          <!-- 如果需要分页器 -->
13
+          <div class="swiper-pagination"></div>
14
+        </div>
15
+      </div>
16
+      <!-- <div class="detail"> -->
17
+      <div class="row one detail" v-if="item.mode_type == 2">
18
+        <p class="title">{{item.title}}:</p>
19
+        <p class="msg">{{item.Hosaddress.address}}</p>
20
+      </div>
21
+      <div class="row" v-if="item.mode_type == 3">
22
+        <div v-for="it in Connectways" :key="it.id">
23
+          <p class="title">{{it.title}}:</p>
24
+          <p class="msg">{{it.content}}</p>
25
+          <br />
26
+        </div>
27
+      </div>
28
+      <div class="row" v-if="item.mode_type == 4">
29
+        <p class="title">{{item.title}}:</p>
30
+        <p class="msg">{{item.Worktime.worktime}}</p>
31
+      </div>
32
+      <div class="row one" v-if="item.mode_type == 5">
33
+        <p class="title">{{item.title}}:</p>
34
+        <p class="msg">{{item.Rideway.ride_way}}</p>
35
+      </div>
36
+    </div>
37
+
38
+
39
+    <!-- tab切换 -->
40
+    <div class="tabs">
41
+      <ul class="tabList">
42
+        <li
43
+          class="tabOne"
44
+          v-for="item in this.navigationdata"
45
+          :key="item.id"
46
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)">
47
+          <img :src="item.nonavimages" alt />
48
+          <span>{{item.navtitle}}</span>
49
+        </li>
50
+      </ul>
51
+    </div>
52
+  </div>
53
+</template>
54
+
55
+<script>
56
+import Swiper from "swiper";
57
+import Vue from "vue";
58
+import { Swipe, SwipeItem} from "mint-ui";
59
+import "mint-ui/lib/style.css";
60
+import { getDefalutNavigationData,getOrderModel, getAllConnecWay } from "@/api/micro/micro";
61
+export default {
62
+  data() {
63
+    return {
64
+      navigationdata: [],
65
+       ordmodel: [],
66
+      Connectways: [],
67
+    };
68
+  },
69
+  methods: {
70
+     getDefalutNavigationData(orgid) {
71
+      getDefalutNavigationData(orgid).then(response => {
72
+        if (response.data.state == 1) {
73
+          var navigation = response.data.data.navigation;
74
+          for (let index = 0; index < navigation.length; index++) {
75
+              navigation[1].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
76
+
77
+          }
78
+          console.log("navigation是什么", navigation);
79
+          this.navigationdata = navigation;
80
+        }
81
+      });
82
+    },
83
+      initSwiper() {
84
+      var mySwiper1 = new Swiper(".swiper-container", {
85
+        loop: true, // 循环模式选项
86
+        pagination: {
87
+          el: ".swiper-pagination"
88
+        },
89
+        // autoplay: {
90
+        //   disableOnInteraction: false
91
+        // }
92
+        autoplay: true
93
+      });
94
+    },
95
+    getOrderModel(orgid) {
96
+      getOrderModel(orgid).then(response => {
97
+        if (response.data.state == 1) {
98
+          var ordmodel = response.data.data.ordmodel;
99
+          console.log("ordmodel是什么", ordmodel);
100
+          this.ordmodel = response.data.data.ordmodel;
101
+        }
102
+      });
103
+    },
104
+    getAllConnecWay(orgid) {
105
+      getAllConnecWay(orgid).then(response => {
106
+        if (response.data.state == 1) {
107
+          var connect = response.data.data.connect;
108
+          this.Connectways = connect;
109
+        }
110
+      });
111
+    },
112
+      CallPhone(linktype, address,orgid) {
113
+      console.log("orgid是什么啊",orgid)
114
+      console.log("linktype",linktype)
115
+      if(linktype == "1"){
116
+          this.$router.push({
117
+              path:"/microHome",
118
+              query:{
119
+                  orgid:orgid,
120
+              }
121
+          })
122
+     }
123
+      if (linktype == "2") {
124
+        // window.location.href = address;
125
+        this.$router.push({
126
+          path: "/contactus",
127
+          query: {
128
+            orgid: orgid
129
+          }
130
+         });
131
+      }
132
+      if (linktype == "3") {
133
+        window.location.href = "tel://" + address + "";
134
+      }
135
+      if (linktype == "4") {
136
+        // window.location.href = address;
137
+        this.$router.push({
138
+          path:"/custom",
139
+          query:{
140
+            orgid:orgid
141
+          }
142
+        })
143
+      }
144
+    },
145
+  },
146
+   created(){
147
+    const orgid = this.$route.query.orgid;
148
+       console.log("我的", orgid);
149
+     this.url = orgid;
150
+    this.getDefalutNavigationData(orgid);
151
+     this.getOrderModel(orgid);
152
+     this.getAllConnecWay(orgid);
153
+    this.initSwiper();
154
+  },
155
+updated() {
156
+    this.initSwiper();
157
+  }
158
+ };
159
+</script>
160
+
161
+<style lang="scss" scoped>
162
+@import "../../assets/styles/mixin.scss";
163
+
164
+.page_home {
165
+  overflow: hidden;
166
+  display: flex;
167
+  flex-direction: column;
168
+  height: 100%;
169
+  > div:first-child {
170
+    flex: 1;
171
+    overflow: auto;
172
+  }
173
+  > div:first-child::-webkit-scrollbar {
174
+    width: 0;
175
+  }
176
+  // border:solid 1px red;
177
+}
178
+// .bugone{
179
+//   border: solid 1px red;
180
+// }
181
+
182
+
183
+.tabs {
184
+  @include border-top;
185
+  width: 100%;
186
+  height: 3.125rem;
187
+  box-sizing: border-box;
188
+}
189
+.tabList {
190
+  display: flex;
191
+  justify-content: space-around;
192
+  height: 100%;
193
+  .tabOne {
194
+    display: flex;
195
+    flex-direction: column;
196
+    justify-content: center;
197
+    align-items: center;
198
+    img {
199
+      // margin-top: 0.5rem;
200
+      width: 1.875rem;
201
+      height: 1.875rem;
202
+    }
203
+    span {
204
+      font-size: 0.75rem;
205
+      color: #999;
206
+      // line-height: 1.3125rem;
207
+    }
208
+  }
209
+}
210
+
211
+.page_home {
212
+  overflow: hidden;
213
+  height: 100%;
214
+  > div:nth-of-type(2) {
215
+    min-height: 5.125rem;
216
+  }
217
+  .focusImg {
218
+    width: 23.4375rem;
219
+    height: 11.5625rem;
220
+    img {
221
+      width: 100%;
222
+      height: 100%;
223
+    }
224
+    .swiper-container {
225
+      height: 100%;
226
+    }
227
+  }
228
+
229
+  .space {
230
+    margin: 0 1.25rem;
231
+  }
232
+  .row {
233
+    font-size: 1rem;
234
+    font-weight: 600;
235
+    color: rgba(7, 18, 40, 1);
236
+    line-height: 2.375rem;
237
+    min-height: 2.375rem;
238
+    width: 21.125rem;
239
+    margin: 0 1.25rem;
240
+    // border: 1px solid #000;
241
+
242
+    .title {
243
+      float: left;
244
+      width: 5rem;
245
+    }
246
+    .msg {
247
+      float: left;
248
+      width: 16rem;
249
+      line-height: 2.375rem;
250
+      min-height: 2.375rem;
251
+      word-wrap: break-word;
252
+      word-break: break-all;
253
+      // overflow-x: hidden;
254
+    }
255
+  }
256
+  .one {
257
+    min-height: 2.375rem;
258
+    // line-height: 3rem;
259
+  }
260
+  .detail {
261
+    width: 21.125rem;
262
+    margin: 1.1875rem 1.25rem 0 1.25rem;
263
+  }
264
+}
265
+</style>
266
+

+ 40 - 2
src/scrm_pages/custom/custom.vue Bestand weergeven

@@ -12,8 +12,8 @@
12 12
           class="tabOne"
13 13
           v-for="item in this.navigationdata"
14 14
           :key="item.id"
15
-          @click="CallPhone(item.linktype,item.navaddress)">
16
-          <img :src="item.navimages" alt />
15
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)">
16
+          <img :src="item.nonavimages" alt />
17 17
           <span>{{item.navtitle}}</span>
18 18
         </li>
19 19
       </ul>
@@ -36,11 +36,49 @@ export default {
36 36
       getDefalutNavigationData(orgid).then(response => {
37 37
         if (response.data.state == 1) {
38 38
           var navigation = response.data.data.navigation;
39
+          for (let index = 0; index < navigation.length; index++) {
40
+              navigation[3].nonavimages = "https://images.shengws.com/2101_o_1571990903053.png";
41
+              
42
+          }
39 43
           console.log("navigation是什么", navigation);
40 44
           this.navigationdata = navigation;
41 45
         }
42 46
       });
43 47
     },
48
+
49
+     CallPhone(linktype, address,orgid) {
50
+      console.log("orgid是什么啊",orgid)
51
+      console.log("linktype",linktype)
52
+      if(linktype == "1"){
53
+          this.$router.push({
54
+              path:"/microHome",
55
+              query:{
56
+                  orgid:orgid,
57
+              }
58
+          })
59
+     }
60
+      if (linktype == "2") {
61
+        // window.location.href = address;
62
+        this.$router.push({
63
+          path: "/contactus",
64
+          query: {
65
+            orgid: orgid
66
+          }
67
+         });
68
+      }
69
+      if (linktype == "3") {
70
+        window.location.href = "tel://" + address + "";
71
+      }
72
+      if (linktype == "4") {
73
+        // window.location.href = address;
74
+        this.$router.push({
75
+          path:"/custom",
76
+          query:{
77
+            orgid:orgid
78
+          }
79
+        })
80
+      }
81
+    },
44 82
   },
45 83
    created(){
46 84
     const orgid = this.$route.query.orgid;

+ 30 - 12
src/scrm_pages/microHome/microHome.vue Bestand weergeven

@@ -194,8 +194,9 @@
194 194
           class="tabOne"
195 195
           v-for="item in this.navigationdata"
196 196
           :key="item.id"
197
-          @click="CallPhone(item.linktype,item.navaddress)">
198
-          <img :src="item.navimages" alt />
197
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)"
198
+        >
199
+          <img :src="item.nonavimages" alt />
199 200
           <span>{{item.navtitle}}</span>
200 201
         </li>
201 202
       </ul>
@@ -316,6 +317,10 @@ export default {
316 317
       getDefalutNavigationData(orgid).then(response => {
317 318
         if (response.data.state == 1) {
318 319
           var navigation = response.data.data.navigation;
320
+          for (let index = 0; index < navigation.length; index++) {
321
+            navigation[0].nonavimages = "https://images.shengws.com/2089_o_1571990714383.png";
322
+            
323
+          }
319 324
           console.log("navigation是什么", navigation);
320 325
           this.navigationdata = navigation;
321 326
         }
@@ -324,16 +329,17 @@ export default {
324 329
     NavigationClick(title, address, orgid) {
325 330
       console.log("orgid", orgid);
326 331
       //  debugger
327
-      if(title == "加入会员"){
328
-        // window.location.href = "http://wx.kuyicloud.com/weixin/membershipagree/"+orgid;
332
+      if (title == "加入会员") {
333
+        // window.location.href =
334
+        //   "http://wx.kuyicloud.com/weixin/membershipagree/" + orgid;
329 335
         this.$router.push({
330 336
           path:"/card",
331 337
           query: {
332 338
             orgid: orgid,
333 339
           }
334 340
         })
335
-      }else if(title == "联系我们"){
336
-          this.$router.push({
341
+      } else if (title == "联系我们") {
342
+        this.$router.push({
337 343
           path: "/contact",
338 344
           query: {
339 345
             orgid: orgid
@@ -347,20 +353,31 @@ export default {
347 353
             orgid:orgid
348 354
           }
349 355
         })
350
-      }else{
356
+      }else {
351 357
         window.location.href = address;
352 358
       }
353 359
     },
354 360
 
355
-    CallPhone(linktype, address) {
361
+    CallPhone(linktype, address,orgid) {
356 362
       if (linktype == "2") {
357
-        window.location.href = address;
363
+        this.$router.push({
364
+          path:"/contactus",
365
+          query:{
366
+            orgid:orgid,
367
+          }
368
+        })
358 369
       }
359 370
       if (linktype == "3") {
360 371
         window.location.href = "tel://" + address + "";
361 372
       }
362 373
       if (linktype == "4") {
363
-        window.location.href = address;
374
+        // window.location.href = address;
375
+        this.$router.push({
376
+          path:"custom",
377
+          query:{
378
+            orgid:orgid,
379
+          }
380
+        })
364 381
       }
365 382
     },
366 383
     getData(orgid) {
@@ -577,13 +594,14 @@ export default {
577 594
     margin: auto;
578 595
     margin-top: 1.25rem;
579 596
     width: 20.875rem;
580
-    height: 20.3125rem;
597
+    // height: 20.3125rem;
581 598
     background: rgba(255, 255, 255, 1);
582 599
     box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
583 600
     border-radius: 16px;
584 601
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
585 602
     overflow: hidden;
586 603
     text-overflow: ellipsis;
604
+    // border: 1px solid #000;
587 605
   }
588 606
   .commonImg {
589 607
     width: 18.4375rem;
@@ -593,7 +611,7 @@ export default {
593 611
   .commonMessage {
594 612
     // margin-top: 1.375rem;
595 613
     width: 17.75rem;
596
-    height: 14.625rem;
614
+    height: 16.25rem;
597 615
     font-size: 0.875rem;
598 616
     color: rgba(60, 60, 60, 1);
599 617
     line-height: 1.375rem;