|
@@ -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"></i>
|
11
|
|
- <span>浏览400次</span>
|
12
|
|
- </p>
|
13
|
|
- </div>-->
|
14
|
|
- </div>
|
15
|
|
- <div class="detail">
|
16
|
|
- <p class="row">
|
17
|
|
- <i class="iconfont"></i>
|
18
|
|
- <span>{{staffCreateTime(activitys.start_time)}}</span>
|
19
|
|
- </p>
|
20
|
|
- <p class="row">
|
21
|
|
- <i class="iconfont"></i>
|
22
|
|
- <span>{{activitys.address}}</span>
|
23
|
|
- </p>
|
24
|
|
- <p class="row">
|
25
|
|
- <i class="iconfont"></i>
|
26
|
|
- <span>{{activitys.join_num}} / {{activitys.limit_num}}</span>
|
27
|
|
- </p>
|
28
|
|
- <p class="row">
|
29
|
|
- <i class="iconfont"></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>
|