See999 5 anni fa
parent
commit
8e793ebd7c
3 ha cambiato i file con 218 aggiunte e 200 eliminazioni
  1. 1 1
      src/router/index.js
  2. 71 65
      src/scrm_pages/contact/contactus.vue
  3. 146 134
      src/scrm_pages/contactus/contactus.vue

+ 1 - 1
src/router/index.js Vedi File

@@ -121,7 +121,7 @@ var _constant_router_map = [
121 121
 
122 122
   {
123 123
     path: "/",
124
-    component: () => import("@/scrm_pages/newsDetail/newsDetail")
124
+    component: () => import("@/scrm_pages/contact/contactus")
125 125
   },
126 126
 
127 127
   // 医院介绍详情路由

+ 71 - 65
src/scrm_pages/contact/contactus.vue Vedi File

@@ -1,41 +1,42 @@
1 1
 <template>
2 2
   <div class="page_home">
3
-         <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
3
+    <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
4
+    <div>
4 5
       <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" />
6
+        <div class="focusImg" v-if="item.mode_type == 1">
7
+          <div class="swiper-container">
8
+            <div class="swiper-wrapper">
9
+              <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
10
+                <img class="imgtwo" :src="it.images" />
11
+              </div>
10 12
             </div>
13
+            <!-- 如果需要分页器 -->
14
+            <div class="swiper-pagination"></div>
11 15
           </div>
12
-          <!-- 如果需要分页器 -->
13
-          <div class="swiper-pagination"></div>
14 16
         </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 />
17
+        <!-- <div class="detail"> -->
18
+        <div class="row one detail" v-if="item.mode_type == 2">
19
+          <p class="title">{{item.title}}:</p>
20
+          <p class="msg">{{item.Hosaddress.address}}</p>
21
+        </div>
22
+        <div class="row" v-if="item.mode_type == 3">
23
+          <div v-for="it in Connectways" :key="it.id">
24
+            <p class="title">{{it.title}}:</p>
25
+            <p class="msg">{{it.content}}</p>
26
+            <br />
27
+          </div>
28
+        </div>
29
+        <div class="row" v-if="item.mode_type == 4">
30
+          <p class="title">{{item.title}}:</p>
31
+          <p class="msg">{{item.Worktime.worktime}}</p>
32
+        </div>
33
+        <div class="row one" v-if="item.mode_type == 5">
34
+          <p class="title">{{item.title}}:</p>
35
+          <p class="msg">{{item.Rideway.ride_way}}</p>
26 36
         </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 37
       </div>
36 38
     </div>
37 39
 
38
-
39 40
     <!-- tab切换 -->
40 41
     <div class="tabs">
41 42
       <ul class="tabList">
@@ -43,7 +44,8 @@
43 44
           class="tabOne"
44 45
           v-for="item in this.navigationdata"
45 46
           :key="item.id"
46
-          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)">
47
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)"
48
+        >
47 49
           <img :src="item.nonavimages" alt />
48 50
           <span>{{item.navtitle}}</span>
49 51
         </li>
@@ -55,32 +57,36 @@
55 57
 <script>
56 58
 import Swiper from "swiper";
57 59
 import Vue from "vue";
58
-import { Swipe, SwipeItem} from "mint-ui";
60
+import { Swipe, SwipeItem } from "mint-ui";
59 61
 import "mint-ui/lib/style.css";
60
-import { getDefalutNavigationData,getOrderModel, getAllConnecWay } from "@/api/micro/micro";
62
+import {
63
+  getDefalutNavigationData,
64
+  getOrderModel,
65
+  getAllConnecWay
66
+} from "@/api/micro/micro";
61 67
 export default {
62 68
   data() {
63 69
     return {
64 70
       navigationdata: [],
65
-       ordmodel: [],
66
-      Connectways: [],
71
+      ordmodel: [],
72
+      Connectways: []
67 73
     };
68 74
   },
69 75
   methods: {
70
-     getDefalutNavigationData(orgid) {
76
+    getDefalutNavigationData(orgid) {
71 77
       getDefalutNavigationData(orgid).then(response => {
72 78
         if (response.data.state == 1) {
73 79
           var navigation = response.data.data.navigation;
74 80
           for (let index = 0; index < navigation.length; index++) {
75
-              navigation[1].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
76
-
81
+            navigation[1].nonavimages =
82
+              "https://images.shengws.com/2124_o_1571990749565.png";
77 83
           }
78 84
           console.log("navigation是什么", navigation);
79 85
           this.navigationdata = navigation;
80 86
         }
81 87
       });
82 88
     },
83
-      initSwiper() {
89
+    initSwiper() {
84 90
       var mySwiper1 = new Swiper(".swiper-container", {
85 91
         loop: true, // 循环模式选项
86 92
         pagination: {
@@ -109,17 +115,17 @@ export default {
109 115
         }
110 116
       });
111 117
     },
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
-     }
118
+    CallPhone(linktype, address, orgid) {
119
+      console.log("orgid是什么啊", orgid);
120
+      console.log("linktype", linktype);
121
+      if (linktype == "1") {
122
+        this.$router.push({
123
+          path: "/microHome",
124
+          query: {
125
+            orgid: orgid
126
+          }
127
+        });
128
+      }
123 129
       if (linktype == "2") {
124 130
         // window.location.href = address;
125 131
         this.$router.push({
@@ -127,7 +133,7 @@ export default {
127 133
           query: {
128 134
             orgid: orgid
129 135
           }
130
-         });
136
+        });
131 137
       }
132 138
       if (linktype == "3") {
133 139
         window.location.href = "tel://" + address + "";
@@ -135,27 +141,27 @@ export default {
135 141
       if (linktype == "4") {
136 142
         // window.location.href = address;
137 143
         this.$router.push({
138
-          path:"/custom",
139
-          query:{
140
-            orgid:orgid
144
+          path: "/custom",
145
+          query: {
146
+            orgid: orgid
141 147
           }
142
-        })
148
+        });
143 149
       }
144
-    },
150
+    }
145 151
   },
146
-   created(){
152
+  created() {
147 153
     const orgid = this.$route.query.orgid;
148
-       console.log("我的", orgid);
149
-     this.url = orgid;
154
+    console.log("我的", orgid);
155
+    this.url = orgid;
150 156
     this.getDefalutNavigationData(orgid);
151
-     this.getOrderModel(orgid);
152
-     this.getAllConnecWay(orgid);
157
+    this.getOrderModel(orgid);
158
+    this.getAllConnecWay(orgid);
153 159
     this.initSwiper();
154 160
   },
155
-updated() {
161
+  updated() {
156 162
     this.initSwiper();
157 163
   }
158
- };
164
+};
159 165
 </script>
160 166
 
161 167
 <style lang="scss" scoped>
@@ -166,6 +172,7 @@ updated() {
166 172
   display: flex;
167 173
   flex-direction: column;
168 174
   height: 100%;
175
+  overflow-y: auto;
169 176
   > div:first-child {
170 177
     flex: 1;
171 178
     overflow: auto;
@@ -179,7 +186,6 @@ updated() {
179 186
 //   border: solid 1px red;
180 187
 // }
181 188
 
182
-
183 189
 .tabs {
184 190
   @include border-top;
185 191
   width: 100%;
@@ -211,9 +217,9 @@ updated() {
211 217
 .page_home {
212 218
   overflow: hidden;
213 219
   height: 100%;
214
-  > div:nth-of-type(2) {
215
-    min-height: 5.125rem;
216
-  }
220
+  // > div:nth-of-type(2) {
221
+  //   min-height: 5.125rem;
222
+  // }
217 223
   .focusImg {
218 224
     width: 23.4375rem;
219 225
     height: 11.5625rem;

+ 146 - 134
src/scrm_pages/contactus/contactus.vue Vedi File

@@ -1,152 +1,164 @@
1 1
 <template>
2
-    <div>
3
-          <!-- 联系我们页面 -->
4
-         <div class="scroll"  style="padding:15px 4%;">
5
-              <div v-for="item in this.ordmodel" :key="item.id">
6
-                     <div v-if="item.mode_type == 1" class="contractmodeone">
7
-                        <mt-swipe :auto="4000" class="swipertwo">
8
-                             <mt-swipe-item  v-for="it in item.Conrotation" :key="it.id">
9
-                                    <img :src="it.images" style="width:100%;height:100%" >
10
-                             </mt-swipe-item>
11
-                        </mt-swipe>
12
-                     </div>
2
+  <div class="page_contactus">
3
+    <!-- 联系我们页面 -->
4
+    <div class="scroll" style="padding:15px 4%;">
5
+      <div v-for="item in this.ordmodel" :key="item.id">
6
+        <div v-if="item.mode_type == 1" class="contractmodeone">
7
+          <mt-swipe :auto="4000" class="swipertwo">
8
+            <mt-swipe-item v-for="it in item.Conrotation" :key="it.id">
9
+              <img :src="it.images" style="width:100%;height:100%" />
10
+            </mt-swipe-item>
11
+          </mt-swipe>
12
+        </div>
13 13
 
14
-                     <div v-if="item.mode_type == 2" class="oldmodetwo">
15
-                          <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span></div>
16
-                     </div>
17
-                     <div  v-if="item.mode_type == 3">
18
-                            <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
19
-                                  <div class="oldmodefive">
20
-                                      <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span>
21
-                                 </div>
22
-                             <div class="oldmodesix" @click="tallPhone(it.content)">
23
-                                  <img src="static/images/u318.png" style="width 100%;height:100%">
24
-                             </div>
25
-                            </div>
26
-                     </div>
27
-                      <div class="oldmodefour" v-if="item.mode_type == 4">
28
-                          <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span></div>
29
-                          </div>
30
-                             <div class="oldmodethree" v-if="item.mode_type == 5">
31
-                               <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Rideway.ride_way}}</span></div>
32
-                             </div>
33
-                        </div>
34
-                 </div>
14
+        <div v-if="item.mode_type == 2" class="oldmodetwo">
15
+          <div>
16
+            <span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span>
35 17
           </div>
18
+        </div>
19
+        <div v-if="item.mode_type == 3">
20
+          <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
21
+            <div class="oldmodefive">
22
+              <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span>
23
+            </div>
24
+            <div class="oldmodesix" @click="tallPhone(it.content)">
25
+              <img src="static/images/u318.png" style="width 100%;height:100%" />
26
+            </div>
27
+          </div>
28
+        </div>
29
+        <div class="oldmodefour" v-if="item.mode_type == 4">
30
+          <div>
31
+            <span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span>
32
+          </div>
33
+        </div>
34
+        <div class="oldmodethree" v-if="item.mode_type == 5">
35
+          <div>
36
+            <span>{{item.title}}:&nbsp;&nbsp;{{item.Rideway.ride_way}}</span>
37
+          </div>
38
+        </div>
39
+      </div>
40
+    </div>
41
+  </div>
36 42
 </template>
37 43
 
38 44
 <script>
39
-     import Swiper from "swiper";
40
-     import Vue from 'vue';
41
-     import { Swipe, SwipeItem } from 'mint-ui';
42
-     import 'mint-ui/lib/style.css'
43
-     import { getOrderModel,getAllConnecWay } from "@/api/micro/micro"
44
-    export default {
45
-        name: "contactus",
46
-        data(){
47
-           return{
48
-             ordmodel:[],
49
-             Connectways:[],
50
-           }
51
-        },
52
-        methods:{
53
-           getOrderModel(orgid){
54
-               getOrderModel(orgid).then(response=>{
55
-                 if(response.data.state == 1){
56
-                   var ordmodel = response.data.data.ordmodel;
57
-                   console.log("ordmodel是什么",ordmodel)
58
-                   this.ordmodel = response.data.data.ordmodel;
59
-                 }
60
-               })
61
-           },
62
-          getAllConnecWay(orgid){
63
-             getAllConnecWay(orgid).then(response=>{
64
-                 if(response.data.state == 1){
65
-                    var connect = response.data.data.connect;
66
-                    this.Connectways = connect;
67
-                 }
68
-             })
69
-           },
70
-           tallPhone(content){
71
-               window.location.href = 'tel://'+content+'';
72
-           }
73
-        },
74
-        created(){
75
-           const orgid = this.$route.query.orgid;
76
-          console.log("联系我们orgid是多少",orgid)
77
-          this.getOrderModel(orgid)
78
-          this.getAllConnecWay(orgid)
45
+import Swiper from "swiper";
46
+import Vue from "vue";
47
+import { Swipe, SwipeItem } from "mint-ui";
48
+import "mint-ui/lib/style.css";
49
+import { getOrderModel, getAllConnecWay } from "@/api/micro/micro";
50
+export default {
51
+  name: "contactus",
52
+  data() {
53
+    return {
54
+      ordmodel: [],
55
+      Connectways: []
56
+    };
57
+  },
58
+  methods: {
59
+    getOrderModel(orgid) {
60
+      getOrderModel(orgid).then(response => {
61
+        if (response.data.state == 1) {
62
+          var ordmodel = response.data.data.ordmodel;
63
+          console.log("ordmodel是什么", ordmodel);
64
+          this.ordmodel = response.data.data.ordmodel;
79 65
         }
80
-
66
+      });
67
+    },
68
+    getAllConnecWay(orgid) {
69
+      getAllConnecWay(orgid).then(response => {
70
+        if (response.data.state == 1) {
71
+          var connect = response.data.data.connect;
72
+          this.Connectways = connect;
73
+        }
74
+      });
75
+    },
76
+    tallPhone(content) {
77
+      window.location.href = "tel://" + content + "";
81 78
     }
79
+  },
80
+  created() {
81
+    const orgid = this.$route.query.orgid;
82
+    console.log("联系我们orgid是多少", orgid);
83
+    this.getOrderModel(orgid);
84
+    this.getAllConnecWay(orgid);
85
+  }
86
+};
82 87
 </script>
83 88
 
84
-<style scoped>
85
-    .modeone{
86
-        width: 100%;
87
-        height: 220px;
88
-        margin-bottom: 10px;
89
-        /* border:solid 1px red; */
90
-    }
91
-
92
-   .oldmodetwo{
93
-    width: 300px;
94
-    height: 100%;
95
-    /* border: solid 1px red; */
96
-    font-size: 14px;
97
-    margin-bottom: 8px;
89
+<style lang="scss" scoped>
90
+.page_contactus {
91
+  overflow: hidden;
92
+  height: 100%;
93
+  padding-bottom: 1.25rem;
94
+  overflow-y: auto;
95
+  &::-webkit-scrollbar {
96
+    width: 0;
98 97
   }
98
+}
99
+.modeone {
100
+  width: 100%;
101
+  height: 220px;
102
+  margin-bottom: 10px;
103
+  /* border:solid 1px red; */
104
+}
99 105
 
100
-    .oldmodeone{
101
-        width: 318px;
102
-        min-height: 22px;
103
-        /* border: solid 1px red; */
104
-        margin-bottom: 8px;
105
-    }
106
+.oldmodetwo {
107
+  width: 300px;
108
+  height: 100%;
109
+  /* border: solid 1px red; */
110
+  font-size: 14px;
111
+  margin-bottom: 8px;
112
+}
106 113
 
107
-    .oldmodesix{
108
-       position: absolute;
109
-       width: 50px;
110
-       min-height: 20px;
111
-       /* border: solid 1px blue; */
112
-       margin-left: 200px;
113
-       margin-top: -20px;
114
-    }
114
+.oldmodeone {
115
+  width: 318px;
116
+  min-height: 22px;
117
+  /* border: solid 1px red; */
118
+  margin-bottom: 8px;
119
+}
115 120
 
116
-    .oldmodefive{
117
-      width: 250px;
118
-      min-height: 20px;
119
-      /* border: solid 1px red; */
120
-    }
121
+.oldmodesix {
122
+  position: absolute;
123
+  width: 50px;
124
+  min-height: 20px;
125
+  /* border: solid 1px blue; */
126
+  margin-left: 200px;
127
+  margin-top: -20px;
128
+}
121 129
 
122
-  .oldmodefour{
123
-    width: 300px;
124
-    height: 30px;
125
-    color: black;
126
-    /* border:solid 1px red; */
127
-    font-size: 14px;
128
-    margin-bottom: 8px;
129
-  }
130
-
131
-   .oldmodethree{
132
-    width: 300px;
133
-    height: 100%;
134
-    color: black;
135
-    /* border:solid 1px red; */
136
-    font-size: 14px;
137
-    margin-bottom: 8px;
138
-  }
139
-   .contractmodeone{
140
-     width: 100%;
141
-     height: 200px;
142
-     /* border: solid 1px red */
143
-   }
144
-     #wrappertwo{
145
-     width: 40%;
146
-   }
147
-   #wrappert{
148
-       width: 43%;
149
-   }
130
+.oldmodefive {
131
+  width: 250px;
132
+  min-height: 20px;
133
+  /* border: solid 1px red; */
134
+}
150 135
 
136
+.oldmodefour {
137
+  width: 300px;
138
+  height: 30px;
139
+  color: black;
140
+  /* border:solid 1px red; */
141
+  font-size: 14px;
142
+  margin-bottom: 8px;
143
+}
151 144
 
145
+.oldmodethree {
146
+  width: 300px;
147
+  height: 100%;
148
+  color: black;
149
+  /* border:solid 1px red; */
150
+  font-size: 14px;
151
+  margin-bottom: 8px;
152
+}
153
+.contractmodeone {
154
+  width: 100%;
155
+  height: 200px;
156
+  /* border: solid 1px red */
157
+}
158
+#wrappertwo {
159
+  width: 40%;
160
+}
161
+#wrappert {
162
+  width: 43%;
163
+}
152 164
 </style>