jufubao-movie 1.0.38-beta1 → 1.0.38

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.
@@ -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.stop="toMapNav">
27
+ <view class="cinema_tel" :style="{background: warningColor}" @click="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.stop="makePhoneCall">
30
+ <view class="cinema_tel" :style="{background: warningColor}" @click="makePhoneCall">
31
31
  <xd-font-icon icon="icondianhua" size="32"></xd-font-icon>
32
32
  </view>
33
33
  </view>
@@ -46,7 +46,6 @@
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>
50
49
  <view class="film_list_swiper">
51
50
  <!-- #ifdef H5 -->
52
51
  <z-swiper
@@ -67,21 +66,13 @@
67
66
  </z-swiper-item>
68
67
  </z-swiper>
69
68
  <!-- #endif -->
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
- >
69
+ <!-- #ifdef MP -->
70
+ <swiper class="swiper" :display-multiple-items="3" :current="curFilmIndex" @change="handleChange">
78
71
  <swiper-item>
79
72
  <view></view>
80
73
  </swiper-item>
81
74
  <swiper-item v-for="(item,index) in list" :key="index">
82
- <view class="image-box">
83
- <image class="image" :class="{swiper_active : curFilmIndex===index}" :src="item.poster" mode="scaleToFill"></image>
84
- </view>
75
+ <image class="image" :class="{swiper_active : curFilmIndex===index}" :src="item.poster" mode="aspectFit"></image>
85
76
  </swiper-item>
86
77
  <swiper-item>
87
78
  <view></view>
@@ -92,7 +83,9 @@
92
83
  <view v-if="filmInfo" class="film_info">
93
84
  <view class="film_name">{{filmInfo.show_name || ""}} <view v-if="filmInfo.remark" class="film_score">评分:{{filmInfo.remark}}</view></view>
94
85
  <view class="film_type_score">
95
- <view class="film_type">{{filmTypeAll}}</view>
86
+ <view class="film_type">
87
+ {{filmTypeAll}}
88
+ </view>
96
89
  </view>
97
90
  </view>
98
91
  </view>
@@ -191,11 +184,8 @@
191
184
  import extsMixins from "@/mixins/extsMixins"
192
185
  import { getContainerPropsValue } from "@/utils/xd.base";
193
186
  import XdTab from "@/components/XdTab/XdTab";
194
- //#ifdef H5
195
187
  import ZSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue"
196
188
  import ZSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue"
197
- //#endif
198
-
199
189
  const Color = require('color');
200
190
  import { mapState } from "vuex"
201
191
 
@@ -208,10 +198,8 @@
208
198
  XdCoins,
209
199
  XdNoticeBar,
210
200
  XdUnit,
211
- //#ifdef H5
212
201
  ZSwiper,
213
202
  ZSwiperItem
214
- //#endif
215
203
  },
216
204
  mixins: [componentsMixins,extsMixins,JfbMovieLineScheduleMixin],
217
205
  data() {
@@ -266,7 +254,13 @@
266
254
  },
267
255
  filmTypeAll(){
268
256
  const { filmInfo } = this;
269
- return [filmInfo.language, filmInfo.type, filmInfo.director, filmInfo.show_version_list].filter(i=>i).join(" | ");
257
+ let data = [];
258
+ if(filmInfo.duration){
259
+ data.push(filmInfo.duration + ' 分钟');
260
+ }
261
+ let other = [filmInfo.language, filmInfo.type, filmInfo.director, filmInfo.show_version_list].filter(i=>i);
262
+ data = data.concat(other)
263
+ return data.join(" | ");
270
264
  },
271
265
  noticeBgColor(){
272
266
  return Color(this.mainColor).alpha(0.1).toString();
@@ -317,7 +311,6 @@
317
311
  toMapNav(){
318
312
  const { latitude, longitude, address,cinema_name } = this.cinemaInfo;
319
313
  console.warn(`toMapNav: ${JSON.stringify({latitude,longitude,address,cinema_name})}`);
320
-
321
314
  this.handleOpenLocation({
322
315
  latitude: latitude,
323
316
  longitude: longitude,
@@ -435,8 +428,7 @@
435
428
  &__body{
436
429
  background: #FAFAFA;
437
430
  .schedule_wrap{
438
- position: relative;
439
- z-index: 2;
431
+ margin-top: 32rpx;
440
432
  .schedule_date{
441
433
  border-radius: 10px 10px 0px 0px;
442
434
  background: #FFFFFF;
@@ -537,10 +529,6 @@
537
529
  }
538
530
  }
539
531
  .film_data_wrap{
540
- padding-bottom: 32rpx;
541
- border-top: 1rpx solid #eee;
542
- position: relative;
543
-
544
532
  &.skeleton-wrap{
545
533
  .film_list_swiper{
546
534
  display: flex;
@@ -564,34 +552,18 @@
564
552
  .image {
565
553
  height: 100%;
566
554
  width: 100%;
567
- border-radius: 18rpx;
568
555
  }
569
556
  .film_list_swiper{
570
557
  height: 300rpx;
571
558
  width: 100%;
572
- padding: 40rpx 0;
573
-
574
- //#ifdef MP-WEIXIN
575
- .image-box {
576
- width: 100%;
577
- height: 300rpx;
578
- }
579
- //#endif
559
+ margin: 40rpx 0;
580
560
 
581
561
  .image {
582
- margin: 0 auto;
583
- //#ifdef H5
584
562
  width: 100%;
585
- //#endif
586
- //#ifdef MP-WEIXIN
587
- width: 220rpx;
588
- border-radius: 14rpx;
589
- //#endif
590
563
  height: 300rpx;
591
564
  transform: scale(0.9);
592
565
  filter: contrast(0.5);
593
566
  transition: all 300ms;
594
-
595
567
  &.swiper_active{
596
568
  transform: scale(1);
597
569
  filter: contrast(1);
@@ -622,33 +594,16 @@
622
594
  margin-top: 16rpx;
623
595
  .film_type{
624
596
  font-size: 24rpx;
625
- color: #999;
597
+ color: #AAAAAA;
626
598
  font-weight: 400;
627
599
  padding: 0 40rpx;
628
600
  }
629
601
 
630
602
  }
631
603
  }
632
-
633
- .active_film_bg {
634
- position: absolute;
635
- background-size: 120% auto;
636
- top:0;
637
- left: 0;
638
- right: 0;
639
- bottom: -40rpx;
640
- //#ifdef MP-WEIXIN
641
- z-index: 0;
642
- //#endif
643
- //#ifdef H5
644
- z-index: -1;
645
- //#endif
646
- opacity: .15;
647
-
648
- }
649
604
  }
650
605
  .ticket_notice{
651
- padding: 20rpx 20rpx;
606
+ padding: 20rpx 48rpx;
652
607
  font-size: 26rpx;
653
608
  line-height: 36rpx;
654
609
  &.skeleton-wrap{
@@ -656,9 +611,9 @@
656
611
  }
657
612
  }
658
613
  .cinema_data_wrap{
659
- border-radius: 0 0 20rpx 20rpx;
614
+ border-radius: 0px 0px 20rpx 20rpx;
660
615
  background: rgba(255, 255, 255, 1);
661
- box-shadow: 0 2rpx 20rpx 0 rgba(0, 0, 0, 0.05);
616
+ box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.05);
662
617
  padding: 28rpx 48rpx;
663
618
  display: flex;
664
619
  align-items: center;
@@ -6,72 +6,53 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- mapFnName: 'getTFKListFilmHotList',
10
- title: '获取热映影片列表',
11
- path: '/movie/v1/film/list',
9
+ //设置方法名字当别忘记加上【模块名字】:Tfk
10
+ mapFnName: 'getTfkByIdFilmSquate',
11
+ title: '获取电影广场列表',
12
+ path: '/api/account/film/list-film-square',
12
13
  isRule: false,
13
14
  params: {
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'],
15
+ last_key: ['当前页', 'Number', '必选'],
16
+ page_size: ['每页数量', 'Number', '必选'],
19
17
  },
20
18
  isConsole: true,
21
19
  disabled: true,
22
20
  },
23
21
  {
24
- mapFnName: 'getTFKListFilmRightnowList',
25
- title: '获取即将上映影片列表',
26
- path: '/movie/v1/film/list',
22
+ //设置方法名字当别忘记加上【模块名字】:Tfk
23
+ mapFnName: 'updateTfkFilmPaiqiDate',
24
+ title: '更新排期',
25
+ path: '/api/account/film/paiqi-date',
27
26
  isRule: false,
28
27
  params: {
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'],
28
+ film_id: ['电影id', 'Number', '必选'],
29
+ cinema_id: ['影院id', 'Number', '必选'],
34
30
  },
35
31
  isConsole: true,
36
32
  disabled: true,
37
33
  },
38
34
  {
39
- mapFnName: 'getTFKCinemaList',
40
- title: '获取即将上映影片列表',
41
- path: '/movie/v1/cinema/list',
35
+ //设置方法名字当别忘记加上【模块名字】:Tfk
36
+ mapFnName: 'removeTfkFilmAddress',
37
+ title: '删除我的配送地址',
38
+ path: '/api/account/film/paiqi-date',
42
39
  isRule: false,
43
40
  params: {
44
- city_code: ['city_code', 'Number', '必选'],
45
- latitude: ['latitude', 'Number', '必选'],
46
- longitude: ['longitude', 'Number', '必选'],
41
+ film_id: ['电影id', 'Number', '必选'],
47
42
  },
48
43
  isConsole: true,
49
44
  disabled: true,
50
45
  },
51
46
  {
52
- mapFnName: 'getTFKPosterContent', //自定义方法名字(必选)
53
- title: '获取内容',
54
- path: '/cms/v1/ad-content',
47
+ //设置方法名字当别忘记加上【模块名字】:Tfk
48
+ mapFnName: 'addTfkFilmcart',
49
+ title: '添加购物车',
50
+ path: '/api/account/film/paiqi-date',
55
51
  isRule: false,
56
52
  params: {
57
- scene: ['使用场景', 'String', '选填'],
58
- container_id: ['插件ID', 'String', '必填'],
59
- page_id: ['页面ID', 'String', '必填'],
60
- page_size: ['记录条数', 'Number', '必填'],
53
+ film_id: ['电影id', 'Number', '必选'],
61
54
  },
62
55
  isConsole: true,
63
56
  disabled: true,
64
57
  },
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
- //
77
58
  ];