jufubao-movie 1.0.60 → 1.0.61-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
CHANGED
|
@@ -359,6 +359,7 @@
|
|
|
359
359
|
is_use_jfb_pay: "", //是否使用聚福宝支付
|
|
360
360
|
res_total_price: 0,
|
|
361
361
|
origin_total_price: 0,
|
|
362
|
+
hasPreNotice: false,
|
|
362
363
|
|
|
363
364
|
is_show_vip_card_list: "",
|
|
364
365
|
vipCardList: [],
|
|
@@ -755,76 +756,87 @@
|
|
|
755
756
|
})
|
|
756
757
|
console.log(options, '999999')
|
|
757
758
|
},
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
759
|
+
handlePreNotice(){
|
|
760
|
+
return new Promise((resolve, reject) => {
|
|
761
|
+
this.$xdConfirm({
|
|
762
|
+
title: '在线订座提醒',
|
|
763
|
+
showClose: true,
|
|
764
|
+
confirmText: '我知道了',
|
|
765
|
+
cancel: false,
|
|
766
|
+
isHtml: true,
|
|
767
|
+
isTitle: true,
|
|
768
|
+
styles: this.styles,
|
|
769
|
+
content: '<span style="color:red;font-size: 16px">提示:影票一旦售出,将不支持退换!购票成功不再发送短信通知,部分影院不提供3D眼镜,儿童身高免购票以影院实际情况为准。</span>',
|
|
770
|
+
success: async (res) => {
|
|
771
|
+
this.hasPreNotice = true;
|
|
772
|
+
resolve(res)
|
|
773
|
+
},
|
|
774
|
+
fail: (res) => {
|
|
775
|
+
reject(res)
|
|
776
|
+
}
|
|
777
|
+
})
|
|
778
|
+
})
|
|
779
|
+
},
|
|
780
|
+
async handlePayBtnClick(){
|
|
781
|
+
if(!this.hasPreNotice){
|
|
782
|
+
await this.handlePreNotice();
|
|
783
|
+
}
|
|
784
|
+
if(this.is_use_jfb_pay === "Y" && this.is_first_use_card === "Y"){
|
|
785
|
+
/**
|
|
786
|
+
* 有任一新版支付都用新版支付, 仅卡支付也用新版选卡支付
|
|
787
|
+
*/
|
|
788
|
+
if(this.payWallet || this.payCard || this.payCoupon){ //已选卡
|
|
789
|
+
let selected_card_list = [];
|
|
790
|
+
|
|
791
|
+
if(this.choseCard) {
|
|
792
|
+
selected_card_list = this.choseCard ? this.choseCard.selectedCardList : [];
|
|
793
|
+
} else if(this.choseCoupon) {
|
|
794
|
+
selected_card_list = this.choseCoupon ? this.choseCoupon.selectedCardList : [];
|
|
795
|
+
}
|
|
781
796
|
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
}
|
|
791
|
-
// this.showCardPayChose = true;
|
|
792
|
-
return false;
|
|
793
|
-
}else{
|
|
794
|
-
//支持补差, 提示是否使用补差
|
|
795
|
-
if(this.payThird){
|
|
796
|
-
if(this.skipTip === 'N'){
|
|
797
|
-
await this.handleConfirmAllWxPay();
|
|
798
|
-
}
|
|
799
|
-
}else{
|
|
800
|
-
//不支持补差,仅提示
|
|
801
|
-
return this.$xdAlert({content: "请选择兑换方式"})
|
|
802
|
-
}
|
|
803
|
-
}
|
|
797
|
+
let selected_wallet_list = this.choseWallet ? this.choseWallet.selectedWalletList : []
|
|
798
|
+
//票券跟钱包都未选择,给用户提示
|
|
799
|
+
if(selected_card_list.length === 0 && selected_wallet_list.length === 0){
|
|
800
|
+
if(!this.hasAlertCardChose){
|
|
801
|
+
if(this.payCard){
|
|
802
|
+
this.showCardPayChose = true;
|
|
803
|
+
}else{
|
|
804
|
+
this.showWalletChose = true;
|
|
804
805
|
}
|
|
805
|
-
this.
|
|
806
|
+
// this.showCardPayChose = true;
|
|
807
|
+
return false;
|
|
806
808
|
}else{
|
|
807
|
-
|
|
808
|
-
|
|
809
|
+
//支持补差, 提示是否使用补差
|
|
810
|
+
if(this.payThird){
|
|
811
|
+
if(this.skipTip === 'N'){
|
|
812
|
+
await this.handleConfirmAllWxPay();
|
|
813
|
+
}
|
|
809
814
|
}else{
|
|
810
|
-
|
|
815
|
+
//不支持补差,仅提示
|
|
816
|
+
return this.$xdAlert({content: "请选择兑换方式"})
|
|
811
817
|
}
|
|
812
818
|
}
|
|
819
|
+
}
|
|
820
|
+
this.useTickAndWalletPay(selected_card_list, selected_wallet_list);
|
|
821
|
+
}else{
|
|
822
|
+
if(this.skipToPay === 'N'){
|
|
823
|
+
this.showCardPay = true;
|
|
813
824
|
}else{
|
|
814
|
-
this.
|
|
815
|
-
need_pay_price: this.res_total_price,
|
|
816
|
-
total_price: this.res_total_price,
|
|
817
|
-
selected_card_list_json: "[]"
|
|
818
|
-
}, (res1) => {
|
|
819
|
-
this.handleToPay(res1);
|
|
820
|
-
// this.$xdUniHelper.redirectTo({
|
|
821
|
-
// url: this.payPath + `?order_id=${res1['pay_order_id']}&main_order_id=${res1['order_id']}`
|
|
822
|
-
// }, false, true)
|
|
823
|
-
})
|
|
825
|
+
this.useTickAndWalletPay([], []);
|
|
824
826
|
}
|
|
825
827
|
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
+
}else{
|
|
829
|
+
this.createSettleOrder({
|
|
830
|
+
need_pay_price: this.res_total_price,
|
|
831
|
+
total_price: this.res_total_price,
|
|
832
|
+
selected_card_list_json: "[]"
|
|
833
|
+
}, (res1) => {
|
|
834
|
+
this.handleToPay(res1);
|
|
835
|
+
// this.$xdUniHelper.redirectTo({
|
|
836
|
+
// url: this.payPath + `?order_id=${res1['pay_order_id']}&main_order_id=${res1['order_id']}`
|
|
837
|
+
// }, false, true)
|
|
838
|
+
})
|
|
839
|
+
}
|
|
828
840
|
},
|
|
829
841
|
handleConfirmAllWxPay(){
|
|
830
842
|
return new Promise((resolve, reject) => {
|