xiaoming_global преди 5 години
родител
ревизия
b16550aa91
променени са 4 файла, в които са добавени 133 реда и са изтрити 172 реда
  1. 47 103
      src/scrm_pages/activity/activity.vue
  2. 44 12
      src/scrm_pages/activityDetail/activityDetail.vue
  3. 31 48
      src/scrm_pages/microHome/microHome.vue
  4. 11 9
      src/scrm_pages/news/news.vue

+ 47 - 103
src/scrm_pages/activity/activity.vue Целия файл

@@ -1,116 +1,21 @@
1 1
 <template>
2 2
   <div>
3 3
     <div class="content">
4
-      <div class="contentOne">
4
+      <div class="contentOne" v-for="it in Activitieslist" :key="it.id"  @click="singleActivitInfo(it.id,it.user_org_id)">
5 5
         <div class="img">
6
-          <img src="static\images\img1.jpg" alt />
6
+          <img :src="it.poster_photo" style="width:100%;height:100%" alt />
7 7
         </div>
8 8
         <div class="detail">
9
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
9
+          <p class="detailTitle">{{it.title}}</p>
10 10
           <div class="detailBox">
11 11
             <div class="activityTime">
12 12
               <p>
13
-                7月28日 08:30开始
14
-                深圳市南山区
13
+               {{staffCreateTime(it.start_time)}}开始<br>
14
+                <!-- {{it.address}} -->
15 15
               </p>
16 16
             </div>
17 17
             <div class="people">
18
-              <p>100人已报名</p>
19
-            </div>
20
-          </div>
21
-        </div>
22
-      </div>
23
-      <div class="contentOne">
24
-        <div class="img">
25
-          <img src="static\images\img1.jpg" alt />
26
-        </div>
27
-        <div class="detail">
28
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
29
-          <div class="detailBox">
30
-            <div class="activityTime">
31
-              <p>
32
-                7月28日 08:30开始
33
-                深圳市南山区
34
-              </p>
35
-            </div>
36
-            <div class="people">
37
-              <p>100人已报名</p>
38
-            </div>
39
-          </div>
40
-        </div>
41
-      </div>
42
-      <div class="contentOne">
43
-        <div class="img">
44
-          <img src="static\images\img1.jpg" alt />
45
-        </div>
46
-        <div class="detail">
47
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
48
-          <div class="detailBox">
49
-            <div class="activityTime">
50
-              <p>
51
-                7月28日 08:30开始
52
-                深圳市南山区
53
-              </p>
54
-            </div>
55
-            <div class="people">
56
-              <p>100人已报名</p>
57
-            </div>
58
-          </div>
59
-        </div>
60
-      </div>
61
-      <div class="contentOne">
62
-        <div class="img">
63
-          <img src="static\images\img1.jpg" alt />
64
-        </div>
65
-        <div class="detail">
66
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
67
-          <div class="detailBox">
68
-            <div class="activityTime">
69
-              <p>
70
-                7月28日 08:30开始
71
-                深圳市南山区
72
-              </p>
73
-            </div>
74
-            <div class="people">
75
-              <p>100人已报名</p>
76
-            </div>
77
-          </div>
78
-        </div>
79
-      </div>
80
-      <div class="contentOne">
81
-        <div class="img">
82
-          <img src="static\images\img1.jpg" alt />
83
-        </div>
84
-        <div class="detail">
85
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
86
-          <div class="detailBox">
87
-            <div class="activityTime">
88
-              <p>
89
-                7月28日 08:30开始
90
-                深圳市南山区
91
-              </p>
92
-            </div>
93
-            <div class="people">
94
-              <p>100人已报名</p>
95
-            </div>
96
-          </div>
97
-        </div>
98
-      </div>
99
-      <div class="contentOne">
100
-        <div class="img">
101
-          <img src="static\images\img1.jpg" alt />
102
-        </div>
103
-        <div class="detail">
104
-          <p class="detailTitle">与孩子一起挑选采摘新机陆...</p>
105
-          <div class="detailBox">
106
-            <div class="activityTime">
107
-              <p>
108
-                7月28日 08:30开始
109
-                深圳市南山区
110
-              </p>
111
-            </div>
112
-            <div class="people">
113
-              <p>100人已报名</p>
18
+              <p>{{it.join_num}}</p>
114 19
             </div>
115 20
           </div>
116 21
         </div>
@@ -118,8 +23,47 @@
118 23
     </div>
119 24
   </div>
120 25
 </template>
121
-
122
-
26
+  <script>
27
+      import {getFileExtension,uParseTime} from '@/utils/tools'
28
+      import { Activitiesmore } from "@/api/micro/micro"
29
+      export default{
30
+        data(){
31
+            return{
32
+               Activitieslist:[],
33
+            }
34
+        },
35
+        methods:{
36
+           Activitiesmore(id,orgid){
37
+                Activitiesmore(id,orgid).then(response=>{
38
+                     if(response.data.state == 1){
39
+                       var activity =  response.data.data.activity;
40
+                       this.Activitieslist =  response.data.data.activity;                 
41
+                       console.log("获取活动列表",activity)
42
+                    }
43
+                })
44
+            },
45
+           staffCreateTime(time) {
46
+               return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
47
+           },
48
+           singleActivitInfo(id,orgid){
49
+                this.$router.push({
50
+                    path:'/activityDetail',
51
+                    query:{
52
+                     id:id,
53
+                     orgid,orgid,
54
+                   }
55
+                })
56
+            }
57
+        },
58
+        created(){
59
+           const id = this.$route.query.id;
60
+            const orgid = this.$route.query.orgid;
61
+            console.log("id是多少",id)
62
+            console.log("orgid是多少",orgid)
63
+            this.Activitiesmore(id,orgid)
64
+        }
65
+      }
66
+  </script>
123 67
 <style lang="scss" scoped>
124 68
 .contentOne {
125 69
   margin: auto;

+ 44 - 12
src/scrm_pages/activityDetail/activityDetail.vue Целия файл

@@ -1,48 +1,80 @@
1 1
 <template>
2 2
   <div>
3 3
     <div class="banner">
4
-      <img src="static\images\banner.jpg" alt />
4
+      <img :src="activitys.poster_photo" style="width:100%;height:100%" alt />
5 5
     </div>
6 6
     <div class="headline">
7
-      <div class="top">与孩子一起挑选采摘新鲜有机马陆葡萄,体验采摘乐趣</div>
8
-      <div class="bottom">
7
+      <div class="top">{{activitys.title}}</div>
8
+      <!-- <div class="bottom">
9 9
         <p class="browse">
10 10
           <i class="iconfont">&#xe629;</i>
11 11
           <span>浏览400次</span>
12 12
         </p>
13
-      </div>
13
+      </div> -->
14 14
     </div>
15 15
     <div class="detail">
16 16
       <p class="row">
17 17
         <i class="iconfont">&#xe608;</i>
18
-        <span>06-19 14:00 至 17:00</span>
18
+        <span>{{staffCreateTime(activitys.start_time)}}</span>
19 19
       </p>
20 20
       <p class="row">
21 21
         <i class="iconfont">&#xe608;</i>
22
-        <span>广东省深圳市南山去时代大厦3楼赛盒科技观海...</span>
22
+        <span>{{activitys.address}}</span>
23 23
       </p>
24 24
       <p class="row">
25 25
         <i class="iconfont">&#xe608;</i>
26
-        <span>已报名49人 / 限55人</span>
26
+        <span>{{activitys.join_num}} / {{activitys.limit_num}}</span>
27 27
       </p>
28 28
       <p class="row">
29 29
         <i class="iconfont">&#xe608;</i>
30
-        <span>0755-8548673</span>
30
+        <span>{{activitys.phone_number}}</span>
31 31
       </p>
32 32
     </div>
33 33
     <div class="introduce">
34 34
       <div class="common_title">
35 35
         <div class="one"></div>
36
-        <div class="dynamicTxt">活动介绍</div>
36
+        <div class="dynamicTxt">报名须知</div>
37 37
       </div>
38 38
       <div
39 39
         class="introduceDetail"
40
-      >深圳市南山区人民医院(深圳市第六人民医院),坐落于深圳经济特区西部南头半岛中心区,是深圳市第四家三级甲等医院暨南山区区域医疗中心。深圳市第四家三级甲等医院...</div>
40
+      >{{activitys.sign_up_notice}}</div>
41 41
     </div>
42
-    <div class="apply">我要报名</div>
42
+    <!-- <div class="apply">我要报名</div> -->
43 43
   </div>
44 44
 </template>
45
-
45
+ <script>
46
+        import {uParseTime} from "@/utils/tools";
47
+        import { singleActivitInfo } from "@/api/micro/micro"
48
+        export default{
49
+          data(){
50
+             return{
51
+                activitys:[],
52
+             }
53
+          },
54
+          methods:{
55
+              staffCreateTime(time) {
56
+                console.log("time是多少",time)
57
+               return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");       
58
+              },
59
+            singleActivitInfo(id,orgid){
60
+               singleActivitInfo(id,orgid).then(response=>{
61
+                  if(response.data.state ==1){
62
+                  var activitys = response.data.data.activity;
63
+                  this.activitys = activitys;
64
+                  console.log("activitys",activitys)
65
+                }   
66
+               })
67
+            }
68
+          },
69
+          created(){
70
+            const id = this.$route.query.id;
71
+            const orgid = this.$route.query.orgid;
72
+            console.log("id是多少",id)
73
+            console.log("orgid是多少",orgid)
74
+            this.singleActivitInfo(id,orgid)   
75
+          }
76
+        }
77
+ </script>
46 78
 
47 79
 <style lang="scss" scoped>
48 80
 .banner {

+ 31 - 48
src/scrm_pages/microHome/microHome.vue Целия файл

@@ -45,7 +45,7 @@
45 45
             </div>
46 46
             <div class="detail">
47 47
               <p class="detailTitle">{{it.title}}</p>
48
-              <!-- <p class="detailMessage">高三学生周某出生在潍坊市固堤镇一个普通的农村家庭,她的父母一直希望成绩优异的女儿能考上一所好...</p> -->
48
+              <!-- <p class="detailMessage"></p> -->
49 49
             </div>
50 50
           </div>
51 51
         </div>
@@ -127,12 +127,12 @@
127 127
         <div class="common_title">
128 128
           <div class="one"></div>
129 129
           <div class="dynamicTxt">{{item.title}}</div>
130
-          <div class="more">
130
+          <!-- <div class="more">
131 131
             <p>
132 132
               查看更多
133 133
               <i class="iconfont">&#xe632;</i>
134 134
             </p>
135
-          </div>
135
+          </div> -->
136 136
         </div>
137 137
         <div class="imgs">
138 138
           <div class="swiper-container imgSwiper">
@@ -152,7 +152,7 @@
152 152
         <div class="common_title">
153 153
           <div class="one"></div>
154 154
           <div class="dynamicTxt">{{item.title}}</div>
155
-          <div class="more">
155
+          <div class="more" @click="Activitiesmore(item.id,item.user_org_id)">
156 156
             <p>
157 157
               查看更多
158 158
               <i class="iconfont">&#xe632;</i>
@@ -187,21 +187,9 @@
187 187
     <!-- tab切换 -->
188 188
     <div class="tabs">
189 189
       <ul class="tabList">
190
-        <li class="tabOne">
191
-          <img src="static\images\home.jpg" alt />
192
-          <span>首页</span>
193
-        </li>
194
-        <li class="tabOne">
195
-          <img src="static\images\msg.jpg" alt />
196
-          <span>在线客服</span>
197
-        </li>
198
-        <li class="tabOne">
199
-          <img src="static\images\tel.jpg" alt />
200
-          <span>电话</span>
201
-        </li>
202
-        <li class="tabOne">
203
-          <img src="static\images\service.jpg" alt />
204
-          <span>联系我们</span>
190
+        <li class="tabOne" v-for="item in this.navigationdata" :key="item.id">
191
+          <img :src="item.navimages" alt />
192
+          <span>{{item.navtitle}}</span>
205 193
         </li>
206 194
       </ul>
207 195
     </div>
@@ -211,13 +199,14 @@
211 199
 
212 200
 <script>
213 201
 import Swiper from "swiper";
214
-import { getHospitaldata,getArticlelist,getActivities } from '@/api/micro/micro'
202
+import { getHospitaldata,getArticlelist,getActivities,getDefalutNavigationData } from '@/api/micro/micro'
215 203
 export default {
216 204
   data() {
217 205
     return {
218 206
       bannerList: [],
219 207
       patientModels:[],
220 208
       Articlelist:[],
209
+      navigationdata:[],
221 210
     };
222 211
   },
223 212
   methods: {
@@ -299,6 +288,24 @@ export default {
299 288
                 orgid,orgid,
300 289
               }
301 290
          })
291
+      },
292
+      Activitiesmore(id,orgid){
293
+          this.$router.push({
294
+           path:'/activity',
295
+           query:{
296
+             id:id,
297
+             orgid,orgid,
298
+           }
299
+         }) 
300
+      },
301
+      getDefalutNavigationData(orgid){
302
+          getDefalutNavigationData(orgid).then(response=>{
303
+             if(response.data.state == 1){
304
+               var navigation =  response.data.data.navigation;
305
+               console.log("navigation是什么",navigation)
306
+               this.navigationdata = navigation; 
307
+             }
308
+           })
302 309
       }
303 310
   },
304 311
   created(){
@@ -307,18 +314,15 @@ export default {
307 314
      this.getHospitaldata(orgid); 
308 315
      this.getArticlelist(orgid);
309 316
      this.getActivities(orgid);
317
+      this.getDefalutNavigationData(orgid);
310 318
   },
311 319
   mounted() {
312 320
     this.initSwiper();
313
-<<<<<<< .mine
314
-  },
315
-  updated(){
316
-    this.initSwiper();
317
-=======
318 321
   },
322
+
323
+
319 324
   updated() {
320 325
     this.initSwiper();
321
->>>>>>> .theirs
322 326
   }
323 327
 
324 328
 };
@@ -462,17 +466,12 @@ export default {
462 466
     margin-left: 0.8125rem;
463 467
     width: 13.125rem;
464 468
     .detailTitle {
465
-<<<<<<< .mine
466 469
       margin-top: 8px;
467
-      width: 203px;
468
-      height: 15px;
469 470
       font-size: 15px;
470
-=======
471 471
       margin-top: 0.5rem;
472 472
       width: 12.6875rem;
473
-      height: 1.0625rem;
473
+      height: 1.0rem;
474 474
       font-size: 0.9375rem;
475
->>>>>>> .theirs
476 475
       font-weight: 600;
477 476
       color: rgba(7, 18, 40, 1);
478 477
       overflow: hidden;
@@ -482,17 +481,10 @@ export default {
482 481
       -webkit-box-orient: vertical;
483 482
     }
484 483
     .detailMessage {
485
-<<<<<<< .mine
486
-      margin-top: 4px;
487
-      width: 212px;
488
-      height: 52px;
489
-      font-size: 13px;
490
-=======
491 484
       margin-top: 0.25rem;
492 485
       width: 13.25rem;
493 486
       height: 3.625rem;
494 487
       font-size: 0.75rem;
495
->>>>>>> .theirs
496 488
       font-weight: 400;
497 489
       color: rgba(155, 155, 155, 1);
498 490
       line-height: 1.125rem;
@@ -524,19 +516,10 @@ export default {
524 516
     border-radius: 10px;
525 517
   }
526 518
   .commonMessage {
527
-<<<<<<< .mine
528
-    // margin-top: 22px;
529
-    width: 284px;
530
-    // height: 81px;
531
-    height: 240px;
532
-    font-size: 14px;
533
-=======
534 519
     margin-top: 1.375rem;
535 520
     width: 17.75rem;
536 521
     height: 5.0625rem;
537 522
     font-size: 0.875rem;
538
-
539
->>>>>>> .theirs
540 523
     color: rgba(60, 60, 60, 1);
541 524
     line-height: 1.375rem;
542 525
     // border: solid 1px red;

+ 11 - 9
src/scrm_pages/news/news.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <div class="content">
4 4
 
5
-      <div class="contentOne"  v-for="it in articlelist" :key="it.id">
5
+      <div class="contentOne"  v-for="it in articlelist" :key="it.id" @click="singleArticleInfo(it.id,it.user_org_id)">
6 6
         <div class="img">
7 7
           <img :src="it.imgs" style="width:100%;height:100%" alt />
8 8
         </div>
@@ -15,7 +15,7 @@
15 15
   </div>
16 16
 </template>
17 17
   <script>
18
-     import { articlemore,singleArticleInfo } from "@/api/micro/micro"
18
+     import { articlemore } from "@/api/micro/micro"
19 19
       export default{
20 20
         data(){
21 21
           return{
@@ -32,6 +32,15 @@
32 32
                }
33 33
             })  
34 34
           },
35
+           singleArticleInfo(id,orgid){
36
+            this.$router.push({
37
+                path:"/activityDetail",
38
+                query:{
39
+                    id:id,
40
+                    orgid:orgid,
41
+                }
42
+            })
43
+          }
35 44
         },
36 45
         created(){
37 46
            const id = this.$route.query.id;
@@ -66,17 +75,10 @@
66 75
     margin-left: 0.8125rem;
67 76
     width: 13.125rem;
68 77
     .detailTitle {
69
-<<<<<<< .mine
70
-      margin-top: 8px;
71
-      width: 203px;
72
-      height: 15px;
73
-      font-size: 15px;
74
-=======
75 78
       margin-top: 0.5rem;
76 79
       width: 12.6875rem;
77 80
       height: 1.0625rem;
78 81
       font-size: 0.9375rem;
79
->>>>>>> .theirs
80 82
       font-weight: 600;
81 83
       color: rgba(7, 18, 40, 1);
82 84
       overflow: hidden;