xiaoming_global 5 yıl önce
ebeveyn
işleme
1e01199c59

+ 0 - 1
src/api/micro/micro.js Dosyayı Görüntüle

@@ -117,7 +117,6 @@ export function getDefalutNavigationData(orgid,params){
117 117
 
118 118
 export function getOrderModel(orgid,params){
119 119
     console.log("联系我们",orgid)
120
-    console.log("params",params)
121 120
     return request({
122 121
         url:"/api/site/getdataeight?orgid="+orgid,
123 122
         method:"Get",

+ 11 - 0
src/router/index.js Dosyayı Görüntüle

@@ -80,33 +80,44 @@ var _constant_router_map = [{
80 80
   component: ()=>import('@/scrm_pages/doctor/doctor'),
81 81
   name:'doctor',
82 82
 },
83
+// 单个医生介绍详情
83 84
 {
84 85
   path:'/docdetail',
85 86
   component: ()=>import('@/scrm_pages/doctor/docdetail'),
86 87
   name:'docdetail',
87 88
 },
88 89
 
90
+//文章列表详情
89 91
 {
90 92
   path:'/articlelist',
91 93
   component: ()=>import('@/scrm_pages/articlelist/articlelist'),
92 94
   name:'articlelist'
93 95
 },
94 96
 
97
+//单个文章列表详情
95 98
 {
96 99
   path:'/articlelistdetail',
97 100
   component:()=>import('@/scrm_pages/articlelist/articlelistdetail')
98 101
 },
99 102
 
103
+//活动列表详情
100 104
 {
101 105
   path:'/activitylist',
102 106
   component:()=>import('@/scrm_pages/activitylist/activitylist')
103 107
 },
108
+//单个文章列表详情
104 109
 {
105 110
   path:"/activitylistdetail",
106 111
   component:()=>import('@/scrm_pages/activitylist/activitylistdetail')
107 112
 
108 113
 },
109 114
 
115
+//联系我们
116
+{
117
+  path:"/contactus",
118
+  component:()=>import('@/scrm_pages/contactus/contactus')
119
+},
120
+
110 121
 {
111 122
   path: '/activity/preview',
112 123
   component: () => import('@/scrm_pages/marketing_tool/activity_preview'),

+ 152 - 0
src/scrm_pages/contactus/contactus.vue Dosyayı Görüntüle

@@ -0,0 +1,152 @@
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>
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>
35
+          </div>
36
+</template>
37
+
38
+<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)
79
+        }
80
+
81
+    }
82
+</script>
83
+
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;
98
+  }
99
+
100
+    .oldmodeone{
101
+        width: 318px;
102
+        min-height: 22px;
103
+        /* border: solid 1px red; */
104
+        margin-bottom: 8px;
105
+    }
106
+
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
+    }
115
+
116
+    .oldmodefive{
117
+      width: 250px;
118
+      min-height: 20px;
119
+      /* border: solid 1px red; */
120
+    }
121
+
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
+   }
150
+
151
+
152
+</style>

+ 22 - 62
src/scrm_pages/micro/micro.vue Dosyayı Görüntüle

@@ -157,38 +157,7 @@
157 157
 
158 158
       
159 159
 
160
-                    <!-- 联系我们页面 -->
161
-                    <div class="scroll" v-show="contactShow" style="padding:15px 4%;">
162
-                          <div v-for="item in this.ordmodel" :key="item.id">
163
-                              <div v-if="item.mode_type == 1" class="contractmodeone">
164
-                                  <mt-swipe :auto="4000" class="swipertwo">
165
-                                     <mt-swipe-item  v-for="it in item.Conrotation" :key="it.id">
166
-                                        <img :src="it.images" style="width:100%;height:100%" >
167
-                                      </mt-swipe-item>
168
-                                   </mt-swipe>
169
-                              </div>
170
-
171
-                                  <div v-if="item.mode_type == 2" class="oldmodetwo">
172
-                                     <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span></div>
173
-                                  </div>
174
-                                  <div  v-if="item.mode_type == 3">
175
-                                    <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
176
-                                       <div class="oldmodefive">
177
-                                          <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span>
178
-                                       </div>
179
-                                       <div class="oldmodesix" @click="tallPhone(it.content)">
180
-                                           <img src="static/images/u318.png" style="width 100%;height:100%">
181
-                                       </div>
182
-                                     </div>
183
-                                   </div>
184
-                                   <div class="oldmodefour" v-if="item.mode_type == 4">
185
-                                     <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span></div>
186
-                                   </div>
187
-                                   <div class="oldmodethree" v-if="item.mode_type == 5">
188
-                                     <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Rideway.ride_way}}</span></div>
189
-                                   </div>
190
-                               </div>
191
-                       </div>
160
+                 
192 161
            
193 162
        <!-- 返回首页 -->
194 163
       <div class="showindex" v-show="showindex" @click="returnIndex()">
@@ -227,8 +196,7 @@
227 196
      import {uParseTime} from "@/utils/tools";
228 197
      Vue.component(Swipe.name, Swipe);
229 198
      Vue.component(SwipeItem.name, SwipeItem);
230
-     import { getHospitaldata,getArticlelist,getActivities,officemore,docmore,kemore,articlemore,Activitiesmore,getDefalutNavigationData,getOrderModel,getAllConnecWay,
231
-     singleActivitInfo,singleDoctorInfo,GetRotationLinkAddress} from '@/api/micro/micro'
199
+     import { getHospitaldata,getArticlelist,getActivities,getDefalutNavigationData,GetRotationLinkAddress} from '@/api/micro/micro'
232 200
 import { link } from 'fs';
233 201
     export default {
234 202
         name: "micro",
@@ -236,8 +204,6 @@ import { link } from 'fs';
236 204
             return{
237 205
               patientModels:[],
238 206
               hospitalform:[], 
239
-              Articlelist:[],
240
-              Activitieslist:[],
241 207
               officeform:[],
242 208
               editdocfrom:[],
243 209
               keEnvironmentImages:[],
@@ -255,8 +221,6 @@ import { link } from 'fs';
255 221
               navigationdata:[],
256 222
               contactShow:false,
257 223
               modelshow:true,
258
-              ordmodel:[],
259
-              Connectways:[],
260 224
               defalutshow:false,
261 225
               singleDoctorshow:false,
262 226
               singleArticleshow:false,
@@ -399,7 +363,7 @@ import { link } from 'fs';
399 363
             this.docshow = false;
400 364
             this.modelshow = false;
401 365
            this.contactShow = true;
402
-           this.getOrderModel(orgid);
366
+           this.getOrderModel(this.$route.query.orgid);
403 367
          
404 368
         }
405 369
         if(title == "在线客服"){
@@ -464,28 +428,28 @@ import { link } from 'fs';
464 428
              if(response.data.state == 1){
465 429
                var navigation =  response.data.data.navigation;
466 430
                this.navigationdata = navigation;
467
-               console.log("旺仔小牛奶",navigation)
431
+               
468 432
              }
469 433
            })
470 434
          },
471
-
472 435
           getOrderModel(orgid){
473
-             getOrderModel(orgid).then(response=>{
474
-                 if(response.data.state == 1){
475
-                  var ordmodel = response.data.data.ordmodel;
476
-                  this.ordmodel = response.data.data.ordmodel;
477
-                   console.log("mawenqiang",this.ordmodel)
478
-                 }
479
-             })
480
-           },
481
-           getAllConnecWay(orgid){
482
-             getAllConnecWay(orgid).then(response=>{
483
-                 if(response.data.state == 1){
484
-                    var connect = response.data.data.connect;
485
-                    this.Connectways = connect;
486
-                 }
487
-             })
488
-           },
436
+              this.$router.push({
437
+                path:"/contactus",
438
+                query:{
439
+                  orgid:orgid,
440
+                }
441
+              }) 
442
+          },
443
+          // getOrderModel(orgid){
444
+          //    getOrderModel(orgid).then(response=>{
445
+          //        if(response.data.state == 1){
446
+          //         var ordmodel = response.data.data.ordmodel;
447
+          //         this.ordmodel = response.data.data.ordmodel;
448
+                  
449
+          //        }
450
+          //    })
451
+          //  },
452
+       
489 453
 
490 454
           NavigationClick(title,address,orgid){
491 455
              if(title == "医院介绍" && address == ""){
@@ -647,9 +611,6 @@ import { link } from 'fs';
647 611
                   }
648 612
               })
649 613
            },
650
-           tallPhone(content){
651
-               window.location.href = 'tel://'+content+'';
652
-           }
653 614
         },
654 615
        created(){
655 616
            const orgid = this.$route.query.orgid;
@@ -658,8 +619,7 @@ import { link } from 'fs';
658 619
            this.getArticlelist(orgid);
659 620
            this.getActivities(orgid);
660 621
            this.getDefalutNavigationData(orgid);
661
-           this.getOrderModel(orgid);
662
-           this.getAllConnecWay(orgid);
622
+        
663 623
         },
664 624
       updated(){
665 625
        let obj = document.getElementById('content');