jufubao-movie 1.0.32-beta2 → 1.0.32-beta4

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.32-beta2",
3
+ "version": "1.0.32-beta4",
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
- styles: this.styles,
107
+ $vm: this,
108
108
  title:'系统提醒',
109
109
  content: '尊敬的用户,电子码一经兑出,不支持退换,建议您使用前再进行兑换。',
110
110
  contentColor:'#999999'
@@ -13,7 +13,9 @@
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">删除</view>
16
+ <view class="jfb-movie-code-choose__edit-icon" @click="delEdit"
17
+ >删除</view
18
+ >
17
19
  </view>
18
20
  <!-- #endif -->
19
21
  <view
@@ -39,7 +41,8 @@
39
41
  <view class="jfb-movie-code-choose__body-info-name-distance" :style="{color:subTextColor}">{{cinemaInfo.distance }}</view>
40
42
  </view>
41
43
  </view>
42
- <view class="jfb-movie-code-choose__body-info-detail" v-html="cinemaInfo.about"></view>
44
+ <view class="jfb-movie-code-choose__body-info-detail" v-html="cinemaInfo.about">
45
+ </view>
43
46
  <view :style="{margin:(padding + 'rpx 0'),height: '1px', backgroundColor: textLineColor}"></view>
44
47
  <view class="jfb-movie-code-choose__body-info-shop">
45
48
  <view style="align-items: center;" class="jfb-movie-code-choose__body-info-shop-item">
@@ -235,30 +238,6 @@ export default {
235
238
  this.list_is_border_w = getContainerPropsValue(container, "content.list_is_border_w", 2);
236
239
  },
237
240
 
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
-
262
241
  p_getCinemaInfo() {
263
242
  return new Promise((resolve, reject) => {
264
243
  let location = this.cityLocation.location || {};
@@ -272,10 +251,8 @@ export default {
272
251
  })
273
252
  .then((res) => {
274
253
  const { cinema_data } = res;
254
+
275
255
  cinema_data['cinema_logo'] = getServiceUrl(cinema_data.cinema_logo);
276
- //#ifdef MP-WEIXIN
277
- this.cinemaInfo = this.handleAboat(cinema_data);
278
- //#endif
279
256
  this.cinemaInfo = cinema_data;
280
257
  resolve();
281
258
  })
@@ -365,21 +342,13 @@ export default {
365
342
  }
366
343
 
367
344
  &-detail {
368
- margin-top: 20rpx;
369
- width:100%;
370
- /deep/ .tinymce-image {
345
+ ::v-deep img {
371
346
  max-width: 100% !important;
372
347
  height: auto !important;
373
348
  }
374
- /deep/ img {
375
- max-width: 100% !important;
376
- height: auto !important;
377
- }
378
- /deep/ .p_class {
349
+
350
+ ::v-deep p {
379
351
  font-size: unit(28, rpx);
380
- margin: 0;
381
- border: 0;
382
- padding: 0 0 1rem;
383
352
  }
384
353
  }
385
354
 
@@ -90,14 +90,18 @@
90
90
  </view>
91
91
  </view>
92
92
  <view class="jfb-movie-confirm__body-movie-total-right">
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>
93
+ 共{{order_info.seat_number}}
94
+ <template v-if="is_not_show_price !== 'Y'">
95
+ :
96
+ <xd-unit
97
+ :color="mainColor"
98
+ :isOld="false"
99
+ :iocnSize="0.32"
100
+ :fontSize="24"
101
+ :price="order_info.total_price"
102
+ ></xd-unit>
103
+ </template>
104
+
101
105
  </view>
102
106
  </view>
103
107
  </view>
@@ -126,12 +130,16 @@
126
130
  <xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
127
131
  </view>
128
132
  </view>
129
-
133
+
130
134
  <view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
131
135
  <template v-for="item in otherPayMethod">
132
136
  <xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="0rpx" size="small" showRight @click="toChoseCard">
133
137
  <view v-if="choseCard && choseCard.cardPayPrice" slot="label">{{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCard.selectedCardList.length }}张)</text></view>
134
- <xd-unit v-if="choseCard && choseCard.cardPayPrice" :price="choseCard.cardPayPrice" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
138
+ <template v-if="choseCard && choseCard.cardPayPrice">
139
+ <xd-unit v-if="choseCard.unit == '次'" :price="choseCard.cardPayPoint" :isOld="false" :fontSize="24" :iconSize="0.3" :unit="choseCard.unit"></xd-unit>
140
+ <xd-unit v-else :price="choseCard.cardPayPrice" :isOld="false" :fontSize="24" :iconSize="0.3" :unit="choseCard.unit || ''"></xd-unit>
141
+ </template>
142
+
135
143
  <view v-else>请选择</view>
136
144
  </xd-list-item>
137
145
  <xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="0rpx" size="small" showRight @click="toChoseWallet">
@@ -142,7 +150,7 @@
142
150
  </view>
143
151
  <view class="jfb-movie-confirm__body-btn-height" :style="bottomFixedStylePlaceholder"></view>
144
152
  <view class="jfb-movie-confirm__body-btn" :style="bottomFixedStyle">
145
- <view style="display: flex;align-items:center;">
153
+ <view v-if="is_not_show_price !== 'Y'" style="display: flex;align-items:center;">
146
154
  <view style="margin-right: 8rpx;">应付:</view>
147
155
  <xd-unit
148
156
  :price="orderNeedPayPrice"
@@ -151,6 +159,7 @@
151
159
  :iocn-size=".45"
152
160
  ></xd-unit>
153
161
  </view>
162
+ <view v-else></view>
154
163
  <view>
155
164
  <xd-button
156
165
  :disabled="payBtnDisabled"
@@ -168,6 +177,7 @@
168
177
  :show.sync="showCardPay"
169
178
  :payThird="!!payThird"
170
179
  :bindCard="bindCard"
180
+ :is_not_show_price="is_not_show_price"
171
181
  :payChannels="payChannels"
172
182
  :jwxSDK="jwxSDK"
173
183
  :validImageAPIUrl="validImageAPIUrl"
@@ -186,6 +196,7 @@
186
196
  :layoutInfo="layoutInfo"
187
197
  :show.sync="showCardPayChose"
188
198
  :bindCard="bindCard"
199
+ :is_not_show_price="is_not_show_price"
189
200
  :hadChoseCard="choseCard && choseCard.selectedCardList"
190
201
  :jwxSDK="jwxSDK"
191
202
  :selected_wallet_list="choseWallet ? choseWallet.selectedWalletList : []"
@@ -281,6 +292,7 @@
281
292
  choseWallet: null,
282
293
 
283
294
  xnamespace: "",
295
+ is_not_show_price: "",
284
296
 
285
297
  //提示
286
298
  notice: '',
@@ -388,6 +400,7 @@
388
400
  .then(res => {
389
401
  console.log(res, '8888888')
390
402
  this.$xdHideLoading()
403
+ this.is_not_show_price = res.is_not_show_price;
391
404
  this.is_first_use_card = res.is_first_use_card;
392
405
  this.is_use_jfb_pay = res.is_use_jfb_pay;
393
406
  this.res_total_price = res.total_price;
@@ -582,7 +595,7 @@
582
595
  cancel: false,
583
596
  isHtml: true,
584
597
  isTitle: true,
585
- styles: this.styles,
598
+ $vm: this,
586
599
  content: '<span style="color:red;font-size: 16px">提示:影票一旦售出,将不支持退换!购票成功不再发送短信通知,部分影院不提供3D眼镜,儿童身高免购票以影院实际情况为准。</span>',
587
600
  success: async (res) => {
588
601
  if(this.is_use_jfb_pay === "Y" && this.is_first_use_card === "Y"){
@@ -709,7 +722,7 @@
709
722
  content: '订单已超时',
710
723
  cancel: false,
711
724
  confirmText: '我知道了',
712
- styles: this.styles,
725
+ $vm: this,
713
726
  });
714
727
  return
715
728
  }
@@ -43,6 +43,7 @@
43
43
  :cinema-id="cinemaId"
44
44
  :seat-id="scheduleId"
45
45
  :layout-info='layoutInfo'
46
+ :is_not_show_price="is_not_show_price"
46
47
  @onGetFilm="handleGetFilm"
47
48
  @onGetSeatList="handleGetSeatList"
48
49
  @onBuy="handleBuy"></xd-online-seat>
@@ -78,6 +79,7 @@
78
79
  seatTime: 0,
79
80
  isPop: false,
80
81
  paiQiData: [],
82
+ is_not_show_price: "",
81
83
 
82
84
  //面板
83
85
  payPath: "", //三方支付路径
@@ -163,6 +165,7 @@
163
165
  ]).then(([res, res1]) => {
164
166
  this.loadingList = false;
165
167
  this.$xdHideLoading();
168
+ this.is_not_show_price = res.is_not_show_price;
166
169
  let paiqi_data = res.schedule_data.map(item => {
167
170
  item['name'] = item['date_name'];
168
171
  item['paiqi_data'] = item['paiqi'].map(pp => {
@@ -235,7 +238,7 @@
235
238
  handleToPay(res){
236
239
  const { temp_order_id, oms_order_id, pay_order_id } = res;
237
240
  this.$xdConfirm({
238
- styles: this.styles,
241
+ $vm: this,
239
242
  width: '90%',
240
243
  content: '有未完成的订单',
241
244
  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 v-if="is_not_show_price !== 'Y'">
116
116
  <xd-unit
117
117
  font-weight="normal"
118
118
  :price="itemc['price']"
@@ -152,13 +152,14 @@
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 && is_not_show_price !== 'Y'"
156
156
  :price="getPrice"
157
157
  :font-size="36"
158
158
  :iocn-size="0.45"
159
159
  font-weight="normal"
160
160
  color-new="#fff"
161
161
  :is-old="isOld"
162
+ style="margin-right: 30rpx;"
162
163
  ></xd-unit>
163
164
  <view>确认选择</view>
164
165
  </view>
@@ -244,6 +245,10 @@ export default {
244
245
  type: Number | String,
245
246
  required: true,
246
247
  },
248
+ is_not_show_price: {
249
+ type: String,
250
+ default: ""
251
+ },
247
252
 
248
253
  layoutInfo: {
249
254
  type: Object,
@@ -370,10 +375,10 @@ export default {
370
375
  },
371
376
  methods: {
372
377
  handleBuy() {
373
-
378
+
374
379
  //未选座位
375
380
  if(this.userSelectedSeatInfo === null) return;
376
-
381
+
377
382
  //选中座位有隔座
378
383
  if (this.userSelectedSeatInfo["seatError"].length > 0) {
379
384
  this.openNotice();
@@ -501,7 +506,7 @@ export default {
501
506
  .catch();
502
507
  });
503
508
  },
504
-
509
+
505
510
  getFirst(data = []){
506
511
  let first = {};
507
512
  let len = data.length;
@@ -542,14 +547,14 @@ export default {
542
547
  });
543
548
  this.scheduleTabList = tab;
544
549
  this.scheduleList = list;
545
-
550
+
546
551
  //未找到传入排期
547
552
  if (!selectPaiqi){
548
553
  this.$xdConfirm({
549
554
  content:'当前排期已过期,请您手动切换或由系统自动切换到下一排期。',
550
555
  confirmText:'自动切换',
551
556
  cancelText:'手动切换',
552
- styles: this.$parent.$parent.$parent.styles,
557
+ $vm: this.$parent.$parent.$parent,
553
558
  success:(status)=>{
554
559
  if(status.confirm) {
555
560
  this.replaceParams(this.getFirst(list));
@@ -558,7 +563,7 @@ export default {
558
563
  });
559
564
  return
560
565
  }
561
-
566
+
562
567
  this.scheduleListSelectedItem = selectPaiqi;
563
568
  setTimeout(() => {
564
569
  this.scheduleListinto = `content-index-${this.scheduleListIndex}`;
@@ -646,7 +651,7 @@ export default {
646
651
  justify-content: center;
647
652
  align-items: center;
648
653
  flex-direction: column;
649
-
654
+
650
655
 
651
656
  &-icon {
652
657
  padding-top: unit(30, rpx);
@@ -676,7 +681,7 @@ export default {
676
681
  }
677
682
  }
678
683
  }
679
-
684
+
680
685
  &-text {
681
686
  color: #fff;
682
687
  font-size: unit(32, rpx);
@@ -790,9 +795,9 @@ export default {
790
795
  justify-content: center;
791
796
  align-items: center;
792
797
 
793
- & > view {
794
- margin-left: unit(30, rpx);
795
- }
798
+ // & > view {
799
+ // margin-left: unit(30, rpx);
800
+ // }
796
801
  }
797
802
  }
798
803
 
@@ -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 class="flex-sub">
145
+ <view v-if="is_not_show_price !== 'Y'" 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,6 +217,7 @@
217
217
  timer: null,
218
218
  cinema_id: "",
219
219
  renderSwiper: "renderSwiper",
220
+ is_not_show_price: "",
220
221
 
221
222
  //面板值
222
223
  seatChoosePath: "",
@@ -327,6 +328,7 @@
327
328
  }).then(res => {
328
329
  this.loadingList = false;
329
330
  this.$xdHideLoading();
331
+ this.is_not_show_price = res.is_not_show_price;
330
332
  this.scheduleTabList = res.schedule_data.filter(item => item.date_name).map((item, index) => {
331
333
  let date_name = item.date_name;
332
334
  let week = date_name.match(/星期./)[0];
@@ -166,7 +166,7 @@
166
166
  }
167
167
 
168
168
  this.$xdConfirm({
169
- styles: this.styles,
169
+ $vm: this,
170
170
  title: '系统提醒',
171
171
  content: '尊敬的用户,电子码一经兑出,不支持退换,建议您使用前再进行兑换。',
172
172
  contentColor: '#999999'