jufubao-movie 1.0.31 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.31",
3
+ "version": "1.0.32-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -104,7 +104,7 @@
104
104
  }
105
105
 
106
106
  this.$xdConfirm({
107
- $vm: this,
107
+ styles: this.styles,
108
108
  title:'系统提醒',
109
109
  content: '尊敬的用户,电子码一经兑出,不支持退换,建议您使用前再进行兑换。',
110
110
  contentColor:'#999999'
@@ -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
- ::v-deep img {
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
- ::v-deep p {
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
 
@@ -126,7 +126,7 @@
126
126
  <xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
127
127
  </view>
128
128
  </view>
129
-
129
+
130
130
  <view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
131
131
  <template v-for="item in otherPayMethod">
132
132
  <xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="0rpx" size="small" showRight @click="toChoseCard">
@@ -582,7 +582,7 @@
582
582
  cancel: false,
583
583
  isHtml: true,
584
584
  isTitle: true,
585
- $vm: this,
585
+ styles: this.styles,
586
586
  content: '<span style="color:red;font-size: 16px">提示:影票一旦售出,将不支持退换!购票成功不再发送短信通知,部分影院不提供3D眼镜,儿童身高免购票以影院实际情况为准。</span>',
587
587
  success: async (res) => {
588
588
  if(this.is_use_jfb_pay === "Y" && this.is_first_use_card === "Y"){
@@ -709,7 +709,7 @@
709
709
  content: '订单已超时',
710
710
  cancel: false,
711
711
  confirmText: '我知道了',
712
- $vm: this,
712
+ styles: this.styles,
713
713
  });
714
714
  return
715
715
  }
@@ -235,7 +235,7 @@
235
235
  handleToPay(res){
236
236
  const { temp_order_id, oms_order_id, pay_order_id } = res;
237
237
  this.$xdConfirm({
238
- $vm: this,
238
+ styles: this.styles,
239
239
  width: '90%',
240
240
  content: '有未完成的订单',
241
241
  confirmText: '去支付',
@@ -370,10 +370,10 @@ export default {
370
370
  },
371
371
  methods: {
372
372
  handleBuy() {
373
-
373
+
374
374
  //未选座位
375
375
  if(this.userSelectedSeatInfo === null) return;
376
-
376
+
377
377
  //选中座位有隔座
378
378
  if (this.userSelectedSeatInfo["seatError"].length > 0) {
379
379
  this.openNotice();
@@ -501,7 +501,7 @@ export default {
501
501
  .catch();
502
502
  });
503
503
  },
504
-
504
+
505
505
  getFirst(data = []){
506
506
  let first = {};
507
507
  let len = data.length;
@@ -542,14 +542,14 @@ export default {
542
542
  });
543
543
  this.scheduleTabList = tab;
544
544
  this.scheduleList = list;
545
-
545
+
546
546
  //未找到传入排期
547
547
  if (!selectPaiqi){
548
548
  this.$xdConfirm({
549
549
  content:'当前排期已过期,请您手动切换或由系统自动切换到下一排期。',
550
550
  confirmText:'自动切换',
551
551
  cancelText:'手动切换',
552
- $vm: this.$parent.$parent.$parent,
552
+ styles: this.$parent.$parent.$parent.styles,
553
553
  success:(status)=>{
554
554
  if(status.confirm) {
555
555
  this.replaceParams(this.getFirst(list));
@@ -558,7 +558,7 @@ export default {
558
558
  });
559
559
  return
560
560
  }
561
-
561
+
562
562
  this.scheduleListSelectedItem = selectPaiqi;
563
563
  setTimeout(() => {
564
564
  this.scheduleListinto = `content-index-${this.scheduleListIndex}`;
@@ -646,7 +646,7 @@ export default {
646
646
  justify-content: center;
647
647
  align-items: center;
648
648
  flex-direction: column;
649
-
649
+
650
650
 
651
651
  &-icon {
652
652
  padding-top: unit(30, rpx);
@@ -676,7 +676,7 @@ export default {
676
676
  }
677
677
  }
678
678
  }
679
-
679
+
680
680
  &-text {
681
681
  color: #fff;
682
682
  font-size: unit(32, rpx);
@@ -166,7 +166,7 @@
166
166
  }
167
167
 
168
168
  this.$xdConfirm({
169
- $vm: this,
169
+ styles: this.styles,
170
170
  title: '系统提醒',
171
171
  content: '尊敬的用户,电子码一经兑出,不支持退换,建议您使用前再进行兑换。',
172
172
  contentColor: '#999999'