Browse Source

微网站

xiaoming_global 5 years ago
parent
commit
7a069a91eb

+ 21 - 0
package-lock.json View File

14242
       "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
14242
       "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
14243
       "dev": true
14243
       "dev": true
14244
     },
14244
     },
14245
+    "v-viewer": {
14246
+      "version": "1.4.2",
14247
+      "resolved": "https://registry.npmjs.org/v-viewer/-/v-viewer-1.4.2.tgz",
14248
+      "integrity": "sha512-WEslW+dKPHg10f9jl1v0ilH0uk4ZFOz4vUp4wJjomwl+VQEnsWLjSzHCeFoayxjE9KyZspVu9lYLNxk+o3xzkw==",
14249
+      "requires": {
14250
+        "throttle-debounce": "^2.0.1",
14251
+        "viewerjs": "^1.3.2"
14252
+      },
14253
+      "dependencies": {
14254
+        "throttle-debounce": {
14255
+          "version": "2.1.0",
14256
+          "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-2.1.0.tgz",
14257
+          "integrity": "sha512-AOvyNahXQuU7NN+VVvOOX+uW6FPaWdAOdRP5HfwYxAfCzXTFKRMoIMk+n+po318+ktcChx+F1Dd91G3YHeMKyg=="
14258
+        }
14259
+      }
14260
+    },
14245
     "validate-npm-package-license": {
14261
     "validate-npm-package-license": {
14246
       "version": "3.0.4",
14262
       "version": "3.0.4",
14247
       "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
14263
       "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
14275
         "extsprintf": "^1.2.0"
14291
         "extsprintf": "^1.2.0"
14276
       }
14292
       }
14277
     },
14293
     },
14294
+    "viewerjs": {
14295
+      "version": "1.3.7",
14296
+      "resolved": "https://registry.npmjs.org/viewerjs/-/viewerjs-1.3.7.tgz",
14297
+      "integrity": "sha512-I7iD166zrqxocoNn1c23nwERzMXXxnlJw8eWLsK28DSAhGWSue1ZPaxV2qr7LC4lbhom1OUa7Z/glWsnGaa3bw=="
14298
+    },
14278
     "vm-browserify": {
14299
     "vm-browserify": {
14279
       "version": "0.0.4",
14300
       "version": "0.0.4",
14280
       "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz",
14301
       "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz",

+ 1 - 0
package.json View File

68
     "sortablejs": "1.7.0",
68
     "sortablejs": "1.7.0",
69
     "spark-md5": "^3.0.0",
69
     "spark-md5": "^3.0.0",
70
     "swiper": "^4.5.1",
70
     "swiper": "^4.5.1",
71
+    "v-viewer": "^1.4.2",
71
     "vue": "2.5.16",
72
     "vue": "2.5.16",
72
     "vue-baidu-map": "^0.21.22",
73
     "vue-baidu-map": "^0.21.22",
73
     "vue-count-to": "1.0.13",
74
     "vue-count-to": "1.0.13",

+ 13 - 0
src/api/micro/micro.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 import org from '../../router/modules/org';
2
 import org from '../../router/modules/org';
3
+import { link } from 'fs';
3
 
4
 
4
 export function getHospitaldata(orgid,params){
5
 export function getHospitaldata(orgid,params){
5
     return request({
6
     return request({
168
        Get:"Get",
169
        Get:"Get",
169
        params:params,
170
        params:params,
170
    })
171
    })
172
+}
173
+
174
+export function GetRotationLinkAddress(linkid,orgid){
175
+    const params = {
176
+        linkid:linkid,
177
+        orgid:orgid,
178
+    }
179
+     return request({
180
+         url:'/api/site/getrotationlinkaddress',
181
+         Get:"Get",
182
+         params:params,
183
+     })
171
 }
184
 }

+ 10 - 0
src/main.js View File

32
 
32
 
33
 import { read } from 'fs';
33
 import { read } from 'fs';
34
 import BaiduMap from 'vue-baidu-map'
34
 import BaiduMap from 'vue-baidu-map'
35
+
36
+import Viewer from 'v-viewer'
37
+import 'viewerjs/dist/viewer.css'
38
+ 
39
+//Vue.use(Viewer) 默认配置写法
40
+Vue.use(Viewer, {
41
+    defaultOptions: {
42
+        zIndex: 9999
43
+    }
44
+})
35
 Vue.use(Element, {
45
 Vue.use(Element, {
36
   size: 'medium', // set element-ui default size
46
   size: 'medium', // set element-ui default size
37
   i18n: (key, value) => i18n.t(key, value)
47
   i18n: (key, value) => i18n.t(key, value)

+ 5 - 47
src/router/index.js View File

14
 import system from './modules/system'
14
 import system from './modules/system'
15
 import site from './modules/site'
15
 import site from './modules/site'
16
 import kefu from './modules/kefu'
16
 import kefu from './modules/kefu'
17
-
17
+ 
18
 /** note: submenu only apppear when children.length>=1
18
 /** note: submenu only apppear when children.length>=1
19
  *   detail see  https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
19
  *   detail see  https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
20
  **/
20
  **/
55
   component: () => import('@/views/errorPage/401'),
55
   component: () => import('@/views/errorPage/401'),
56
   hidden: true
56
   hidden: true
57
 },
57
 },
58
-// {
59
-//   path: '',
60
-//   component: ()=>import('@/scrm_pages/qrcode/qrcode'),
61
-//   redirect: '/qrcode',
62
-//   children: [{
63
-//     path: '/qrcode',
64
-//     component: () => import('@/scrm_pages/qrcode/qrcode'),
65
-//     name: 'qrcode',
66
-//     meta: {
67
-//       title: 'qrcode',
68
-//       icon: 'dashboard',
69
-//       noCache: true
70
-//     }
71
-//   }]
72
-// },
73
 {
58
 {
74
   path: '/qrcode',
59
   path: '/qrcode',
75
   component: ()=>import('@/scrm_pages/micro/micro'),
60
   component: ()=>import('@/scrm_pages/micro/micro'),
76
-  // children: [{
77
-
78
-  //   path: '/qrcode',
79
-  //   component: () => import('@/scrm_pages/micro/micro'),
80
-  //   name: 'qrcode',
81
-  //   meta: {
82
-  //     title: 'qrcode',
83
-  //     icon: 'dashboard',
84
-  //     noCache: true
85
-  //   }
86
-  // },]
87
 },
61
 },
88
 
62
 
89
 {
63
 {
90
-  path: '/rotation',
91
-  component: () => import('@/scrm_pages/rotation/rotation'),
92
-  name: 'rotation',
64
+  path: '/hospital',
65
+  component: () => import('@/scrm_pages/hospital/hospital'),
66
+  name: 'hospital',
93
 
67
 
94
 },
68
 },
95
-// {
96
-//    path:'qrcode/rotation',
97
-//    component:()=>import('@/scrm_pages/rotation/rotation'),
98
-//    redirct: '/rotation',
99
-//    children: [{
100
-//      path: '/rotation',
101
-//      component: () => import('@/scrm_pages/rotation/rotation'),
102
-//      name: 'rotation',
103
-//      meta: {
104
-//        title:'rotation',
105
-//        icon: 'dashboard',
106
-//        noCache: true
107
-//      }
108
-//    }]
109
-
110
-// },
111
 {
69
 {
112
   path: '/activity/preview',
70
   path: '/activity/preview',
113
   component: () => import('@/scrm_pages/marketing_tool/activity_preview'),
71
   component: () => import('@/scrm_pages/marketing_tool/activity_preview'),
114
   hidden: true
72
   hidden: true
115
 }
73
 }
116
-  // service
74
+
117
 ]
75
 ]
118
 
76
 
119
 var _asy_router_map = [
77
 var _asy_router_map = [

+ 5 - 0
src/router/modules/hosiptal.js View File

1
+import Layout from '@/views/layout/Layout'
2
+
3
+export default{
4
+    
5
+}

+ 17 - 0
src/scrm_pages/hospital/hospital.vue View File

1
+<template>
2
+  <div>
3
+    <el-input v-model='msg' placeholder='输入'></el-input>
4
+    <p>{{ msg }}</p>
5
+  </div>
6
+</template>
7
+
8
+<script>
9
+export default {
10
+  name: 'hospital',
11
+  data: function() {
12
+    return {
13
+      msg: ''
14
+    }
15
+  }
16
+}
17
+</script>

+ 172 - 109
src/scrm_pages/micro/micro.vue View File

6
                  <div class="swiper-slide">      
6
                  <div class="swiper-slide">      
7
                    <div v-for="item in this.patientModels" :key="item.id" v-show="modelshow">                    
7
                    <div v-for="item in this.patientModels" :key="item.id" v-show="modelshow">                    
8
                       <!-- 轮播图 -->
8
                       <!-- 轮播图 -->
9
-                       <div class="modeone" v-if="item.mode_type == 1" @click="rotationlink()">
9
+                       <div class="modeone" v-if="item.mode_type == 1">
10
                           <mt-swipe :auto="2000" class="swipertwo">
10
                           <mt-swipe :auto="2000" class="swipertwo">
11
                           <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
11
                           <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
12
+                            <a :href="it.linkaddress.length > 0 ? it.linkaddress: 'javascript:;' " style="width:100%;height:230px">
12
                              <img :src="it.images" style="width:100%;height:230px">
13
                              <img :src="it.images" style="width:100%;height:230px">
14
+                             </a>
13
                            </mt-swipe-item>
15
                            </mt-swipe-item>
14
                          </mt-swipe>  
16
                          </mt-swipe>  
15
                          <div class="box"></div>                                                           
17
                          <div class="box"></div>                                                           
44
                            <!-- <div class="more" @click="docmore(item.id,item.user_org_id)">查看更多</div> -->
46
                            <!-- <div class="more" @click="docmore(item.id,item.user_org_id)">查看更多</div> -->
45
                               <!-- <div class="logo"><img src="static\images\u216.png"></div> -->
47
                               <!-- <div class="logo"><img src="static\images\u216.png"></div> -->
46
                                 <div class="docborde">
48
                                 <div class="docborde">
47
-                                 <div class="docheart" v-for="doc in item.Editdoctor" :key="doc.id">
49
+                                 <div class="docheart" v-for="doc in item.Editdoctor" :key="doc.id"  @click="docClick(doc.id,doc.user_org_id)">
48
                                    <div class="docimage">
50
                                    <div class="docimage">
49
                                     <img :src="doc.dochead" style="height:80px;width:80px">
51
                                     <img :src="doc.dochead" style="height:80px;width:80px">
50
                                    </div>
52
                                    </div>
51
                                  <div class="doctitle"><span class="docnamefont">{{doc.doc_name}}</span></div>
53
                                  <div class="doctitle"><span class="docnamefont">{{doc.doc_name}}</span></div>
52
                                  <div class="doccontent"><span class="xxcontent" v-html="doc.docintroduction"></span></div>
54
                                  <div class="doccontent"><span class="xxcontent" v-html="doc.docintroduction"></span></div>
53
                                 </div>
55
                                 </div>
54
-                           </div>
56
+                            </div>
55
                            <div class="box"></div>
57
                            <div class="box"></div>
56
                         </div>
58
                         </div>
57
 
59
 
65
                                <div class="swiper-container swiperthree" >
67
                                <div class="swiper-container swiperthree" >
66
                                  <div class="swiper-wrapper" id="wrappert">
68
                                  <div class="swiper-wrapper" id="wrappert">
67
                                     <div class="swiper-slide"  v-for="itms in item.Enviroimages" :key="itms.id">
69
                                     <div class="swiper-slide"  v-for="itms in item.Enviroimages" :key="itms.id">
70
+                                      <viewer>
68
                                       <img :src="itms.enviroimages" style="width:150px;height:140px;border-radius:5px"/>
71
                                       <img :src="itms.enviroimages" style="width:150px;height:140px;border-radius:5px"/>
72
+                                      </viewer>
69
                                      </div>
73
                                      </div>
70
                                 </div>
74
                                 </div>
71
                               </div>
75
                               </div>
83
                                <div class="acthead">
87
                                <div class="acthead">
84
                                    <img :src="it.imgs" style="width:80px;height:80px">
88
                                    <img :src="it.imgs" style="width:80px;height:80px">
85
                                </div>
89
                                </div>
86
-                               <div class="actcontent">
90
+                               <div class="actcontent"  @click="clickTitle(it.id,it.user_org_id)">
87
                                   <div class="actname"><span>{{it.title}}</span></div>  
91
                                   <div class="actname"><span>{{it.title}}</span></div>  
88
                                   <!-- <div class="actcomments">阅读:{{it.real_read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div> -->
92
                                   <!-- <div class="actcomments">阅读:{{it.real_read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div> -->
89
                                </div> 
93
                                </div> 
101
                                <div class="acthead">
105
                                <div class="acthead">
102
                                    <img :src="it.poster_photo" style="width:80px;height:80px">
106
                                    <img :src="it.poster_photo" style="width:80px;height:80px">
103
                                </div>
107
                                </div>
104
-                               <div class="actcontent">
108
+                               <div class="actcontent"  @click="clickActiles(it.id,it.user_org_id)">
105
                                   <div class="actname"><span>{{it.title}}</span></div>  
109
                                   <div class="actname"><span>{{it.title}}</span></div>  
106
                                   <!-- <div class="actcomments">阅读:{{it.read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div>
110
                                   <!-- <div class="actcomments">阅读:{{it.read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div>
107
                                   <div class="progress">
111
                                   <div class="progress">
130
              </div>
134
              </div>
131
          </div>
135
          </div>
132
      </div>
136
      </div>
133
-       <div class="scroll" v-show="defalutshow">暂无数据</div>q 
137
+       <div class="scroll" v-show="defalutshow">暂无数据</div>
134
        <!-- 医院介绍详情 -->
138
        <!-- 医院介绍详情 -->
135
-       <div class="scroll" v-show="hosshow" style="padding:15px 4%;" v-html="hospitalform.introduction" id="target"></div>
139
+       <div class="scroll" v-show="hosshow" style="padding:15px 4%;" v-html="hospitalform.introduction"></div>
136
        <!-- 科室介绍详情 -->
140
        <!-- 科室介绍详情 -->
137
       <div class="scroll" v-show="keshow" style="padding:15px 4%;"  v-html="officeform.introduction"></div>
141
       <div class="scroll" v-show="keshow" style="padding:15px 4%;"  v-html="officeform.introduction"></div>
138
       <!-- 名医介绍详情 -->
142
       <!-- 名医介绍详情 -->
139
-       <div class="scroll" v-show="docshow" id="targetthree">
143
+       <div class="scroll" v-show="docshow" id="targetthree" style="padding:15px 4%">
140
            <div class="docone" v-for="item in this.editdocfrom" :key="item.id" @click="singleDoctorInfo(item.id,item.user_org_id)">
144
            <div class="docone" v-for="item in this.editdocfrom" :key="item.id" @click="singleDoctorInfo(item.id,item.user_org_id)">
141
              <div class="doctwo">
145
              <div class="doctwo">
142
               <img :src="item.dochead" style="width:80px;height:80px">
146
               <img :src="item.dochead" style="width:80px;height:80px">
156
               <div class="swiper-container swiperfour" >
160
               <div class="swiper-container swiperfour" >
157
                  <div class="swiper-wrapper" id="wrappertwo" >
161
                  <div class="swiper-wrapper" id="wrappertwo" >
158
                      <div class="swiper-slide "  v-for="it in keEnvironmentImages" :key="it.id">
162
                      <div class="swiper-slide "  v-for="it in keEnvironmentImages" :key="it.id">
163
+                        <viewer>
159
                         <img :src="it.enviroimages" style="width:150px;height:140px;border-radius:5px;"/>
164
                         <img :src="it.enviroimages" style="width:150px;height:140px;border-radius:5px;"/>
165
+                        </viewer>
160
                      </div>
166
                      </div>
161
                  </div>
167
                  </div>
162
              </div>                          
168
              </div>                          
164
           </div>
170
           </div>
165
 
171
 
166
              <!-- 文章列表详情 -->
172
              <!-- 文章列表详情 -->
167
-             <div class="scroll" v-show="ArticlelistShow" id="targetfive">
173
+             <div class="scroll" v-show="ArticlelistShow" id="targetfive"  style="padding:15px 4%;">
168
                 <div class="actilist" v-for="it in Articlelist" :key="it.id" @click="singleArticleInfo(it.id,it.user_org_id)">
174
                 <div class="actilist" v-for="it in Articlelist" :key="it.id" @click="singleArticleInfo(it.id,it.user_org_id)">
169
                     <div class="acthead">
175
                     <div class="acthead">
170
                        <img :src="it.imgs" style="width:80px;height:80px">
176
                        <img :src="it.imgs" style="width:80px;height:80px">
177
               </div>
183
               </div>
178
 
184
 
179
               <!-- 活动列表详情 -->
185
               <!-- 活动列表详情 -->
180
-                 <div class="scroll" v-show="ActivitieslistShow" id="targetsix">
186
+                 <div class="scroll" v-show="ActivitieslistShow" id="targetsix" style="padding:15px 4%;">
181
                      <div class="actilist" v-for="it in Activitieslist" :key="it.id" @click="singleActivitInfo(it.id,it.user_org_id)">
187
                      <div class="actilist" v-for="it in Activitieslist" :key="it.id" @click="singleActivitInfo(it.id,it.user_org_id)">
182
                         <div class="acthead">
188
                         <div class="acthead">
183
                             <img :src="it.poster_photo" style="width:80px;height:80px">
189
                             <img :src="it.poster_photo" style="width:80px;height:80px">
193
                     </div>
199
                     </div>
194
 
200
 
195
                     <!-- 联系我们页面 -->
201
                     <!-- 联系我们页面 -->
196
-                    <div class="scroll" v-show="contactShow">
202
+                    <div class="scroll" v-show="contactShow" style="padding:15px 4%;">
197
                           <div v-for="item in this.ordmodel" :key="item.id">
203
                           <div v-for="item in this.ordmodel" :key="item.id">
198
                               <div v-if="item.mode_type == 1" class="contractmodeone">
204
                               <div v-if="item.mode_type == 1" class="contractmodeone">
199
                                   <mt-swipe :auto="4000" class="swipertwo">
205
                                   <mt-swipe :auto="4000" class="swipertwo">
208
                                   </div>
214
                                   </div>
209
                                   <div  v-if="item.mode_type == 3">
215
                                   <div  v-if="item.mode_type == 3">
210
                                     <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
216
                                     <div class="oldmodeone" v-for="it in Connectways" :key="it.id">
211
-                                       <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span><br>
212
-                                      </div>
217
+                                       <div class="oldmodefive">
218
+                                          <span>{{it.title}}:&nbsp;&nbsp;{{it.content}}</span>
219
+                                       </div>
220
+                                       <div class="oldmodesix" @click="tallPhone(it.content)">
221
+                                           <img src="static/images/u318.png" style="width 100%;height:100%">
222
+                                       </div>
223
+                                     </div>
213
                                    </div>
224
                                    </div>
214
                                    <div class="oldmodefour" v-if="item.mode_type == 4">
225
                                    <div class="oldmodefour" v-if="item.mode_type == 4">
215
                                      <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span></div>
226
                                      <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Worktime.worktime}}</span></div>
221
                     </div>
232
                     </div>
222
 
233
 
223
                     <!-- 单个名医介绍 -->
234
                     <!-- 单个名医介绍 -->
224
-                    <div class="scroll" v-show="singleDoctorshow">
235
+                    <div class="scroll" v-show="singleDoctorshow" style="padding:15px 4%;">
236
+                       
225
                         <div class="doctorInfo">
237
                         <div class="doctorInfo">
226
-                            <div class="doctorhead">
227
-                               <img :src="doctors.dochead" style="width:100%;height:100%">
228
-                            </div>
229
-                            <div class="doctorname">
230
-                               姓名:{{doctors.doc_name}}
231
-                            </div>
232
-                            <div class="doctorposition">
233
-                              职位:{{doctors.doc_postion}}
234
-                            </div>
235
-                        </div>
236
-                        <div class="doctorintroduction">医生简介:</div>
237
-                        <div class="doctorintro" v-html="doctors.docintroduction">
238
-                          
238
+                              <div class="doctorhead">
239
+                                  <img :src="doctors.dochead" style="width:100%;height:100%">
240
+                              </div>
241
+                              <div class="doctorname">
242
+                                  姓名:{{doctors.doc_name}}
243
+                              </div>
244
+                              <div class="doctorposition">
245
+                                职位:{{doctors.doc_postion}}
246
+                              </div>
239
                         </div>
247
                         </div>
248
+                         <div class="doctorintroduction">医生简介:</div>
249
+                         <div class="doctorintro" v-html="doctors.docintroduction"></div> 
240
                     </div>
250
                     </div>
241
 
251
 
242
                     <!-- 单个文章列表详情 -->
252
                     <!-- 单个文章列表详情 -->
243
-                    <div class="scroll" v-show="singleArticleshow">
244
-                        <div class="artictitle">
245
-                            {{articles.title}}
246
-                       </div>
247
-                        <div class="articcontent" v-html="articles.content">
253
+                    <div class="scroll" v-show="singleArticleshow" style="padding:15px 4%;">                   
254
+                             <div class="artictitle">
255
+                               {{articles.title}}
256
+                             </div>
257
+                            <div class="articcontent" v-html="articles.content">
248
 
258
 
249
-                       </div>
259
+                            </div>                    
250
                     </div>
260
                     </div>
251
 
261
 
252
                     <!-- 单个活动列表详情 -->
262
                     <!-- 单个活动列表详情 -->
253
-                    <div class="scroll" v-show="singleActiveshow">
263
+                    <div class="scroll" v-show="singleActiveshow" style="padding:15px 4%;">
254
                          <div class="activityImages">
264
                          <div class="activityImages">
255
                             <img :src="activitys.poster_photo" style="width:100%;height:100%">
265
                             <img :src="activitys.poster_photo" style="width:100%;height:100%">
256
                          </div>
266
                          </div>
307
              <img :src="item.navimages" style="width:30px; height:30px" @click="callPhone(item.navtitle,item.navaddress)">
317
              <img :src="item.navimages" style="width:30px; height:30px" @click="callPhone(item.navtitle,item.navaddress)">
308
              <span>{{item.navtitle}}</span>
318
              <span>{{item.navtitle}}</span>
309
           </div>
319
           </div>
310
-           <!-- <div class="buttonone">
311
-             <img src="static/images/u309.png" style="width:30px; height:30px">
312
-          </div> -->
313
-          <!-- <div class="buttontwo">
314
-            <img src="static/images/u309.png" style="width:30px; height:30px">
315
-          </div>
316
-          <div class="buttonthree">
317
-           <img src="static/images/phone.png" style="width:30px;height:30px">
318
-          </div>
319
-          <div class="buttonfour">
320
-             <img src="static/images/u311.png" style="width:30px; height:30px">
321
-          </div> -->
322
       </div>
320
       </div>
323
     </div> 
321
     </div> 
324
 </template>
322
 </template>
332
      Vue.component(Swipe.name, Swipe);
330
      Vue.component(Swipe.name, Swipe);
333
      Vue.component(SwipeItem.name, SwipeItem);
331
      Vue.component(SwipeItem.name, SwipeItem);
334
      import { getHospitaldata,getArticlelist,getActivities,hispitalmore,officemore,docmore,kemore,articlemore,Activitiesmore,getDefalutNavigationData,getOrderModel,getAllConnecWay,
332
      import { getHospitaldata,getArticlelist,getActivities,hispitalmore,officemore,docmore,kemore,articlemore,Activitiesmore,getDefalutNavigationData,getOrderModel,getAllConnecWay,
335
-     singleActivitInfo,singleArticleInfo,singleDoctorInfo} from '@/api/micro/micro'
333
+     singleActivitInfo,singleArticleInfo,singleDoctorInfo,GetRotationLinkAddress} from '@/api/micro/micro'
334
+import { link } from 'fs';
336
     export default {
335
     export default {
337
         name: "micro",
336
         name: "micro",
338
         data(){
337
         data(){
408
         }
407
         }
409
        })
408
        })
410
       },
409
       },
411
-
412
-      hispitalmore(id,orgid){
413
-        hispitalmore(id,orgid).then(response=>{
414
-           if(response.data.state ==1){
415
-              var hospital =  response.data.data.hospital;
416
-              console.log("hospital",hospital)
417
-              this.hospitalform =  response.data.data.hospital;
418
-              this.modelshow = false;
419
-              this.hosshow = true;
420
-              this.showindex = true;
421
-              this.showtop = true;     
422
-           }
423
-        })
424
-      }, 
410
+       
411
+       hispitalmore(){
412
+          alert("aaa")
413
+          this.$router.push({path:'/hospital'});
414
+       },
415
+      // hispitalmore(id,orgid){
416
+      //   hispitalmore(id,orgid).then(response=>{
417
+      //      if(response.data.state ==1){
418
+      //         var hospital =  response.data.data.hospital;
419
+      //         console.log("hospital",hospital)
420
+      //         this.hospitalform =  response.data.data.hospital;
421
+      //         this.modelshow = false;
422
+      //         this.hosshow = true;
423
+      //         this.showindex = true;
424
+      //         this.showtop = true;     
425
+      //      }
426
+      //   })
427
+      // }, 
425
     //查看科室详情
428
     //查看科室详情
426
     officemore(id,orgid){
429
     officemore(id,orgid){
427
       officemore(id,orgid).then(response=>{
430
       officemore(id,orgid).then(response=>{
503
           this.contactShow = false;
506
           this.contactShow = false;
504
           this.keshow = false;
507
           this.keshow = false;
505
           this.hosshow = false;
508
           this.hosshow = false;
506
-          this.getHospitaldata(this.$route.query.orgid);
509
+          this.docshow = false;
510
+          this.ActivitieslistShow = false;
511
+          this.ArticlelistShow = false;
512
+          this.OfficeEnviromentShow = false;
513
+          this.singleDoctorshow = false;
514
+          this.singleArticleshow = false;
515
+          this.singleActiveshow = false;
516
+          this.showindex = false;    
517
+          this.showtop = false;  
507
         }
518
         }
508
 
519
 
509
         if(title == "联系我们"){  
520
         if(title == "联系我们"){  
521
+            this.singleDoctorshow = false;
522
+            this.singleArticleshow = false;
523
+            this.singleActiveshow = false;
524
+            this.ActivitieslistShow = false;
525
+            this.ArticlelistShow = false;
526
+            this.keshow = false;
527
+            this.hosshow = false;
528
+            this.docshow = false;
510
             this.modelshow = false;
529
             this.modelshow = false;
511
            this.contactShow = true;
530
            this.contactShow = true;
512
            this.getOrderModel(orgid);
531
            this.getOrderModel(orgid);
532
+         
513
         }
533
         }
514
         if(title == "在线客服"){
534
         if(title == "在线客服"){
515
            window.location.href = 'tel://'+address+'';
535
            window.location.href = 'tel://'+address+'';
521
         
541
         
522
       },
542
       },
523
 
543
 
544
+      clickTitle(id,orgid){
545
+          this.modelshow = false;
546
+          this.singleArticleshow = true;
547
+          this.showindex = true;    
548
+          this.showtop = true;  
549
+         singleArticleInfo(id,orgid).then(response=>{
550
+             if(response.data.state == 1){
551
+                   var articles =  response.data.data.articles;
552
+                   this.articles = articles;
553
+               }
554
+         })
555
+         
556
+      },
557
+
558
+      clickActiles(id,orgid){
559
+         this.modelshow = false;
560
+         this.singleActiveshow = true;
561
+         this.showindex = true;    
562
+         this.showtop = true;  
563
+        singleActivitInfo(id,orgid).then(response=>{
564
+           if(response.data.state ==1){
565
+                 var activitys = response.data.data.activity;
566
+                this.activitys = activitys;
567
+                console.log("activitys",activitys)
568
+            }
569
+        })
570
+      },
571
+
524
         returnIndex(){
572
         returnIndex(){
525
              this.defalutshow = false;
573
              this.defalutshow = false;
526
              this.modelshow = true;
574
              this.modelshow = true;
537
              this.singleActiveshow = false;
585
              this.singleActiveshow = false;
538
          },  
586
          },  
539
         returntop(){
587
         returntop(){
540
-         this.scrollToTopTimer();    
541
-        },
542
-        scrollToTop() {
543
-           this.scrollTop = document.getElementById('target').scrollTop;
544
-           console.log("这个是什么",this.scrollToTop)
588
+          document.documentElement.scrollTop = 0
545
         },
589
         },
546
-       backTop() {
547
-          this.timer = setInterval(()=>{
548
-          this.scrollToTopTimer()
549
-          },20)
550
-         },
551
-       scrollToTopTimer() {
552
-         let scrollTop = this.scrollTop;
553
-         console.log("scrollTop是什么",scrollTop)
554
-         if(scrollTop > 0) {
555
-           scrollTop -= 100
556
-           if(scrollTop <= 0) {
557
-             scrollTop = 0
558
-             clearInterval(this.timer)
559
-            }
560
-           }
561
-          document.getElementById('target').scrollTop = scrollTop;
562
-          console.log("娃哈哈",scrollTop)
563
-         },
564
-
590
+  
565
          getDefalutNavigationData(orgid){
591
          getDefalutNavigationData(orgid){
566
            getDefalutNavigationData(orgid).then(response=>{
592
            getDefalutNavigationData(orgid).then(response=>{
567
              if(response.data.state == 1){
593
              if(response.data.state == 1){
692
             }
718
             }
693
            },
719
            },
694
 
720
 
721
+           docClick(id,orgid){
722
+              this.modelshow = false;
723
+              this.singleDoctorshow = true;
724
+              this.showtop = true;
725
+              this.showindex = true;   
726
+              singleDoctorInfo(id,orgid).then(response=>{
727
+                 if(response.data.state ==1){
728
+                 var editdoctor = response.data.data.editdoctor;
729
+                 console.log("editdoctor",editdoctor)
730
+                 this.doctors = editdoctor;
731
+                }
732
+              })
733
+           },
734
+
695
            singleDoctorInfo(id,orgid){
735
            singleDoctorInfo(id,orgid){
696
-             this.docshow = false;
697
-             this.singleDoctorshow = true;
736
+              this.docshow = false;
737
+              this.singleDoctorshow = true;
698
              singleDoctorInfo(id,orgid).then(response=>{
738
              singleDoctorInfo(id,orgid).then(response=>{
699
                if(response.data.state ==1){
739
                if(response.data.state ==1){
700
-                 var editdoctor =   response.data.data.editdoctor;
740
+                 var editdoctor =  response.data.data.editdoctor;
701
                  this.doctors = editdoctor;
741
                  this.doctors = editdoctor;
702
                  console.log("editdoctor",editdoctor)
742
                  console.log("editdoctor",editdoctor)
703
                }
743
                }
727
              })
767
              })
728
            },
768
            },
729
 
769
 
730
-           rotationlink(){
731
-             this.$router.push({path:'/#/rotation'})
770
+           rotationlink(linkid,orgid){
771
+              GetRotationLinkAddress(linkid,orgid).then(response=>{
772
+                  if(response.data.state == 1){
773
+                     var linkaddress =  response.data.data.linkaddress;
774
+                     console.log("linkaddres是什么",linkaddress)
775
+                     window.location.href = linkaddress.defineaddress;
776
+                  }
777
+              })
778
+           },
779
+           tallPhone(content){
780
+               window.location.href = 'tel://'+content+'';
732
            }
781
            }
733
         },
782
         },
734
-      destroyed(){
735
-        clearInterval(this.timer)
736
-        document.getElementById('target').removeEventListener('scroll', this.scrollToTop);
737
-      }, 
738
        created(){
783
        created(){
739
            const orgid = this.$route.query.orgid;
784
            const orgid = this.$route.query.orgid;
740
            console.log("机构id是",orgid)
785
            console.log("机构id是",orgid)
816
              clickable: true,
861
              clickable: true,
817
             },
862
             },
818
         });
863
         });
819
-
820
-
821
-        // document.getElementById('target').addEventListener('scroll', this.scrollToTop)
822
        },
864
        },
823
     }
865
     }
824
 </script>
866
 </script>
825
 
867
 
826
 <style scoped>
868
 <style scoped>
869
+
870
+    .swiper-slide{
871
+      margin-bottom: 60px;
872
+     }
827
     .scroll{
873
     .scroll{
828
         width: 100%;
874
         width: 100%;
829
         height: 100%;
875
         height: 100%;
1265
 
1311
 
1266
     .oldmodeone{
1312
     .oldmodeone{
1267
         width: 318px;
1313
         width: 318px;
1268
-        height: 100%;
1314
+        min-height: 22px;
1269
         /* border: solid 1px red; */
1315
         /* border: solid 1px red; */
1270
-        margin-bottom: 8px;
1316
+        margin-bottom: 8px;       
1317
+    }
1318
+
1319
+    .oldmodesix{
1320
+       position: absolute;
1321
+       width: 50px;
1322
+       min-height: 20px;
1323
+       /* border: solid 1px blue; */
1324
+       margin-left: 200px;
1325
+       margin-top: -20px;
1326
+    }
1327
+
1328
+    .oldmodefive{
1329
+      width: 250px;
1330
+      min-height: 20px;
1331
+      /* border: solid 1px red; */
1271
     }
1332
     }
1272
 
1333
 
1273
   .oldmodefour{
1334
   .oldmodefour{
1302
   }
1363
   }
1303
 
1364
 
1304
   .artictitle{
1365
   .artictitle{
1305
-    width: 100%;
1366
+    /* position: absolute; */
1367
+    min-width: 300px;
1306
     min-height: 20px;
1368
     min-height: 20px;
1307
     /* border:solid 1px red; */
1369
     /* border:solid 1px red; */
1308
     text-align: center;
1370
     text-align: center;
1309
   }
1371
   }
1310
   
1372
   
1311
    .articcontent{
1373
    .articcontent{
1374
+     /* position: relative; */
1312
      width: 100%;
1375
      width: 100%;
1313
-     height: 100%;
1376
+     min-height: 200px;
1314
      /* border:solid 1px red; */
1377
      /* border:solid 1px red; */
1315
    }
1378
    }
1316
    
1379
    
1331
   
1394
   
1332
    .doctorname{
1395
    .doctorname{
1333
      position: absolute;
1396
      position: absolute;
1334
-     width: 100%;
1397
+     min-width: 100px;
1335
      height: 20px;
1398
      height: 20px;
1336
      /* border: solid 1px red; */
1399
      /* border: solid 1px red; */
1337
      margin-left: 100px;
1400
      margin-left: 100px;
1340
    }
1403
    }
1341
    .doctorposition{
1404
    .doctorposition{
1342
      position: absolute;
1405
      position: absolute;
1343
-     width: 100%;
1406
+     min-width: 100px;
1344
      height: 20px;
1407
      height: 20px;
1345
      /* border: solid 1px red; */
1408
      /* border: solid 1px red; */
1346
      margin-left: 100px;
1409
      margin-left: 100px;
1350
 
1413
 
1351
    .doctorintroduction{
1414
    .doctorintroduction{
1352
      /* position: absolute; */
1415
      /* position: absolute; */
1353
-     width: 100%;
1354
-     height: 20px;
1416
+     min-width: 100px;
1417
+     min-height: 20px;
1355
      margin-left: 10px;
1418
      margin-left: 10px;
1356
      /* border:solid 1px red; */
1419
      /* border:solid 1px red; */
1357
      font-size: 14px;
1420
      font-size: 14px;
1358
    }
1421
    }
1359
    .doctorintro{
1422
    .doctorintro{
1360
-     position: absolute;
1423
+     /* position: absolute; */
1361
      width: 100%;
1424
      width: 100%;
1362
-     height: 100%;
1425
+     min-height: 200px;
1363
      /* border:solid 1px red; */
1426
      /* border:solid 1px red; */
1364
      font-size: 14px;
1427
      font-size: 14px;
1365
-     margin-left: 10px;
1428
+     /* margin-left: 10px; */
1366
    }
1429
    }
1367
 </style>
1430
 </style>

File diff suppressed because it is too large
+ 0 - 1137
src/scrm_pages/qrcode/qrcode.vue


+ 0 - 13
src/scrm_pages/rotation/rotation.vue View File

1
-<template>
2
-
3
-</template>
4
-
5
-<script>
6
-    export default {
7
-        name: "rotation"
8
-    }
9
-</script>
10
-
11
-<style scoped>
12
-
13
-</style>

BIN
static/images/u318.png View File