jufubao-movie 1.0.33 → 1.0.34-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/JfbMovieCode/JfbMovieCode.vue +1 -1
- package/src/components/JfbMovieCodeChoose/JfbMovieCodeChoose.vue +40 -9
- package/src/components/JfbMovieConfirm/JfbMovieConfirm.vue +9 -27
- package/src/components/JfbMovieLineLineSeat/JfbMovieLineLineSeat.vue +1 -1
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeat.vue +14 -11
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +8 -4
- package/src/components/JfbMoviePay/JfbMoviePay.vue +1 -1
package/package.json
CHANGED
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
:class="{ editx: isEditx && active }"
|
|
14
14
|
v-if="isEditx && active && !noBorder"
|
|
15
15
|
>
|
|
16
|
-
<view class="jfb-movie-code-choose__edit-icon" @click="delEdit"
|
|
17
|
-
>删除</view
|
|
18
|
-
>
|
|
16
|
+
<view class="jfb-movie-code-choose__edit-icon" @click="delEdit">删除</view>
|
|
19
17
|
</view>
|
|
20
18
|
<!-- #endif -->
|
|
21
19
|
<view
|
|
@@ -41,8 +39,7 @@
|
|
|
41
39
|
<view class="jfb-movie-code-choose__body-info-name-distance" :style="{color:subTextColor}">{{cinemaInfo.distance }}</view>
|
|
42
40
|
</view>
|
|
43
41
|
</view>
|
|
44
|
-
<view class="jfb-movie-code-choose__body-info-detail" v-html="cinemaInfo.about">
|
|
45
|
-
</view>
|
|
42
|
+
<view class="jfb-movie-code-choose__body-info-detail" v-html="cinemaInfo.about"></view>
|
|
46
43
|
<view :style="{margin:(padding + 'rpx 0'),height: '1px', backgroundColor: textLineColor}"></view>
|
|
47
44
|
<view class="jfb-movie-code-choose__body-info-shop">
|
|
48
45
|
<view style="align-items: center;" class="jfb-movie-code-choose__body-info-shop-item">
|
|
@@ -238,6 +235,30 @@ export default {
|
|
|
238
235
|
this.list_is_border_w = getContainerPropsValue(container, "content.list_is_border_w", 2);
|
|
239
236
|
},
|
|
240
237
|
|
|
238
|
+
handleAboat(cinemaInfo){
|
|
239
|
+
cinemaInfo.about = cinemaInfo.about.replace(/<img[^>]*>/gi, function(match, capture) {
|
|
240
|
+
match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
|
|
241
|
+
match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
|
|
242
|
+
match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
|
|
243
|
+
return match;
|
|
244
|
+
});
|
|
245
|
+
cinemaInfo.about = cinemaInfo.about.replace(/style="[^"]+"/gi, function(match, capture) {
|
|
246
|
+
match = match
|
|
247
|
+
.replace(/<p>/gi, '<p class="p_class">')
|
|
248
|
+
.replace(/width:[^;]+;/gi, 'max-width:100%;')
|
|
249
|
+
.replace(/width:[^;]+;/gi, 'max-width:100%;');
|
|
250
|
+
return match;
|
|
251
|
+
});
|
|
252
|
+
cinemaInfo.about = cinemaInfo.about.replace(/<br[^>]*\/>/gi, "");
|
|
253
|
+
cinemaInfo.about = cinemaInfo.about.replace(/<a>/gi, '<a class="a_class "');
|
|
254
|
+
cinemaInfo.about = cinemaInfo.about.replace(/<li>/gi, '<li class="li_class "');
|
|
255
|
+
cinemaInfo.about = cinemaInfo.about.replace(/\<p/gi, '<p class="p_class "');
|
|
256
|
+
cinemaInfo.about = cinemaInfo.about.replace(/\<span/gi, '<span class="span_class "');
|
|
257
|
+
cinemaInfo.about = cinemaInfo.about.replace(/<div/gi, '<div class="div_class "');
|
|
258
|
+
cinemaInfo.about = cinemaInfo.about.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;margin-top:0;margin-bottom:0;"');
|
|
259
|
+
return cinemaInfo;
|
|
260
|
+
},
|
|
261
|
+
|
|
241
262
|
p_getCinemaInfo() {
|
|
242
263
|
return new Promise((resolve, reject) => {
|
|
243
264
|
let location = this.cityLocation.location || {};
|
|
@@ -251,8 +272,10 @@ export default {
|
|
|
251
272
|
})
|
|
252
273
|
.then((res) => {
|
|
253
274
|
const { cinema_data } = res;
|
|
254
|
-
|
|
255
275
|
cinema_data['cinema_logo'] = getServiceUrl(cinema_data.cinema_logo);
|
|
276
|
+
//#ifdef MP-WEIXIN
|
|
277
|
+
this.cinemaInfo = this.handleAboat(cinema_data);
|
|
278
|
+
//#endif
|
|
256
279
|
this.cinemaInfo = cinema_data;
|
|
257
280
|
resolve();
|
|
258
281
|
})
|
|
@@ -342,13 +365,21 @@ export default {
|
|
|
342
365
|
}
|
|
343
366
|
|
|
344
367
|
&-detail {
|
|
345
|
-
|
|
368
|
+
margin-top: 20rpx;
|
|
369
|
+
width:100%;
|
|
370
|
+
/deep/ .tinymce-image {
|
|
346
371
|
max-width: 100% !important;
|
|
347
372
|
height: auto !important;
|
|
348
373
|
}
|
|
349
|
-
|
|
350
|
-
|
|
374
|
+
/deep/ img {
|
|
375
|
+
max-width: 100% !important;
|
|
376
|
+
height: auto !important;
|
|
377
|
+
}
|
|
378
|
+
/deep/ .p_class {
|
|
351
379
|
font-size: unit(28, rpx);
|
|
380
|
+
margin: 0;
|
|
381
|
+
border: 0;
|
|
382
|
+
padding: 0 0 1rem;
|
|
352
383
|
}
|
|
353
384
|
}
|
|
354
385
|
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
<xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
|
|
131
131
|
</view>
|
|
132
132
|
</view>
|
|
133
|
-
|
|
133
|
+
|
|
134
134
|
<view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
|
|
135
135
|
<template v-for="item in otherPayMethod">
|
|
136
136
|
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="0rpx" size="small" showRight @click="toChoseCard">
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
:show.sync="showWalletChose"
|
|
219
219
|
:hadChoseWallet="choseWallet && choseWallet.selectedWalletList"
|
|
220
220
|
:getUserWalletList="getUserWalletList"
|
|
221
|
-
:useBindedWallet="
|
|
221
|
+
:useBindedWallet="useBindedWallet"
|
|
222
222
|
@onChose="handleWalletChose"
|
|
223
223
|
@onAlert="() => hasAlertCardChose = true"
|
|
224
224
|
></xd-wallet-chose>
|
|
@@ -333,6 +333,7 @@
|
|
|
333
333
|
},
|
|
334
334
|
//订单实际需要支付金额(减去各项已选,票券、钱包)
|
|
335
335
|
orderNeedPayPrice(){
|
|
336
|
+
if(!this.order_info) return 0;
|
|
336
337
|
let choseCardPay = this.choseCard ? this.choseCard.cardPayPrice : 0;
|
|
337
338
|
let choseWalletPay = this.choseWallet ? this.choseWallet.walletPayPrice : 0;
|
|
338
339
|
let total = this.$xdUniHelper.addFloatNumber(choseCardPay, choseWalletPay);
|
|
@@ -474,7 +475,7 @@
|
|
|
474
475
|
this.otherPayLoaded = true;
|
|
475
476
|
})
|
|
476
477
|
},
|
|
477
|
-
|
|
478
|
+
useBindedWallet(options, successCb, errCb){
|
|
478
479
|
console.log("this.choseCard", this.choseCard)
|
|
479
480
|
const { choseCard } = this;
|
|
480
481
|
let selected_card_list = choseCard ? choseCard.selectedCardList : [];
|
|
@@ -506,27 +507,7 @@
|
|
|
506
507
|
cb(res);
|
|
507
508
|
})
|
|
508
509
|
},
|
|
509
|
-
|
|
510
|
-
console.log("this.choseCard", this.choseCard)
|
|
511
|
-
const { choseCard } = this;
|
|
512
|
-
let selected_card_list = choseCard ? choseCard.selectedCardList : [];
|
|
513
|
-
this.$xdShowLoading({})
|
|
514
|
-
jfbRootExec("useBindedWallet", {
|
|
515
|
-
vm: this,
|
|
516
|
-
data: {
|
|
517
|
-
...options,
|
|
518
|
-
total_price: this.order_info.total_price,
|
|
519
|
-
selected_card_list_json: JSON.stringify(selected_card_list),
|
|
520
|
-
namespace: this.xnamespace,
|
|
521
|
-
cart_order_id: this.tempOrderId
|
|
522
|
-
}
|
|
523
|
-
}).then(res => {
|
|
524
|
-
successCb(res)
|
|
525
|
-
this.$xdHideLoading()
|
|
526
|
-
}).catch(err => {
|
|
527
|
-
if(errCb) errCb(err)
|
|
528
|
-
})
|
|
529
|
-
},
|
|
510
|
+
|
|
530
511
|
addSettleCard(options, successCb, errCb) {
|
|
531
512
|
console.log(options, 'ioioioioi')
|
|
532
513
|
this.$xdShowLoading({})
|
|
@@ -595,7 +576,7 @@
|
|
|
595
576
|
cancel: false,
|
|
596
577
|
isHtml: true,
|
|
597
578
|
isTitle: true,
|
|
598
|
-
|
|
579
|
+
styles: this.styles,
|
|
599
580
|
content: '<span style="color:red;font-size: 16px">提示:影票一旦售出,将不支持退换!购票成功不再发送短信通知,部分影院不提供3D眼镜,儿童身高免购票以影院实际情况为准。</span>',
|
|
600
581
|
success: async (res) => {
|
|
601
582
|
if(this.is_use_jfb_pay === "Y" && this.is_first_use_card === "Y"){
|
|
@@ -722,7 +703,7 @@
|
|
|
722
703
|
content: '订单已超时',
|
|
723
704
|
cancel: false,
|
|
724
705
|
confirmText: '我知道了',
|
|
725
|
-
|
|
706
|
+
styles: this.styles,
|
|
726
707
|
});
|
|
727
708
|
return
|
|
728
709
|
}
|
|
@@ -744,8 +725,9 @@
|
|
|
744
725
|
// #ifndef H5
|
|
745
726
|
uni.setClipboardData({
|
|
746
727
|
data: text,
|
|
728
|
+
showToast: false,
|
|
747
729
|
success: () => {
|
|
748
|
-
this.$xdAlert({content: '复制成功'})
|
|
730
|
+
//this.$xdAlert({content: '复制成功'})
|
|
749
731
|
}
|
|
750
732
|
})
|
|
751
733
|
// #endif
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
<xd-notice-bar
|
|
36
36
|
class="xd-seat__footer-notice-icon"
|
|
37
37
|
:scrollable="noticeList.length > 1"
|
|
38
|
+
style="width: 100%"
|
|
38
39
|
showIcon
|
|
39
40
|
>
|
|
40
41
|
<view
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
? mainColorToArray
|
|
105
106
|
: 'rgba(100,100,100,.05)',
|
|
106
107
|
}"
|
|
107
|
-
:key="itemc.
|
|
108
|
+
:key="itemc.data_id"
|
|
108
109
|
@click="handleChangeSchdule(itemc, indexc)"
|
|
109
110
|
>
|
|
110
111
|
<view
|
|
@@ -328,6 +329,7 @@ export default {
|
|
|
328
329
|
return !!flat;
|
|
329
330
|
});
|
|
330
331
|
let curTab = this.scheduleTabList[curScheduleIndex];
|
|
332
|
+
if(!curTab) return "";
|
|
331
333
|
return `${curTab.name}/${temp.show_time_hour}/${temp.show_version}/${temp.hall_name}`;
|
|
332
334
|
}
|
|
333
335
|
|
|
@@ -375,10 +377,10 @@ export default {
|
|
|
375
377
|
},
|
|
376
378
|
methods: {
|
|
377
379
|
handleBuy() {
|
|
378
|
-
|
|
380
|
+
|
|
379
381
|
//未选座位
|
|
380
382
|
if(this.userSelectedSeatInfo === null) return;
|
|
381
|
-
|
|
383
|
+
|
|
382
384
|
//选中座位有隔座
|
|
383
385
|
if (this.userSelectedSeatInfo["seatError"].length > 0) {
|
|
384
386
|
this.openNotice();
|
|
@@ -506,7 +508,7 @@ export default {
|
|
|
506
508
|
.catch();
|
|
507
509
|
});
|
|
508
510
|
},
|
|
509
|
-
|
|
511
|
+
|
|
510
512
|
getFirst(data = []){
|
|
511
513
|
let first = {};
|
|
512
514
|
let len = data.length;
|
|
@@ -547,14 +549,14 @@ export default {
|
|
|
547
549
|
});
|
|
548
550
|
this.scheduleTabList = tab;
|
|
549
551
|
this.scheduleList = list;
|
|
550
|
-
|
|
552
|
+
|
|
551
553
|
//未找到传入排期
|
|
552
554
|
if (!selectPaiqi){
|
|
553
555
|
this.$xdConfirm({
|
|
554
556
|
content:'当前排期已过期,请您手动切换或由系统自动切换到下一排期。',
|
|
555
557
|
confirmText:'自动切换',
|
|
556
558
|
cancelText:'手动切换',
|
|
557
|
-
|
|
559
|
+
styles: this.$parent.$parent.$parent.styles,
|
|
558
560
|
success:(status)=>{
|
|
559
561
|
if(status.confirm) {
|
|
560
562
|
this.replaceParams(this.getFirst(list));
|
|
@@ -563,7 +565,7 @@ export default {
|
|
|
563
565
|
});
|
|
564
566
|
return
|
|
565
567
|
}
|
|
566
|
-
|
|
568
|
+
|
|
567
569
|
this.scheduleListSelectedItem = selectPaiqi;
|
|
568
570
|
setTimeout(() => {
|
|
569
571
|
this.scheduleListinto = `content-index-${this.scheduleListIndex}`;
|
|
@@ -578,11 +580,12 @@ export default {
|
|
|
578
580
|
);
|
|
579
581
|
},
|
|
580
582
|
replaceParams(selectPaiqi) {
|
|
581
|
-
let
|
|
583
|
+
let parseUrl = this.$xdUniHelper.parseURL();
|
|
584
|
+
let { params, path } = parseUrl;
|
|
582
585
|
params["scheduleId"] = selectPaiqi["data_id"];
|
|
583
586
|
let searchParams = this.$xdUniHelper.jsonToParams(params);
|
|
584
587
|
this.$xdUniHelper.redirectTo({
|
|
585
|
-
url: `${
|
|
588
|
+
url: `${path + "?" + searchParams}`,
|
|
586
589
|
});
|
|
587
590
|
},
|
|
588
591
|
|
|
@@ -651,7 +654,7 @@ export default {
|
|
|
651
654
|
justify-content: center;
|
|
652
655
|
align-items: center;
|
|
653
656
|
flex-direction: column;
|
|
654
|
-
|
|
657
|
+
|
|
655
658
|
|
|
656
659
|
&-icon {
|
|
657
660
|
padding-top: unit(30, rpx);
|
|
@@ -681,7 +684,7 @@ export default {
|
|
|
681
684
|
}
|
|
682
685
|
}
|
|
683
686
|
}
|
|
684
|
-
|
|
687
|
+
|
|
685
688
|
&-text {
|
|
686
689
|
color: #fff;
|
|
687
690
|
font-size: unit(32, rpx);
|
|
@@ -64,15 +64,21 @@
|
|
|
64
64
|
</z-swiper>
|
|
65
65
|
<!-- #endif -->
|
|
66
66
|
<!-- #ifdef MP -->
|
|
67
|
-
<swiper class="swiper"
|
|
67
|
+
<swiper class="swiper" :display-multiple-items="3" :current="curFilmIndex" @change="handleChange">
|
|
68
|
+
<swiper-item>
|
|
69
|
+
<view></view>
|
|
70
|
+
</swiper-item>
|
|
68
71
|
<swiper-item v-for="(item,index) in list" :key="index">
|
|
69
72
|
<image class="image" :class="{swiper_active : curFilmIndex===index}" :src="item.poster" mode="aspectFit"></image>
|
|
70
73
|
</swiper-item>
|
|
74
|
+
<swiper-item>
|
|
75
|
+
<view></view>
|
|
76
|
+
</swiper-item>
|
|
71
77
|
</swiper>
|
|
72
78
|
<!-- #endif -->
|
|
73
79
|
</view>
|
|
74
80
|
<view v-if="filmInfo" class="film_info">
|
|
75
|
-
<view class="film_name">{{filmInfo.show_name}} <view v-if="filmInfo.remark" class="film_score">评分:{{filmInfo.remark}}</view></view>
|
|
81
|
+
<view class="film_name">{{filmInfo.show_name || ""}} <view v-if="filmInfo.remark" class="film_score">评分:{{filmInfo.remark}}</view></view>
|
|
76
82
|
<view class="film_type_score">
|
|
77
83
|
<view class="film_type">
|
|
78
84
|
{{filmTypeAll}}
|
|
@@ -535,7 +541,6 @@
|
|
|
535
541
|
|
|
536
542
|
.image {
|
|
537
543
|
width: 100%;
|
|
538
|
-
// #ifdef H5
|
|
539
544
|
height: 300rpx;
|
|
540
545
|
transform: scale(0.9);
|
|
541
546
|
filter: contrast(0.5);
|
|
@@ -544,7 +549,6 @@
|
|
|
544
549
|
transform: scale(1);
|
|
545
550
|
filter: contrast(1);
|
|
546
551
|
}
|
|
547
|
-
// #endif
|
|
548
552
|
}
|
|
549
553
|
|
|
550
554
|
}
|