|
@@ -0,0 +1,215 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="swiper-container">
|
|
3
|
+ <div class="musicbox" @click="troggle">
|
|
4
|
+ <img :class="playing" :src="'https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/music_'+playing+'.png'" alt="">
|
|
5
|
+ </div>
|
|
6
|
+ <div class="swiper-wrapper">
|
|
7
|
+ <div class="swiper-slide mainPage">
|
|
8
|
+ <div>
|
|
9
|
+ <img class="main_logo" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_logo.png">
|
|
10
|
+ <div class="subPage">
|
|
11
|
+ <div>
|
|
12
|
+ <img :class="['main_main', (swiper || {}).activeIndex === 0 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_main.png">
|
|
13
|
+ <img :class="['main_title', (swiper || {}).activeIndex === 0 ? 'animated fadeInUp': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_maintitle1.png">
|
|
14
|
+ <img :class="['main_happy', (swiper || {}).activeIndex === 0 ? 'animated rotateIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_happy.png">
|
|
15
|
+ </div>
|
|
16
|
+ </div>
|
|
17
|
+ </div>
|
|
18
|
+ </div>
|
|
19
|
+ <div class="swiper-slide yqhPage">
|
|
20
|
+ <div>
|
|
21
|
+ <div class="subPage">
|
|
22
|
+ <div class="sub_title">
|
|
23
|
+ <img :class="['yqh_title', (swiper || {}).activeIndex === 1 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title.png">
|
|
24
|
+ <img :class="['yqh_title_min', (swiper || {}).activeIndex === 1 ? 'animated fadeInLeft': '']" style="animation-delay: 0.5s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title_min.png">
|
|
25
|
+ </div>
|
|
26
|
+ <div class="yqh">
|
|
27
|
+ <div class="div_xz">
|
|
28
|
+ <div :class="[(swiper || {}).activeIndex === 1 ? 'animated fadeInUp': '']" style="animation-delay: 1s;width:100%;height:100%;opacity: 0;">
|
|
29
|
+ <div>
|
|
30
|
+ <a>
|
|
31
|
+ <img
|
|
32
|
+ v-if="userInfo !== null"
|
|
33
|
+ :src="userInfo.Headimgurl.replace(/http:\/\/.+\.qlogo\.cn\//i, 'http://wx.jinchengjiaye.com/wechat-avatar/') || ''"
|
|
34
|
+ class="cover"
|
|
35
|
+ alt
|
|
36
|
+ >
|
|
37
|
+ </a>
|
|
38
|
+ <span>{{userInfo !== null ? userInfo.Nickyname : ''}}:</span>
|
|
39
|
+ </div>
|
|
40
|
+ <img class="yqh_xz" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_xz1.png">
|
|
41
|
+ </div>
|
|
42
|
+ </div>
|
|
43
|
+ <div class="div_xf_top">
|
|
44
|
+ <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_xftop.png">
|
|
45
|
+ </div>
|
|
46
|
+ <div class="div_xf_down">
|
|
47
|
+ <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_xfdown.png">
|
|
48
|
+ </div>
|
|
49
|
+ <img :class="['yqh_happy', (swiper || {}).activeIndex === 1 ? 'animated rotateIn': '']" style="animation-delay: 2s" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_happy.png">
|
|
50
|
+ </div>
|
|
51
|
+ </div>
|
|
52
|
+ </div>
|
|
53
|
+ </div>
|
|
54
|
+ <div class="swiper-slide hylcPage">
|
|
55
|
+ <div>
|
|
56
|
+ <div class="subPage">
|
|
57
|
+ <div class="sub_title">
|
|
58
|
+ <img :class="['hylc_title', (swiper || {}).activeIndex === 2 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title.png">
|
|
59
|
+ <img :class="['hylc_title_hy', (swiper || {}).activeIndex === 2 ? 'animated fadeInLeft': '']" style="animation-delay: 0.5s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title_hy.png">
|
|
60
|
+ </div>
|
|
61
|
+ <div :class="[(swiper || {}).activeIndex === 2 ? 'animated fadeIn': '']" style="animation-delay: 1s">
|
|
62
|
+ <ul>
|
|
63
|
+ <li v-for="(item, index) in meetings" class="flex-h" :key="index">
|
|
64
|
+ <span :class="[(swiper || {}).activeIndex === 2 ? 'animated fadeInLeft': '']" style="animation-delay: 1.5s;animation-duration:0.5s">{{item.time}}</span>
|
|
65
|
+ <div :class="['flex-item', (swiper || {}).activeIndex === 2 ? 'animated fadeInRight': '']" style="animation-delay: 1s;animation-duration:1s">{{item.desc}}</div>
|
|
66
|
+ <span :class="[(swiper || {}).activeIndex === 2 ? 'animated fadeInRight': '']" style="animation-delay: 1.5s;animation-duration:0.5s">{{item.minutes}}</span>
|
|
67
|
+ </li>
|
|
68
|
+ </ul>
|
|
69
|
+ </div>
|
|
70
|
+ <div class="sub_bottom">
|
|
71
|
+ <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_logo.png">
|
|
72
|
+ </div>
|
|
73
|
+ </div>
|
|
74
|
+ </div>
|
|
75
|
+ </div>
|
|
76
|
+ <div class="swiper-slide chxzPage">
|
|
77
|
+ <div>
|
|
78
|
+ <div class="subPage">
|
|
79
|
+ <div class="sub_title">
|
|
80
|
+ <img :class="['chxz_title', (swiper || {}).activeIndex === 3 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title.png">
|
|
81
|
+ <img :class="['chxz_title_ch', (swiper || {}).activeIndex === 3 ? 'animated fadeInLeft': '']" style="animation-delay: 0.5s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title_ch.png">
|
|
82
|
+ <img :class="['chxz_title_ch', (swiper || {}).activeIndex === 3 ? 'animated fadeIn': '']" style="animation-delay: 1s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_ch_desc.png">
|
|
83
|
+ </div>
|
|
84
|
+ <el-amap ref="map" vid="amapDemo" :center="mapCenter" :zoom="15" :class="['amap', (swiper || {}).activeIndex === 3 ? 'animated fadeIn': '']" style="animation-delay: 1s;">
|
|
85
|
+ <el-amap-marker :position="mapCenter" :events="events"></el-amap-marker>
|
|
86
|
+ </el-amap>
|
|
87
|
+ <div class="sub_bottom">
|
|
88
|
+ <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_logo.png">
|
|
89
|
+ </div>
|
|
90
|
+ </div>
|
|
91
|
+ </div>
|
|
92
|
+ </div>
|
|
93
|
+ </div>
|
|
94
|
+ </div>
|
|
95
|
+</template>
|
|
96
|
+
|
|
97
|
+<script>
|
|
98
|
+import Swiper from 'swiper'
|
|
99
|
+import { createNamespacedHelpers } from 'vuex'
|
|
100
|
+import wx from 'weixin-jsapi'
|
|
101
|
+const { mapState: mapUserState } = createNamespacedHelpers('user')
|
|
102
|
+
|
|
103
|
+export default {
|
|
104
|
+ name: '',
|
|
105
|
+ data () {
|
|
106
|
+ return {
|
|
107
|
+ swiper: null,
|
|
108
|
+ marker: null,
|
|
109
|
+ events: {
|
|
110
|
+ click: () => {
|
|
111
|
+ console.log(wx)
|
|
112
|
+ wx.openLocation({
|
|
113
|
+ latitude: 31.941891, // 纬度,浮点数,范围为90 ~ -90
|
|
114
|
+ longitude: 118.818648, // 经度,浮点数,范围为180 ~ -180。
|
|
115
|
+ name: '银城皇冠假日酒店'
|
|
116
|
+ })
|
|
117
|
+ }
|
|
118
|
+ },
|
|
119
|
+ audio: null,
|
|
120
|
+ musicurl: 'https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/nh_music.mp3',
|
|
121
|
+ playing: 'off',
|
|
122
|
+ markers: [],
|
|
123
|
+ mapCenter: [118.818648, 31.941891],
|
|
124
|
+ meetings: [{
|
|
125
|
+ time: '13:30-13:40',
|
|
126
|
+ desc: '城中、江宁、合肥、大华、物色、银荔方、耘初',
|
|
127
|
+ minutes: '10分钟'
|
|
128
|
+ }, {
|
|
129
|
+ time: '13:40-13:55',
|
|
130
|
+ desc: '江北、锦城、荟盛行、海南',
|
|
131
|
+ minutes: '15分钟'
|
|
132
|
+ }, {
|
|
133
|
+ time: '13:55-14:10',
|
|
134
|
+ desc: '无锡、杭州、徐州、营销中心、荟房',
|
|
135
|
+ minutes: '15分钟'
|
|
136
|
+ }, {
|
|
137
|
+ time: '14:30-14:35',
|
|
138
|
+ desc: '视频',
|
|
139
|
+ minutes: '5分钟'
|
|
140
|
+ }, {
|
|
141
|
+ time: '14:35-14:55',
|
|
142
|
+ desc: '何总发言',
|
|
143
|
+ minutes: '20分钟'
|
|
144
|
+ }, {
|
|
145
|
+ time: '14:55-15:25',
|
|
146
|
+ desc: '案例分享2个(江宁、江北)',
|
|
147
|
+ minutes: '30分钟'
|
|
148
|
+ }, {
|
|
149
|
+ time: '15:25-15:50',
|
|
150
|
+ desc: '邀请集团领导发言',
|
|
151
|
+ minutes: '25分钟'
|
|
152
|
+ }, {
|
|
153
|
+ time: '15:50-17:10',
|
|
154
|
+ desc: '表彰优秀员工、团队',
|
|
155
|
+ minutes: '80分钟'
|
|
156
|
+ }, {
|
|
157
|
+ time: '17:10-17:30',
|
|
158
|
+ desc: '下达2019目标、誓师授旗',
|
|
159
|
+ minutes: '20分钟'
|
|
160
|
+ }, {
|
|
161
|
+ time: '17:30-18:30',
|
|
162
|
+ desc: '翻台、暖场互动',
|
|
163
|
+ minutes: '60分钟'
|
|
164
|
+ }, {
|
|
165
|
+ time: '18:30-20:30',
|
|
166
|
+ desc: '晚宴+节目+抽奖+互动',
|
|
167
|
+ minutes: '120分钟'
|
|
168
|
+ }],
|
|
169
|
+ trigger: 'ontouchend' in window.document ? 'touchstart' : 'click'
|
|
170
|
+ }
|
|
171
|
+ },
|
|
172
|
+ computed: {
|
|
173
|
+ ...mapUserState({
|
|
174
|
+ userInfo: item => item.userInfo
|
|
175
|
+ })
|
|
176
|
+ },
|
|
177
|
+ mounted () {
|
|
178
|
+ this.swiper = new Swiper('.swiper-container', {
|
|
179
|
+ direction: 'vertical'
|
|
180
|
+ })
|
|
181
|
+ window.setTimeout(this.play, 1000)
|
|
182
|
+ window.document.addEventListener(this.trigger, this.autoplay, false)
|
|
183
|
+ },
|
|
184
|
+ methods: {
|
|
185
|
+ play () {
|
|
186
|
+ if (this.musicurl) {
|
|
187
|
+ if (!this.audio) {
|
|
188
|
+ this.audio = window.document.createElement('audio')
|
|
189
|
+ this.audio.src = this.musicurl
|
|
190
|
+ this.audio.autoplay = 'autoplay'
|
|
191
|
+ this.audio.preload = true
|
|
192
|
+ this.audio.loop = true
|
|
193
|
+ }
|
|
194
|
+ this.audio.play()
|
|
195
|
+ this.playing = 'on'
|
|
196
|
+ }
|
|
197
|
+ },
|
|
198
|
+ stop () {
|
|
199
|
+ this.audio.pause()
|
|
200
|
+ this.playing = 'off'
|
|
201
|
+ },
|
|
202
|
+ troggle () {
|
|
203
|
+ if (this.playing === 'on') {
|
|
204
|
+ this.stop()
|
|
205
|
+ } else {
|
|
206
|
+ this.play()
|
|
207
|
+ }
|
|
208
|
+ }
|
|
209
|
+ }
|
|
210
|
+}
|
|
211
|
+</script>
|
|
212
|
+
|
|
213
|
+<style lang="scss" scoped>
|
|
214
|
+@import "page.scss";
|
|
215
|
+</style>
|