jufubao-movie 1.0.56 → 1.0.57-beta1
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/JfbMovieConfirm/Api.js +11 -0
- package/src/components/JfbMovieConfirm/Attr.js +11 -0
- package/src/components/JfbMovieConfirm/JfbMovieConfirm.vue +203 -66
- package/src/components/JfbMovieConfirm/Mock.js +14 -1
- package/src/components/JfbMovieConfirm/XdListItem.vue +1 -2
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +14 -5
- package/src/components/JfbMovieLineSchedule/Mock.js +180 -0
package/package.json
CHANGED
|
@@ -156,5 +156,16 @@ module.exports = [
|
|
|
156
156
|
},
|
|
157
157
|
isConsole: true,
|
|
158
158
|
disabled: true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
mapFnName: "getVipList",
|
|
162
|
+
title: "会员中心 - 会员卡列表",
|
|
163
|
+
path: "/member/v1/vip-card",
|
|
164
|
+
isRule: false,
|
|
165
|
+
params: {
|
|
166
|
+
is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
|
|
167
|
+
},
|
|
168
|
+
isConsole: true,
|
|
169
|
+
disabled: true
|
|
159
170
|
}
|
|
160
171
|
];
|
|
@@ -5,6 +5,17 @@ export default {
|
|
|
5
5
|
advanced: [],
|
|
6
6
|
content: (data)=>{
|
|
7
7
|
return [
|
|
8
|
+
{
|
|
9
|
+
label: "无其他支付时直接跳到支付页面:",
|
|
10
|
+
ele: "xd-radio",
|
|
11
|
+
valueKey: "skipToPay",
|
|
12
|
+
value: data['skipToPay'] || 'N',
|
|
13
|
+
groupKey: "content",
|
|
14
|
+
list: [
|
|
15
|
+
{label: '是', value: 'Y'},
|
|
16
|
+
{label: '否', value: 'N'},
|
|
17
|
+
]
|
|
18
|
+
},
|
|
8
19
|
{
|
|
9
20
|
label: '去支付路径:',
|
|
10
21
|
ele: 'xd-select-pages-path',
|
|
@@ -92,16 +92,16 @@
|
|
|
92
92
|
</view>
|
|
93
93
|
</view>
|
|
94
94
|
<view class="jfb-movie-confirm__body-movie-total-right">
|
|
95
|
-
|
|
95
|
+
<view>共{{order_info.seat_number}}张:</view>
|
|
96
96
|
<template v-if="is_not_show_price !== 'Y'">
|
|
97
|
-
|
|
98
|
-
<xd-unit
|
|
97
|
+
<!-- <xd-unit
|
|
99
98
|
:color="mainColor"
|
|
100
99
|
:isOld="false"
|
|
101
100
|
:iocnSize="0.32"
|
|
102
101
|
:fontSize="24"
|
|
103
102
|
:price="order_info.total_price"
|
|
104
|
-
></xd-unit>
|
|
103
|
+
></xd-unit> -->
|
|
104
|
+
<CusPrice :isVip="is_plus_site" :showPrice="order_info.show_prices" type="order" ></CusPrice>
|
|
105
105
|
</template>
|
|
106
106
|
|
|
107
107
|
</view>
|
|
@@ -133,9 +133,35 @@
|
|
|
133
133
|
</view>
|
|
134
134
|
</view>
|
|
135
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="isShowPlusSavingMoneyPrice" 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" colorNew="#999" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
148
|
+
</xd-list-item>
|
|
149
|
+
<xd-list-item v-if="isShowPlusSavingMoney" 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 :largeZero="false" :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
|
+
|
|
136
162
|
<view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
|
|
137
163
|
<template v-for="item in otherPayMethod">
|
|
138
|
-
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="
|
|
164
|
+
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="0" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseCard">
|
|
139
165
|
<view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
|
|
140
166
|
<view style="color:#CCCCCC;font-size: 20rpx">已使用其他票券,不可用</view>
|
|
141
167
|
</view>
|
|
@@ -148,7 +174,7 @@
|
|
|
148
174
|
<view v-else>请选择</view>
|
|
149
175
|
</view>
|
|
150
176
|
</xd-list-item>
|
|
151
|
-
<xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="
|
|
177
|
+
<xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="0" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseWallet">
|
|
152
178
|
<view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
|
|
153
179
|
<view style="color:#CCCCCC;font-size: 20rpx">已使用其他票券,不可用</view>
|
|
154
180
|
</view>
|
|
@@ -157,7 +183,7 @@
|
|
|
157
183
|
<view v-else>请选择</view>
|
|
158
184
|
</view>
|
|
159
185
|
</xd-list-item>
|
|
160
|
-
<xd-list-item v-if="item.method === 'coupon'" :key="item.method" :label="item.show_name" paddingLR="
|
|
186
|
+
<xd-list-item v-if="item.method === 'coupon'" :key="item.method" :label="item.show_name" paddingLR="0" size="small" :showRight="!(choseCard && choseCard.cardPayPrice)" @click="toChoseCoupon">
|
|
161
187
|
<view v-if="(choseCoupon && choseCoupon.cardPayPrice)" slot="label">
|
|
162
188
|
{{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCoupon.selectedCardList.length }}张)</text>
|
|
163
189
|
</view>
|
|
@@ -173,6 +199,7 @@
|
|
|
173
199
|
<view v-if="is_not_show_price !== 'Y'" style="display: flex;align-items:center;">
|
|
174
200
|
<view style="margin-right: 8rpx;">应付:</view>
|
|
175
201
|
<xd-unit
|
|
202
|
+
|
|
176
203
|
:price="orderNeedPayPrice"
|
|
177
204
|
:isOld="false"
|
|
178
205
|
:font-size="36"
|
|
@@ -287,6 +314,8 @@
|
|
|
287
314
|
import extsMixins from "@/mixins/extsMixins"
|
|
288
315
|
import {getContainerPropsValue, baseJsDateToTime,getParentsStyle} from "@/utils/xd.base";
|
|
289
316
|
import {mapState} from 'vuex';
|
|
317
|
+
import CusPrice from '@/components/CusPrice/CusPrice'
|
|
318
|
+
import CusVipList from "@/components/CusVipList/CusVipList"
|
|
290
319
|
|
|
291
320
|
import {Base64} from "js-base64";
|
|
292
321
|
|
|
@@ -302,11 +331,14 @@
|
|
|
302
331
|
XdListItem,
|
|
303
332
|
XdCardPayChose,
|
|
304
333
|
XdWalletChose,
|
|
305
|
-
CusCouponChose
|
|
334
|
+
CusCouponChose,
|
|
335
|
+
CusPrice,
|
|
336
|
+
CusVipList
|
|
306
337
|
},
|
|
307
338
|
mixins: [componentsMixins,extsMixins,JfbMovieConfirmMixin],
|
|
308
339
|
data() {
|
|
309
340
|
return {
|
|
341
|
+
isVip: false,
|
|
310
342
|
times: null,
|
|
311
343
|
timeMsg: '',
|
|
312
344
|
timer: null,
|
|
@@ -325,6 +357,12 @@
|
|
|
325
357
|
is_first_use_card: "", //是否优先使用卡券
|
|
326
358
|
is_use_jfb_pay: "", //是否使用聚福宝支付
|
|
327
359
|
res_total_price: 0,
|
|
360
|
+
origin_total_price: 0,
|
|
361
|
+
|
|
362
|
+
is_show_vip_card_list: "",
|
|
363
|
+
vipCardList: [],
|
|
364
|
+
vip_card_id: 0,
|
|
365
|
+
plus_saving_money: 0,
|
|
328
366
|
|
|
329
367
|
cardShow: false,
|
|
330
368
|
|
|
@@ -359,6 +397,8 @@
|
|
|
359
397
|
couponBtnTextStyle: {}, //优惠券包登录按钮文字背景色设置
|
|
360
398
|
couponUseBtnPadding: {},
|
|
361
399
|
couponImageUrl: "",
|
|
400
|
+
is_plus_site: false,
|
|
401
|
+
skipToPay: "",
|
|
362
402
|
}
|
|
363
403
|
},
|
|
364
404
|
watch: {
|
|
@@ -368,7 +408,7 @@
|
|
|
368
408
|
},
|
|
369
409
|
},
|
|
370
410
|
computed: {
|
|
371
|
-
...mapState(['jfbAuthorize','brandInfo']),
|
|
411
|
+
...mapState(['jfbAuthorize','brandInfo','siteInfo']),
|
|
372
412
|
|
|
373
413
|
bottomFixedStyle(){
|
|
374
414
|
return this.fixedStyle({paddingBottom: 10, zIndex: 100});
|
|
@@ -390,6 +430,20 @@
|
|
|
390
430
|
return true; //都开启补差
|
|
391
431
|
// return this.otherPayMethod.find(item => item.method === 'third')
|
|
392
432
|
},
|
|
433
|
+
//实付展示plus立减的商品价格
|
|
434
|
+
isShowPlusSavingMoneyPrice(){
|
|
435
|
+
//如果是会员
|
|
436
|
+
if(this.isVip) return true;
|
|
437
|
+
else{
|
|
438
|
+
if(this.is_show_vip_card_list === 'Y') return true;
|
|
439
|
+
}
|
|
440
|
+
return false;
|
|
441
|
+
},
|
|
442
|
+
//是否展示plus立减
|
|
443
|
+
isShowPlusSavingMoney(){
|
|
444
|
+
if(this.is_show_vip_card_list === 'Y') return this.vip_card_id;
|
|
445
|
+
else return (this.isVip && this.plus_saving_money)
|
|
446
|
+
},
|
|
393
447
|
//订单实际需要支付金额(减去各项已选,票券、钱包)
|
|
394
448
|
orderNeedPayPrice(){
|
|
395
449
|
if(!this.order_info) return 0;
|
|
@@ -412,9 +466,14 @@
|
|
|
412
466
|
return false;
|
|
413
467
|
}
|
|
414
468
|
},
|
|
469
|
+
destroyed() {
|
|
470
|
+
if(this.timer) clearInterval(this.timer);
|
|
471
|
+
},
|
|
415
472
|
created() {
|
|
416
473
|
this.init(this.container);
|
|
417
474
|
this.xnamespace =this.projectAttr.business_code;
|
|
475
|
+
this.isVip = this.getTokenForKey('user_level') === 'VIP';
|
|
476
|
+
this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
|
|
418
477
|
// #ifdef H5
|
|
419
478
|
if (!this.$configProject.isPreview){
|
|
420
479
|
jfbRootExec("getH5WxAuthorize", {
|
|
@@ -457,10 +516,14 @@
|
|
|
457
516
|
this.tempOrderId = options.order_id;
|
|
458
517
|
this.validImageAPIUrl = this.brandInfo['api_host'] + '/common/v1/valid_code/image/show'
|
|
459
518
|
console.log(this, 'confirm this');
|
|
519
|
+
this.p_getConfirmOrder();
|
|
520
|
+
},
|
|
521
|
+
p_getConfirmOrder(){
|
|
460
522
|
jfbRootExec("movieConfirmOrder", {
|
|
461
523
|
vm: this,
|
|
462
524
|
data: {
|
|
463
525
|
temp_order_id: this.tempOrderId,
|
|
526
|
+
vip_card_id: this.vip_card_id
|
|
464
527
|
}
|
|
465
528
|
})
|
|
466
529
|
.then(res => {
|
|
@@ -470,12 +533,16 @@
|
|
|
470
533
|
this.is_first_use_card = res.is_first_use_card;
|
|
471
534
|
this.is_use_jfb_pay = res.is_use_jfb_pay;
|
|
472
535
|
this.res_total_price = res.total_price;
|
|
536
|
+
this.is_show_vip_card_list = res.is_show_vip_card_list;
|
|
537
|
+
this.plus_saving_money = res.plus_saving_money;
|
|
538
|
+
this.origin_total_price = res.origin_total_price;
|
|
473
539
|
|
|
474
540
|
res.show_time = baseJsDateToTime(res.show_time)
|
|
475
541
|
res.seat_number = JSON.parse(res.seat_name).length;
|
|
476
542
|
res.seat_name = JSON.parse(res.seat_name).join(' | ')
|
|
477
543
|
// res.total_price = this.$xdUniHelper.divisionFloatNumber(res.total_price, 100)
|
|
478
544
|
res.total_price = res.total_price;
|
|
545
|
+
let priceChange = this.order_info && this.order_info.total_price != res.total_price;
|
|
479
546
|
this.order_info = res
|
|
480
547
|
this.times = Number(this.order_info['count_down']);
|
|
481
548
|
let minutes = Math.floor(this.times / 60);
|
|
@@ -497,7 +564,21 @@
|
|
|
497
564
|
res.pay_methods.push('coupon')
|
|
498
565
|
this.p_getPayMethod(res.pay_methods);
|
|
499
566
|
}
|
|
500
|
-
|
|
567
|
+
//确认订单价格改变,清空选择
|
|
568
|
+
if(priceChange){
|
|
569
|
+
this.clearCheckedWhenPriceChange();
|
|
570
|
+
}
|
|
571
|
+
if(res.vip_card_item){
|
|
572
|
+
if(res.vip_card_item.is_can_buy === 'Y'){
|
|
573
|
+
this.vip_card_id = res.vip_card_item.vip_card_id;
|
|
574
|
+
}else if(res.vip_card_item.is_can_buy === 'N'){
|
|
575
|
+
this.vip_card_id = '';
|
|
576
|
+
this.$xdAlert({content: res.vip_card_item.error_message});
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if(this.is_show_vip_card_list === 'Y' && !this.vipCardList.length){
|
|
580
|
+
this.p_getVipList();
|
|
581
|
+
}
|
|
501
582
|
})
|
|
502
583
|
.catch(err => {
|
|
503
584
|
this.$xdHideLoading();
|
|
@@ -506,6 +587,15 @@
|
|
|
506
587
|
// }
|
|
507
588
|
});
|
|
508
589
|
},
|
|
590
|
+
//确认订单价格改变,清空选择
|
|
591
|
+
clearCheckedWhenPriceChange(){
|
|
592
|
+
this.$refs['xdCardPayChose'].clearChecked();
|
|
593
|
+
this.$refs['xdWalletChose'].clearChecked();
|
|
594
|
+
},
|
|
595
|
+
handleChoseVipCard(vip_card_id){
|
|
596
|
+
this.vip_card_id = vip_card_id;
|
|
597
|
+
this.p_getConfirmOrder();
|
|
598
|
+
},
|
|
509
599
|
//only选择卡片
|
|
510
600
|
toChoseCard(){
|
|
511
601
|
this.showCardPayChose = true;
|
|
@@ -520,6 +610,16 @@
|
|
|
520
610
|
toChoseWallet(){
|
|
521
611
|
this.showWalletChose = true;
|
|
522
612
|
},
|
|
613
|
+
p_getVipList(){
|
|
614
|
+
jfbRootExec("getVipList", {
|
|
615
|
+
vm: this,
|
|
616
|
+
data: {
|
|
617
|
+
namespace: 'movie',
|
|
618
|
+
}
|
|
619
|
+
}).then(res => {
|
|
620
|
+
this.vipCardList = res.list;
|
|
621
|
+
})
|
|
622
|
+
},
|
|
523
623
|
handleWalletChose({walletPayPrice, needPayPrice, selectedWalletList}){
|
|
524
624
|
this.choseWallet = {
|
|
525
625
|
walletPayPrice,
|
|
@@ -695,7 +795,11 @@
|
|
|
695
795
|
}
|
|
696
796
|
this.useTickAndWalletPay(selected_card_list, selected_wallet_list);
|
|
697
797
|
}else{
|
|
698
|
-
this.
|
|
798
|
+
if(this.skipToPay === 'N'){
|
|
799
|
+
this.showCardPay = true;
|
|
800
|
+
}else{
|
|
801
|
+
this.useTickAndWalletPay([], []);
|
|
802
|
+
}
|
|
699
803
|
}
|
|
700
804
|
}else{
|
|
701
805
|
this.createSettleOrder({
|
|
@@ -754,6 +858,7 @@
|
|
|
754
858
|
...options,
|
|
755
859
|
notify_provider_id: this.projectAttr.notify_provider_id,
|
|
756
860
|
buy_product: {cart_order_id: this.tempOrderId},
|
|
861
|
+
vip_card_id: this.vip_card_id
|
|
757
862
|
}
|
|
758
863
|
}).then(res => {
|
|
759
864
|
if(res.pay_url){
|
|
@@ -773,6 +878,13 @@
|
|
|
773
878
|
getCountDown() {
|
|
774
879
|
this.show = true;
|
|
775
880
|
this.timer = setInterval(() => {
|
|
881
|
+
let pages = getCurrentPages();
|
|
882
|
+
let curPage = pages[pages.length - 1];
|
|
883
|
+
if(this.pageAttr["page_id"] !== curPage.page_id){
|
|
884
|
+
clearInterval(this.timer);
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
|
|
776
888
|
let minutes = Math.floor(this.times / 60);
|
|
777
889
|
let seconds = Math.floor(this.times % 60);
|
|
778
890
|
if (minutes < 10) {
|
|
@@ -826,6 +938,7 @@
|
|
|
826
938
|
*/
|
|
827
939
|
init(container) {
|
|
828
940
|
this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
|
|
941
|
+
this.skipToPay = getContainerPropsValue(container, 'content.skipToPay', 'N');
|
|
829
942
|
this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ''}).value;
|
|
830
943
|
this.paySuccessPath = getContainerPropsValue(container, 'content.paySuccessPath', {value: "/pages/order/success"}).value;
|
|
831
944
|
this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
|
|
@@ -890,68 +1003,71 @@
|
|
|
890
1003
|
|
|
891
1004
|
addSettleCoupon(options, successCb, errCb) {
|
|
892
1005
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
1006
|
+
this.$xdShowLoading({})
|
|
1007
|
+
jfbRootExec('movieAddCard', {
|
|
1008
|
+
vm: this,
|
|
1009
|
+
data: {
|
|
1010
|
+
...options,
|
|
1011
|
+
cart_order_id: this.tempOrderId,
|
|
1012
|
+
show_type: 'coupon'
|
|
1013
|
+
}
|
|
1014
|
+
}).then(res => {
|
|
1015
|
+
this.$xdHideLoading();
|
|
1016
|
+
uni.showToast({
|
|
1017
|
+
title: "添加成功",
|
|
1018
|
+
icon: "none"
|
|
1019
|
+
});
|
|
1020
|
+
successCb(res);
|
|
1021
|
+
}).catch(err => {
|
|
1022
|
+
console.log(err, 'err')
|
|
1023
|
+
this.$xdHideLoading();
|
|
1024
|
+
if(errCb) errCb();
|
|
1025
|
+
this.$xdLog.catch(err);
|
|
1026
|
+
})
|
|
914
1027
|
},
|
|
915
|
-
|
|
1028
|
+
getSettleListCoupons(cb) {
|
|
916
1029
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1030
|
+
jfbRootExec('movieCardList', {
|
|
1031
|
+
vm: this,
|
|
1032
|
+
data: {
|
|
1033
|
+
show_type: 'coupon'
|
|
1034
|
+
}
|
|
1035
|
+
}).then(res => {
|
|
1036
|
+
cb(res.list)
|
|
1037
|
+
this.cardList = res.list
|
|
1038
|
+
}).catch(this.$xdLog.catch)
|
|
1039
|
+
},
|
|
1040
|
+
setSettleSelectCoupon(options, successCb, errCb) {
|
|
1041
|
+
|
|
1042
|
+
this.$xdShowLoading({})
|
|
1043
|
+
let cart_order_id = this.tempOrderId;
|
|
1044
|
+
jfbRootExec('movieSelectCard', {
|
|
1045
|
+
vm: this,
|
|
1046
|
+
data: {
|
|
1047
|
+
cart_order_id: cart_order_id,
|
|
1048
|
+
select_content: 1,
|
|
1049
|
+
...options,
|
|
1050
|
+
}
|
|
1051
|
+
}).then(res => {
|
|
1052
|
+
successCb(res)
|
|
1053
|
+
this.$xdHideLoading()
|
|
1054
|
+
}).catch(err => {
|
|
1055
|
+
if(errCb) errCb(err)
|
|
1056
|
+
this.$xdHideLoading()
|
|
1057
|
+
this.$xdLog.catch(err);
|
|
1058
|
+
})
|
|
1059
|
+
},
|
|
947
1060
|
|
|
948
1061
|
onJfbBack(options) {
|
|
949
1062
|
this.$xdUniHelper.navigateBack()
|
|
950
1063
|
},
|
|
951
1064
|
|
|
952
1065
|
onJfbShow(options) {
|
|
953
|
-
if(this.timer)
|
|
1066
|
+
if(this.timer) clearInterval(this.timer);
|
|
954
1067
|
this.onJfbLoad(options)
|
|
1068
|
+
},
|
|
1069
|
+
onJfbUnload(){
|
|
1070
|
+
if(this.timer) clearInterval(this.timer);
|
|
955
1071
|
}
|
|
956
1072
|
}
|
|
957
1073
|
}
|
|
@@ -965,6 +1081,23 @@
|
|
|
965
1081
|
position: relative;
|
|
966
1082
|
z-index: 110;
|
|
967
1083
|
&__body {
|
|
1084
|
+
.vip_list_wrap{
|
|
1085
|
+
margin: 0 24rpx 24rpx;
|
|
1086
|
+
border-radius: 20rpx;
|
|
1087
|
+
overflow: hidden;
|
|
1088
|
+
}
|
|
1089
|
+
.vip_pay_info{
|
|
1090
|
+
margin: 0 24rpx 24rpx;
|
|
1091
|
+
.good_vip_price{
|
|
1092
|
+
background-color: #FFFFFF;
|
|
1093
|
+
border-radius: 20rpx;
|
|
1094
|
+
}
|
|
1095
|
+
.vip_remain{
|
|
1096
|
+
background-color: #FFFFFF;
|
|
1097
|
+
border-radius: 20rpx;
|
|
1098
|
+
margin-top: 24rpx;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
968
1101
|
&-title {
|
|
969
1102
|
display: flex;
|
|
970
1103
|
justify-content: flex-start;
|
|
@@ -1049,6 +1182,7 @@
|
|
|
1049
1182
|
display: flex;
|
|
1050
1183
|
flex-direction: column;
|
|
1051
1184
|
justify-content: space-around;
|
|
1185
|
+
align-items: flex-start;
|
|
1052
1186
|
height: unit(300, rpx);
|
|
1053
1187
|
margin-left: unit(40, rpx);
|
|
1054
1188
|
|
|
@@ -1098,7 +1232,7 @@
|
|
|
1098
1232
|
border-top: unit(2, rpx) solid #F6F6F6;
|
|
1099
1233
|
display: flex;
|
|
1100
1234
|
justify-content: space-between;
|
|
1101
|
-
align-items:
|
|
1235
|
+
align-items: flex-start;
|
|
1102
1236
|
font-size: unit(24, rpx);
|
|
1103
1237
|
margin-top: unit(24, rpx);
|
|
1104
1238
|
|
|
@@ -1124,10 +1258,13 @@
|
|
|
1124
1258
|
}
|
|
1125
1259
|
|
|
1126
1260
|
&-right {
|
|
1261
|
+
&>view:first-child{
|
|
1262
|
+
margin-right: 10rpx;
|
|
1263
|
+
}
|
|
1127
1264
|
color: #999999;
|
|
1128
1265
|
flex: 1;
|
|
1129
1266
|
display: flex;
|
|
1130
|
-
align-items:
|
|
1267
|
+
align-items: baseline;
|
|
1131
1268
|
justify-content: flex-end;
|
|
1132
1269
|
margin-top: unit(20, rpx);
|
|
1133
1270
|
}
|
|
@@ -16,7 +16,19 @@ module.exports = {
|
|
|
16
16
|
"seat_name": "[\"5\排4\列\",\"5\排5\列\"]",
|
|
17
17
|
"remark": "9.6",
|
|
18
18
|
"count_down": "581",
|
|
19
|
-
"request_id": "a069a3183348d7f2"
|
|
19
|
+
"request_id": "a069a3183348d7f2",
|
|
20
|
+
show_prices: [
|
|
21
|
+
{
|
|
22
|
+
"p": 10000,
|
|
23
|
+
"n": "PLUS价",
|
|
24
|
+
"t": "S"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"p": 12000,
|
|
28
|
+
"n": "原价",
|
|
29
|
+
"t": "U"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
20
32
|
},
|
|
21
33
|
movieCardList: {
|
|
22
34
|
"list": [
|
|
@@ -145,4 +157,5 @@ module.exports = {
|
|
|
145
157
|
},
|
|
146
158
|
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"},
|
|
147
159
|
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"},
|
|
160
|
+
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"},
|
|
148
161
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
<view class="xd-my-list-item"
|
|
3
3
|
:class="'size_'+size"
|
|
4
4
|
:style="{
|
|
5
|
-
|
|
6
|
-
marginTop: showBottom? paddingTB: 0,
|
|
5
|
+
borderBottom: showBottom ? '1px solid #F6F6F6':'none',
|
|
7
6
|
paddingLeft: paddingLR,
|
|
8
7
|
paddingRight: paddingLR,
|
|
9
8
|
paddingTop: paddingTB,
|
|
@@ -160,16 +160,17 @@
|
|
|
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'" class="flex-sub">
|
|
163
|
+
<view v-if="is_not_show_price !== 'Y'" style="flex: 2;" 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 :isShowIcon="false" :isPlus="is_plus_site" :showPrice="item.show_prices" range="起" type="schedule"></CusPrice>
|
|
171
172
|
</view>
|
|
172
|
-
<view class="_sub"> <xd-coins class="xd-coins" :size="0.2"></xd-coins> 起</view>
|
|
173
|
+
<!-- <view class="_sub"> <xd-coins class="xd-coins" :size="0.2"></xd-coins> 起</view> -->
|
|
173
174
|
</view>
|
|
174
175
|
<xd-button type="primary" size="small" @click="toChooseSeat(item.schedule_id)">购买</xd-button>
|
|
175
176
|
</view>
|
|
@@ -193,6 +194,7 @@
|
|
|
193
194
|
import extsMixins from "@/mixins/extsMixins"
|
|
194
195
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
195
196
|
import XdTab from "@/components/XdTab/XdTab";
|
|
197
|
+
import CusPrice from '@/components/CusPrice/CusPrice'
|
|
196
198
|
//#ifdef H5
|
|
197
199
|
import ZSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue"
|
|
198
200
|
import ZSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue"
|
|
@@ -210,6 +212,7 @@
|
|
|
210
212
|
XdCoins,
|
|
211
213
|
XdNoticeBar,
|
|
212
214
|
XdUnit,
|
|
215
|
+
CusPrice,
|
|
213
216
|
//#ifdef H5
|
|
214
217
|
ZSwiper,
|
|
215
218
|
ZSwiperItem
|
|
@@ -245,12 +248,16 @@
|
|
|
245
248
|
//面板值
|
|
246
249
|
seatChoosePath: "",
|
|
247
250
|
un_show_seconds: "", //排期超时时间(秒)
|
|
248
|
-
isMapNav:'Y'
|
|
251
|
+
isMapNav:'Y',
|
|
252
|
+
is_plus_site: false,
|
|
253
|
+
is_vip: false,
|
|
254
|
+
|
|
249
255
|
}
|
|
250
256
|
},
|
|
251
257
|
computed: {
|
|
252
258
|
...mapState({
|
|
253
259
|
siteMap: state => state.siteInfo.mapping,
|
|
260
|
+
siteInfo: state => state.siteInfo,
|
|
254
261
|
}),
|
|
255
262
|
film_id(){
|
|
256
263
|
if(!this.filmInfo) return "";
|
|
@@ -293,6 +300,8 @@
|
|
|
293
300
|
},
|
|
294
301
|
created() {
|
|
295
302
|
// console.log("layoutInfo.", this.layoutInfo, this.siteMap)
|
|
303
|
+
this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
|
|
304
|
+
this.is_vip = this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP'
|
|
296
305
|
this.init(this.container);
|
|
297
306
|
this.noticeBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
298
307
|
},
|
|
@@ -131,6 +131,18 @@ module.exports = {
|
|
|
131
131
|
"close_time": "1688797020",
|
|
132
132
|
"max_can_buy": "4",
|
|
133
133
|
"purchase_price": 3060,
|
|
134
|
+
show_prices: [
|
|
135
|
+
{
|
|
136
|
+
"p": 3060,
|
|
137
|
+
"n": "PLUS价",
|
|
138
|
+
"t": "S"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"p": 4500,
|
|
142
|
+
"n": "原价",
|
|
143
|
+
"t": "U"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
134
146
|
"channel_code": "xicheng",
|
|
135
147
|
"film_id": "200",
|
|
136
148
|
"cinema_id": "7",
|
|
@@ -153,6 +165,18 @@ module.exports = {
|
|
|
153
165
|
"close_time": "1688807220",
|
|
154
166
|
"max_can_buy": "4",
|
|
155
167
|
"purchase_price": 3400,
|
|
168
|
+
show_prices: [
|
|
169
|
+
{
|
|
170
|
+
"p": 3400,
|
|
171
|
+
"n": "PLUS价",
|
|
172
|
+
"t": "S"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"p": 5000,
|
|
176
|
+
"n": "原价",
|
|
177
|
+
"t": "U"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
156
180
|
"channel_code": "xicheng",
|
|
157
181
|
"film_id": "200",
|
|
158
182
|
"cinema_id": "7",
|
|
@@ -175,6 +199,18 @@ module.exports = {
|
|
|
175
199
|
"close_time": "1689920220",
|
|
176
200
|
"max_can_buy": "4",
|
|
177
201
|
"purchase_price": 800,
|
|
202
|
+
show_prices: [
|
|
203
|
+
{
|
|
204
|
+
"p": 800,
|
|
205
|
+
"n": "PLUS价",
|
|
206
|
+
"t": "S"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"p": 1300,
|
|
210
|
+
"n": "原价",
|
|
211
|
+
"t": "U"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
178
214
|
"channel_code": "jufubao",
|
|
179
215
|
"film_id": "200",
|
|
180
216
|
"cinema_id": "7",
|
|
@@ -197,6 +233,18 @@ module.exports = {
|
|
|
197
233
|
"close_time": "1689930420",
|
|
198
234
|
"max_can_buy": "4",
|
|
199
235
|
"purchase_price": 3800,
|
|
236
|
+
show_prices: [
|
|
237
|
+
{
|
|
238
|
+
"p": 3800,
|
|
239
|
+
"n": "PLUS价",
|
|
240
|
+
"t": "S"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"p": 7300,
|
|
244
|
+
"n": "原价",
|
|
245
|
+
"t": "U"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
200
248
|
"channel_code": "jufubao",
|
|
201
249
|
"film_id": "200",
|
|
202
250
|
"cinema_id": "7",
|
|
@@ -219,6 +267,18 @@ module.exports = {
|
|
|
219
267
|
"close_time": "1689933420",
|
|
220
268
|
"max_can_buy": "4",
|
|
221
269
|
"purchase_price": 3800,
|
|
270
|
+
show_prices: [
|
|
271
|
+
{
|
|
272
|
+
"p": 3800,
|
|
273
|
+
"n": "PLUS价",
|
|
274
|
+
"t": "S"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"p": 7300,
|
|
278
|
+
"n": "原价",
|
|
279
|
+
"t": "U"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
222
282
|
"channel_code": "jufubao",
|
|
223
283
|
"film_id": "200",
|
|
224
284
|
"cinema_id": "7",
|
|
@@ -241,6 +301,18 @@ module.exports = {
|
|
|
241
301
|
"close_time": "1689940620",
|
|
242
302
|
"max_can_buy": "4",
|
|
243
303
|
"purchase_price": 3800,
|
|
304
|
+
show_prices: [
|
|
305
|
+
{
|
|
306
|
+
"p": 3800,
|
|
307
|
+
"n": "PLUS价",
|
|
308
|
+
"t": "S"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"p": 7300,
|
|
312
|
+
"n": "原价",
|
|
313
|
+
"t": "U"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
244
316
|
"channel_code": "jufubao",
|
|
245
317
|
"film_id": "200",
|
|
246
318
|
"cinema_id": "7",
|
|
@@ -267,6 +339,18 @@ module.exports = {
|
|
|
267
339
|
"close_time": "1690006620",
|
|
268
340
|
"max_can_buy": "4",
|
|
269
341
|
"purchase_price": 800,
|
|
342
|
+
show_prices: [
|
|
343
|
+
{
|
|
344
|
+
"p": 800,
|
|
345
|
+
"n": "PLUS价",
|
|
346
|
+
"t": "S"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"p": 1300,
|
|
350
|
+
"n": "原价",
|
|
351
|
+
"t": "U"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
270
354
|
"channel_code": "jufubao",
|
|
271
355
|
"film_id": "200",
|
|
272
356
|
"cinema_id": "7",
|
|
@@ -289,6 +373,18 @@ module.exports = {
|
|
|
289
373
|
"close_time": "1688810220",
|
|
290
374
|
"max_can_buy": "4",
|
|
291
375
|
"purchase_price": 3400,
|
|
376
|
+
show_prices: [
|
|
377
|
+
{
|
|
378
|
+
"p": 3400,
|
|
379
|
+
"n": "PLUS价",
|
|
380
|
+
"t": "S"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"p": 5000,
|
|
384
|
+
"n": "原价",
|
|
385
|
+
"t": "U"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
292
388
|
"channel_code": "xicheng",
|
|
293
389
|
"film_id": "200",
|
|
294
390
|
"cinema_id": "7",
|
|
@@ -311,6 +407,18 @@ module.exports = {
|
|
|
311
407
|
"close_time": "1688817420",
|
|
312
408
|
"max_can_buy": "4",
|
|
313
409
|
"purchase_price": 3400,
|
|
410
|
+
show_prices: [
|
|
411
|
+
{
|
|
412
|
+
"p": 3400,
|
|
413
|
+
"n": "PLUS价",
|
|
414
|
+
"t": "S"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"p": 5000,
|
|
418
|
+
"n": "原价",
|
|
419
|
+
"t": "U"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
314
422
|
"channel_code": "xicheng",
|
|
315
423
|
"film_id": "200",
|
|
316
424
|
"cinema_id": "7",
|
|
@@ -333,6 +441,18 @@ module.exports = {
|
|
|
333
441
|
"close_time": "1688820420",
|
|
334
442
|
"max_can_buy": "4",
|
|
335
443
|
"purchase_price": 3400,
|
|
444
|
+
show_prices: [
|
|
445
|
+
{
|
|
446
|
+
"p": 3400,
|
|
447
|
+
"n": "PLUS价",
|
|
448
|
+
"t": "S"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"p": 5000,
|
|
452
|
+
"n": "原价",
|
|
453
|
+
"t": "U"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
336
456
|
"channel_code": "xicheng",
|
|
337
457
|
"film_id": "200",
|
|
338
458
|
"cinema_id": "7",
|
|
@@ -355,6 +475,18 @@ module.exports = {
|
|
|
355
475
|
"close_time": "1688830020",
|
|
356
476
|
"max_can_buy": "4",
|
|
357
477
|
"purchase_price": 3230,
|
|
478
|
+
show_prices: [
|
|
479
|
+
{
|
|
480
|
+
"p": 3230,
|
|
481
|
+
"n": "PLUS价",
|
|
482
|
+
"t": "S"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"p": 4800,
|
|
486
|
+
"n": "原价",
|
|
487
|
+
"t": "U"
|
|
488
|
+
}
|
|
489
|
+
],
|
|
358
490
|
"channel_code": "xicheng",
|
|
359
491
|
"film_id": "200",
|
|
360
492
|
"cinema_id": "7",
|
|
@@ -377,6 +509,18 @@ module.exports = {
|
|
|
377
509
|
"close_time": "1690039620",
|
|
378
510
|
"max_can_buy": "4",
|
|
379
511
|
"purchase_price": 4000,
|
|
512
|
+
show_prices: [
|
|
513
|
+
{
|
|
514
|
+
"p": 4000,
|
|
515
|
+
"n": "PLUS价",
|
|
516
|
+
"t": "S"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"p": 7500,
|
|
520
|
+
"n": "原价",
|
|
521
|
+
"t": "U"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
380
524
|
"channel_code": "jufubao",
|
|
381
525
|
"film_id": "200",
|
|
382
526
|
"cinema_id": "7",
|
|
@@ -403,6 +547,18 @@ module.exports = {
|
|
|
403
547
|
"close_time": "1688906820",
|
|
404
548
|
"max_can_buy": "4",
|
|
405
549
|
"purchase_price": 3800,
|
|
550
|
+
show_prices: [
|
|
551
|
+
{
|
|
552
|
+
"p": 3800,
|
|
553
|
+
"n": "PLUS价",
|
|
554
|
+
"t": "S"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"p": 7300,
|
|
558
|
+
"n": "原价",
|
|
559
|
+
"t": "U"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
406
562
|
"channel_code": "jufubao",
|
|
407
563
|
"film_id": "200",
|
|
408
564
|
"cinema_id": "7",
|
|
@@ -425,6 +581,18 @@ module.exports = {
|
|
|
425
581
|
"close_time": "1688916420",
|
|
426
582
|
"max_can_buy": "4",
|
|
427
583
|
"purchase_price": 4000,
|
|
584
|
+
show_prices: [
|
|
585
|
+
{
|
|
586
|
+
"p": 4000,
|
|
587
|
+
"n": "PLUS价",
|
|
588
|
+
"t": "S"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"p": 7500,
|
|
592
|
+
"n": "原价",
|
|
593
|
+
"t": "U"
|
|
594
|
+
}
|
|
595
|
+
],
|
|
428
596
|
"channel_code": "jufubao",
|
|
429
597
|
"film_id": "200",
|
|
430
598
|
"cinema_id": "7",
|
|
@@ -451,6 +619,18 @@ module.exports = {
|
|
|
451
619
|
"close_time": "1688969820",
|
|
452
620
|
"max_can_buy": "4",
|
|
453
621
|
"purchase_price": 800,
|
|
622
|
+
show_prices: [
|
|
623
|
+
{
|
|
624
|
+
"p": 800,
|
|
625
|
+
"n": "PLUS价",
|
|
626
|
+
"t": "S"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"p": 1300,
|
|
630
|
+
"n": "原价",
|
|
631
|
+
"t": "U"
|
|
632
|
+
}
|
|
633
|
+
],
|
|
454
634
|
"channel_code": "jufubao",
|
|
455
635
|
"film_id": "200",
|
|
456
636
|
"cinema_id": "7",
|