jufubao-movie 1.0.34-beta4 → 1.0.35-beta1
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
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
|
}
|
|
@@ -24,9 +24,6 @@
|
|
|
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">
|
|
28
|
-
<xd-font-icon icon="icondingweixiao" size="32"></xd-font-icon>
|
|
29
|
-
</view>
|
|
30
27
|
<view class="cinema_tel" :style="{background: warningColor}" @click="makePhoneCall">
|
|
31
28
|
<xd-font-icon icon="icondianhua" size="32"></xd-font-icon>
|
|
32
29
|
</view>
|
|
@@ -302,15 +299,6 @@
|
|
|
302
299
|
phoneNumber: this.cinemaInfo.phone
|
|
303
300
|
})
|
|
304
301
|
},
|
|
305
|
-
toMapNav(){
|
|
306
|
-
const { latitude, longitude, address } = this.cinemaInfo;
|
|
307
|
-
this.handleOpenLocation({
|
|
308
|
-
latitude: latitude,
|
|
309
|
-
longitude: longitude,
|
|
310
|
-
name: '我的位置',
|
|
311
|
-
address: address
|
|
312
|
-
})
|
|
313
|
-
},
|
|
314
302
|
toChooseSeat(scheduleId){
|
|
315
303
|
this.$xdUniHelper.navigateTo({
|
|
316
304
|
url: this.seatChoosePath + `?cinemaId=${this.cinema_id}&filmId=${this.film_id}&scheduleId=${scheduleId}`
|
|
@@ -635,10 +623,6 @@
|
|
|
635
623
|
text-align: center;
|
|
636
624
|
line-height: 64rpx;
|
|
637
625
|
color: #FFFFFF;
|
|
638
|
-
|
|
639
|
-
& + .cinema_tel{
|
|
640
|
-
margin-left: 10rpx;
|
|
641
|
-
}
|
|
642
626
|
}
|
|
643
627
|
}
|
|
644
628
|
}
|