jufubao-movie 1.0.55-beta3 → 1.0.55

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.55-beta3",
3
+ "version": "1.0.55",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -156,17 +156,5 @@ module.exports = [
156
156
  },
157
157
  isConsole: true,
158
158
  disabled: true
159
- },
160
- {
161
- mapFnName: "getVipList",
162
- title: "会员中心 - 会员卡列表",
163
- path: "/member/v1/:namespace/vip-card",
164
- isRule: false,
165
- params: {
166
- namespace: ['业务线', 'String', true],
167
- is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
168
- },
169
- isConsole: true,
170
- disabled: true
171
159
  }
172
160
  ];
@@ -92,16 +92,16 @@
92
92
  </view>
93
93
  </view>
94
94
  <view class="jfb-movie-confirm__body-movie-total-right">
95
- <view>共{{order_info.seat_number}}张:</view>
95
+ {{order_info.seat_number}}
96
96
  <template v-if="is_not_show_price !== 'Y'">
97
- <!-- <xd-unit
97
+ :
98
+ <xd-unit
98
99
  :color="mainColor"
99
100
  :isOld="false"
100
101
  :iocnSize="0.32"
101
102
  :fontSize="24"
102
103
  :price="order_info.total_price"
103
- ></xd-unit> -->
104
- <CusPrice :isVip="false" :showPrice="order_info.show_prices" type="order" ></CusPrice>
104
+ ></xd-unit>
105
105
  </template>
106
106
 
107
107
  </view>
@@ -132,32 +132,6 @@
132
132
  <xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
133
133
  </view>
134
134
  </view>
135
-
136
- <view v-if="is_show_vip_card_list==='Y'" class="vip_list_wrap">
137
- <cus-vip-list :list="vipCardList"
138
- :vip_card_id="vip_card_id"
139
- :plus_saving_money="plus_saving_money"
140
- @choseVipCard="handleChoseVipCard"></cus-vip-list>
141
- </view>
142
-
143
- <view v-if="isShowPlusSavingMoney" class="vip_pay_info">
144
- <view class="good_vip_price">
145
- <xd-list-item label="商品价格" paddingLR="40rpx" size="small" showBottom>
146
- <!-- <view style="color: #999999;">145.00</view> -->
147
- <xd-unit :price="origin_total_price" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
148
- </xd-list-item>
149
- <xd-list-item label="PLUS专项立减" size="small" paddingLR="40rpx" >
150
- <view slot="label" style="color: #86541E;">PLUS专项立减</view>
151
- <!-- <view style="color: #FF7070;">-5.00</view> -->
152
- <xd-unit :price="plus_saving_money" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
153
- </xd-list-item>
154
- </view>
155
- <!-- <view class="vip_remain">
156
- <xd-list-item label="账户余额" size="small" paddingLR="40rpx" showRight>
157
- <view style="color: #999999;">30.00</view>
158
- </xd-list-item>
159
- </view> -->
160
- </view>
161
135
 
162
136
  <view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
163
137
  <template v-for="item in otherPayMethod">
@@ -313,8 +287,6 @@
313
287
  import extsMixins from "@/mixins/extsMixins"
314
288
  import {getContainerPropsValue, baseJsDateToTime,getParentsStyle} from "@/utils/xd.base";
315
289
  import {mapState} from 'vuex';
316
- import CusPrice from '@/components/CusPrice/CusPrice'
317
- import CusVipList from "@/components/CusVipList/CusVipList"
318
290
 
319
291
  // #ifdef H5
320
292
  import cookie from "@/common/cookie";
@@ -333,14 +305,11 @@
333
305
  XdListItem,
334
306
  XdCardPayChose,
335
307
  XdWalletChose,
336
- CusCouponChose,
337
- CusPrice,
338
- CusVipList
308
+ CusCouponChose
339
309
  },
340
310
  mixins: [componentsMixins,extsMixins,JfbMovieConfirmMixin],
341
311
  data() {
342
312
  return {
343
- isVip: false,
344
313
  times: null,
345
314
  timeMsg: '',
346
315
  timer: null,
@@ -359,12 +328,6 @@
359
328
  is_first_use_card: "", //是否优先使用卡券
360
329
  is_use_jfb_pay: "", //是否使用聚福宝支付
361
330
  res_total_price: 0,
362
- origin_total_price: 0,
363
-
364
- is_show_vip_card_list: "",
365
- vipCardList: [],
366
- vip_card_id: 0,
367
- plus_saving_money: 0,
368
331
 
369
332
  cardShow: false,
370
333
 
@@ -431,11 +394,6 @@
431
394
  return true; //都开启补差
432
395
  // return this.otherPayMethod.find(item => item.method === 'third')
433
396
  },
434
- //是否展示plus立减
435
- isShowPlusSavingMoney(){
436
- if(this.is_show_vip_card_list === 'Y') return this.vip_card_id;
437
- else return (this.isVip && this.plus_saving_money)
438
- },
439
397
  //订单实际需要支付金额(减去各项已选,票券、钱包)
440
398
  orderNeedPayPrice(){
441
399
  if(!this.order_info) return 0;
@@ -461,7 +419,6 @@
461
419
  created() {
462
420
  this.init(this.container);
463
421
  this.xnamespace =this.projectAttr.business_code;
464
- this.isVip = this.getTokenForKey('user_level') === 'VIP';
465
422
  // #ifdef H5
466
423
  if (!this.$configProject.isPreview){
467
424
  jfbRootExec("getH5WxAuthorize", {
@@ -504,14 +461,10 @@
504
461
  this.tempOrderId = options.order_id;
505
462
  this.validImageAPIUrl = this.brandInfo['api_host'] + '/common/v1/valid_code/image/show'
506
463
  console.log(this, 'confirm this');
507
- this.p_getConfirmOrder();
508
- },
509
- p_getConfirmOrder(){
510
464
  jfbRootExec("movieConfirmOrder", {
511
465
  vm: this,
512
466
  data: {
513
467
  temp_order_id: this.tempOrderId,
514
- vip_card_id: this.vip_card_id
515
468
  }
516
469
  })
517
470
  .then(res => {
@@ -521,9 +474,6 @@
521
474
  this.is_first_use_card = res.is_first_use_card;
522
475
  this.is_use_jfb_pay = res.is_use_jfb_pay;
523
476
  this.res_total_price = res.total_price;
524
- this.is_show_vip_card_list = res.is_show_vip_card_list;
525
- this.plus_saving_money = res.plus_saving_money;
526
- this.origin_total_price = res.origin_total_price;
527
477
 
528
478
  res.show_time = baseJsDateToTime(res.show_time)
529
479
  res.seat_number = JSON.parse(res.seat_name).length;
@@ -551,17 +501,7 @@
551
501
  res.pay_methods.push('coupon')
552
502
  this.p_getPayMethod(res.pay_methods);
553
503
  }
554
- if(res.vip_card_item){
555
- if(res.vip_card_item.is_can_buy === 'Y'){
556
- this.vip_card_id = res.vip_card_item.vip_card_id;
557
- }else if(res.vip_card_item.is_can_buy === 'N'){
558
- this.vip_card_id = '';
559
- this.$xdAlert({content: res.vip_card_item.error_message});
560
- }
561
- }
562
- if(this.is_show_vip_card_list === 'Y' && !this.vipCardList.length){
563
- this.p_getVipList();
564
- }
504
+
565
505
  })
566
506
  .catch(err => {
567
507
  this.$xdHideLoading();
@@ -570,10 +510,6 @@
570
510
  // }
571
511
  });
572
512
  },
573
- handleChoseVipCard(vip_card_id){
574
- this.vip_card_id = vip_card_id;
575
- this.p_getConfirmOrder();
576
- },
577
513
  //only选择卡片
578
514
  toChoseCard(){
579
515
  this.showCardPayChose = true;
@@ -588,16 +524,6 @@
588
524
  toChoseWallet(){
589
525
  this.showWalletChose = true;
590
526
  },
591
- p_getVipList(){
592
- jfbRootExec("getVipList", {
593
- vm: this,
594
- data: {
595
- namespace: 'movie',
596
- }
597
- }).then(res => {
598
- this.vipCardList = res.list;
599
- })
600
- },
601
527
  handleWalletChose({walletPayPrice, needPayPrice, selectedWalletList}){
602
528
  this.choseWallet = {
603
529
  walletPayPrice,
@@ -832,7 +758,6 @@
832
758
  ...options,
833
759
  notify_provider_id: this.projectAttr.notify_provider_id,
834
760
  buy_product: {cart_order_id: this.tempOrderId},
835
- vip_card_id: this.vip_card_id
836
761
  }
837
762
  }).then(res => {
838
763
  if(res.pay_url){
@@ -1044,23 +969,6 @@
1044
969
  position: relative;
1045
970
  z-index: 110;
1046
971
  &__body {
1047
- .vip_list_wrap{
1048
- margin: 0 24rpx 24rpx;
1049
- border-radius: 20rpx;
1050
- overflow: hidden;
1051
- }
1052
- .vip_pay_info{
1053
- margin: 0 24rpx 24rpx;
1054
- .good_vip_price{
1055
- background-color: #FFFFFF;
1056
- border-radius: 20rpx;
1057
- }
1058
- .vip_remain{
1059
- background-color: #FFFFFF;
1060
- border-radius: 20rpx;
1061
- margin-top: 24rpx;
1062
- }
1063
- }
1064
972
  &-title {
1065
973
  display: flex;
1066
974
  justify-content: flex-start;
@@ -1145,7 +1053,6 @@
1145
1053
  display: flex;
1146
1054
  flex-direction: column;
1147
1055
  justify-content: space-around;
1148
- align-items: flex-start;
1149
1056
  height: unit(300, rpx);
1150
1057
  margin-left: unit(40, rpx);
1151
1058
 
@@ -1195,7 +1102,7 @@
1195
1102
  border-top: unit(2, rpx) solid #F6F6F6;
1196
1103
  display: flex;
1197
1104
  justify-content: space-between;
1198
- align-items: flex-start;
1105
+ align-items: center;
1199
1106
  font-size: unit(24, rpx);
1200
1107
  margin-top: unit(24, rpx);
1201
1108
 
@@ -1221,13 +1128,10 @@
1221
1128
  }
1222
1129
 
1223
1130
  &-right {
1224
- &>view:first-child{
1225
- margin-right: 10rpx;
1226
- }
1227
1131
  color: #999999;
1228
1132
  flex: 1;
1229
1133
  display: flex;
1230
- align-items: baseline;
1134
+ align-items: center;
1231
1135
  justify-content: flex-end;
1232
1136
  margin-top: unit(20, rpx);
1233
1137
  }
@@ -16,7 +16,6 @@ module.exports = {
16
16
  "seat_name": "[\"5\排4\列\",\"5\排5\列\"]",
17
17
  "remark": "9.6",
18
18
  "count_down": "581",
19
- "pay_methods": [],
20
19
  "request_id": "a069a3183348d7f2"
21
20
  },
22
21
  movieCardList: {
@@ -146,5 +145,4 @@ module.exports = {
146
145
  },
147
146
  getPayMethod: {"list":[{"method":"card","show_name":"使用票券1","icon":"icon_4"},{"method":"wallet","show_name":"使用我的元宝","icon":"icon_1"},{"method":"score","show_name":"使用积分","icon":"icon_3"}],"request_id":"3746368129d64b96"},
148
147
  getUserWallet: {"show_name":"我的元宝","icon":"icon_1","total_amount":179989,"list":[{"wallet_type":"UB","wallet_name":"账户3","wallet_virtual_number":"1000000000000244","amount":79789,"business_codes":"cake,v-RcA8Mv-Gpd96_Y_mjIf","business_codes_name":"蛋糕(勿改),商城","wallet_rule":"<p>UB使用规则说明<\/p>\n<p>123456<\/p>"},{"wallet_type":"UC","wallet_name":"账户1","wallet_virtual_number":"1000000000000245","amount":100200,"business_codes":"mall,movie,v-RcA8Mv-Gpd96_Y_mjIf,cake","business_codes_name":"商城,电影(勿改),商城,蛋糕(勿改)","wallet_rule":"<p>UC使用规则说明<\/p>\n<p>123<\/p>\n<p>阿达我娃的啊我啊我啊我啊我<\/p>\n<p><span style=\"color: #ff0000;\">阿我打我爱我的啊我啊我<\/span><\/p>"}],"request_id":"823e7aa78fa32fa9"},
149
- getVipList:{"total_size":3,"next_page_token":"","list":[{"vip_card_id":3,"product_id":60038520,"product_name":"体验卡","sale_price":10000000,"vip_card_icon":""},{"vip_card_id":2,"product_id":60038519,"product_name":"月卡","sale_price":10000000,"vip_card_icon":""},{"vip_card_id":1,"product_id":60038515,"product_name":"测1","sale_price":10000000,"vip_card_icon":""}],"request_id":"c5cf58415cffdc30"},
150
148
  }
@@ -2,7 +2,8 @@
2
2
  <view class="xd-my-list-item"
3
3
  :class="'size_'+size"
4
4
  :style="{
5
- borderBottom: showBottom ? '1px solid #F6F6F6':'none',
5
+ borderTop: showBottom ? '1px solid #eee':'none',
6
+ marginTop: showBottom? paddingTB: 0,
6
7
  paddingLeft: paddingLR,
7
8
  paddingRight: paddingLR,
8
9
  paddingTop: paddingTB,
@@ -26,6 +26,25 @@ export default {
26
26
  });
27
27
  },
28
28
  },
29
+ {
30
+ label: "是否显示到店使用:",
31
+ ele: "xd-radio",
32
+ valueKey: "is_show_sell",
33
+ value: data['is_show_sell'] || 'N',
34
+ groupKey: 'content',
35
+ list: [
36
+ { label: '显示', value: "Y" },
37
+ { label: '不显示', value: "N" },
38
+ ]
39
+ },
40
+ {
41
+ label: "到店使用名称自定义:",
42
+ ele: "el-input",
43
+ valueKey: "sellName",
44
+ value: data['sellName'] || '',
45
+ groupKey: 'content',
46
+ placeholder: "不填写时默认 到店使用",
47
+ },
29
48
  {
30
49
  label: '选择排期路径:',
31
50
  ele: 'xd-select-pages-path',
@@ -63,6 +82,19 @@ export default {
63
82
  },
64
83
  inline: false,
65
84
  },
85
+ {
86
+ label: '到店使用路径:',
87
+ ele: 'xd-select-pages-path',
88
+ valueKey: 'sellPath',
89
+ placeholder: '请选择到店使用路径',
90
+ value: data.sellPath || null,
91
+ className: 'input80',
92
+ groupKey:'advanced',
93
+ setting: {
94
+ router: XdBus.getParentApi('getPagesTree'),
95
+ },
96
+ inline: false,
97
+ },
66
98
  ].filter(i=>i)
67
99
  },
68
100
  advanced: [],
@@ -120,9 +120,14 @@
120
120
  <!-- seat_index code_index -->
121
121
  <view style="display: flex;">
122
122
  <view
123
- v-if="item.code_index > -1"
123
+ v-if="is_show_sell === 'Y' && item.sell_index > -1"
124
124
  :style="{background: mainColor}"
125
125
  class="cinema_item-btn"
126
+ @click.stop="toSellPath(item)">{{ sellName }}</view>
127
+ <view
128
+ v-if="item.code_index > -1"
129
+ :style="{background: mainColor, marginLeft: '20rpx'}"
130
+ class="cinema_item-btn"
126
131
  @click.stop="toCodePath(item)">电子码</view>
127
132
  <view
128
133
  v-if="item.seat_index > -1"
@@ -179,6 +184,9 @@ export default {
179
184
  loadingList: true,
180
185
 
181
186
  //面板
187
+ is_show_sell: "",
188
+ sellName: "",
189
+ sellPath: "",
182
190
  scheduleChoosePath: "",
183
191
  codeChoosePath: "",
184
192
  choseCityPath: "",
@@ -251,7 +259,10 @@ export default {
251
259
  "content.choseCityPath",
252
260
  { value: "" }
253
261
  ).value;
262
+ this.sellPath = getContainerPropsValue(container, "content.sellPath", {value: ""}).value;
254
263
  this.sort_consume_mode = getContainerPropsValue(container, 'content.sort_consume_mode', '');
264
+ this.is_show_sell = getContainerPropsValue(container, 'content.is_show_sell', '');
265
+ this.sellName = getContainerPropsValue(container, 'content.sellName', '到店使用');
255
266
  },
256
267
  toChooseSchedule(item) {
257
268
  if(item.seat_index > -1) this.toSchedulePath(item);
@@ -262,6 +273,15 @@ export default {
262
273
  url: this.codeChoosePath + `?cinema_id=${item.cinema_id}`,
263
274
  });
264
275
  },
276
+ toSellPath(item){
277
+ let params = {
278
+ 'x-params': Base64.encodeURI(`shop_id:${item.cinema_id}`),
279
+ }
280
+ let options = this.$xdUniHelper.jsonToParams(params);
281
+ this.$xdUniHelper.navigateTo({
282
+ url: this.sellPath + `?${options}`,
283
+ });
284
+ },
265
285
  toSchedulePath(item){
266
286
  this.$xdUniHelper.navigateTo({
267
287
  url: this.scheduleChoosePath + `?cinema_id=${item.cinema_id}`,
@@ -291,6 +311,7 @@ export default {
291
311
  let sell_index = item.cinema_type.findIndex(ii => ii == 'SELL'); //线下核销
292
312
  let seat_index = item.cinema_type.findIndex(ii => ii == 'SEAT'); //在线选座
293
313
  let code_index = item.cinema_type.findIndex(ii => ii == 'CODE'); //电子码
314
+ item['sell_index'] = sell_index;
294
315
  item['code_index'] = code_index;
295
316
  item['seat_index'] = seat_index;
296
317
  return item;
@@ -512,9 +533,9 @@ export default {
512
533
  box-shadow: 0px 16rpx 60rpx 0px #e3e3e3;
513
534
  margin-bottom: unit(24, rpx);
514
535
  &-btn {
515
- font-size: unit(26, rpx);
536
+ font-size: unit(24, rpx);
516
537
  border-radius: unit(40, rpx);
517
- padding: unit(12, rpx) unit(48, rpx);
538
+ padding: unit(12, rpx) unit(16, rpx);
518
539
  color: #ffffff;
519
540
  text-align: center;
520
541
  height: unit(40, rpx);
@@ -14,7 +14,7 @@ module.exports = {
14
14
  about: "",
15
15
  shop_icon: "",
16
16
  distance: "27.1km",
17
- cinema_type: ["SEAT"],
17
+ cinema_type: ["SEAT", 'CODE', 'SELL'],
18
18
  cinema_type_name: ["在线选座"],
19
19
  status: "Y",
20
20
  is_open: "Y",
@@ -160,17 +160,16 @@
160
160
  <view class="_main">{{item.show_version}}</view>
161
161
  <view class="_sub">{{item.hall_name}}</view>
162
162
  </view>
163
- <view v-if="is_not_show_price !== 'Y'" style="flex: 2;" class="flex-sub">
163
+ <view v-if="is_not_show_price !== 'Y'" class="flex-sub">
164
164
  <view class="_main" style="color: red;">
165
- <!-- <xd-unit class="xd-unit"
165
+ <xd-unit class="xd-unit"
166
166
  :price="item.sale_price"
167
167
  :isOld="false"
168
168
  :isShowIcon="false"
169
- :font-size="24"/> -->
169
+ :font-size="24"/>
170
170
  <!-- {{item.sale_price}} -->
171
- <CusPrice :isVip="true" range="起" type="schedule"></CusPrice>
172
171
  </view>
173
- <!-- <view class="_sub"> <xd-coins class="xd-coins" :size="0.2"></xd-coins> 起</view> -->
172
+ <view class="_sub"> <xd-coins class="xd-coins" :size="0.2"></xd-coins> 起</view>
174
173
  </view>
175
174
  <xd-button type="primary" size="small" @click="toChooseSeat(item.schedule_id)">购买</xd-button>
176
175
  </view>
@@ -194,7 +193,6 @@
194
193
  import extsMixins from "@/mixins/extsMixins"
195
194
  import { getContainerPropsValue } from "@/utils/xd.base";
196
195
  import XdTab from "@/components/XdTab/XdTab";
197
- import CusPrice from '@/components/CusPrice/CusPrice'
198
196
  //#ifdef H5
199
197
  import ZSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue"
200
198
  import ZSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue"
@@ -212,7 +210,6 @@
212
210
  XdCoins,
213
211
  XdNoticeBar,
214
212
  XdUnit,
215
- CusPrice,
216
213
  //#ifdef H5
217
214
  ZSwiper,
218
215
  ZSwiperItem