jufubao-movie 1.0.33 → 1.0.34-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 +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 +13 -11
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +7 -3
- 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
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
? mainColorToArray
|
|
105
105
|
: 'rgba(100,100,100,.05)',
|
|
106
106
|
}"
|
|
107
|
-
:key="itemc.
|
|
107
|
+
:key="itemc.data_id"
|
|
108
108
|
@click="handleChangeSchdule(itemc, indexc)"
|
|
109
109
|
>
|
|
110
110
|
<view
|
|
@@ -328,6 +328,7 @@ export default {
|
|
|
328
328
|
return !!flat;
|
|
329
329
|
});
|
|
330
330
|
let curTab = this.scheduleTabList[curScheduleIndex];
|
|
331
|
+
if(!curTab) return "";
|
|
331
332
|
return `${curTab.name}/${temp.show_time_hour}/${temp.show_version}/${temp.hall_name}`;
|
|
332
333
|
}
|
|
333
334
|
|
|
@@ -375,10 +376,10 @@ export default {
|
|
|
375
376
|
},
|
|
376
377
|
methods: {
|
|
377
378
|
handleBuy() {
|
|
378
|
-
|
|
379
|
+
|
|
379
380
|
//未选座位
|
|
380
381
|
if(this.userSelectedSeatInfo === null) return;
|
|
381
|
-
|
|
382
|
+
|
|
382
383
|
//选中座位有隔座
|
|
383
384
|
if (this.userSelectedSeatInfo["seatError"].length > 0) {
|
|
384
385
|
this.openNotice();
|
|
@@ -506,7 +507,7 @@ export default {
|
|
|
506
507
|
.catch();
|
|
507
508
|
});
|
|
508
509
|
},
|
|
509
|
-
|
|
510
|
+
|
|
510
511
|
getFirst(data = []){
|
|
511
512
|
let first = {};
|
|
512
513
|
let len = data.length;
|
|
@@ -547,14 +548,14 @@ export default {
|
|
|
547
548
|
});
|
|
548
549
|
this.scheduleTabList = tab;
|
|
549
550
|
this.scheduleList = list;
|
|
550
|
-
|
|
551
|
+
|
|
551
552
|
//未找到传入排期
|
|
552
553
|
if (!selectPaiqi){
|
|
553
554
|
this.$xdConfirm({
|
|
554
555
|
content:'当前排期已过期,请您手动切换或由系统自动切换到下一排期。',
|
|
555
556
|
confirmText:'自动切换',
|
|
556
557
|
cancelText:'手动切换',
|
|
557
|
-
|
|
558
|
+
styles: this.$parent.$parent.$parent.styles,
|
|
558
559
|
success:(status)=>{
|
|
559
560
|
if(status.confirm) {
|
|
560
561
|
this.replaceParams(this.getFirst(list));
|
|
@@ -563,7 +564,7 @@ export default {
|
|
|
563
564
|
});
|
|
564
565
|
return
|
|
565
566
|
}
|
|
566
|
-
|
|
567
|
+
|
|
567
568
|
this.scheduleListSelectedItem = selectPaiqi;
|
|
568
569
|
setTimeout(() => {
|
|
569
570
|
this.scheduleListinto = `content-index-${this.scheduleListIndex}`;
|
|
@@ -578,11 +579,12 @@ export default {
|
|
|
578
579
|
);
|
|
579
580
|
},
|
|
580
581
|
replaceParams(selectPaiqi) {
|
|
581
|
-
let
|
|
582
|
+
let parseUrl = this.$xdUniHelper.parseURL();
|
|
583
|
+
let { params, path } = parseUrl;
|
|
582
584
|
params["scheduleId"] = selectPaiqi["data_id"];
|
|
583
585
|
let searchParams = this.$xdUniHelper.jsonToParams(params);
|
|
584
586
|
this.$xdUniHelper.redirectTo({
|
|
585
|
-
url: `${
|
|
587
|
+
url: `${path + "?" + searchParams}`,
|
|
586
588
|
});
|
|
587
589
|
},
|
|
588
590
|
|
|
@@ -651,7 +653,7 @@ export default {
|
|
|
651
653
|
justify-content: center;
|
|
652
654
|
align-items: center;
|
|
653
655
|
flex-direction: column;
|
|
654
|
-
|
|
656
|
+
|
|
655
657
|
|
|
656
658
|
&-icon {
|
|
657
659
|
padding-top: unit(30, rpx);
|
|
@@ -681,7 +683,7 @@ export default {
|
|
|
681
683
|
}
|
|
682
684
|
}
|
|
683
685
|
}
|
|
684
|
-
|
|
686
|
+
|
|
685
687
|
&-text {
|
|
686
688
|
color: #fff;
|
|
687
689
|
font-size: unit(32, rpx);
|
|
@@ -64,10 +64,16 @@
|
|
|
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>
|
|
@@ -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
|
}
|