jufubao-movie 1.0.54 → 1.0.55-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 +12 -0
- package/src/components/JfbMovieConfirm/JfbMovieConfirm.vue +97 -8
- package/src/components/JfbMovieConfirm/Mock.js +1 -0
- package/src/components/JfbMovieConfirm/XdListItem.vue +1 -2
- package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +7 -4
package/package.json
CHANGED
|
@@ -156,5 +156,17 @@ 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
|
|
159
171
|
}
|
|
160
172
|
];
|
|
@@ -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="false" :showPrice="order_info.show_prices" type="order" ></CusPrice>
|
|
105
105
|
</template>
|
|
106
106
|
|
|
107
107
|
</view>
|
|
@@ -132,6 +132,32 @@
|
|
|
132
132
|
<xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
|
|
133
133
|
</view>
|
|
134
134
|
</view>
|
|
135
|
+
|
|
136
|
+
<view 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 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>
|
|
135
161
|
|
|
136
162
|
<view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
|
|
137
163
|
<template v-for="item in otherPayMethod">
|
|
@@ -287,6 +313,8 @@
|
|
|
287
313
|
import extsMixins from "@/mixins/extsMixins"
|
|
288
314
|
import {getContainerPropsValue, baseJsDateToTime,getParentsStyle} from "@/utils/xd.base";
|
|
289
315
|
import {mapState} from 'vuex';
|
|
316
|
+
import CusPrice from '@/components/CusPrice/CusPrice'
|
|
317
|
+
import CusVipList from "@/components/CusVipList/CusVipList"
|
|
290
318
|
|
|
291
319
|
// #ifdef H5
|
|
292
320
|
import cookie from "@/common/cookie";
|
|
@@ -305,7 +333,9 @@
|
|
|
305
333
|
XdListItem,
|
|
306
334
|
XdCardPayChose,
|
|
307
335
|
XdWalletChose,
|
|
308
|
-
CusCouponChose
|
|
336
|
+
CusCouponChose,
|
|
337
|
+
CusPrice,
|
|
338
|
+
CusVipList
|
|
309
339
|
},
|
|
310
340
|
mixins: [componentsMixins,extsMixins,JfbMovieConfirmMixin],
|
|
311
341
|
data() {
|
|
@@ -328,6 +358,12 @@
|
|
|
328
358
|
is_first_use_card: "", //是否优先使用卡券
|
|
329
359
|
is_use_jfb_pay: "", //是否使用聚福宝支付
|
|
330
360
|
res_total_price: 0,
|
|
361
|
+
origin_total_price: 0,
|
|
362
|
+
|
|
363
|
+
is_show_vip_card_list: "",
|
|
364
|
+
vipCardList: [],
|
|
365
|
+
vip_card_id: 0,
|
|
366
|
+
plus_saving_money: 0,
|
|
331
367
|
|
|
332
368
|
cardShow: false,
|
|
333
369
|
|
|
@@ -461,10 +497,14 @@
|
|
|
461
497
|
this.tempOrderId = options.order_id;
|
|
462
498
|
this.validImageAPIUrl = this.brandInfo['api_host'] + '/common/v1/valid_code/image/show'
|
|
463
499
|
console.log(this, 'confirm this');
|
|
500
|
+
this.p_getConfirmOrder();
|
|
501
|
+
},
|
|
502
|
+
p_getConfirmOrder(){
|
|
464
503
|
jfbRootExec("movieConfirmOrder", {
|
|
465
504
|
vm: this,
|
|
466
505
|
data: {
|
|
467
506
|
temp_order_id: this.tempOrderId,
|
|
507
|
+
vip_card_id: this.vip_card_id
|
|
468
508
|
}
|
|
469
509
|
})
|
|
470
510
|
.then(res => {
|
|
@@ -474,6 +514,9 @@
|
|
|
474
514
|
this.is_first_use_card = res.is_first_use_card;
|
|
475
515
|
this.is_use_jfb_pay = res.is_use_jfb_pay;
|
|
476
516
|
this.res_total_price = res.total_price;
|
|
517
|
+
this.is_show_vip_card_list = res.is_show_vip_card_list;
|
|
518
|
+
this.plus_saving_money = res.plus_saving_money;
|
|
519
|
+
this.origin_total_price = res.origin_total_price;
|
|
477
520
|
|
|
478
521
|
res.show_time = baseJsDateToTime(res.show_time)
|
|
479
522
|
res.seat_number = JSON.parse(res.seat_name).length;
|
|
@@ -501,7 +544,17 @@
|
|
|
501
544
|
res.pay_methods.push('coupon')
|
|
502
545
|
this.p_getPayMethod(res.pay_methods);
|
|
503
546
|
}
|
|
504
|
-
|
|
547
|
+
if(res.vip_card_item){
|
|
548
|
+
if(res.vip_card_item.is_can_buy === 'Y'){
|
|
549
|
+
this.vip_card_id = res.vip_card_item.vip_card_id;
|
|
550
|
+
}else if(res.vip_card_item.is_can_buy === 'N'){
|
|
551
|
+
this.vip_card_id = '';
|
|
552
|
+
this.$xdAlert({content: res.vip_card_item.error_message});
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
if(this.is_show_vip_card_list === 'Y' && !this.vipCardList.length){
|
|
556
|
+
this.p_getVipList();
|
|
557
|
+
}
|
|
505
558
|
})
|
|
506
559
|
.catch(err => {
|
|
507
560
|
this.$xdHideLoading();
|
|
@@ -510,6 +563,10 @@
|
|
|
510
563
|
// }
|
|
511
564
|
});
|
|
512
565
|
},
|
|
566
|
+
handleChoseVipCard(vip_card_id){
|
|
567
|
+
this.vip_card_id = vip_card_id;
|
|
568
|
+
this.p_getConfirmOrder();
|
|
569
|
+
},
|
|
513
570
|
//only选择卡片
|
|
514
571
|
toChoseCard(){
|
|
515
572
|
this.showCardPayChose = true;
|
|
@@ -524,6 +581,16 @@
|
|
|
524
581
|
toChoseWallet(){
|
|
525
582
|
this.showWalletChose = true;
|
|
526
583
|
},
|
|
584
|
+
p_getVipList(){
|
|
585
|
+
jfbRootExec("getVipList", {
|
|
586
|
+
vm: this,
|
|
587
|
+
data: {
|
|
588
|
+
namespace: 'movie',
|
|
589
|
+
}
|
|
590
|
+
}).then(res => {
|
|
591
|
+
this.vipCardList = res.list;
|
|
592
|
+
})
|
|
593
|
+
},
|
|
527
594
|
handleWalletChose({walletPayPrice, needPayPrice, selectedWalletList}){
|
|
528
595
|
this.choseWallet = {
|
|
529
596
|
walletPayPrice,
|
|
@@ -758,6 +825,7 @@
|
|
|
758
825
|
...options,
|
|
759
826
|
notify_provider_id: this.projectAttr.notify_provider_id,
|
|
760
827
|
buy_product: {cart_order_id: this.tempOrderId},
|
|
828
|
+
vip_card_id: this.vip_card_id
|
|
761
829
|
}
|
|
762
830
|
}).then(res => {
|
|
763
831
|
if(res.pay_url){
|
|
@@ -969,6 +1037,23 @@
|
|
|
969
1037
|
position: relative;
|
|
970
1038
|
z-index: 110;
|
|
971
1039
|
&__body {
|
|
1040
|
+
.vip_list_wrap{
|
|
1041
|
+
margin: 0 24rpx 24rpx;
|
|
1042
|
+
border-radius: 20rpx;
|
|
1043
|
+
overflow: hidden;
|
|
1044
|
+
}
|
|
1045
|
+
.vip_pay_info{
|
|
1046
|
+
margin: 0 24rpx 24rpx;
|
|
1047
|
+
.good_vip_price{
|
|
1048
|
+
background-color: #FFFFFF;
|
|
1049
|
+
border-radius: 20rpx;
|
|
1050
|
+
}
|
|
1051
|
+
.vip_remain{
|
|
1052
|
+
background-color: #FFFFFF;
|
|
1053
|
+
border-radius: 20rpx;
|
|
1054
|
+
margin-top: 24rpx;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
972
1057
|
&-title {
|
|
973
1058
|
display: flex;
|
|
974
1059
|
justify-content: flex-start;
|
|
@@ -1053,6 +1138,7 @@
|
|
|
1053
1138
|
display: flex;
|
|
1054
1139
|
flex-direction: column;
|
|
1055
1140
|
justify-content: space-around;
|
|
1141
|
+
align-items: flex-start;
|
|
1056
1142
|
height: unit(300, rpx);
|
|
1057
1143
|
margin-left: unit(40, rpx);
|
|
1058
1144
|
|
|
@@ -1102,7 +1188,7 @@
|
|
|
1102
1188
|
border-top: unit(2, rpx) solid #F6F6F6;
|
|
1103
1189
|
display: flex;
|
|
1104
1190
|
justify-content: space-between;
|
|
1105
|
-
align-items:
|
|
1191
|
+
align-items: flex-start;
|
|
1106
1192
|
font-size: unit(24, rpx);
|
|
1107
1193
|
margin-top: unit(24, rpx);
|
|
1108
1194
|
|
|
@@ -1128,10 +1214,13 @@
|
|
|
1128
1214
|
}
|
|
1129
1215
|
|
|
1130
1216
|
&-right {
|
|
1217
|
+
&>view:first-child{
|
|
1218
|
+
margin-right: 10rpx;
|
|
1219
|
+
}
|
|
1131
1220
|
color: #999999;
|
|
1132
1221
|
flex: 1;
|
|
1133
1222
|
display: flex;
|
|
1134
|
-
align-items:
|
|
1223
|
+
align-items: baseline;
|
|
1135
1224
|
justify-content: flex-end;
|
|
1136
1225
|
margin-top: unit(20, rpx);
|
|
1137
1226
|
}
|
|
@@ -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 :isVip="true" 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
|