xiaoming_global před 5 roky
rodič
revize
08b8d4532f

+ 2 - 2
src/api/micro/micro.js Zobrazit soubor

@@ -3,9 +3,9 @@ import org from '../../router/modules/org';
3 3
 import { link } from 'fs';
4 4
 
5 5
 export function getHospitaldata(orgid,params){
6
-    console.log("orgid",orgid)
6
+    console.log("params是什么",params)
7 7
     return request({
8
-        url:"/api/site/getdata?orgid="+orgid,
8
+        url:"/api/site/getdatabyorgid?orgid="+orgid,
9 9
         method:"Get",
10 10
         params:params,
11 11
     })

+ 1 - 8
src/scrm_pages/microHome/microHome.vue Zobrazit soubor

@@ -65,14 +65,7 @@
65 65
             </div>
66 66
           </div>
67 67
           <div class="commonBox">
68
-            <!-- <div class="commonImg">
69
-            <img src="static\images\img2.png" alt />
70
-          </div>
71
-          <div class="commonMessage">
72
-            深圳市南山区人民医院(深圳市第六人民医院),坐落于深圳经济特区西部南头半岛中心区,是深圳市第四家三级甲等医院暨南山区区域医疗中心。深圳市第四家三级甲等医院
73
-            深圳市南山区人民医院(深圳市第六人民医院),坐落于深圳经济特区西部南头半岛中心区,是深圳市第四家三级甲等医院暨南山区区域医疗中心。深圳市第四家三级甲等医院...
74
-          </div>
75
-            </div>-->
68
+
76 69
             <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
77 70
           </div>
78 71
         </div>

+ 2 - 2
src/scrm_pages/news/news.vue Zobrazit soubor

@@ -6,7 +6,7 @@
6 6
         <div class="img">
7 7
           <img :src="it.imgs" style="width:100%;height:100%" alt />
8 8
         </div>
9
-        <div class="detail">
9
+        <div class="detail" @click="singleArticleInfo(it.id,it.user_org_id)">
10 10
           <p class="detailTitle">{{it.title}}</p>
11 11
           <p class="detailMessage"></p>
12 12
         </div>
@@ -34,7 +34,7 @@
34 34
           },
35 35
            singleArticleInfo(id,orgid){
36 36
             this.$router.push({
37
-                path:"",
37
+                path:"/newsDetail",
38 38
                 query:{
39 39
                     id:id,
40 40
                     orgid:orgid,

+ 46 - 5
src/scrm_pages/newsDetail/newsDetail.vue Zobrazit soubor

@@ -1,12 +1,53 @@
1 1
 <template>
2 2
   <div>
3
-    <div class="newsTitle">山东潍坊,高考还剩最后一门,女孩却被同学杀死了湾半岛,与香港隔海相望,西依珠江口,背靠大南山,拥有得天独厚的地理位置</div>
4
-    <div
5
-      class="msg"
6
-    >蛇口位于深圳湾半岛,与香港隔海相望,西依珠江口,背靠大南山,拥有得天独厚的地理位置;作为改革开放的前沿阵地,经过数十年的发展,如今已成为一个融合居住与旅游、本土与国际、富饶与休闲的国际化城区,区域内集中了鲸山别墅九期、双玺花园、兰溪谷等一系列高尚住宅,聚集着一大批具有高品质生活、高消费能力的优质人群,同时也吸引了来自70多个国家和地区,占深圳市60%以上的外籍人士聚居于此,拥有“</div>
3
+    <div class="newsTitle"> {{articles.title}}</div>
4
+    <div class="msg" v-html="articles.content" v-show="articleshow"></div>
5
+     <div class="video" v-show="videoshow">            
6
+          <video id="example_video_1" class="video-js vjs-default-skin"
7
+                 controls preload="auto" width="640" height="300"
8
+                 poster="http://video-js.zencoder.com/oceans-clip.png"
9
+                 data-setup='{"example_option":true}' ref="video">
10
+               <source :src="articles.video_url" type='video/mp4' />
11
+        </video>            
12
+        </div>
7 13
   </div>
8 14
 </template>
9
-
15
+  <script>
16
+      import { singleArticleInfo } from "@/api/micro/micro"
17
+     export default{
18
+       data(){
19
+         return{
20
+            articles:[],
21
+            videoshow:false,
22
+            articleshow:true,
23
+         }
24
+       },
25
+       methods:{
26
+         singleArticleInfo(id,orgid){
27
+             singleArticleInfo(id,orgid).then(response=>{
28
+                 if(response.data.state == 1){
29
+                   var articles =  response.data.data.articles;
30
+                   console.log("articles是什么",articles)
31
+                   this.articles = articles;
32
+                   if(articles.video_url != ""){
33
+                     this.articleshow = false;
34
+                      this.videoshow = true;
35
+                      this.$refs.video.src = articles.video_url;  
36
+                   }
37
+                        
38
+                } 
39
+             })
40
+          }
41
+       },
42
+       created(){
43
+           const id = this.$route.query.id;
44
+           const orgid = this.$route.query.orgid;
45
+           console.log("id是多少",id)
46
+           console.log("orgid是多少",orgid)
47
+           this.singleArticleInfo(id,orgid)  
48
+       },
49
+     }
50
+  </script>
10 51
 
11 52
 
12 53
 <style lang="scss" scoped>

+ 3 - 1
src/scrm_pages/site/index.vue Zobrazit soubor

@@ -16,7 +16,7 @@
16 16
               </div>
17 17
             </el-col>
18 18
             <el-col :span="12">
19
-                 
19
+                
20 20
             </el-col>
21 21
           </el-row>
22 22
       </div>
@@ -85,5 +85,7 @@ export default {
85 85
     width: 100px;
86 86
     height: 100px;
87 87
   }
88
+
89
+  
88 90
 }
89 91
 </style>