jufubao-movie 1.0.32-beta1 → 1.0.32-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 +12 -21
- package/src/components/JfbMovieLineLineSeat/JfbMovieLineLineSeat.vue +1 -4
- package/src/components/JfbMovieLineLineSeat/XdOnlineSeat.vue +10 -14
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +1 -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
|
|
|
@@ -90,18 +90,14 @@
|
|
|
90
90
|
</view>
|
|
91
91
|
</view>
|
|
92
92
|
<view class="jfb-movie-confirm__body-movie-total-right">
|
|
93
|
-
共{{order_info.seat_number}}
|
|
94
|
-
<
|
|
95
|
-
:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
:price="order_info.total_price"
|
|
102
|
-
></xd-unit>
|
|
103
|
-
</template>
|
|
104
|
-
|
|
93
|
+
共{{order_info.seat_number}}张:
|
|
94
|
+
<xd-unit
|
|
95
|
+
:color="mainColor"
|
|
96
|
+
:isOld="false"
|
|
97
|
+
:iocnSize="0.32"
|
|
98
|
+
:fontSize="24"
|
|
99
|
+
:price="order_info.total_price"
|
|
100
|
+
></xd-unit>
|
|
105
101
|
</view>
|
|
106
102
|
</view>
|
|
107
103
|
</view>
|
|
@@ -130,7 +126,7 @@
|
|
|
130
126
|
<xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
|
|
131
127
|
</view>
|
|
132
128
|
</view>
|
|
133
|
-
|
|
129
|
+
|
|
134
130
|
<view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
|
|
135
131
|
<template v-for="item in otherPayMethod">
|
|
136
132
|
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="0rpx" size="small" showRight @click="toChoseCard">
|
|
@@ -146,7 +142,7 @@
|
|
|
146
142
|
</view>
|
|
147
143
|
<view class="jfb-movie-confirm__body-btn-height" :style="bottomFixedStylePlaceholder"></view>
|
|
148
144
|
<view class="jfb-movie-confirm__body-btn" :style="bottomFixedStyle">
|
|
149
|
-
<view
|
|
145
|
+
<view style="display: flex;align-items:center;">
|
|
150
146
|
<view style="margin-right: 8rpx;">应付:</view>
|
|
151
147
|
<xd-unit
|
|
152
148
|
:price="orderNeedPayPrice"
|
|
@@ -155,7 +151,6 @@
|
|
|
155
151
|
:iocn-size=".45"
|
|
156
152
|
></xd-unit>
|
|
157
153
|
</view>
|
|
158
|
-
<view v-else></view>
|
|
159
154
|
<view>
|
|
160
155
|
<xd-button
|
|
161
156
|
:disabled="payBtnDisabled"
|
|
@@ -173,7 +168,6 @@
|
|
|
173
168
|
:show.sync="showCardPay"
|
|
174
169
|
:payThird="!!payThird"
|
|
175
170
|
:bindCard="bindCard"
|
|
176
|
-
:is_not_show_price="is_not_show_price"
|
|
177
171
|
:payChannels="payChannels"
|
|
178
172
|
:jwxSDK="jwxSDK"
|
|
179
173
|
:validImageAPIUrl="validImageAPIUrl"
|
|
@@ -192,7 +186,6 @@
|
|
|
192
186
|
:layoutInfo="layoutInfo"
|
|
193
187
|
:show.sync="showCardPayChose"
|
|
194
188
|
:bindCard="bindCard"
|
|
195
|
-
:is_not_show_price="is_not_show_price"
|
|
196
189
|
:hadChoseCard="choseCard && choseCard.selectedCardList"
|
|
197
190
|
:jwxSDK="jwxSDK"
|
|
198
191
|
:selected_wallet_list="choseWallet ? choseWallet.selectedWalletList : []"
|
|
@@ -288,7 +281,6 @@
|
|
|
288
281
|
choseWallet: null,
|
|
289
282
|
|
|
290
283
|
xnamespace: "",
|
|
291
|
-
is_not_show_price: "",
|
|
292
284
|
|
|
293
285
|
//提示
|
|
294
286
|
notice: '',
|
|
@@ -396,7 +388,6 @@
|
|
|
396
388
|
.then(res => {
|
|
397
389
|
console.log(res, '8888888')
|
|
398
390
|
this.$xdHideLoading()
|
|
399
|
-
this.is_not_show_price = res.is_not_show_price;
|
|
400
391
|
this.is_first_use_card = res.is_first_use_card;
|
|
401
392
|
this.is_use_jfb_pay = res.is_use_jfb_pay;
|
|
402
393
|
this.res_total_price = res.total_price;
|
|
@@ -591,7 +582,7 @@
|
|
|
591
582
|
cancel: false,
|
|
592
583
|
isHtml: true,
|
|
593
584
|
isTitle: true,
|
|
594
|
-
|
|
585
|
+
styles: this.styles,
|
|
595
586
|
content: '<span style="color:red;font-size: 16px">提示:影票一旦售出,将不支持退换!购票成功不再发送短信通知,部分影院不提供3D眼镜,儿童身高免购票以影院实际情况为准。</span>',
|
|
596
587
|
success: async (res) => {
|
|
597
588
|
if(this.is_use_jfb_pay === "Y" && this.is_first_use_card === "Y"){
|
|
@@ -718,7 +709,7 @@
|
|
|
718
709
|
content: '订单已超时',
|
|
719
710
|
cancel: false,
|
|
720
711
|
confirmText: '我知道了',
|
|
721
|
-
|
|
712
|
+
styles: this.styles,
|
|
722
713
|
});
|
|
723
714
|
return
|
|
724
715
|
}
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
:cinema-id="cinemaId"
|
|
44
44
|
:seat-id="scheduleId"
|
|
45
45
|
:layout-info='layoutInfo'
|
|
46
|
-
:is_not_show_price="is_not_show_price"
|
|
47
46
|
@onGetFilm="handleGetFilm"
|
|
48
47
|
@onGetSeatList="handleGetSeatList"
|
|
49
48
|
@onBuy="handleBuy"></xd-online-seat>
|
|
@@ -79,7 +78,6 @@
|
|
|
79
78
|
seatTime: 0,
|
|
80
79
|
isPop: false,
|
|
81
80
|
paiQiData: [],
|
|
82
|
-
is_not_show_price: "",
|
|
83
81
|
|
|
84
82
|
//面板
|
|
85
83
|
payPath: "", //三方支付路径
|
|
@@ -165,7 +163,6 @@
|
|
|
165
163
|
]).then(([res, res1]) => {
|
|
166
164
|
this.loadingList = false;
|
|
167
165
|
this.$xdHideLoading();
|
|
168
|
-
this.is_not_show_price = res.is_not_show_price;
|
|
169
166
|
let paiqi_data = res.schedule_data.map(item => {
|
|
170
167
|
item['name'] = item['date_name'];
|
|
171
168
|
item['paiqi_data'] = item['paiqi'].map(pp => {
|
|
@@ -238,7 +235,7 @@
|
|
|
238
235
|
handleToPay(res){
|
|
239
236
|
const { temp_order_id, oms_order_id, pay_order_id } = res;
|
|
240
237
|
this.$xdConfirm({
|
|
241
|
-
|
|
238
|
+
styles: this.styles,
|
|
242
239
|
width: '90%',
|
|
243
240
|
content: '有未完成的订单',
|
|
244
241
|
confirmText: '去支付',
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
><text>({{ itemc["show_version"] }})</text></view
|
|
113
113
|
>
|
|
114
114
|
<view>{{ itemc["hall_name"] }}</view>
|
|
115
|
-
<view
|
|
115
|
+
<view>
|
|
116
116
|
<xd-unit
|
|
117
117
|
font-weight="normal"
|
|
118
118
|
:price="itemc['price']"
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
<xd-button @click="handleBuy" type="primary" radius="10rpx">
|
|
153
153
|
<view class="xd-seat__footer-buy-box">
|
|
154
154
|
<xd-unit
|
|
155
|
-
v-if="getPrice > 0
|
|
155
|
+
v-if="getPrice > 0"
|
|
156
156
|
:price="getPrice"
|
|
157
157
|
:font-size="36"
|
|
158
158
|
:iocn-size="0.45"
|
|
@@ -244,10 +244,6 @@ export default {
|
|
|
244
244
|
type: Number | String,
|
|
245
245
|
required: true,
|
|
246
246
|
},
|
|
247
|
-
is_not_show_price: {
|
|
248
|
-
type: String,
|
|
249
|
-
default: ""
|
|
250
|
-
},
|
|
251
247
|
|
|
252
248
|
layoutInfo: {
|
|
253
249
|
type: Object,
|
|
@@ -374,10 +370,10 @@ export default {
|
|
|
374
370
|
},
|
|
375
371
|
methods: {
|
|
376
372
|
handleBuy() {
|
|
377
|
-
|
|
373
|
+
|
|
378
374
|
//未选座位
|
|
379
375
|
if(this.userSelectedSeatInfo === null) return;
|
|
380
|
-
|
|
376
|
+
|
|
381
377
|
//选中座位有隔座
|
|
382
378
|
if (this.userSelectedSeatInfo["seatError"].length > 0) {
|
|
383
379
|
this.openNotice();
|
|
@@ -505,7 +501,7 @@ export default {
|
|
|
505
501
|
.catch();
|
|
506
502
|
});
|
|
507
503
|
},
|
|
508
|
-
|
|
504
|
+
|
|
509
505
|
getFirst(data = []){
|
|
510
506
|
let first = {};
|
|
511
507
|
let len = data.length;
|
|
@@ -546,14 +542,14 @@ export default {
|
|
|
546
542
|
});
|
|
547
543
|
this.scheduleTabList = tab;
|
|
548
544
|
this.scheduleList = list;
|
|
549
|
-
|
|
545
|
+
|
|
550
546
|
//未找到传入排期
|
|
551
547
|
if (!selectPaiqi){
|
|
552
548
|
this.$xdConfirm({
|
|
553
549
|
content:'当前排期已过期,请您手动切换或由系统自动切换到下一排期。',
|
|
554
550
|
confirmText:'自动切换',
|
|
555
551
|
cancelText:'手动切换',
|
|
556
|
-
|
|
552
|
+
styles: this.$parent.$parent.$parent.styles,
|
|
557
553
|
success:(status)=>{
|
|
558
554
|
if(status.confirm) {
|
|
559
555
|
this.replaceParams(this.getFirst(list));
|
|
@@ -562,7 +558,7 @@ export default {
|
|
|
562
558
|
});
|
|
563
559
|
return
|
|
564
560
|
}
|
|
565
|
-
|
|
561
|
+
|
|
566
562
|
this.scheduleListSelectedItem = selectPaiqi;
|
|
567
563
|
setTimeout(() => {
|
|
568
564
|
this.scheduleListinto = `content-index-${this.scheduleListIndex}`;
|
|
@@ -650,7 +646,7 @@ export default {
|
|
|
650
646
|
justify-content: center;
|
|
651
647
|
align-items: center;
|
|
652
648
|
flex-direction: column;
|
|
653
|
-
|
|
649
|
+
|
|
654
650
|
|
|
655
651
|
&-icon {
|
|
656
652
|
padding-top: unit(30, rpx);
|
|
@@ -680,7 +676,7 @@ export default {
|
|
|
680
676
|
}
|
|
681
677
|
}
|
|
682
678
|
}
|
|
683
|
-
|
|
679
|
+
|
|
684
680
|
&-text {
|
|
685
681
|
color: #fff;
|
|
686
682
|
font-size: unit(32, rpx);
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
<view class="_main">{{item.show_version}}</view>
|
|
143
143
|
<view class="_sub">{{item.hall_name}}</view>
|
|
144
144
|
</view>
|
|
145
|
-
<view
|
|
145
|
+
<view class="flex-sub">
|
|
146
146
|
<view class="_main" style="color: red;">
|
|
147
147
|
<xd-unit class="xd-unit"
|
|
148
148
|
:price="item.sale_price"
|
|
@@ -217,7 +217,6 @@
|
|
|
217
217
|
timer: null,
|
|
218
218
|
cinema_id: "",
|
|
219
219
|
renderSwiper: "renderSwiper",
|
|
220
|
-
is_not_show_price: "",
|
|
221
220
|
|
|
222
221
|
//面板值
|
|
223
222
|
seatChoosePath: "",
|
|
@@ -328,7 +327,6 @@
|
|
|
328
327
|
}).then(res => {
|
|
329
328
|
this.loadingList = false;
|
|
330
329
|
this.$xdHideLoading();
|
|
331
|
-
this.is_not_show_price = res.is_not_show_price;
|
|
332
330
|
this.scheduleTabList = res.schedule_data.filter(item => item.date_name).map((item, index) => {
|
|
333
331
|
let date_name = item.date_name;
|
|
334
332
|
let week = date_name.match(/星期./)[0];
|