jufubao-movie 1.0.34-beta5 → 1.0.35-beta100
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/JfbMovieLineCinemaChoose/Attr.js +0 -13
- package/src/components/JfbMovieLineCinemaChoose/JfbMovieLineCinemaChoose.vue +29 -99
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeat.vue +13 -14
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeatMove.vue +424 -100
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +62 -28
- package/src/components/JfbMovieTfkFilmList/Api.js +58 -0
- package/src/components/JfbMovieTfkFilmList/Attr.js +58 -0
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmList.vue +111 -0
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmListLess.less +79 -0
- package/src/components/JfbMovieTfkFilmList/JfbMovieTfkFilmListMixin.js +30 -0
- package/src/components/JfbMovieTfkFilmList/Mock.js +13 -0
- package/src/components/JfbMovieTfkFilmRecommend/Api.js +58 -0
- package/src/components/JfbMovieTfkFilmRecommend/Attr.js +58 -0
- package/src/components/JfbMovieTfkFilmRecommend/JfbMovieTfkFilmRecommend.vue +111 -0
- package/src/components/JfbMovieTfkFilmRecommend/JfbMovieTfkFilmRecommendLess.less +79 -0
- package/src/components/JfbMovieTfkFilmRecommend/JfbMovieTfkFilmRecommendMixin.js +30 -0
- package/src/components/JfbMovieTfkFilmRecommend/Mock.js +13 -0
package/package.json
CHANGED
|
@@ -38,19 +38,6 @@ export default {
|
|
|
38
38
|
router: XdBus.getParentApi('getPagesTree'),
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
{
|
|
42
|
-
label: '电子码兑换:',
|
|
43
|
-
ele: 'xd-select-pages-path',
|
|
44
|
-
valueKey: 'codeChoosePath',
|
|
45
|
-
placeholder: '请选择电子码兑换路径',
|
|
46
|
-
value: data.codeChoosePath || null,
|
|
47
|
-
className: 'input80',
|
|
48
|
-
groupKey:'advanced',
|
|
49
|
-
setting: {
|
|
50
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
51
|
-
},
|
|
52
|
-
inline: false,
|
|
53
|
-
},
|
|
54
41
|
].filter(i=>i)
|
|
55
42
|
},
|
|
56
43
|
}
|
|
@@ -57,15 +57,8 @@
|
|
|
57
57
|
<view class="cinema_item" v-for="i in 5" :key="i">
|
|
58
58
|
<view class="item_main">
|
|
59
59
|
<view class="item_name"></view>
|
|
60
|
-
</view>
|
|
61
|
-
<view>
|
|
62
|
-
<view class="item_addr"></view>
|
|
63
|
-
</view>
|
|
64
|
-
<view class="item_dist_btn">
|
|
65
60
|
<view class="item_dist"></view>
|
|
66
|
-
<view
|
|
67
|
-
<view class="cinema_item-btn"></view>
|
|
68
|
-
</view>
|
|
61
|
+
<view class="item_addr"></view>
|
|
69
62
|
</view>
|
|
70
63
|
</view>
|
|
71
64
|
</view>
|
|
@@ -75,32 +68,12 @@
|
|
|
75
68
|
class="cinema_item"
|
|
76
69
|
v-for="item in filterCinemaList"
|
|
77
70
|
:key="item.cinema_id"
|
|
78
|
-
@click="toChooseSchedule(item)"
|
|
71
|
+
@click="toChooseSchedule(item.cinema_id)"
|
|
79
72
|
>
|
|
80
73
|
<view class="item_main">
|
|
81
74
|
<view class="item_name">{{ item.cinema_name }}</view>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<view class="item_addr">{{ item.address }}</view>
|
|
85
|
-
</view>
|
|
86
|
-
<view class="item_dist_btn">
|
|
87
|
-
<view class="item_dist">
|
|
88
|
-
<xd-font-icon icon="icondizhi" size="32" style="margin-right: 30rpx;"></xd-font-icon>
|
|
89
|
-
{{ item.distance }}
|
|
90
|
-
</view>
|
|
91
|
-
<view style="display: flex;">
|
|
92
|
-
<view
|
|
93
|
-
v-if="item.code_index > -1"
|
|
94
|
-
:style="{background: mainColor}"
|
|
95
|
-
class="cinema_item-btn"
|
|
96
|
-
@click.stop="toCodePath(item)">电子码</view>
|
|
97
|
-
<view
|
|
98
|
-
v-if="item.seat_index > -1"
|
|
99
|
-
:style="{background: mainColor, marginLeft: '20rpx'}"
|
|
100
|
-
class="cinema_item-btn"
|
|
101
|
-
@click.stop="toSchedulePath(item)">在线选座</view>
|
|
102
|
-
</view>
|
|
103
|
-
</view>
|
|
75
|
+
<view class="item_dist">{{ item.distance }}</view>
|
|
76
|
+
<view class="item_addr">{{ item.address }}</view> </view>
|
|
104
77
|
</view>
|
|
105
78
|
</view>
|
|
106
79
|
<view v-else class="cinema_list">
|
|
@@ -170,7 +143,6 @@ export default {
|
|
|
170
143
|
film: {},
|
|
171
144
|
cinemaList: [],
|
|
172
145
|
scheduleChoosePath: "",
|
|
173
|
-
codeChoosePath: "",
|
|
174
146
|
film_id: "",
|
|
175
147
|
citySubs: [],
|
|
176
148
|
subIndex: 0,
|
|
@@ -228,20 +200,12 @@ export default {
|
|
|
228
200
|
"content.schedule_choose_path",
|
|
229
201
|
{ value: "/movie/schedule/schedule" }
|
|
230
202
|
).value;
|
|
231
|
-
this.codeChoosePath = getContainerPropsValue(container, "content.codeChoosePath", {value: ""}).value;
|
|
232
|
-
},
|
|
233
|
-
toChooseSchedule(item) {
|
|
234
|
-
if(item.seat_index > -1) this.toSchedulePath(item);
|
|
235
|
-
else if(item.code_index > -1) this.toCodePath(item);
|
|
236
203
|
},
|
|
237
|
-
|
|
204
|
+
toChooseSchedule(cinema_id) {
|
|
238
205
|
this.$xdUniHelper.navigateTo({
|
|
239
|
-
url:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
toSchedulePath(item){
|
|
243
|
-
this.$xdUniHelper.navigateTo({
|
|
244
|
-
url: this.scheduleChoosePath + `?cinema_id=${item.cinema_id}&film_id=${this.film_id}`,
|
|
206
|
+
url:
|
|
207
|
+
this.scheduleChoosePath +
|
|
208
|
+
`?cinema_id=${cinema_id}&film_id=${this.film_id}`,
|
|
245
209
|
});
|
|
246
210
|
},
|
|
247
211
|
handleGetCitySub(city_code) {
|
|
@@ -273,13 +237,7 @@ export default {
|
|
|
273
237
|
this.loadingList = false;
|
|
274
238
|
this.$xdHideLoading();
|
|
275
239
|
const { list, next_page_token, area_list } = res;
|
|
276
|
-
this.cinemaList = list
|
|
277
|
-
let seat_index = item.cinema_type.findIndex(ii => ii == 'SEAT'); //在线选座
|
|
278
|
-
let code_index = item.cinema_type.findIndex(ii => ii == 'CODE'); //电子码
|
|
279
|
-
item['code_index'] = code_index;
|
|
280
|
-
item['seat_index'] = seat_index;
|
|
281
|
-
return item;
|
|
282
|
-
});
|
|
240
|
+
this.cinemaList = list;
|
|
283
241
|
this.page_token = next_page_token;
|
|
284
242
|
let citySubs = area_list.map((item) => {
|
|
285
243
|
return {
|
|
@@ -455,23 +413,19 @@ view {
|
|
|
455
413
|
}
|
|
456
414
|
.cinema_list {
|
|
457
415
|
background: #fff;
|
|
416
|
+
|
|
458
417
|
&.skeleton-wrap{
|
|
459
418
|
.cinema_item{
|
|
460
419
|
.item_name{
|
|
461
|
-
.skeleton-item(
|
|
462
|
-
}
|
|
463
|
-
.item_addr{
|
|
464
|
-
.skeleton-item(300rpx);
|
|
420
|
+
.skeleton-item(400rpx);
|
|
465
421
|
}
|
|
466
422
|
.item_dist{
|
|
467
|
-
.skeleton-item
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
.skeleton-item(160rpx, 50rpx, 50rpx);
|
|
423
|
+
.skeleton-item;
|
|
424
|
+
padding: 0 !important;
|
|
425
|
+
margin-top: 20rpx;
|
|
471
426
|
}
|
|
472
427
|
}
|
|
473
428
|
}
|
|
474
|
-
|
|
475
429
|
.empty_data {
|
|
476
430
|
font-size: 28rpx;
|
|
477
431
|
color: #888888;
|
|
@@ -479,53 +433,29 @@ view {
|
|
|
479
433
|
line-height: 200rpx;
|
|
480
434
|
}
|
|
481
435
|
.cinema_item {
|
|
482
|
-
padding:
|
|
483
|
-
|
|
484
|
-
background: #ffffff;
|
|
485
|
-
// box-shadow: 0px 16rpx 60rpx 0px #e3e3e3;
|
|
486
|
-
border-bottom: 1px solid #e3e3e3;
|
|
487
|
-
margin-bottom: unit(24, rpx);
|
|
488
|
-
&-btn {
|
|
489
|
-
font-size: unit(26, rpx);
|
|
490
|
-
border-radius: unit(40, rpx);
|
|
491
|
-
padding: unit(12, rpx) unit(48, rpx);
|
|
492
|
-
color: #ffffff;
|
|
493
|
-
text-align: center;
|
|
494
|
-
height: unit(40, rpx);
|
|
495
|
-
line-height: unit(40, rpx);
|
|
496
|
-
}
|
|
436
|
+
padding: unit(32, rpx);
|
|
437
|
+
border-bottom: 1px solid #eee;
|
|
497
438
|
.item_main {
|
|
498
439
|
display: flex;
|
|
499
|
-
|
|
440
|
+
flex-direction: column;
|
|
500
441
|
align-items: flex-start;
|
|
501
|
-
margin-bottom: 24rpx;
|
|
502
442
|
.item_name {
|
|
503
443
|
font-size: 28rpx;
|
|
504
444
|
font-weight: 700;
|
|
505
445
|
color: #000;
|
|
446
|
+
padding-right: 20rpx;
|
|
447
|
+
}
|
|
448
|
+
.item_dist {
|
|
449
|
+
font-size: 24rpx;
|
|
450
|
+
font-weight: 400;
|
|
451
|
+
color: #f3616e;
|
|
452
|
+
padding: unit(16, rpx) 0;
|
|
453
|
+
}
|
|
454
|
+
.item_addr {
|
|
455
|
+
font-size: 24rpx;
|
|
456
|
+
font-weight: 400;
|
|
457
|
+
color: #a6a6a6;
|
|
506
458
|
}
|
|
507
|
-
}
|
|
508
|
-
.item_dist {
|
|
509
|
-
font-size: 24rpx;
|
|
510
|
-
font-weight: 400;
|
|
511
|
-
color: #f3616e;
|
|
512
|
-
padding-top: 4rpx;
|
|
513
|
-
display: flex;
|
|
514
|
-
align-items: center;
|
|
515
|
-
justify-content: center;
|
|
516
|
-
}
|
|
517
|
-
.item_addr {
|
|
518
|
-
width: 60%;
|
|
519
|
-
flex-wrap: wrap;
|
|
520
|
-
font-size: 24rpx;
|
|
521
|
-
font-weight: 400;
|
|
522
|
-
color: #a6a6a6;
|
|
523
|
-
}
|
|
524
|
-
.item_dist_btn{
|
|
525
|
-
display: flex;
|
|
526
|
-
justify-content: space-between;
|
|
527
|
-
align-items: center;
|
|
528
|
-
margin-top: 24rpx;
|
|
529
459
|
}
|
|
530
460
|
}
|
|
531
461
|
}
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
:style="{ borderTopColor: styleMainColor }"
|
|
8
8
|
>
|
|
9
9
|
<view class="xd-seat__title-name">{{ filmInfo["film_name"] }}</view>
|
|
10
|
-
<view class="xd-seat__title-address">{{
|
|
11
|
-
cinemaInfo["cinema_name"]
|
|
12
|
-
}}</view>
|
|
10
|
+
<view class="xd-seat__title-address">{{cinemaInfo["cinema_name"] }}</view>
|
|
13
11
|
<view class="xd-seat__title-back" v-if="show" @click.stop="back">
|
|
14
12
|
<xd-font-icon
|
|
15
13
|
icon="iconzhiyuanfanhui12"
|
|
@@ -24,6 +22,7 @@
|
|
|
24
22
|
v-model="userSelectedSeatInfo"
|
|
25
23
|
v-if="selectedSeatInfo !== null"
|
|
26
24
|
:list="selectedSeatList"
|
|
25
|
+
:area-prices="areaPrices"
|
|
27
26
|
:layout-info="layoutInfo"
|
|
28
27
|
:seat-max-buy-number="4"
|
|
29
28
|
:hall-name="selectedSeatInfo['hall_name']"
|
|
@@ -44,8 +43,7 @@
|
|
|
44
43
|
"
|
|
45
44
|
v-for="(item, index) in noticeList"
|
|
46
45
|
:key="index"
|
|
47
|
-
|
|
48
|
-
>
|
|
46
|
+
>{{ item }}</view>
|
|
49
47
|
</xd-notice-bar>
|
|
50
48
|
</view>
|
|
51
49
|
<view class="xd-seat__footer-paiqi">
|
|
@@ -83,9 +81,7 @@
|
|
|
83
81
|
type="primary"
|
|
84
82
|
radius="10rpx"
|
|
85
83
|
size="small"
|
|
86
|
-
|
|
87
|
-
>
|
|
88
|
-
</view>
|
|
84
|
+
>{{ scheduleListIsShow ? "收起场次" : "切换场次" }}</xd-button></view>
|
|
89
85
|
</view>
|
|
90
86
|
<view class="xd-seat__footer-paiqi-content" v-if="scheduleListIsShow">
|
|
91
87
|
<scroll-view
|
|
@@ -131,8 +127,7 @@
|
|
|
131
127
|
:style="{ borderColor: styleMainColor, color: styleMainColor }"
|
|
132
128
|
v-for="(name, nindex) in getSelectedNames"
|
|
133
129
|
:key="nindex"
|
|
134
|
-
|
|
135
|
-
>
|
|
130
|
+
>{{ name }}</view>
|
|
136
131
|
</view>
|
|
137
132
|
<view class="xd-seat__footer-phone">
|
|
138
133
|
<view>手机号:</view>
|
|
@@ -288,9 +283,8 @@ export default {
|
|
|
288
283
|
selectedSeatInfo: null, //选中影院信息
|
|
289
284
|
selectedSeatList: null, ///选中影院座位信息
|
|
290
285
|
userSelectedSeatInfo: null, //用户选中座位信息
|
|
291
|
-
|
|
286
|
+
areaPrices: null, //是否有分期排期
|
|
292
287
|
noticeList: ["观影提示:电影放映期间厅内禁止饮食,感谢配合!"],
|
|
293
|
-
|
|
294
288
|
styleMainColor: "", //插件主题风格样式
|
|
295
289
|
};
|
|
296
290
|
},
|
|
@@ -464,10 +458,15 @@ export default {
|
|
|
464
458
|
*/
|
|
465
459
|
getSeat(item) {
|
|
466
460
|
this.$emit("onGetSeatList", item, (seat) => {
|
|
467
|
-
console.log("onGetSeatList", seat, item);
|
|
468
|
-
this.selectedSeatInfo = seat;
|
|
469
461
|
this.selectedSeatList = seat["seat"];
|
|
462
|
+
this.areaPrices = (seat['area_price'] || []).map(item=>{
|
|
463
|
+
return {
|
|
464
|
+
...item,
|
|
465
|
+
area_id: this.$xdUniHelper.randomChar(15)
|
|
466
|
+
}
|
|
467
|
+
});
|
|
470
468
|
this.phone = seat["phone_number"];
|
|
469
|
+
this.selectedSeatInfo = seat;
|
|
471
470
|
});
|
|
472
471
|
},
|
|
473
472
|
|