jufubao-movie 1.0.38 → 1.0.39-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbMovieLineFilmInfo/Attr.js +2 -2
- package/src/components/JfbMovieLineFilmInfo/JfbMovieLineFilmInfo.vue +1 -3
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeat.vue +17 -14
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeatMove.vue +424 -100
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +65 -14
- package/src/components/JfbMovieTfkFilmList/Api.js +41 -22
- package/src/components/JfbMovieTfkFilmList/Attr.js +622 -30
- package/src/components/JfbMovieTfkFilmList/ContentCinema.vue +147 -0
- package/src/components/JfbMovieTfkFilmList/ContentItem.vue +167 -0
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmList.vue +1047 -28
- package/src/components/JfbMovieTfkFilmList/Mock.js +4 -9
- package/src/components/JfbMovieTfkFilmList/XdQueryFilter.vue +87 -0
- package/src/components/JfbMovieTfkFilmList/XdQuerySort.vue +149 -0
- package/src/components/JfbMovieTfkFilmList/XdSwiperDot.vue +234 -0
- package/src/components/JfbMovieTfkFilmRecommend/Api.js +16 -36
- package/src/components/JfbMovieTfkFilmRecommend/Attr.js +527 -29
- package/src/components/JfbMovieTfkFilmRecommend/JfbMovieTfkFilmRecommend.vue +537 -34
- package/src/components/JfbMovieTfkFilmRecommend/Mock.js +2 -9
- package/src/lib/VirtualList.js +184 -0
- package/src/mixins/componentsMixins.js +275 -24
- package/src/mixins/posterMixins.js +125 -0
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
<view class="cinema_name">{{cinemaInfo.cinema_name}}</view>
|
|
25
25
|
<view class="cinema_address">{{cinemaInfo.address}}</view>
|
|
26
26
|
</view>
|
|
27
|
-
<view class="cinema_tel" :style="{background: warningColor}" @click="toMapNav">
|
|
27
|
+
<view class="cinema_tel" :style="{background: warningColor}" @click.stop="toMapNav">
|
|
28
28
|
<xd-font-icon icon="icondanghang" size="32"></xd-font-icon>
|
|
29
29
|
</view>
|
|
30
|
-
<view class="cinema_tel" :style="{background: warningColor}" @click="makePhoneCall">
|
|
30
|
+
<view class="cinema_tel" :style="{background: warningColor}" @click.stop="makePhoneCall">
|
|
31
31
|
<xd-font-icon icon="icondianhua" size="32"></xd-font-icon>
|
|
32
32
|
</view>
|
|
33
33
|
</view>
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
</view>
|
|
47
47
|
</view>
|
|
48
48
|
<view v-else class="film_data_wrap">
|
|
49
|
+
<view v-if="filmInfo.poster" class="active_film_bg" :style="{backgroundImage:'url('+ filmInfo.poster +')'}"></view>
|
|
49
50
|
<view class="film_list_swiper">
|
|
50
51
|
<!-- #ifdef H5 -->
|
|
51
52
|
<z-swiper
|
|
@@ -66,13 +67,21 @@
|
|
|
66
67
|
</z-swiper-item>
|
|
67
68
|
</z-swiper>
|
|
68
69
|
<!-- #endif -->
|
|
69
|
-
<!-- #ifdef MP -->
|
|
70
|
-
<swiper
|
|
70
|
+
<!-- #ifdef MP-WEIXIN -->
|
|
71
|
+
<swiper
|
|
72
|
+
class="swiper"
|
|
73
|
+
style="height: 300rpx; width: 100%"
|
|
74
|
+
:display-multiple-items="3"
|
|
75
|
+
:current="curFilmIndex"
|
|
76
|
+
@change="handleChange"
|
|
77
|
+
>
|
|
71
78
|
<swiper-item>
|
|
72
79
|
<view></view>
|
|
73
80
|
</swiper-item>
|
|
74
81
|
<swiper-item v-for="(item,index) in list" :key="index">
|
|
75
|
-
<
|
|
82
|
+
<view class="image-box">
|
|
83
|
+
<image class="image" :class="{swiper_active : curFilmIndex===index}" :src="item.poster" mode="scaleToFill"></image>
|
|
84
|
+
</view>
|
|
76
85
|
</swiper-item>
|
|
77
86
|
<swiper-item>
|
|
78
87
|
<view></view>
|
|
@@ -83,9 +92,7 @@
|
|
|
83
92
|
<view v-if="filmInfo" class="film_info">
|
|
84
93
|
<view class="film_name">{{filmInfo.show_name || ""}} <view v-if="filmInfo.remark" class="film_score">评分:{{filmInfo.remark}}</view></view>
|
|
85
94
|
<view class="film_type_score">
|
|
86
|
-
<view class="film_type">
|
|
87
|
-
{{filmTypeAll}}
|
|
88
|
-
</view>
|
|
95
|
+
<view class="film_type">{{filmTypeAll}}</view>
|
|
89
96
|
</view>
|
|
90
97
|
</view>
|
|
91
98
|
</view>
|
|
@@ -184,8 +191,11 @@
|
|
|
184
191
|
import extsMixins from "@/mixins/extsMixins"
|
|
185
192
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
186
193
|
import XdTab from "@/components/XdTab/XdTab";
|
|
194
|
+
//#ifdef H5
|
|
187
195
|
import ZSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue"
|
|
188
196
|
import ZSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue"
|
|
197
|
+
//#endif
|
|
198
|
+
|
|
189
199
|
const Color = require('color');
|
|
190
200
|
import { mapState } from "vuex"
|
|
191
201
|
|
|
@@ -198,8 +208,10 @@
|
|
|
198
208
|
XdCoins,
|
|
199
209
|
XdNoticeBar,
|
|
200
210
|
XdUnit,
|
|
211
|
+
//#ifdef H5
|
|
201
212
|
ZSwiper,
|
|
202
213
|
ZSwiperItem
|
|
214
|
+
//#endif
|
|
203
215
|
},
|
|
204
216
|
mixins: [componentsMixins,extsMixins,JfbMovieLineScheduleMixin],
|
|
205
217
|
data() {
|
|
@@ -311,6 +323,7 @@
|
|
|
311
323
|
toMapNav(){
|
|
312
324
|
const { latitude, longitude, address,cinema_name } = this.cinemaInfo;
|
|
313
325
|
console.warn(`toMapNav: ${JSON.stringify({latitude,longitude,address,cinema_name})}`);
|
|
326
|
+
|
|
314
327
|
this.handleOpenLocation({
|
|
315
328
|
latitude: latitude,
|
|
316
329
|
longitude: longitude,
|
|
@@ -428,7 +441,8 @@
|
|
|
428
441
|
&__body{
|
|
429
442
|
background: #FAFAFA;
|
|
430
443
|
.schedule_wrap{
|
|
431
|
-
|
|
444
|
+
position: relative;
|
|
445
|
+
z-index: 2;
|
|
432
446
|
.schedule_date{
|
|
433
447
|
border-radius: 10px 10px 0px 0px;
|
|
434
448
|
background: #FFFFFF;
|
|
@@ -529,6 +543,10 @@
|
|
|
529
543
|
}
|
|
530
544
|
}
|
|
531
545
|
.film_data_wrap{
|
|
546
|
+
padding-bottom: 32rpx;
|
|
547
|
+
border-top: 1rpx solid #eee;
|
|
548
|
+
position: relative;
|
|
549
|
+
|
|
532
550
|
&.skeleton-wrap{
|
|
533
551
|
.film_list_swiper{
|
|
534
552
|
display: flex;
|
|
@@ -552,18 +570,34 @@
|
|
|
552
570
|
.image {
|
|
553
571
|
height: 100%;
|
|
554
572
|
width: 100%;
|
|
573
|
+
border-radius: 18rpx;
|
|
555
574
|
}
|
|
556
575
|
.film_list_swiper{
|
|
557
576
|
height: 300rpx;
|
|
558
577
|
width: 100%;
|
|
559
|
-
|
|
578
|
+
padding: 40rpx 0;
|
|
579
|
+
|
|
580
|
+
//#ifdef MP-WEIXIN
|
|
581
|
+
.image-box {
|
|
582
|
+
width: 100%;
|
|
583
|
+
height: 300rpx;
|
|
584
|
+
}
|
|
585
|
+
//#endif
|
|
560
586
|
|
|
561
587
|
.image {
|
|
588
|
+
margin: 0 auto;
|
|
589
|
+
//#ifdef H5
|
|
562
590
|
width: 100%;
|
|
591
|
+
//#endif
|
|
592
|
+
//#ifdef MP-WEIXIN
|
|
593
|
+
width: 220rpx;
|
|
594
|
+
border-radius: 14rpx;
|
|
595
|
+
//#endif
|
|
563
596
|
height: 300rpx;
|
|
564
597
|
transform: scale(0.9);
|
|
565
598
|
filter: contrast(0.5);
|
|
566
599
|
transition: all 300ms;
|
|
600
|
+
|
|
567
601
|
&.swiper_active{
|
|
568
602
|
transform: scale(1);
|
|
569
603
|
filter: contrast(1);
|
|
@@ -594,16 +628,33 @@
|
|
|
594
628
|
margin-top: 16rpx;
|
|
595
629
|
.film_type{
|
|
596
630
|
font-size: 24rpx;
|
|
597
|
-
color: #
|
|
631
|
+
color: #999;
|
|
598
632
|
font-weight: 400;
|
|
599
633
|
padding: 0 40rpx;
|
|
600
634
|
}
|
|
601
635
|
|
|
602
636
|
}
|
|
603
637
|
}
|
|
638
|
+
|
|
639
|
+
.active_film_bg {
|
|
640
|
+
position: absolute;
|
|
641
|
+
background-size: 120% auto;
|
|
642
|
+
top:0;
|
|
643
|
+
left: 0;
|
|
644
|
+
right: 0;
|
|
645
|
+
bottom: -40rpx;
|
|
646
|
+
//#ifdef MP-WEIXIN
|
|
647
|
+
z-index: 0;
|
|
648
|
+
//#endif
|
|
649
|
+
//#ifdef H5
|
|
650
|
+
z-index: -1;
|
|
651
|
+
//#endif
|
|
652
|
+
opacity: .15;
|
|
653
|
+
|
|
654
|
+
}
|
|
604
655
|
}
|
|
605
656
|
.ticket_notice{
|
|
606
|
-
padding: 20rpx
|
|
657
|
+
padding: 20rpx 20rpx;
|
|
607
658
|
font-size: 26rpx;
|
|
608
659
|
line-height: 36rpx;
|
|
609
660
|
&.skeleton-wrap{
|
|
@@ -611,9 +662,9 @@
|
|
|
611
662
|
}
|
|
612
663
|
}
|
|
613
664
|
.cinema_data_wrap{
|
|
614
|
-
border-radius:
|
|
665
|
+
border-radius: 0 0 20rpx 20rpx;
|
|
615
666
|
background: rgba(255, 255, 255, 1);
|
|
616
|
-
box-shadow:
|
|
667
|
+
box-shadow: 0 2rpx 20rpx 0 rgba(0, 0, 0, 0.05);
|
|
617
668
|
padding: 28rpx 48rpx;
|
|
618
669
|
display: flex;
|
|
619
670
|
align-items: center;
|
|
@@ -6,53 +6,72 @@
|
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
path: '/api/account/film/list-film-square',
|
|
9
|
+
mapFnName: 'getTFKListFilmHotList',
|
|
10
|
+
title: '获取热映影片列表',
|
|
11
|
+
path: '/movie/v1/film/list',
|
|
13
12
|
isRule: false,
|
|
14
13
|
params: {
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
type: ['类型 hot rightnow', 'string', '必选'],
|
|
15
|
+
city_code: ['城市CODE', 'Number|string', '必选'],
|
|
16
|
+
page_size: ['page_size', 'Number|string', '必选', '20'],
|
|
17
|
+
page_token: ['page_token', 'Number|string', '必选'],
|
|
18
|
+
scene: ['应用场景', 'string', '可选', 'list'],
|
|
17
19
|
},
|
|
18
20
|
isConsole: true,
|
|
19
21
|
disabled: true,
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
path: '/api/account/film/paiqi-date',
|
|
24
|
+
mapFnName: 'getTFKListFilmRightnowList',
|
|
25
|
+
title: '获取即将上映影片列表',
|
|
26
|
+
path: '/movie/v1/film/list',
|
|
26
27
|
isRule: false,
|
|
27
28
|
params: {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
type: ['类型 hot rightnow', 'string', '必选'],
|
|
30
|
+
city_code: ['城市CODE', 'Number|string', '必选'],
|
|
31
|
+
page_size: ['page_size', 'Number|string', '必选', '20'],
|
|
32
|
+
page_token: ['page_token', 'Number|string', '必选'],
|
|
33
|
+
scene: ['应用场景', 'string', '可选', 'list'],
|
|
30
34
|
},
|
|
31
35
|
isConsole: true,
|
|
32
36
|
disabled: true,
|
|
33
37
|
},
|
|
34
38
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
39
|
+
mapFnName: 'getTFKCinemaList',
|
|
40
|
+
title: '获取即将上映影片列表',
|
|
41
|
+
path: '/movie/v1/cinema/list',
|
|
39
42
|
isRule: false,
|
|
40
43
|
params: {
|
|
41
|
-
|
|
44
|
+
city_code: ['city_code', 'Number', '必选'],
|
|
45
|
+
latitude: ['latitude', 'Number', '必选'],
|
|
46
|
+
longitude: ['longitude', 'Number', '必选'],
|
|
42
47
|
},
|
|
43
48
|
isConsole: true,
|
|
44
49
|
disabled: true,
|
|
45
50
|
},
|
|
46
51
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
52
|
+
mapFnName: 'getTFKPosterContent', //自定义方法名字(必选)
|
|
53
|
+
title: '获取内容',
|
|
54
|
+
path: '/cms/v1/ad-content',
|
|
51
55
|
isRule: false,
|
|
52
56
|
params: {
|
|
53
|
-
|
|
57
|
+
scene: ['使用场景', 'String', '选填'],
|
|
58
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
59
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
60
|
+
page_size: ['记录条数', 'Number', '必填'],
|
|
54
61
|
},
|
|
55
62
|
isConsole: true,
|
|
56
63
|
disabled: true,
|
|
57
64
|
},
|
|
65
|
+
|
|
66
|
+
{
|
|
67
|
+
mapFnName: 'getTFKSortList',
|
|
68
|
+
title: '获取内容',
|
|
69
|
+
path: '/movie/v1/film/options',
|
|
70
|
+
isRule: false,
|
|
71
|
+
params: {},
|
|
72
|
+
isConsole: true,
|
|
73
|
+
disabled: true,
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
//
|
|
58
77
|
];
|