jufubao-movie 1.0.58 → 1.0.60

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.58",
3
+ "version": "1.0.60",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -16,6 +16,17 @@ export default {
16
16
  {label: '否', value: 'N'},
17
17
  ]
18
18
  },
19
+ {
20
+ label: "支付时是否跳过补差提示:",
21
+ ele: 'xd-radio',
22
+ valueKey: "skipTip",
23
+ value: data['skipTip'] || 'N',
24
+ groupKey:'content',
25
+ list: [
26
+ {label: '是', value: 'Y'},
27
+ {label: '否', value: 'N'},
28
+ ],
29
+ },
19
30
  {
20
31
  label: '去支付路径:',
21
32
  ele: 'xd-select-pages-path',
@@ -701,9 +701,11 @@
701
701
  }
702
702
  }).then(res => {
703
703
  this.$xdHideLoading()
704
- uni.showToast({
705
- title: "添加成功",
706
- icon: "none"
704
+ this.$xdAlert({
705
+ content: '添加成功',
706
+ time: 2500,
707
+ isClose: false,
708
+ zIndex: 5000
707
709
  });
708
710
  successCb(res);
709
711
  }).catch(err => {
@@ -791,7 +793,9 @@
791
793
  }else{
792
794
  //支持补差, 提示是否使用补差
793
795
  if(this.payThird){
794
- await this.handleConfirmAllWxPay();
796
+ if(this.skipTip === 'N'){
797
+ await this.handleConfirmAllWxPay();
798
+ }
795
799
  }else{
796
800
  //不支持补差,仅提示
797
801
  return this.$xdAlert({content: "请选择兑换方式"})
@@ -824,11 +828,13 @@
824
828
  },
825
829
  handleConfirmAllWxPay(){
826
830
  return new Promise((resolve, reject) => {
827
- uni.showModal({
831
+ this.$xdConfirm({
828
832
  title: '提示',
829
- content: `您当前未使用票券,您将全部用微信支付`,
830
- confirmText: "我知道了",
831
- success: function (res) {
833
+ content: '您当前未使用票券,您将全部用微信支付',
834
+ confirmText: '我知道了',
835
+ width: '85%',
836
+ isTitle: true,
837
+ success: (res) => {
832
838
  if (res.confirm) {
833
839
  resolve();
834
840
  } else if (res.cancel) {
@@ -944,6 +950,7 @@
944
950
  init(container) {
945
951
  this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
946
952
  this.skipToPay = getContainerPropsValue(container, 'content.skipToPay', 'N');
953
+ this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
947
954
  this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ''}).value;
948
955
  this.paySuccessPath = getContainerPropsValue(container, 'content.paySuccessPath', {value: "/pages/order/success"}).value;
949
956
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
@@ -1008,27 +1015,29 @@
1008
1015
 
1009
1016
  addSettleCoupon(options, successCb, errCb) {
1010
1017
 
1011
- this.$xdShowLoading({})
1012
- jfbRootExec('movieAddCard', {
1013
- vm: this,
1014
- data: {
1015
- ...options,
1016
- cart_order_id: this.tempOrderId,
1017
- show_type: 'coupon'
1018
- }
1019
- }).then(res => {
1020
- this.$xdHideLoading();
1021
- uni.showToast({
1022
- title: "添加成功",
1023
- icon: "none"
1024
- });
1025
- successCb(res);
1026
- }).catch(err => {
1027
- console.log(err, 'err')
1028
- this.$xdHideLoading();
1029
- if(errCb) errCb();
1030
- this.$xdLog.catch(err);
1031
- })
1018
+ this.$xdShowLoading({})
1019
+ jfbRootExec('movieAddCard', {
1020
+ vm: this,
1021
+ data: {
1022
+ ...options,
1023
+ cart_order_id: this.tempOrderId,
1024
+ show_type: 'coupon'
1025
+ }
1026
+ }).then(res => {
1027
+ this.$xdHideLoading();
1028
+ this.$xdAlert({
1029
+ content: '添加成功',
1030
+ time: 2500,
1031
+ isClose: false,
1032
+ zIndex: 5000
1033
+ });
1034
+ successCb(res);
1035
+ }).catch(err => {
1036
+ console.log(err, 'err')
1037
+ this.$xdHideLoading();
1038
+ if(errCb) errCb();
1039
+ this.$xdLog.catch(err);
1040
+ })
1032
1041
  },
1033
1042
  getSettleListCoupons(cb) {
1034
1043
 
@@ -851,11 +851,13 @@
851
851
  if (!message) {
852
852
  message = `每次最多可以购买:${this.seatMaxBuyNumber}个座位。`;
853
853
  }
854
- uni.showModal({
854
+ this.$xdConfirm({
855
855
  title: '提示',
856
856
  content: message,
857
- showCancel: false,
858
- success: function (res) {
857
+ cancel: false,
858
+ width: '85%',
859
+ isTitle: true,
860
+ success: (res) => {
859
861
  if (typeof callback === 'function') {
860
862
  callback()
861
863
  }
@@ -411,10 +411,12 @@
411
411
  this.loadingFilm = false;
412
412
  const { cinema_data, film_data, pop_notice,is_pop} = res;
413
413
  if(!film_data.length){
414
- uni.showToast({
415
- title: "暂无影片排期数据",
416
- icon: "error"
417
- })
414
+ this.$xdAlert({
415
+ content: '暂无影片排期数据',
416
+ time: 2500,
417
+ isClose: false,
418
+ zIndex: 5000
419
+ });
418
420
  }
419
421
  this.cinemaInfo = cinema_data;
420
422
  this.filmList = film_data;