ソースを参照

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

See999 5 年 前
コミット
3e5d85ea58

+ 18 - 3
src/router/index.js ファイルの表示

@@ -118,6 +118,7 @@ var _constant_router_map = [
118 118
     path: "/contact",
119 119
     component: () => import("@/scrm_pages/contact/contact")
120 120
   },
121
+  
121 122
   {
122 123
     path: "/",
123 124
     component: () => import("@/scrm_pages/microHome/microHome")
@@ -174,10 +175,24 @@ var _constant_router_map = [
174 175
     component: () => import("@/scrm_pages/activitylist/activitylistdetail")
175 176
   },
176 177
 
177
-  //联系我们
178
+  // //联系我们
179
+  // {
180
+  //   path: "/contactus",
181
+  //   component: () => import("@/scrm_pages/contactus/contactus")
182
+  // },
183
+
184
+  {
185
+    path: "/card",
186
+    component: () => import("@/scrm_pages/card/card")
187
+  },
188
+
189
+  {
190
+    path:"/custom",
191
+    component: () =>import("@/scrm_pages/custom/custom")
192
+  },
178 193
   {
179
-    path: "/contactus",
180
-    component: () => import("@/scrm_pages/contactus/contactus")
194
+    path:"/contactus",
195
+    component: () => import("@/scrm_pages/contact/contactus")
181 196
   },
182 197
 
183 198
   {

+ 11 - 12
src/scrm_pages/activity/activity.vue ファイルの表示

@@ -51,19 +51,18 @@ export default {
51 51
     staffCreateTime(time) {
52 52
       return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
53 53
     },
54
-    // singleActivitInfo(id, orgid) {
55
-    //   this.$router.push({
56
-    //     path: "/activityDetail",
57
-    //     query: {
58
-    //       id: id,
59
-    //       orgid,
60
-    //       orgid
61
-    //     }
62
-    //   });
63
-    // }
64
-    singleActivitInfo(id){
65
-      window.location.href = "http://wx.kuyicloud.com/weixin/activity/"+id;
54
+    singleActivitInfo(id, orgid) {
55
+      this.$router.push({
56
+        path: "/activityDetail",
57
+        query: {
58
+          id: id,
59
+          orgid: orgid
60
+        }
61
+      });
66 62
     }
63
+    // singleActivitInfo(id){
64
+    //   window.location.href = "http://wx.kuyicloud.com/weixin/activity/"+id;
65
+    // }
67 66
   },
68 67
   created() {
69 68
     const id = this.$route.query.id;

+ 62 - 153
src/scrm_pages/activityDetail/activityDetail.vue ファイルの表示

@@ -1,183 +1,92 @@
1 1
 <template>
2
-  <div>
3
-    <div class="banner">
4
-      <img :src="activitys.poster_photo" style="width:100%;height:100%" alt />
5
-    </div>
6
-    <div class="headline">
7
-      <div class="top">{{activitys.title}}</div>
8
-      <!-- <div class="bottom">
9
-        <p class="browse">
10
-          <i class="iconfont">&#xe629;</i>
11
-          <span>浏览400次</span>
12
-        </p>
13
-      </div>-->
14
-    </div>
15
-    <div class="detail">
16
-      <p class="row">
17
-        <i class="iconfont">&#xe614;</i>
18
-        <span>{{staffCreateTime(activitys.start_time)}}</span>
19
-      </p>
20
-      <p class="row">
21
-        <i class="iconfont">&#xe668;</i>
22
-        <span>{{activitys.address}}</span>
23
-      </p>
24
-      <p class="row">
25
-        <i class="iconfont">&#xe61f;</i>
26
-        <span>{{activitys.join_num}} / {{activitys.limit_num}}</span>
27
-      </p>
28
-      <p class="row">
29
-        <i class="iconfont">&#xe6a9;</i>
30
-        <span>{{activitys.phone_number}}</span>
31
-      </p>
32
-    </div>
33
-    <div class="introduce">
34
-      <div class="common_title">
35
-        <div class="one"></div>
36
-        <div class="dynamicTxt">报名须知</div>
2
+  <div class="page_home">
3
+    <div class="swiper-slide">
4
+      <div style="widht:100%;height:100%">
5
+         <iframe  :src = this.url width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe>
37 6
       </div>
38
-      <div class="introduceDetail">{{activitys.sign_up_notice}}</div>
39 7
     </div>
40
-    <!-- <div class="apply">我要报名</div> -->
41 8
   </div>
42 9
 </template>
43
- <script>
44
-import { uParseTime } from "@/utils/tools";
45
-import { singleActivitInfo } from "@/api/micro/micro";
10
+
11
+<script>
12
+import { getDefalutNavigationData,} from "@/api/micro/micro";
46 13
 export default {
47 14
   data() {
48 15
     return {
49
-      activitys: []
16
+      url:"",
17
+      navigationdata: [],
50 18
     };
51 19
   },
52 20
   methods: {
53
-    staffCreateTime(time) {
54
-      console.log("time是多少", time);
55
-      return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
56
-    },
57
-    singleActivitInfo(id, orgid) {
58
-      singleActivitInfo(id, orgid).then(response => {
21
+     getDefalutNavigationData(orgid) {
22
+      getDefalutNavigationData(orgid).then(response => {
59 23
         if (response.data.state == 1) {
60
-          var activitys = response.data.data.activity;
61
-          this.activitys = activitys;
62
-          console.log("activitys", activitys);
24
+          var navigation = response.data.data.navigation;
25
+          console.log("navigation是什么", navigation);
26
+          this.navigationdata = navigation;
63 27
         }
64 28
       });
65
-    }
29
+    },
66 30
   },
67
-  created() {
31
+   created(){
68 32
     const id = this.$route.query.id;
33
+    console.log("id是什么",id)
34
+     this.url = "http://wx.kuyicloud.com/weixin/activity/"+id;
69 35
     const orgid = this.$route.query.orgid;
70
-    console.log("id是多少", id);
71
-    console.log("orgid是多少", orgid);
72
-    this.singleActivitInfo(id, orgid);
73
-  }
74
-};
36
+    console.log("我的世界", orgid);
37
+   
38
+    this.getDefalutNavigationData(orgid);
39
+  },
40
+ };
75 41
 </script>
76 42
 
77 43
 <style lang="scss" scoped>
78
-.banner {
79
-  width: 100%;
80
-  height: 13.75rem;
81
-  img {
82
-    width: 100%;
83
-    height: 100%;
44
+@import "../../assets/styles/mixin.scss";
45
+
46
+.page_home {
47
+  overflow: hidden;
48
+  display: flex;
49
+  flex-direction: column;
50
+  height: 100%;
51
+  > div:first-child {
52
+    flex: 1;
53
+    overflow: auto;
84 54
   }
85
-}
86
-.headline {
87
-  position: relative;
88
-  width: 20.875rem;
89
-  height: 5rem;
90
-  margin-top: -1.25rem;
91
-  left: 1.25rem;
92
-  z-index: 99;
93
-  background: rgba(255, 255, 255, 1);
94
-  box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
95
-  border-radius: 10px;
96
-  padding: 1.0625rem 0.625rem 0 0.875rem;
97
-  box-sizing: border-box;
98
-  .top {
99
-    font-size: 1.0625rem;
100
-    font-weight: 600;
101
-    color: rgba(7, 18, 40, 1);
102
-    line-height: 1.5rem;
55
+  > div:first-child::-webkit-scrollbar {
56
+    width: 0;
103 57
   }
58
+  // border:solid 1px red;
104 59
 }
105
-.browse {
106
-  color: rgba(182, 186, 193, 1);
107
-  margin-top: 0.5rem;
108
-  span {
109
-    font-size: 0.75rem;
110
-    font-weight: 400;
111
-  }
60
+// .bugone{
61
+//   border: solid 1px red;
62
+// }
63
+
64
+
65
+.tabs {
66
+  @include border-top;
67
+  width: 100%;
68
+  height: 3.125rem;
69
+  box-sizing: border-box;
112 70
 }
113
-.detail {
114
-  margin-left: 1.25rem;
115
-  margin-top: 1.25rem;
116
-  .row {
117
-    margin: 0.625rem 0;
118
-    i {
119
-      color: #b6bac1;
71
+.tabList {
72
+  display: flex;
73
+  justify-content: space-around;
74
+  height: 100%;
75
+  .tabOne {
76
+    display: flex;
77
+    flex-direction: column;
78
+    justify-content: center;
79
+    align-items: center;
80
+    img {
81
+      // margin-top: 0.5rem;
82
+      width: 1.875rem;
83
+      height: 1.875rem;
120 84
     }
121 85
     span {
122
-      font-size: 0.875rem;
123
-      font-weight: 600;
124
-      color: rgba(7, 18, 40, 1);
125
-      margin-left: 0.625rem;
86
+      font-size: 0.75rem;
87
+      color: #999;
88
+      // line-height: 1.3125rem;
126 89
     }
127 90
   }
128 91
 }
129
-.introduce {
130
-  margin-left: 1.25rem;
131
-  margin-top: 1.5rem;
132
-}
133
-
134
-.common_title {
135
-  width: 20.9375rem;
136
-  height: 1.125rem;
137
-  line-height: 1.125rem;
138
-  font-size: 1.125rem;
139
-  font-weight: 800;
140
-  color: rgba(7, 18, 40, 1);
141
-}
142
-
143
-.one {
144
-  margin-top: 0.125rem;
145
-  margin-right: 0.625rem;
146
-  float: left;
147
-  width: 0.125rem;
148
-  height: 0.875rem;
149
-  background: linear-gradient(
150
-    0deg,
151
-    rgba(114, 182, 253, 1),
152
-    rgba(52, 119, 254, 1)
153
-  );
154
-  box-shadow: 0px 3px 12px 0px rgba(60, 127, 254, 0.2);
155
-  border-radius: 3px;
156
-}
157
-.introduceDetail {
158
-  width: 19.875rem;
159
-  height: 5.75rem;
160
-  font-size: 1rem;
161
-  color: rgba(155, 155, 155, 1);
162
-  line-height: 1.5rem;
163
-  margin-top: 1.125rem;
164
-  padding-left: 0.375rem;
165
-  box-sizing: border-box;
166
-}
167
-.apply {
168
-  width: 100%;
169
-  height: 2.625rem;
170
-  position: fixed;
171
-  left: 0;
172
-  bottom: 0;
173
-  text-align: center;
174
-  line-height: 2.625rem;
175
-  color: rgba(255, 255, 255, 1);
176
-  font-size: 1.125rem;
177
-  background: linear-gradient(
178
-    90deg,
179
-    rgba(114, 182, 253, 1),
180
-    rgba(52, 119, 254, 1)
181
-  );
182
-}
183 92
 </style>

+ 103 - 0
src/scrm_pages/card/card.vue ファイルの表示

@@ -0,0 +1,103 @@
1
+<template>
2
+  <div class="page_home">
3
+    <div class="swiper-slide">
4
+      <div style="widht:100%;height:100%">
5
+         <iframe  :src = this.cardUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe>
6
+      </div>
7
+    </div>
8
+    <!-- tab切换 -->
9
+    <!-- <div class="tabs">
10
+      <ul class="tabList">
11
+        <li
12
+          class="tabOne"
13
+          v-for="item in this.navigationdata"
14
+          :key="item.id"
15
+          @click="CallPhone(item.linktype,item.navaddress)">
16
+          <img :src="item.navimages" alt />
17
+          <span>{{item.navtitle}}</span>
18
+        </li>
19
+      </ul>
20
+    </div> -->
21
+  </div>
22
+</template>
23
+
24
+<script>
25
+import { getDefalutNavigationData,} from "@/api/micro/micro";
26
+export default {
27
+  data() {
28
+    return {
29
+      url:"",
30
+      cardUrl:"http://wx.kuyicloud.com/weixin/membershipagree/"+this.url,
31
+      navigationdata: [],
32
+    };
33
+  },
34
+  methods: {
35
+     getDefalutNavigationData(orgid) {
36
+      getDefalutNavigationData(orgid).then(response => {
37
+        if (response.data.state == 1) {
38
+          var navigation = response.data.data.navigation;
39
+          console.log("navigation是什么", navigation);
40
+          this.navigationdata = navigation;
41
+        }
42
+      });
43
+    },
44
+  },
45
+   created(){
46
+    const orgid = this.$route.query.orgid;
47
+    this.url = orgid;
48
+    console.log("我的世界", orgid);
49
+    this.getDefalutNavigationData(orgid);
50
+  },
51
+ };
52
+</script>
53
+
54
+<style lang="scss" scoped>
55
+@import "../../assets/styles/mixin.scss";
56
+
57
+.page_home {
58
+  overflow: hidden;
59
+  display: flex;
60
+  flex-direction: column;
61
+  height: 100%;
62
+  > div:first-child {
63
+    flex: 1;
64
+    overflow: auto;
65
+  }
66
+  > div:first-child::-webkit-scrollbar {
67
+    width: 0;
68
+  }
69
+  // border:solid 1px red;
70
+}
71
+// .bugone{
72
+//   border: solid 1px red;
73
+// }
74
+
75
+
76
+.tabs {
77
+  @include border-top;
78
+  width: 100%;
79
+  height: 3.125rem;
80
+  box-sizing: border-box;
81
+}
82
+.tabList {
83
+  display: flex;
84
+  justify-content: space-around;
85
+  height: 100%;
86
+  .tabOne {
87
+    display: flex;
88
+    flex-direction: column;
89
+    justify-content: center;
90
+    align-items: center;
91
+    img {
92
+      // margin-top: 0.5rem;
93
+      width: 1.875rem;
94
+      height: 1.875rem;
95
+    }
96
+    span {
97
+      font-size: 0.75rem;
98
+      color: #999;
99
+      // line-height: 1.3125rem;
100
+    }
101
+  }
102
+}
103
+</style>

+ 1 - 1
src/scrm_pages/contact/contact.vue ファイルの表示

@@ -101,7 +101,7 @@ export default {
101 101
   overflow: hidden;
102 102
   height: 100%;
103 103
   > div:nth-of-type(2) {
104
-    min-height: 6.875rem;
104
+    min-height: 5.125rem;
105 105
   }
106 106
   .focusImg {
107 107
     width: 23.4375rem;

+ 266 - 0
src/scrm_pages/contact/contactus.vue ファイルの表示

@@ -0,0 +1,266 @@
1
+<template>
2
+  <div class="page_home">
3
+         <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
4
+      <div v-for="item in this.ordmodel" :key="item.id">
5
+       <div class="focusImg" v-if="item.mode_type == 1">
6
+        <div class="swiper-container">
7
+          <div class="swiper-wrapper">
8
+            <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
9
+              <img class="imgtwo" :src="it.images" />
10
+            </div>
11
+          </div>
12
+          <!-- 如果需要分页器 -->
13
+          <div class="swiper-pagination"></div>
14
+        </div>
15
+      </div>
16
+      <!-- <div class="detail"> -->
17
+      <div class="row one detail" v-if="item.mode_type == 2">
18
+        <p class="title">{{item.title}}:</p>
19
+        <p class="msg">{{item.Hosaddress.address}}</p>
20
+      </div>
21
+      <div class="row" v-if="item.mode_type == 3">
22
+        <div v-for="it in Connectways" :key="it.id">
23
+          <p class="title">{{it.title}}:</p>
24
+          <p class="msg">{{it.content}}</p>
25
+          <br />
26
+        </div>
27
+      </div>
28
+      <div class="row" v-if="item.mode_type == 4">
29
+        <p class="title">{{item.title}}:</p>
30
+        <p class="msg">{{item.Worktime.worktime}}</p>
31
+      </div>
32
+      <div class="row one" v-if="item.mode_type == 5">
33
+        <p class="title">{{item.title}}:</p>
34
+        <p class="msg">{{item.Rideway.ride_way}}</p>
35
+      </div>
36
+    </div>
37
+
38
+
39
+    <!-- tab切换 -->
40
+    <div class="tabs">
41
+      <ul class="tabList">
42
+        <li
43
+          class="tabOne"
44
+          v-for="item in this.navigationdata"
45
+          :key="item.id"
46
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)">
47
+          <img :src="item.nonavimages" alt />
48
+          <span>{{item.navtitle}}</span>
49
+        </li>
50
+      </ul>
51
+    </div>
52
+  </div>
53
+</template>
54
+
55
+<script>
56
+import Swiper from "swiper";
57
+import Vue from "vue";
58
+import { Swipe, SwipeItem} from "mint-ui";
59
+import "mint-ui/lib/style.css";
60
+import { getDefalutNavigationData,getOrderModel, getAllConnecWay } from "@/api/micro/micro";
61
+export default {
62
+  data() {
63
+    return {
64
+      navigationdata: [],
65
+       ordmodel: [],
66
+      Connectways: [],
67
+    };
68
+  },
69
+  methods: {
70
+     getDefalutNavigationData(orgid) {
71
+      getDefalutNavigationData(orgid).then(response => {
72
+        if (response.data.state == 1) {
73
+          var navigation = response.data.data.navigation;
74
+          for (let index = 0; index < navigation.length; index++) {
75
+              navigation[1].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
76
+
77
+          }
78
+          console.log("navigation是什么", navigation);
79
+          this.navigationdata = navigation;
80
+        }
81
+      });
82
+    },
83
+      initSwiper() {
84
+      var mySwiper1 = new Swiper(".swiper-container", {
85
+        loop: true, // 循环模式选项
86
+        pagination: {
87
+          el: ".swiper-pagination"
88
+        },
89
+        // autoplay: {
90
+        //   disableOnInteraction: false
91
+        // }
92
+        autoplay: true
93
+      });
94
+    },
95
+    getOrderModel(orgid) {
96
+      getOrderModel(orgid).then(response => {
97
+        if (response.data.state == 1) {
98
+          var ordmodel = response.data.data.ordmodel;
99
+          console.log("ordmodel是什么", ordmodel);
100
+          this.ordmodel = response.data.data.ordmodel;
101
+        }
102
+      });
103
+    },
104
+    getAllConnecWay(orgid) {
105
+      getAllConnecWay(orgid).then(response => {
106
+        if (response.data.state == 1) {
107
+          var connect = response.data.data.connect;
108
+          this.Connectways = connect;
109
+        }
110
+      });
111
+    },
112
+      CallPhone(linktype, address,orgid) {
113
+      console.log("orgid是什么啊",orgid)
114
+      console.log("linktype",linktype)
115
+      if(linktype == "1"){
116
+          this.$router.push({
117
+              path:"/microHome",
118
+              query:{
119
+                  orgid:orgid,
120
+              }
121
+          })
122
+     }
123
+      if (linktype == "2") {
124
+        // window.location.href = address;
125
+        this.$router.push({
126
+          path: "/contactus",
127
+          query: {
128
+            orgid: orgid
129
+          }
130
+         });
131
+      }
132
+      if (linktype == "3") {
133
+        window.location.href = "tel://" + address + "";
134
+      }
135
+      if (linktype == "4") {
136
+        // window.location.href = address;
137
+        this.$router.push({
138
+          path:"/custom",
139
+          query:{
140
+            orgid:orgid
141
+          }
142
+        })
143
+      }
144
+    },
145
+  },
146
+   created(){
147
+    const orgid = this.$route.query.orgid;
148
+       console.log("我的", orgid);
149
+     this.url = orgid;
150
+    this.getDefalutNavigationData(orgid);
151
+     this.getOrderModel(orgid);
152
+     this.getAllConnecWay(orgid);
153
+    this.initSwiper();
154
+  },
155
+updated() {
156
+    this.initSwiper();
157
+  }
158
+ };
159
+</script>
160
+
161
+<style lang="scss" scoped>
162
+@import "../../assets/styles/mixin.scss";
163
+
164
+.page_home {
165
+  overflow: hidden;
166
+  display: flex;
167
+  flex-direction: column;
168
+  height: 100%;
169
+  > div:first-child {
170
+    flex: 1;
171
+    overflow: auto;
172
+  }
173
+  > div:first-child::-webkit-scrollbar {
174
+    width: 0;
175
+  }
176
+  // border:solid 1px red;
177
+}
178
+// .bugone{
179
+//   border: solid 1px red;
180
+// }
181
+
182
+
183
+.tabs {
184
+  @include border-top;
185
+  width: 100%;
186
+  height: 3.125rem;
187
+  box-sizing: border-box;
188
+}
189
+.tabList {
190
+  display: flex;
191
+  justify-content: space-around;
192
+  height: 100%;
193
+  .tabOne {
194
+    display: flex;
195
+    flex-direction: column;
196
+    justify-content: center;
197
+    align-items: center;
198
+    img {
199
+      // margin-top: 0.5rem;
200
+      width: 1.875rem;
201
+      height: 1.875rem;
202
+    }
203
+    span {
204
+      font-size: 0.75rem;
205
+      color: #999;
206
+      // line-height: 1.3125rem;
207
+    }
208
+  }
209
+}
210
+
211
+.page_home {
212
+  overflow: hidden;
213
+  height: 100%;
214
+  > div:nth-of-type(2) {
215
+    min-height: 5.125rem;
216
+  }
217
+  .focusImg {
218
+    width: 23.4375rem;
219
+    height: 11.5625rem;
220
+    img {
221
+      width: 100%;
222
+      height: 100%;
223
+    }
224
+    .swiper-container {
225
+      height: 100%;
226
+    }
227
+  }
228
+
229
+  .space {
230
+    margin: 0 1.25rem;
231
+  }
232
+  .row {
233
+    font-size: 1rem;
234
+    font-weight: 600;
235
+    color: rgba(7, 18, 40, 1);
236
+    line-height: 2.375rem;
237
+    min-height: 2.375rem;
238
+    width: 21.125rem;
239
+    margin: 0 1.25rem;
240
+    // border: 1px solid #000;
241
+
242
+    .title {
243
+      float: left;
244
+      width: 5rem;
245
+    }
246
+    .msg {
247
+      float: left;
248
+      width: 16rem;
249
+      line-height: 2.375rem;
250
+      min-height: 2.375rem;
251
+      word-wrap: break-word;
252
+      word-break: break-all;
253
+      // overflow-x: hidden;
254
+    }
255
+  }
256
+  .one {
257
+    min-height: 2.375rem;
258
+    // line-height: 3rem;
259
+  }
260
+  .detail {
261
+    width: 21.125rem;
262
+    margin: 1.1875rem 1.25rem 0 1.25rem;
263
+  }
264
+}
265
+</style>
266
+

+ 141 - 0
src/scrm_pages/custom/custom.vue ファイルの表示

@@ -0,0 +1,141 @@
1
+<template>
2
+  <div class="page_home">
3
+    <div class="swiper-slide">
4
+      <div style="widht:100%;height:100%">
5
+         <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe>
6
+      </div>
7
+    </div>
8
+    <!-- tab切换 -->
9
+    <div class="tabs">
10
+      <ul class="tabList">
11
+        <li
12
+          class="tabOne"
13
+          v-for="item in this.navigationdata"
14
+          :key="item.id"
15
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)">
16
+          <img :src="item.nonavimages" alt />
17
+          <span>{{item.navtitle}}</span>
18
+        </li>
19
+      </ul>
20
+    </div>
21
+  </div>
22
+</template>
23
+
24
+<script>
25
+import { getDefalutNavigationData,} from "@/api/micro/micro";
26
+export default {
27
+  data() {
28
+    return {
29
+      navigationdata: [],
30
+      url:"",
31
+      customUrl:"http://wx.kuyicloud.com/weixin/im/"+this.url,
32
+    };
33
+  },
34
+  methods: {
35
+     getDefalutNavigationData(orgid) {
36
+      getDefalutNavigationData(orgid).then(response => {
37
+        if (response.data.state == 1) {
38
+          var navigation = response.data.data.navigation;
39
+          for (let index = 0; index < navigation.length; index++) {
40
+              navigation[3].nonavimages = "https://images.shengws.com/2101_o_1571990903053.png";
41
+              
42
+          }
43
+          console.log("navigation是什么", navigation);
44
+          this.navigationdata = navigation;
45
+        }
46
+      });
47
+    },
48
+
49
+     CallPhone(linktype, address,orgid) {
50
+      console.log("orgid是什么啊",orgid)
51
+      console.log("linktype",linktype)
52
+      if(linktype == "1"){
53
+          this.$router.push({
54
+              path:"/microHome",
55
+              query:{
56
+                  orgid:orgid,
57
+              }
58
+          })
59
+     }
60
+      if (linktype == "2") {
61
+        // window.location.href = address;
62
+        this.$router.push({
63
+          path: "/contactus",
64
+          query: {
65
+            orgid: orgid
66
+          }
67
+         });
68
+      }
69
+      if (linktype == "3") {
70
+        window.location.href = "tel://" + address + "";
71
+      }
72
+      if (linktype == "4") {
73
+        // window.location.href = address;
74
+        this.$router.push({
75
+          path:"/custom",
76
+          query:{
77
+            orgid:orgid
78
+          }
79
+        })
80
+      }
81
+    },
82
+  },
83
+   created(){
84
+    const orgid = this.$route.query.orgid;
85
+    this.url = orgid;
86
+    console.log("我的世界", orgid);
87
+    this.getDefalutNavigationData(orgid);
88
+  },
89
+ };
90
+</script>
91
+
92
+<style lang="scss" scoped>
93
+@import "../../assets/styles/mixin.scss";
94
+
95
+.page_home {
96
+  overflow: hidden;
97
+  display: flex;
98
+  flex-direction: column;
99
+  height: 100%;
100
+  > div:first-child {
101
+    flex: 1;
102
+    overflow: auto;
103
+  }
104
+  > div:first-child::-webkit-scrollbar {
105
+    width: 0;
106
+  }
107
+  // border:solid 1px red;
108
+}
109
+// .bugone{
110
+//   border: solid 1px red;
111
+// }
112
+
113
+
114
+.tabs {
115
+  @include border-top;
116
+  width: 100%;
117
+  height: 3.125rem;
118
+  box-sizing: border-box;
119
+}
120
+.tabList {
121
+  display: flex;
122
+  justify-content: space-around;
123
+  height: 100%;
124
+  .tabOne {
125
+    display: flex;
126
+    flex-direction: column;
127
+    justify-content: center;
128
+    align-items: center;
129
+    img {
130
+      // margin-top: 0.5rem;
131
+      width: 1.875rem;
132
+      height: 1.875rem;
133
+    }
134
+    span {
135
+      font-size: 0.75rem;
136
+      color: #999;
137
+      // line-height: 1.3125rem;
138
+    }
139
+  }
140
+}
141
+</style>

+ 42 - 15
src/scrm_pages/microHome/microHome.vue ファイルの表示

@@ -194,9 +194,9 @@
194 194
           class="tabOne"
195 195
           v-for="item in this.navigationdata"
196 196
           :key="item.id"
197
-          @click="CallPhone(item.linktype,item.navaddress)"
197
+          @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)"
198 198
         >
199
-          <img :src="item.navimages" alt />
199
+          <img :src="item.nonavimages" alt />
200 200
           <span>{{item.navtitle}}</span>
201 201
         </li>
202 202
       </ul>
@@ -318,6 +318,10 @@ export default {
318 318
       getDefalutNavigationData(orgid).then(response => {
319 319
         if (response.data.state == 1) {
320 320
           var navigation = response.data.data.navigation;
321
+          for (let index = 0; index < navigation.length; index++) {
322
+            navigation[0].nonavimages = "https://images.shengws.com/2089_o_1571990714383.png";
323
+            
324
+          }
321 325
           console.log("navigation是什么", navigation);
322 326
           this.navigationdata = navigation;
323 327
         }
@@ -327,31 +331,54 @@ export default {
327 331
       console.log("orgid", orgid);
328 332
       //  debugger
329 333
       if (title == "加入会员") {
330
-        window.location.href =
331
-          "http://wx.kuyicloud.com/weixin/membershipagree/" + orgid;
334
+        // window.location.href =
335
+        //   "http://wx.kuyicloud.com/weixin/membershipagree/" + orgid;
336
+        this.$router.push({
337
+          path:"/card",
338
+          query: {
339
+            orgid: orgid,
340
+          }
341
+        })
332 342
       } else if (title == "联系我们") {
333 343
         this.$router.push({
334 344
           path: "/contact",
335 345
           query: {
336 346
             orgid: orgid
337 347
           }
338
-        });
339
-      } else if (title == "咨询客服") {
340
-        window.location.href = "http://wx.kuyicloud.com/weixin/im/" + orgid;
341
-      } else {
348
+         });
349
+      }else if(title =="咨询客服"){
350
+        //  window.location.href = "http://wx.kuyicloud.com/weixin/im/"+orgid;
351
+        this.$router.push({
352
+          path:"/custom",
353
+          query: {
354
+            orgid:orgid
355
+          }
356
+        })
357
+      }else {
342 358
         window.location.href = address;
343 359
       }
344 360
     },
345 361
 
346
-    CallPhone(linktype, address) {
362
+    CallPhone(linktype, address,orgid) {
347 363
       if (linktype == "2") {
348
-        window.location.href = address;
364
+        this.$router.push({
365
+          path:"/contactus",
366
+          query:{
367
+            orgid:orgid,
368
+          }
369
+        })
349 370
       }
350 371
       if (linktype == "3") {
351 372
         window.location.href = "tel://" + address + "";
352 373
       }
353 374
       if (linktype == "4") {
354
-        window.location.href = address;
375
+        // window.location.href = address;
376
+        this.$router.push({
377
+          path:"custom",
378
+          query:{
379
+            orgid:orgid,
380
+          }
381
+        })
355 382
       }
356 383
     },
357 384
     getData(orgid) {
@@ -366,11 +393,11 @@ export default {
366 393
   created() {
367 394
     const orgid = this.$route.query.orgid;
368 395
     console.log("机构id是什么", orgid);
369
-    // this.getHospitaldata(orgid);
396
+    this.getHospitaldata(orgid);
370 397
     this.getArticlelist(orgid);
371 398
     this.getActivities(orgid);
372 399
     this.getDefalutNavigationData(orgid);
373
-    this.getData(orgid);
400
+    // this.getData(orgid);
374 401
   },
375 402
   mounted() {
376 403
     this.initSwiper();
@@ -575,7 +602,7 @@ export default {
575 602
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
576 603
     overflow: hidden;
577 604
     text-overflow: ellipsis;
578
-    border: 1px solid #000;
605
+    // border: 1px solid #000;
579 606
   }
580 607
   .commonImg {
581 608
     width: 18.4375rem;
@@ -590,7 +617,7 @@ export default {
590 617
     color: rgba(60, 60, 60, 1);
591 618
     line-height: 1.375rem;
592 619
     overflow: hidden;
593
-    border: solid 1px red;
620
+    // border: solid 1px red;
594 621
     display: -webkit-box;
595 622
     -webkit-line-clamp: 8;
596 623
     -webkit-box-orient: vertical;