jufubao-movie 1.0.38 → 1.0.39-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.38",
3
+ "version": "1.0.39-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -5,10 +5,10 @@ export default {
5
5
  advanced: [],
6
6
  content: [
7
7
  {
8
- label: '点击购票路径:',
8
+ label: '影片列表(购票)访问地址:',
9
9
  ele: 'xd-select-pages-path',
10
10
  valueKey: 'cinema_choose_path',
11
- placeholder: '请选择点击购票路径',
11
+ placeholder: '请选择影片列表(购票)访问地址',
12
12
  groupKey:'advanced',
13
13
  className: 'input80',
14
14
  value: null,
@@ -28,9 +28,7 @@
28
28
  <view class="film_other">
29
29
  <view class="film_name_score">
30
30
  <view class="film_name">{{ film.show_name }}</view>
31
- <view v-if="film.remark" class="film_score">{{
32
- film.remark
33
- }}</view>
31
+ <view v-if="film.remark" class="film_score">{{film.remark }}</view>
34
32
  </view>
35
33
  <view class="film_type">{{ film.type }}</view>
36
34
  <view class="film_sub">导演:{{ film.director }}</view>
@@ -7,9 +7,7 @@
7
7
  :style="{ borderTopColor: styleMainColor }"
8
8
  >
9
9
  <view class="xd-seat__title-name">{{ filmInfo["film_name"] }}</view>
10
- <view class="xd-seat__title-address">{{
11
- cinemaInfo["cinema_name"]
12
- }}</view>
10
+ <view class="xd-seat__title-address">{{cinemaInfo["cinema_name"] }}</view>
13
11
  <view class="xd-seat__title-back" v-if="show" @click.stop="back">
14
12
  <xd-font-icon
15
13
  icon="iconzhiyuanfanhui12"
@@ -24,6 +22,7 @@
24
22
  v-model="userSelectedSeatInfo"
25
23
  v-if="selectedSeatInfo !== null"
26
24
  :list="selectedSeatList"
25
+ :area-prices="areaPrices"
27
26
  :layout-info="layoutInfo"
28
27
  :seat-max-buy-number="4"
29
28
  :hall-name="selectedSeatInfo['hall_name']"
@@ -44,8 +43,7 @@
44
43
  "
45
44
  v-for="(item, index) in noticeList"
46
45
  :key="index"
47
- >{{ item }}</view
48
- >
46
+ >{{ item }}</view>
49
47
  </xd-notice-bar>
50
48
  </view>
51
49
  <view class="xd-seat__footer-paiqi">
@@ -83,9 +81,7 @@
83
81
  type="primary"
84
82
  radius="10rpx"
85
83
  size="small"
86
- >{{ scheduleListIsShow ? "收起场次" : "切换场次" }}</xd-button
87
- >
88
- </view>
84
+ >{{ scheduleListIsShow ? "收起场次" : "切换场次" }}</xd-button></view>
89
85
  </view>
90
86
  <view class="xd-seat__footer-paiqi-content" v-if="scheduleListIsShow">
91
87
  <scroll-view
@@ -131,8 +127,7 @@
131
127
  :style="{ borderColor: styleMainColor, color: styleMainColor }"
132
128
  v-for="(name, nindex) in getSelectedNames"
133
129
  :key="nindex"
134
- >{{ name }}</view
135
- >
130
+ >{{ name }}</view>
136
131
  </view>
137
132
  <view class="xd-seat__footer-phone">
138
133
  <view>手机号:</view>
@@ -288,9 +283,8 @@ export default {
288
283
  selectedSeatInfo: null, //选中影院信息
289
284
  selectedSeatList: null, ///选中影院座位信息
290
285
  userSelectedSeatInfo: null, //用户选中座位信息
291
-
286
+ areaPrices: null, //是否有分期排期
292
287
  noticeList: ["观影提示:电影放映期间厅内禁止饮食,感谢配合!"],
293
-
294
288
  styleMainColor: "", //插件主题风格样式
295
289
  };
296
290
  },
@@ -464,10 +458,15 @@ export default {
464
458
  */
465
459
  getSeat(item) {
466
460
  this.$emit("onGetSeatList", item, (seat) => {
467
- console.log("onGetSeatList", seat, item);
468
- this.selectedSeatInfo = seat;
469
461
  this.selectedSeatList = seat["seat"];
462
+ this.areaPrices = (seat['area_price'] || []).map(item=>{
463
+ return {
464
+ ...item,
465
+ area_id: this.$xdUniHelper.randomChar(15)
466
+ }
467
+ });
470
468
  this.phone = seat["phone_number"];
469
+ this.selectedSeatInfo = seat;
471
470
  });
472
471
  },
473
472
 
@@ -528,6 +527,7 @@ export default {
528
527
  let tab = [];
529
528
  let list = [];
530
529
  let selectPaiqi = null;
530
+ let allPaiqiId = [];
531
531
  data.map((item, index) => {
532
532
  tab.push({
533
533
  label: item["date_name"],
@@ -536,6 +536,7 @@ export default {
536
536
  });
537
537
  list.push(item["paiqi_data"]);
538
538
  item["paiqi_data"].map((paiqi, idx) => {
539
+ allPaiqiId.push(paiqi.data_id);
539
540
  if (
540
541
  paiqi.jfb_film_id == this.filmId &&
541
542
  paiqi.jfb_cinema_id == this.cinemaId &&
@@ -552,6 +553,8 @@ export default {
552
553
 
553
554
  //未找到传入排期
554
555
  if (!selectPaiqi){
556
+ console.warn(`params.seatId:${this.seatId}`);
557
+ console.warn(`all.seatId:${JSON.stringify(allPaiqiId)}`);
555
558
  this.$xdConfirm({
556
559
  content:'当前排期已过期,请您手动切换或由系统自动切换到下一排期。',
557
560
  confirmText:'自动切换',