jufubao-movie 1.0.59 → 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.59",
3
+ "version": "1.0.60",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -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 => {
@@ -826,11 +828,13 @@
826
828
  },
827
829
  handleConfirmAllWxPay(){
828
830
  return new Promise((resolve, reject) => {
829
- uni.showModal({
831
+ this.$xdConfirm({
830
832
  title: '提示',
831
- content: `您当前未使用票券,您将全部用微信支付`,
832
- confirmText: "我知道了",
833
- success: function (res) {
833
+ content: '您当前未使用票券,您将全部用微信支付',
834
+ confirmText: '我知道了',
835
+ width: '85%',
836
+ isTitle: true,
837
+ success: (res) => {
834
838
  if (res.confirm) {
835
839
  resolve();
836
840
  } else if (res.cancel) {
@@ -1011,27 +1015,29 @@
1011
1015
 
1012
1016
  addSettleCoupon(options, successCb, errCb) {
1013
1017
 
1014
- this.$xdShowLoading({})
1015
- jfbRootExec('movieAddCard', {
1016
- vm: this,
1017
- data: {
1018
- ...options,
1019
- cart_order_id: this.tempOrderId,
1020
- show_type: 'coupon'
1021
- }
1022
- }).then(res => {
1023
- this.$xdHideLoading();
1024
- uni.showToast({
1025
- title: "添加成功",
1026
- icon: "none"
1027
- });
1028
- successCb(res);
1029
- }).catch(err => {
1030
- console.log(err, 'err')
1031
- this.$xdHideLoading();
1032
- if(errCb) errCb();
1033
- this.$xdLog.catch(err);
1034
- })
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
+ })
1035
1041
  },
1036
1042
  getSettleListCoupons(cb) {
1037
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;