Browse Source

Merge branch 'master' of http://git.shengws.com/xmg123/micro_vue

See999 5 years ago
parent
commit
5933d81cff

+ 3 - 3
src/api/micro/micro.js View File

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

+ 1 - 97
src/scrm_pages/activity/activity.vue View File

21
               </p>
21
               </p>
22
             </div>
22
             </div>
23
             <div class="people">
23
             <div class="people">
24
-              <p>100人已报名</p>
24
+              <p>{{it.join_num}}已报名</p>
25
             </div>
25
             </div>
26
           </div>
26
           </div>
27
         </div>
27
         </div>
28
       </div>
28
       </div>
29
-      <div class="contentOne">
30
-        <div class="img">
31
-          <img src="static\images\img1.jpg" alt />
32
-        </div>
33
-        <div class="detail">
34
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
35
-          <div class="detailBox">
36
-            <div class="activityTime">
37
-              <p>
38
-                7月28日 08:30开始
39
-                深圳市南山区
40
-              </p>
41
-            </div>
42
-            <div class="people">
43
-              <p>100人已报名</p>
44
-            </div>
45
-          </div>
46
-        </div>
47
-      </div>
48
-      <!-- <div class="contentOne">
49
-        <div class="img">
50
-          <img src="static\images\img1.jpg" alt />
51
-        </div>
52
-        <div class="detail">
53
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
54
-          <div class="detailBox">
55
-            <div class="activityTime">
56
-              <p>
57
-                7月28日 08:30开始
58
-                深圳市南山区
59
-              </p>
60
-            </div>
61
-            <div class="people">
62
-              <p>100人已报名</p>
63
-            </div>
64
-          </div>
65
-        </div>
66
-      </div>
67
-      <div class="contentOne">
68
-        <div class="img">
69
-          <img src="static\images\img1.jpg" alt />
70
-        </div>
71
-        <div class="detail">
72
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
73
-          <div class="detailBox">
74
-            <div class="activityTime">
75
-              <p>
76
-                7月28日 08:30开始
77
-                深圳市南山区
78
-              </p>
79
-            </div>
80
-            <div class="people">
81
-              <p>100人已报名</p>
82
-            </div>
83
-          </div>
84
-        </div>
85
-      </div>
86
-      <div class="contentOne">
87
-        <div class="img">
88
-          <img src="static\images\img1.jpg" alt />
89
-        </div>
90
-        <div class="detail">
91
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
92
-          <div class="detailBox">
93
-            <div class="activityTime">
94
-              <p>
95
-                7月28日 08:30开始
96
-                深圳市南山区
97
-              </p>
98
-            </div>
99
-            <div class="people">
100
-              <p>100人已报名</p>
101
-            </div>
102
-          </div>
103
-        </div>
104
-      </div>
105
-      <div class="contentOne">
106
-        <div class="img">
107
-          <img src="static\images\img1.jpg" alt />
108
-        </div>
109
-        <div class="detail">
110
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
111
-          <div class="detailBox">
112
-            <div class="activityTime">
113
-              <p>
114
-                7月28日 08:30开始
115
-                深圳市南山区
116
-              </p>
117
-            </div>
118
-            <div class="people">
119
-              <p>100人已报名</p>
120
-              <p>{{it.join_num}}</p>
121
-            </div>
122
-          </div>
123
-        </div>
124
-      </div>-->
125
     </div>
29
     </div>
126
   </div>
30
   </div>
127
 </template>
31
 </template>

+ 24 - 14
src/scrm_pages/microHome/microHome.vue View File

17
 
17
 
18
         <!-- 魔方导航 -->
18
         <!-- 魔方导航 -->
19
         <div class="btnList" v-if="item.mode_type== 8">
19
         <div class="btnList" v-if="item.mode_type== 8">
20
-          <div class="btnOne" v-for="it in item.Editmargin" :key="it.id">
20
+          <div class="btnOne" v-for="it in item.Editmargin" :key="it.id"  @click="NavigationClick(it.marginaddress)">
21
             <div>
21
             <div>
22
               <img :src="it.margimage" alt />
22
               <img :src="it.margimage" alt />
23
             </div>
23
             </div>
39
               </p>
39
               </p>
40
             </div>
40
             </div>
41
           </div>
41
           </div>
42
-          <div class="content">
42
+          <div class="content" @click="articlemore(item.id,item.user_org_id)">
43
             <div class="contentOne" v-for="it in Articlelist" :key="it.id">
43
             <div class="contentOne" v-for="it in Articlelist" :key="it.id">
44
               <div class="img">
44
               <div class="img">
45
                 <img :src="it.imgs" style="width:100%;height:100%" alt />
45
                 <img :src="it.imgs" style="width:100%;height:100%" alt />
65
             </div>
65
             </div>
66
           </div>
66
           </div>
67
           <div class="commonBox">
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
             <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
69
             <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
77
           </div>
70
           </div>
78
         </div>
71
         </div>
109
               </p>
102
               </p>
110
             </div>
103
             </div>
111
           </div>
104
           </div>
112
-          <div class="content">
105
+          <div class="content" @click="docmore(item.id,item.user_org_id)" >
113
             <div class="contentOne" v-for="doc in item.Editdoctor" :key="doc.id">
106
             <div class="contentOne" v-for="doc in item.Editdoctor" :key="doc.id">
114
               <div class="img">
107
               <div class="img">
115
                 <img :src="doc.dochead" style="width:100%;height:100%" alt />
108
                 <img :src="doc.dochead" style="width:100%;height:100%" alt />
166
               </p>
159
               </p>
167
             </div>
160
             </div>
168
           </div>
161
           </div>
169
-          <div class="content">
162
+          <div class="content"  @click="Activitiesmore(item.id,item.user_org_id)">
170
             <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
163
             <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
171
               <div class="img">
164
               <div class="img">
172
                 <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
165
                 <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
193
     <!-- tab切换 -->
186
     <!-- tab切换 -->
194
     <div class="tabs">
187
     <div class="tabs">
195
       <ul class="tabList">
188
       <ul class="tabList">
196
-        <li class="tabOne" v-for="item in this.navigationdata" :key="item.id">
189
+        <li class="tabOne" v-for="item in this.navigationdata" :key="item.id" @click="CallPhone(item.linktype,item.navaddress)">
197
           <img :src="item.navimages" alt />
190
           <img :src="item.navimages" alt />
198
           <span>{{item.navtitle}}</span>
191
           <span>{{item.navtitle}}</span>
199
         </li>
192
         </li>
210
   getHospitaldata,
203
   getHospitaldata,
211
   getArticlelist,
204
   getArticlelist,
212
   getActivities,
205
   getActivities,
213
-  getDefalutNavigationData
206
+  getDefalutNavigationData,
214
 } from "@/api/micro/micro";
207
 } from "@/api/micro/micro";
208
+import { link } from 'fs';
215
 export default {
209
 export default {
216
   data() {
210
   data() {
217
     return {
211
     return {
323
           this.navigationdata = navigation;
317
           this.navigationdata = navigation;
324
         }
318
         }
325
       });
319
       });
320
+    },
321
+    NavigationClick(address){
322
+        window.location.href = address;
323
+        
324
+    }, 
325
+
326
+    CallPhone(linktype,address){
327
+       if(linktype == "2"){
328
+         window.location.href = address;
329
+       }
330
+       if(linktype == "3"){
331
+          window.location.href = 'tel://'+address+''
332
+       }
333
+       if(linktype == "4"){
334
+          window.location.href = address;
335
+       }
326
     }
336
     }
327
   },
337
   },
328
   created() {
338
   created() {

+ 56 - 1
src/scrm_pages/news/news.vue View File

5
         <div class="img">
5
         <div class="img">
6
           <img :src="it.imgs" style="width:100%;height:100%" alt />
6
           <img :src="it.imgs" style="width:100%;height:100%" alt />
7
         </div>
7
         </div>
8
-        <div class="detail">
8
+        <div class="detail" @click="singleArticleInfo(it.id,it.user_org_id)">
9
           <p class="detailTitle">{{it.title}}</p>
9
           <p class="detailTitle">{{it.title}}</p>
10
           <p class="detailMessage"></p>
10
           <p class="detailMessage"></p>
11
         </div>
11
         </div>
14
   </div>
14
   </div>
15
 </template>
15
 </template>
16
   <script>
16
   <script>
17
+<<<<<<< .mine
18
+     import { articlemore } from "@/api/micro/micro"
19
+      export default{
20
+        data(){
21
+          return{
22
+            articlelist:[], 
23
+          }
24
+        },
25
+        methods:{
26
+           articlemore(id,orgid){
27
+            articlemore(id,orgid).then(response=>{
28
+                  if(response.data.state == 1){
29
+                   var articlelist =  response.data.data.articlelists;  
30
+                   console.log("文章列表数据",articlelist)             
31
+                   this.articlelist =  response.data.data.articlelists;
32
+               }
33
+            })  
34
+          },
35
+           singleArticleInfo(id,orgid){
36
+            this.$router.push({
37
+                path:"/newsDetail",
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.articlemore(id,orgid)
51
+=======
17
 import { articlemore } from "@/api/micro/micro";
52
 import { articlemore } from "@/api/micro/micro";
18
 export default {
53
 export default {
19
   data() {
54
   data() {
28
           var articlelist = response.data.data.articlelists;
63
           var articlelist = response.data.data.articlelists;
29
           console.log("文章列表数据", articlelist);
64
           console.log("文章列表数据", articlelist);
30
           this.articlelist = response.data.data.articlelists;
65
           this.articlelist = response.data.data.articlelists;
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+>>>>>>> .theirs
31
         }
86
         }
32
       });
87
       });
33
     },
88
     },

+ 46 - 5
src/scrm_pages/newsDetail/newsDetail.vue View File

1
 <template>
1
 <template>
2
   <div>
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
   </div>
13
   </div>
8
 </template>
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
 <style lang="scss" scoped>
53
 <style lang="scss" scoped>

+ 3 - 1
src/scrm_pages/site/index.vue View File

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