jufubao-movie 1.0.36-beta1 → 1.0.36-beta3

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.
@@ -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 class="swiper" :display-multiple-items="3" :current="curFilmIndex" @change="handleChange">
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
- <image class="image" :class="{swiper_active : curFilmIndex===index}" :src="item.poster" mode="aspectFit"></image>
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() {
@@ -421,7 +433,8 @@
421
433
  &__body{
422
434
  background: #FAFAFA;
423
435
  .schedule_wrap{
424
- margin-top: 32rpx;
436
+ position: relative;
437
+ z-index: 2;
425
438
  .schedule_date{
426
439
  border-radius: 10px 10px 0px 0px;
427
440
  background: #FFFFFF;
@@ -522,6 +535,10 @@
522
535
  }
523
536
  }
524
537
  .film_data_wrap{
538
+ padding-bottom: 32rpx;
539
+ border-top: 1rpx solid #eee;
540
+ position: relative;
541
+
525
542
  &.skeleton-wrap{
526
543
  .film_list_swiper{
527
544
  display: flex;
@@ -545,18 +562,34 @@
545
562
  .image {
546
563
  height: 100%;
547
564
  width: 100%;
565
+ border-radius: 18rpx;
548
566
  }
549
567
  .film_list_swiper{
550
568
  height: 300rpx;
551
569
  width: 100%;
552
- margin: 40rpx 0;
570
+ padding: 40rpx 0;
571
+
572
+ //#ifdef MP-WEIXIN
573
+ .image-box {
574
+ width: 100%;
575
+ height: 300rpx;
576
+ }
577
+ //#endif
553
578
 
554
579
  .image {
580
+ margin: 0 auto;
581
+ //#ifdef H5
555
582
  width: 100%;
583
+ //#endif
584
+ //#ifdef MP-WEIXIN
585
+ width: 220rpx;
586
+ border-radius: 14rpx;
587
+ //#endif
556
588
  height: 300rpx;
557
589
  transform: scale(0.9);
558
590
  filter: contrast(0.5);
559
591
  transition: all 300ms;
592
+
560
593
  &.swiper_active{
561
594
  transform: scale(1);
562
595
  filter: contrast(1);
@@ -587,16 +620,33 @@
587
620
  margin-top: 16rpx;
588
621
  .film_type{
589
622
  font-size: 24rpx;
590
- color: #AAAAAA;
623
+ color: #999;
591
624
  font-weight: 400;
592
625
  padding: 0 40rpx;
593
626
  }
594
627
 
595
628
  }
596
629
  }
630
+
631
+ .active_film_bg {
632
+ position: absolute;
633
+ background-size: 120% auto;
634
+ top:0;
635
+ left: 0;
636
+ right: 0;
637
+ bottom: -40rpx;
638
+ //#ifdef MP-WEIXIN
639
+ z-index: 0;
640
+ //#endif
641
+ //#ifdef H5
642
+ z-index: -1;
643
+ //#endif
644
+ opacity: .15;
645
+
646
+ }
597
647
  }
598
648
  .ticket_notice{
599
- padding: 20rpx 48rpx;
649
+ padding: 20rpx 20rpx;
600
650
  font-size: 26rpx;
601
651
  line-height: 36rpx;
602
652
  &.skeleton-wrap{
@@ -604,9 +654,9 @@
604
654
  }
605
655
  }
606
656
  .cinema_data_wrap{
607
- border-radius: 0px 0px 20rpx 20rpx;
657
+ border-radius: 0 0 20rpx 20rpx;
608
658
  background: rgba(255, 255, 255, 1);
609
- box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.05);
659
+ box-shadow: 0 2rpx 20rpx 0 rgba(0, 0, 0, 0.05);
610
660
  padding: 28rpx 48rpx;
611
661
  display: flex;
612
662
  align-items: center;
@@ -6,51 +6,60 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Tfk
10
- mapFnName: 'getTfkByIdFilmSquate',
11
- title: '获取电影广场列表',
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
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
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
- //设置方法名字当别忘记加上【模块名字】:Tfk
23
- mapFnName: 'updateTfkFilmPaiqiDate',
24
- title: '更新排期',
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
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
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
- //设置方法名字当别忘记加上【模块名字】:Tfk
36
- mapFnName: 'removeTfkFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
+ mapFnName: 'getTFKCinemaList',
40
+ title: '获取即将上映影片列表',
41
+ path: '/movie/v1/film/list',
39
42
  isRule: false,
40
43
  params: {
41
- film_id: ['电影id', 'Number', '必选'],
44
+ type: ['类型 hot rightnow', 'string', '必选'],
45
+ city_code: ['城市CODE', 'Number|string', '必选'],
46
+ page_size: ['page_size', 'Number|string', '必选', '20'],
47
+ page_token: ['page_token', 'Number|string', '必选'],
48
+ scene: ['应用场景', 'string', '可选', 'list'],
42
49
  },
43
50
  isConsole: true,
44
51
  disabled: true,
45
52
  },
46
53
  {
47
- //设置方法名字当别忘记加上【模块名字】:Tfk
48
- mapFnName: 'addTfkFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
54
+ mapFnName: 'getTFKPosterContent', //自定义方法名字(必选)
55
+ title: '获取内容',
56
+ path: '/cms/v1/ad-content',
51
57
  isRule: false,
52
58
  params: {
53
- film_id: ['电影id', 'Number', '必选'],
59
+ scene: ['使用场景', 'String', '选填'],
60
+ container_id: ['插件ID', 'String', '必填'],
61
+ page_id: ['页面ID', 'String', '必填'],
62
+ page_size: ['记录条数', 'Number', '必填'],
54
63
  },
55
64
  isConsole: true,
56
65
  disabled: true,