소스 검색

微网站

xiaoming_global 5 년 전
부모
커밋
b7f5a21f3b

+ 10 - 0
src/router/index.js 파일 보기

@@ -180,6 +180,16 @@ var _constant_router_map = [
180 180
     component: () => import("@/scrm_pages/contactus/contactus")
181 181
   },
182 182
 
183
+  {
184
+    path: "/card",
185
+    component: () => import("@/scrm_pages/card/card")
186
+  },
187
+
188
+  {
189
+    path:"/custom",
190
+    component: () =>import("@/scrm_pages/custom/custom")
191
+  },
192
+
183 193
   {
184 194
     path: "/activity/preview",
185 195
     component: () => import("@/scrm_pages/marketing_tool/activity_preview"),

+ 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>

+ 103 - 0
src/scrm_pages/custom/custom.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.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)">
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
+      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
+          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>

+ 14 - 2
src/scrm_pages/microHome/microHome.vue 파일 보기

@@ -325,7 +325,13 @@ export default {
325 325
       console.log("orgid", orgid);
326 326
       //  debugger
327 327
       if(title == "加入会员"){
328
-        window.location.href = "http://wx.kuyicloud.com/weixin/membershipagree/"+orgid;
328
+        // window.location.href = "http://wx.kuyicloud.com/weixin/membershipagree/"+orgid;
329
+        this.$router.push({
330
+          path:"/card",
331
+          query: {
332
+            orgid: orgid,
333
+          }
334
+        })
329 335
       }else if(title == "联系我们"){
330 336
           this.$router.push({
331 337
           path: "/contact",
@@ -334,7 +340,13 @@ export default {
334 340
           }
335 341
          });
336 342
       }else if(title =="咨询客服"){
337
-         window.location.href = "http://wx.kuyicloud.com/weixin/im/"+orgid;
343
+        //  window.location.href = "http://wx.kuyicloud.com/weixin/im/"+orgid;
344
+        this.$router.push({
345
+          path:"/custom",
346
+          query: {
347
+            orgid:orgid
348
+          }
349
+        })
338 350
       }else{
339 351
         window.location.href = address;
340 352
       }