xiaoming_global 5 yıl önce
ebeveyn
işleme
6c67cfc78d

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

@@ -60,12 +60,53 @@ var _constant_router_map = [{
60 60
   component: ()=>import('@/scrm_pages/micro/micro'),
61 61
 },
62 62
 
63
+// 医院介绍详情路由
63 64
 {
64 65
   path: '/hospital',
65 66
   component: () => import('@/scrm_pages/hospital/hospital'),
66 67
   name: 'hospital',
68
+},
69
+
70
+// 科室介绍详情
71
+{
72
+  path: '/office',
73
+  component: ()=>import('@/scrm_pages/office/office'),
74
+  name:'office'
75
+},
76
+
77
+// 名医介绍详情
78
+{
79
+  path:'/doctor',
80
+  component: ()=>import('@/scrm_pages/doctor/doctor'),
81
+  name:'doctor',
82
+},
83
+{
84
+  path:'/docdetail',
85
+  component: ()=>import('@/scrm_pages/doctor/docdetail'),
86
+  name:'docdetail',
87
+},
88
+
89
+{
90
+  path:'/articlelist',
91
+  component: ()=>import('@/scrm_pages/articlelist/articlelist'),
92
+  name:'articlelist'
93
+},
94
+
95
+{
96
+  path:'/articlelistdetail',
97
+  component:()=>import('@/scrm_pages/articlelist/articlelistdetail')
98
+},
67 99
 
100
+{
101
+  path:'/activitylist',
102
+  component:()=>import('@/scrm_pages/activitylist/activitylist')
68 103
 },
104
+{
105
+  path:"/activitylistdetail",
106
+  component:()=>import('@/scrm_pages/activitylist/activitylistdetail')
107
+
108
+},
109
+
69 110
 {
70 111
   path: '/activity/preview',
71 112
   component: () => import('@/scrm_pages/marketing_tool/activity_preview'),

+ 0 - 5
src/router/modules/hosiptal.js Dosyayı Görüntüle

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

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

@@ -0,0 +1,92 @@
1
+<template>
2
+   <div>     
3
+     <div class="scroll"  id="targetsix" style="padding:15px 4%;">
4
+            <div class="actilist" v-for="it in Activitieslist" :key="it.id" @click="singleActivitInfo(it.id,it.user_org_id)">
5
+                <div class="acthead">
6
+                    <img :src="it.poster_photo" style="width:80px;height:80px">
7
+                </div>
8
+                <div class="actcontent">
9
+                     <div class="actname"><span>{{it.title}}</span></div>
10
+                 </div>
11
+             </div>
12
+         </div>
13
+     </div>  
14
+</template>
15
+
16
+<script>
17
+      import { Activitiesmore } from "@/api/micro/micro"
18
+    export default {
19
+        name: "activitylist",
20
+        data(){
21
+           return{
22
+              Activitieslist:[],
23
+           }
24
+        },
25
+        methods:{
26
+             Activitiesmore(id,orgid){
27
+                Activitiesmore(id,orgid).then(response=>{
28
+                     if(response.data.state == 1){
29
+                       var activity =  response.data.data.activity;
30
+                       this.Activitieslist =  response.data.data.activity;                 
31
+                       console.log("获取活动列表",activity)
32
+                    }
33
+                })
34
+             },
35
+             singleActivitInfo(id,orgid){
36
+                this.$router.push({
37
+                    path:'/activitylistdetail',
38
+                    query:{
39
+                     id:id,
40
+                     orgid,orgid,
41
+                   }
42
+                })
43
+             }
44
+        },
45
+        created(){
46
+            const id = this.$route.query.id;
47
+           const orgid = this.$route.query.orgid;
48
+           console.log("id是多少",id)
49
+            console.log("orgid是多少",orgid)
50
+            this.Activitiesmore(id,orgid)
51
+        }
52
+    }
53
+</script>
54
+
55
+<style scoped>
56
+    .actilist{
57
+      width:100%;
58
+      height: 90px;
59
+      /* border:solid 1px red; */
60
+      margin-left: 5px;
61
+    }
62
+
63
+    .acthead{
64
+      width: 80px;
65
+      height: 80px;
66
+     /* border: solid 1px red; */
67
+      margin-left: 5px;
68
+      margin-top: 5px;
69
+    }
70
+
71
+    .actcontent{
72
+      width: 200px;
73
+      height: 80px;
74
+       /* border: solid 1px red; */
75
+      margin-left: 90px;
76
+      margin-top: -82px;
77
+    }
78
+
79
+     .actname{
80
+      width:190px;
81
+      height: 15px;
82
+      /* border:solid 1px red; */
83
+      margin-left: 5px;
84
+      margin-top: 10px;
85
+      font-size: 14px;
86
+      overflow: hidden;
87
+       text-overflow: ellipsis;
88
+      display: -webkit-box;
89
+      -webkit-line-clamp: 1;
90
+      -webkit-box-orient: vertical;
91
+    }
92
+</style>

+ 76 - 0
src/scrm_pages/activitylist/activitylistdetail.vue Dosyayı Görüntüle

@@ -0,0 +1,76 @@
1
+<template>
2
+   <div>
3
+        <!-- 单个活动列表详情 -->
4
+                    <div class="scroll" style="padding:15px 4%;">
5
+                         <div class="activityImages">
6
+                            <img :src="activitys.poster_photo" style="width:100%;height:100%">
7
+                         </div>
8
+                         <div class="activitycontent">
9
+                            活动标题:{{activitys.title}}
10
+                         </div>
11
+                          <div class="activitycontent">
12
+                            活动副标题:{{activitys.subtitle}}
13
+                         </div>
14
+                          <div class="activitycontent">
15
+                            活动详细地址:{{activitys.address}}
16
+                         </div>
17
+                          <div class="activitycontent">
18
+                            开始时间:开始时间: {{staffCreateTime(activitys.start_time)}}
19
+                         </div>
20
+                          <div class="activitycontent">
21
+                            结束时间:{{staffCreateTime(activitys.end_time)}}
22
+                         </div>
23
+                          <div class="activitycontent">
24
+                            报名须知:{{activitys.sign_up_notice}}
25
+                         </div>
26
+                          <div class="activitycontent">
27
+                            联系方式:{{activitys.phone_number}}
28
+                         </div>
29
+                          <div class="activitycontent">
30
+                            限制人数:{{activitys.limit_num}}
31
+                         </div>
32
+                          <div class="activitycontent">
33
+                            已报名人数:{{activitys.join_num}}
34
+                         </div>
35
+                    </div>
36
+   </div>
37
+</template>
38
+
39
+<script>
40
+    import {uParseTime} from "@/utils/tools";
41
+    import { singleActivitInfo } from "@/api/micro/micro"
42
+    export default {
43
+        name: "activitylistdetail",
44
+        data(){
45
+             return{
46
+               activitys:[],
47
+             }
48
+        },
49
+        methods:{
50
+           staffCreateTime(time) {
51
+             console.log("time是多少",time)
52
+             return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");       
53
+            },
54
+            singleActivitInfo(id,orgid){
55
+               singleActivitInfo(id,orgid).then(response=>{
56
+                  if(response.data.state ==1){
57
+                  var activitys = response.data.data.activity;
58
+                  this.activitys = activitys;
59
+                  console.log("activitys",activitys)
60
+                }   
61
+               })
62
+            }
63
+        },
64
+        created(){
65
+           const id = this.$route.query.id;
66
+           const orgid = this.$route.query.orgid;
67
+           console.log("id是多少",id)
68
+           console.log("orgid是多少",orgid)
69
+           this.singleActivitInfo(id,orgid)    
70
+        }
71
+    }
72
+</script>
73
+
74
+<style scoped>
75
+
76
+</style>

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

@@ -0,0 +1,102 @@
1
+<template>
2
+    <div>
3
+             <div class="scroll"  id="targetfive"  style="padding:15px 4%;">
4
+                <div class="actilist" v-for="it in articlelist" :key="it.id" @click="singleArticleInfo(it.id,it.user_org_id)">
5
+                    <div class="acthead">
6
+                       <img :src="it.imgs" style="width:80px;height:80px">
7
+                     </div>
8
+                    <div class="actcontent">
9
+                    <div class="actname"><span>{{it.title}}</span></div>
10
+                    <!-- <div class="actcomments">阅读:{{it.real_read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div> -->
11
+                    </div>
12
+                 </div>
13
+              </div>
14
+     </div>
15
+</template>
16
+
17
+<script>
18
+    import { articlemore,singleArticleInfo } from "@/api/micro/micro"
19
+    export default {
20
+        name: "articlelist",
21
+        data(){
22
+           return{
23
+              articlelist:[], 
24
+           }
25
+        },
26
+        methods:{
27
+          articlemore(id,orgid){
28
+            articlemore(id,orgid).then(response=>{
29
+                  if(response.data.state == 1){
30
+                   var articlelist =  response.data.data.articlelists;  
31
+                   console.log("文章列表数据",articlelist)             
32
+                   this.articlelist =  response.data.data.articlelists;
33
+               }
34
+            })  
35
+          },
36
+
37
+          singleArticleInfo(id,orgid){
38
+            this.$router.push({
39
+                path:"/articlelistdetail",
40
+                query:{
41
+                    id:id,
42
+                    orgid:orgid,
43
+                }
44
+            })
45
+          }
46
+        },
47
+        created(){
48
+           const id = this.$route.query.id;
49
+           const orgid = this.$route.query.orgid;
50
+           console.log("id是多少",id)
51
+           console.log("orgid是多少",orgid)
52
+          this.articlemore(id,orgid)
53
+        }
54
+    }
55
+</script>
56
+
57
+<style scoped>
58
+    .actilist{
59
+      width:100%;
60
+      height: 90px;
61
+      /* border:solid 1px red; */
62
+      margin-left: 5px;
63
+    }
64
+
65
+    .acthead{
66
+      width: 80px;
67
+      height: 80px;
68
+     /* border: solid 1px red; */
69
+      margin-left: 5px;
70
+      margin-top: 5px;
71
+    }
72
+
73
+    .actcontent{
74
+      width: 200px;
75
+      height: 80px;
76
+       /* border: solid 1px red; */
77
+      margin-left: 90px;
78
+      margin-top: -82px;
79
+    }
80
+
81
+     .actname{
82
+      width:190px;
83
+      height: 15px;
84
+      /* border:solid 1px red; */
85
+      margin-left: 5px;
86
+      margin-top: 10px;
87
+      font-size: 14px;
88
+      overflow: hidden;
89
+       text-overflow: ellipsis;
90
+      display: -webkit-box;
91
+      -webkit-line-clamp: 1;
92
+      -webkit-box-orient: vertical;
93
+    }
94
+    .actcomments{
95
+      width: 190px;
96
+      height: 20px;
97
+      /* border:solid 1px red; */
98
+      margin-left: 5px;
99
+      margin-top: 2px;
100
+      font-size: 14px;
101
+    }
102
+</style>

+ 59 - 0
src/scrm_pages/articlelist/articlelistdetail.vue Dosyayı Görüntüle

@@ -0,0 +1,59 @@
1
+<template>
2
+   <div>
3
+         <!-- 单个文章列表详情 -->
4
+          <div class="scroll"  style="padding:15px 4%;">                   
5
+               <div class="artictitle">
6
+                  {{articles.title}}
7
+               </div>
8
+                <div class="articcontent" v-html="articles.content">
9
+
10
+                </div>                    
11
+              </div>
12
+   </div>
13
+</template>
14
+
15
+<script>
16
+   import { singleArticleInfo } from "@/api/micro/micro"
17
+    export default {
18
+        name: "articlelistdetail",
19
+        data(){
20
+            return{
21
+              articles:[],
22
+            }
23
+        },
24
+        methods:{
25
+          singleArticleInfo(id,orgid){
26
+             singleArticleInfo(id,orgid).then(response=>{
27
+                 if(response.data.state == 1){
28
+                   var articles =  response.data.data.articles;
29
+                   this.articles = articles;
30
+                } 
31
+             })
32
+          }
33
+        },
34
+        created(){
35
+           const id = this.$route.query.id;
36
+           const orgid = this.$route.query.orgid;
37
+           console.log("id是多少",id)
38
+           console.log("orgid是多少",orgid)
39
+           this.singleArticleInfo(id,orgid)  
40
+        }
41
+    }
42
+</script>
43
+
44
+<style scoped>
45
+  .artictitle{
46
+    /* position: absolute; */
47
+    min-width: 300px;
48
+    min-height: 20px;
49
+    /* border:solid 1px red; */
50
+    text-align: center;
51
+  }
52
+  
53
+   .articcontent{
54
+     /* position: relative; */
55
+     width: 100%;
56
+     min-height: 200px;
57
+     /* border:solid 1px red; */
58
+   }
59
+</style>

+ 104 - 0
src/scrm_pages/doctor/docdetail.vue Dosyayı Görüntüle

@@ -0,0 +1,104 @@
1
+<template>
2
+     <div>
3
+         <!-- 单个名医介绍 -->
4
+                    <div class="scroll"  style="padding:15px 4%;">
5
+
6
+                        <div class="doctorInfo">
7
+                              <div class="doctorhead">
8
+                                  <img :src="doctors.dochead" style="width:100%;height:100%">
9
+                              </div>
10
+                              <div class="doctorname">
11
+                                  姓名:{{doctors.doc_name}}
12
+                              </div>
13
+                              <div class="doctorposition">
14
+                                职位:{{doctors.doc_postion}}
15
+                              </div>
16
+                        </div>
17
+                         <div class="doctorintroduction">医生简介:</div>
18
+                         <div class="doctorintro" v-html="doctors.docintroduction"></div>
19
+                    </div>
20
+            </div>
21
+</template>
22
+
23
+<script>
24
+     import { singleDoctorInfo } from "@/api/micro/micro"
25
+    export default {
26
+        name: "docdetail",
27
+        data(){
28
+          return{
29
+              doctors:[],
30
+          }
31
+        },
32
+        methods:{
33
+            singleDoctorInfo(id,orgid){
34
+                singleDoctorInfo(id,orgid).then(response=>{
35
+                    if(response.data.state ==1){
36
+                     var editdoctor = response.data.data.editdoctor;
37
+                     console.log("editdoctor",editdoctor)
38
+                     this.doctors = editdoctor;
39
+                    }
40
+                })
41
+            }
42
+        },
43
+        created(){
44
+           const id = this.$route.query.id;
45
+           const orgid = this.$route.query.orgid;
46
+           console.log("id是多少",id)
47
+            console.log("orgid是多少",orgid)
48
+            this.singleDoctorInfo(id,orgid)
49
+        }
50
+    }
51
+</script>
52
+
53
+<style scoped>
54
+    .doctorInfo{
55
+     width: 100%;
56
+     height: 100px;
57
+     /* border: solid 1px red; */
58
+   }
59
+
60
+   .doctorhead{
61
+     position: absolute;
62
+     width: 80px;
63
+     height: 80px;
64
+     /* border: solid 1px red; */
65
+     margin-left: 10px;
66
+     margin-top: 10px;
67
+   }
68
+
69
+   .doctorname{
70
+     position: absolute;
71
+     min-width: 100px;
72
+     height: 20px;
73
+     /* border: solid 1px red; */
74
+     margin-left: 100px;
75
+     margin-top: 20px;
76
+     font-size: 14px;
77
+   }
78
+   .doctorposition{
79
+     position: absolute;
80
+     min-width: 100px;
81
+     height: 20px;
82
+     /* border: solid 1px red; */
83
+     margin-left: 100px;
84
+     margin-top: 45px;
85
+     font-size: 14px;
86
+   }
87
+
88
+   .doctorintroduction{
89
+     /* position: absolute; */
90
+     min-width: 100px;
91
+     min-height: 20px;
92
+     margin-left: 10px;
93
+     /* border:solid 1px red; */
94
+     font-size: 14px;
95
+   }
96
+   .doctorintro{
97
+     /* position: absolute; */
98
+     width: 100%;
99
+     min-height: 200px;
100
+     /* border:solid 1px red; */
101
+     font-size: 14px;
102
+     /* margin-left: 10px; */
103
+   }
104
+</style>

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

@@ -0,0 +1,102 @@
1
+<template>
2
+        <!-- 名医介绍详情 -->
3
+       <div class="scroll"  id="targetthree" style="padding:15px 4%">
4
+           <div class="docone" v-for="item in this.editdocfrom" :key="item.id" @click="singleDoctorInfo(item.id,item.user_org_id)">
5
+             <div class="doctwo">
6
+              <img :src="item.dochead" style="width:80px;height:80px">
7
+             </div>
8
+             <div class="docthree">
9
+               <span class="docfour">{{item.doc_name}}</span>
10
+            </div>
11
+            <div class="docfive">
12
+                 <span class="docsix" v-html="item.docintroduction"></span>
13
+            </div>
14
+         </div>
15
+        </div>
16
+</template>
17
+
18
+<script>
19
+      import { docmore } from "@/api/micro/micro"
20
+    export default {
21
+        name: "doctor",
22
+        data(){
23
+             return{
24
+                 editdocfrom:[],
25
+             }
26
+        },
27
+        methods:{
28
+            docmore(id,orgid){
29
+                docmore(id,orgid).then(response=>{
30
+                     if(response.data.state == 1){
31
+                       var editdoctor =  response.data.data.editdoctor;
32
+                       this.editdocfrom  =  response.data.data.editdoctor;
33
+                       console.log("编辑医生返回数据",editdoctor)
34
+                    }
35
+                 })
36
+            },
37
+            singleDoctorInfo(id,orgid){
38
+                this.$router.push({
39
+                       path:'docdetail',
40
+                       query:{
41
+                           id:id,
42
+                           orgid:orgid,
43
+                       }
44
+                    }
45
+                )
46
+            }
47
+        },
48
+        created(){
49
+           const id = this.$route.query.id;
50
+           const orgid = this.$route.query.orgid;
51
+           console.log("id是多少",id)
52
+           console.log("orgid是多少",orgid)
53
+            this.docmore(id,orgid)
54
+        },
55
+    }
56
+</script>
57
+
58
+<style scoped>
59
+    .docone{
60
+       width:310px;
61
+       height:100px;
62
+       /* border: solid red 1px; */
63
+       margin-left: 5px;
64
+      overflow: hidden;
65
+     }
66
+
67
+     .doctwo{
68
+       width:80px;
69
+       height: 80px;
70
+       /* border:  solid red 1px; */
71
+       margin-top: 10px;
72
+       margin-left: 5px;
73
+     }
74
+
75
+     .docthree{
76
+       width: 50px;
77
+       height: 20px;
78
+      /* border:solid red 1px; */
79
+       margin-left: 100px;
80
+       margin-top: -75px;
81
+
82
+     }
83
+     .docfour{
84
+       font-size: 14px;
85
+     }
86
+
87
+     .docfive{
88
+       width:200px;
89
+       height: 50px;
90
+       /* border:solid 1px red; */
91
+       margin-left: 100px;
92
+       margin-top: 5px;
93
+     }
94
+     .docsix{
95
+       font-size: 14px;
96
+       overflow: hidden;
97
+       text-overflow: ellipsis;
98
+       display: -webkit-box;
99
+      -webkit-line-clamp: 3;
100
+      -webkit-box-orient: vertical
101
+     }
102
+</style>

+ 23 - 5
src/scrm_pages/hospital/hospital.vue Dosyayı Görüntüle

@@ -1,17 +1,35 @@
1 1
 <template>
2 2
   <div>
3
-    <el-input v-model='msg' placeholder='输入'></el-input>
4
-    <p>{{ msg }}</p>
3
+      <div class="scroll"  style="padding:15px 4%;" v-html="hospitalform.introduction"></div>
5 4
   </div>
6 5
 </template>
7 6
 
8 7
 <script>
8
+import { hispitalmore } from "@/api/micro/micro"
9 9
 export default {
10 10
   name: 'hospital',
11
-  data: function() {
12
-    return {
13
-      msg: ''
11
+  data(){
12
+      return{
13
+        hospitalform:[],
14
+      }
15
+  },
16
+  methods:{
17
+    hispitalmore(id,orgid){
18
+        hispitalmore(id,orgid).then(response=>{
19
+             if(response.data.state ==1){
20
+              var hospital =  response.data.data.hospital;
21
+              console.log("hospital",hospital)
22
+              this.hospitalform =  response.data.data.hospital;
23
+           }
24
+        })
14 25
     }
26
+  },
27
+  created(){
28
+     const id = this.$route.query.id;
29
+     const orgid = this.$route.query.orgid;
30
+     console.log("id是多少",id)
31
+     console.log("orgid是多少",orgid)
32
+     this.hispitalmore(id,orgid)
15 33
   }
16 34
 }
17 35
 </script>

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

@@ -135,24 +135,8 @@
135 135
          </div>
136 136
      </div>
137 137
        <div class="scroll" v-show="defalutshow">暂无数据</div>
138
-       <!-- 医院介绍详情 -->
139
-       <div class="scroll" v-show="hosshow" style="padding:15px 4%;" v-html="hospitalform.introduction"></div>
140
-       <!-- 科室介绍详情 -->
141
-      <div class="scroll" v-show="keshow" style="padding:15px 4%;"  v-html="officeform.introduction"></div>
142
-      <!-- 名医介绍详情 -->
143
-       <div class="scroll" v-show="docshow" id="targetthree" style="padding:15px 4%">
144
-           <div class="docone" v-for="item in this.editdocfrom" :key="item.id" @click="singleDoctorInfo(item.id,item.user_org_id)">
145
-             <div class="doctwo">
146
-              <img :src="item.dochead" style="width:80px;height:80px">
147
-             </div>
148
-             <div class="docthree">
149
-               <span class="docfour">{{item.doc_name}}</span>
150
-            </div>
151
-            <div class="docfive">
152
-                 <span class="docsix" v-html="item.docintroduction"></span>
153
-            </div>
154
-         </div>
155
-        </div>
138
+     
139
+  
156 140
 
157 141
          <!--科室环境详情  -->
158 142
             <div class="scroll" v-show="OfficeEnviromentShow" id="targetfour">
@@ -169,34 +153,9 @@
169 153
            </div>
170 154
           </div>
171 155
 
172
-             <!-- 文章列表详情 -->
173
-             <div class="scroll" v-show="ArticlelistShow" id="targetfive"  style="padding:15px 4%;">
174
-                <div class="actilist" v-for="it in Articlelist" :key="it.id" @click="singleArticleInfo(it.id,it.user_org_id)">
175
-                    <div class="acthead">
176
-                       <img :src="it.imgs" style="width:80px;height:80px">
177
-                     </div>
178
-                    <div class="actcontent">
179
-                    <div class="actname"><span>{{it.title}}</span></div>
180
-                    <!-- <div class="actcomments">阅读:{{it.real_read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div> -->
181
-                    </div>
182
-                 </div>
183
-              </div>
156
+            
184 157
 
185
-              <!-- 活动列表详情 -->
186
-                 <div class="scroll" v-show="ActivitieslistShow" id="targetsix" style="padding:15px 4%;">
187
-                     <div class="actilist" v-for="it in Activitieslist" :key="it.id" @click="singleActivitInfo(it.id,it.user_org_id)">
188
-                        <div class="acthead">
189
-                            <img :src="it.poster_photo" style="width:80px;height:80px">
190
-                        </div>
191
-                         <div class="actcontent">
192
-                             <div class="actname"><span>{{it.title}}</span></div>
193
-                             <!-- <div class="actcomments">阅读:{{it.read_num}}|评论:{{it.comment_num}}|点赞:{{it.star_num}}</div>
194
-                             <div class="progress">
195
-                               <el-progress :percentage="0"></el-progress>
196
-                             </div> -->
197
-                            </div>
198
-                          </div>
199
-                    </div>
158
+      
200 159
 
201 160
                     <!-- 联系我们页面 -->
202 161
                     <div class="scroll" v-show="contactShow" style="padding:15px 4%;">
@@ -229,69 +188,8 @@
229 188
                                      <div><span>{{item.title}}:&nbsp;&nbsp;{{item.Rideway.ride_way}}</span></div>
230 189
                                    </div>
231 190
                                </div>
232
-                    </div>
233
-
234
-                    <!-- 单个名医介绍 -->
235
-                    <div class="scroll" v-show="singleDoctorshow" style="padding:15px 4%;">
236
-                       
237
-                        <div class="doctorInfo">
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>
247
-                        </div>
248
-                         <div class="doctorintroduction">医生简介:</div>
249
-                         <div class="doctorintro" v-html="doctors.docintroduction"></div> 
250
-                    </div>
251
-
252
-                    <!-- 单个文章列表详情 -->
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">
258
-
259
-                            </div>                    
260
-                    </div>
261
-
262
-                    <!-- 单个活动列表详情 -->
263
-                    <div class="scroll" v-show="singleActiveshow" style="padding:15px 4%;">
264
-                         <div class="activityImages">
265
-                            <img :src="activitys.poster_photo" style="width:100%;height:100%">
266
-                         </div>
267
-                         <div class="activitycontent">
268
-                            活动标题:{{activitys.title}}
269
-                         </div>
270
-                          <div class="activitycontent">
271
-                            活动副标题:{{activitys.subtitle}}
272
-                         </div>
273
-                          <div class="activitycontent">
274
-                            活动详细地址:{{activitys.address}}
275
-                         </div>
276
-                          <div class="activitycontent">
277
-                            开始时间:开始时间: {{staffCreateTime(activitys.start_time)}}
278
-                         </div>
279
-                          <div class="activitycontent">
280
-                            结束时间:{{staffCreateTime(activitys.end_time)}}
281
-                         </div>
282
-                          <div class="activitycontent">
283
-                            报名须知:{{activitys.sign_up_notice}}
284
-                         </div>
285
-                          <div class="activitycontent">
286
-                            联系方式:{{activitys.phone_number}}
287
-                         </div>
288
-                          <div class="activitycontent">
289
-                            限制人数:{{activitys.limit_num}}
290
-                         </div>
291
-                          <div class="activitycontent">
292
-                            已报名人数:{{activitys.join_num}}
293
-                         </div>
294
-                    </div>
191
+                       </div>
192
+           
295 193
        <!-- 返回首页 -->
296 194
       <div class="showindex" v-show="showindex" @click="returnIndex()">
297 195
           <div class="rebackone">
@@ -329,8 +227,8 @@
329 227
      import {uParseTime} from "@/utils/tools";
330 228
      Vue.component(Swipe.name, Swipe);
331 229
      Vue.component(SwipeItem.name, SwipeItem);
332
-     import { getHospitaldata,getArticlelist,getActivities,hispitalmore,officemore,docmore,kemore,articlemore,Activitiesmore,getDefalutNavigationData,getOrderModel,getAllConnecWay,
333
-     singleActivitInfo,singleArticleInfo,singleDoctorInfo,GetRotationLinkAddress} from '@/api/micro/micro'
230
+     import { getHospitaldata,getArticlelist,getActivities,officemore,docmore,kemore,articlemore,Activitiesmore,getDefalutNavigationData,getOrderModel,getAllConnecWay,
231
+     singleActivitInfo,singleDoctorInfo,GetRotationLinkAddress} from '@/api/micro/micro'
334 232
 import { link } from 'fs';
335 233
     export default {
336 234
         name: "micro",
@@ -408,52 +306,36 @@ import { link } from 'fs';
408 306
        })
409 307
       },
410 308
        
411
-       hispitalmore(){
412
-          alert("aaa")
413
-          this.$router.push({path:'/hospital'});
309
+       hispitalmore(id,orgid){
310
+          this.$router.push({
311
+              path:'/hospital',
312
+              query:{
313
+                id:id,
314
+                orgid,orgid,
315
+              }
316
+          })
414 317
        },
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
-      // }, 
428
-    //查看科室详情
429
-    officemore(id,orgid){
430
-      officemore(id,orgid).then(response=>{
431
-         if(response.data.state ==1){
432
-           var offices = response.data.data.offices;
433
-           this.officeform = response.data.data.offices;
434
-           console.log("科室详情数据",offices)
435
-           this.modelshow = false;
436
-           this.keshow = true;
437
-           this.showindex = true;
438
-           this.showtop = true;  
439
-         }
440
-      })
441
-    },
442 318
 
443
-   // 查看名医详情
444
-    docmore(id,orgid){
445
-       docmore(id,orgid).then(response=>{
446
-         if(response.data.state == 1){
447
-           var editdoctor =  response.data.data.editdoctor;
448
-           this.editdocfrom  =  response.data.data.editdoctor;
449
-            this.modelshow = false;
450
-            this.docshow = true;
451
-            this.showindex = true;
452
-            this.showtop = true;  
453
-           console.log("编辑医生返回数据",editdoctor)
454
-         }
455
-       })
456
-    },
319
+       officemore(id,orgid){
320
+         this.$router.push({
321
+           path:'/office',
322
+           query:{
323
+             id:id,
324
+             orgid,orgid,
325
+           }
326
+         })
327
+       },
328
+
329
+       docmore(id,orgid){
330
+         this.$router.push({
331
+           path:'/doctor',
332
+           query:
333
+           {
334
+             id:id,
335
+             orgid,orgid, 
336
+           }
337
+         })
338
+       },
457 339
     
458 340
     // 查看科室环境详情
459 341
     kemore(id,orgid){
@@ -469,37 +351,26 @@ import { link } from 'fs';
469 351
         }
470 352
       })
471 353
     },
472
-   
473
-     articlemore(id,orgid){
474
-        articlemore(id,orgid).then(response=>{
475
-            if(response.data.state == 1){
476
-                 var articlelist =  response.data.data.articlelists;  
477
-                 console.log("文章列表数据",articlelist)             
478
-                 this.articlelist =  response.data.data.articlelists;
479
-                   this.modelshow = false;
480
-                   this.ArticlelistShow = true;
481
-                   this.showindex = true;    
482
-                  this.showtop = true;  
483
-            }
484
-        })
354
+      articlemore(id,orgid){
355
+          this.$router.push({
356
+           path:'/articlelist',
357
+           query:
358
+           {
359
+             id:id,
360
+             orgid,orgid, 
361
+           }
362
+         })
485 363
       },
486
-
487
-
488
-          // 查看活动列表详情
489
-    Activitiesmore(id,orgid){
490
-       Activitiesmore(id,orgid).then(response=>{
491
-         if(response.data.state == 1){
492
-           var activity =  response.data.data.activity;
493
-          this.Activitieslist =  response.data.data.activity;
494
-           this.modelshow = false;
495
-           this.ActivitieslistShow = true;
496
-            this.showindex = true;    
497
-            this.showtop = true;  
498
-           console.log("获取活动列表",activity)
499
-         }
500
-       })
501
-    },
502
-
364
+        
365
+      Activitiesmore(id,orgid){
366
+         this.$router.push({
367
+           path:'/activitylist',
368
+           query:{
369
+             id:id,
370
+             orgid,orgid,
371
+           }
372
+         })
373
+      },  
503 374
       callPhone(title,address){
504 375
         if(title == "首页"){
505 376
           this.modelshow = true
@@ -1069,42 +940,7 @@ import { link } from 'fs';
1069 940
       overflow: hidden;
1070 941
     }
1071 942
 
1072
-    .actilist{
1073
-      width:100%;
1074
-      height: 90px;
1075
-      /* border:solid 1px red; */
1076
-      margin-left: 5px;
1077
-    }
1078
-
1079
-    .acthead{
1080
-      width: 80px;
1081
-      height: 80px;
1082
-     /* border: solid 1px red; */
1083
-      margin-left: 5px;
1084
-      margin-top: 5px;
1085
-    }
1086
-
1087
-    .actcontent{
1088
-      width: 200px;
1089
-      height: 80px;
1090
-       /* border: solid 1px red; */
1091
-      margin-left: 90px;
1092
-      margin-top: -82px;
1093
-    }
1094
-
1095
-     .actname{
1096
-      width:190px;
1097
-      height: 15px;
1098
-      /* border:solid 1px red; */
1099
-      margin-left: 5px;
1100
-      margin-top: 10px;
1101
-      font-size: 14px;
1102
-      overflow: hidden;
1103
-       text-overflow: ellipsis;
1104
-      display: -webkit-box;
1105
-      -webkit-line-clamp: 1;
1106
-      -webkit-box-orient: vertical;
1107
-    }
943
+ 
1108 944
     .actcomments{
1109 945
       width: 190px;
1110 946
       height: 20px;
@@ -1376,55 +1212,42 @@ import { link } from 'fs';
1376 1212
      min-height: 200px;
1377 1213
      /* border:solid 1px red; */
1378 1214
    }
1379
-   
1380
-   .doctorInfo{
1381
-     width: 100%;
1382
-     height: 100px;
1383
-     /* border: solid 1px red; */
1384
-   }
1385 1215
 
1386
-   .doctorhead{
1387
-     position: absolute;
1388
-     width: 80px;
1389
-     height: 80px;
1390
-     /* border: solid 1px red; */
1391
-     margin-left: 10px;
1392
-     margin-top: 10px;
1393
-   }
1394
-  
1395
-   .doctorname{
1396
-     position: absolute;
1397
-     min-width: 100px;
1398
-     height: 20px;
1399
-     /* border: solid 1px red; */
1400
-     margin-left: 100px;
1401
-     margin-top: 20px;
1402
-     font-size: 14px;
1403
-   }
1404
-   .doctorposition{
1405
-     position: absolute;
1406
-     min-width: 100px;
1407
-     height: 20px;
1216
+     .actilist{
1217
+      width:100%;
1218
+      height: 90px;
1219
+      /* border:solid 1px red; */
1220
+      margin-left: 5px;
1221
+    }
1222
+
1223
+    .acthead{
1224
+      width: 80px;
1225
+      height: 80px;
1408 1226
      /* border: solid 1px red; */
1409
-     margin-left: 100px;
1410
-     margin-top: 45px;
1411
-     font-size: 14px;
1412
-   }
1227
+      margin-left: 5px;
1228
+      margin-top: 5px;
1229
+    }
1413 1230
 
1414
-   .doctorintroduction{
1415
-     /* position: absolute; */
1416
-     min-width: 100px;
1417
-     min-height: 20px;
1418
-     margin-left: 10px;
1419
-     /* border:solid 1px red; */
1420
-     font-size: 14px;
1421
-   }
1422
-   .doctorintro{
1423
-     /* position: absolute; */
1424
-     width: 100%;
1425
-     min-height: 200px;
1426
-     /* border:solid 1px red; */
1427
-     font-size: 14px;
1428
-     /* margin-left: 10px; */
1429
-   }
1231
+    .actcontent{
1232
+      width: 200px;
1233
+      height: 80px;
1234
+       /* border: solid 1px red; */
1235
+      margin-left: 90px;
1236
+      margin-top: -82px;
1237
+    }
1238
+
1239
+     .actname{
1240
+      width:190px;
1241
+      height: 15px;
1242
+      /* border:solid 1px red; */
1243
+      margin-left: 5px;
1244
+      margin-top: 10px;
1245
+      font-size: 14px;
1246
+      overflow: hidden;
1247
+       text-overflow: ellipsis;
1248
+      display: -webkit-box;
1249
+      -webkit-line-clamp: 1;
1250
+      -webkit-box-orient: vertical;
1251
+    }
1252
+   
1430 1253
 </style>

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

@@ -0,0 +1,41 @@
1
+<template>
2
+     <div>
3
+          <!-- 科室介绍详情 -->
4
+      <div class="scroll"  style="padding:15px 4%;"  v-html="officeform.introduction"></div>
5
+     </div>
6
+</template>
7
+
8
+<script>
9
+    import { officemore } from "@/api/micro/micro"
10
+    export default {
11
+        name: "office",
12
+        data(){
13
+            return{
14
+              officeform:[],
15
+            }
16
+        },
17
+        methods:{
18
+           officemore(id,orgid){
19
+               officemore(id,orgid).then(response=>{
20
+                   if(response.data.state ==1){
21
+                     var offices = response.data.data.offices;
22
+                     this.officeform = response.data.data.offices;
23
+                     console.log("科室详情数据",offices)
24
+
25
+                   }
26
+               })
27
+           }
28
+        },
29
+        created(){
30
+           const id = this.$route.query.id;
31
+           const orgid = this.$route.query.orgid;
32
+           console.log("id是多少",id)
33
+           console.log("orgid是多少",orgid)
34
+            this.officemore(id,orgid)
35
+        }
36
+    }
37
+</script>
38
+
39
+<style scoped>
40
+
41
+</style>

+ 1 - 1
src/xt_permission.js Dosyayı Görüntüle

@@ -6,7 +6,7 @@ router.beforeEach((to, from, next) => {
6 6
     if (loginWhiteList.indexOf(to.path) !== -1) {
7 7
       next()
8 8
     } else {
9
-      next({ path: '/qrcode'})
9
+      next()
10 10
     }
11 11
 
12 12
 })