jufubao-movie 1.0.56-beta4 → 1.0.56-beta6

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.56-beta4",
3
+ "version": "1.0.56-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -132,7 +132,7 @@
132
132
  <xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
133
133
  </view>
134
134
  </view>
135
-
135
+
136
136
  <view v-if="is_show_vip_card_list==='Y'" class="vip_list_wrap">
137
137
  <cus-vip-list :list="vipCardList"
138
138
  :vip_card_id="vip_card_id"
@@ -401,7 +401,7 @@
401
401
  couponUseBtnPadding: {},
402
402
  couponImageUrl: "",
403
403
  is_plus_site: false,
404
-
404
+
405
405
  }
406
406
  },
407
407
  watch: {
@@ -415,7 +415,7 @@
415
415
  brandInfo: state => state.brandInfo,
416
416
  siteInfo: state => state.siteInfo,
417
417
  }),
418
- isShowIcon() {
418
+ isShowIcon() {
419
419
  return this.siteInfo.mapping.is_show_coin_icon==='Y'
420
420
  },
421
421
  bottomFixedStyle(){
@@ -465,6 +465,9 @@
465
465
  return false;
466
466
  }
467
467
  },
468
+ destroyed() {
469
+ if(this.timer) clearInterval(this.timer);
470
+ },
468
471
  created() {
469
472
  this.init(this.container);
470
473
  this.xnamespace =this.projectAttr.business_code;
@@ -977,68 +980,71 @@
977
980
 
978
981
  addSettleCoupon(options, successCb, errCb) {
979
982
 
980
- this.$xdShowLoading({})
981
- jfbRootExec('movieAddCard', {
982
- vm: this,
983
- data: {
984
- ...options,
985
- cart_order_id: this.tempOrderId,
986
- show_type: 'coupon'
987
- }
988
- }).then(res => {
989
- this.$xdHideLoading();
990
- uni.showToast({
991
- title: "添加成功",
992
- icon: "none"
993
- });
994
- successCb(res);
995
- }).catch(err => {
996
- console.log(err, 'err')
997
- this.$xdHideLoading();
998
- if(errCb) errCb();
999
- this.$xdLog.catch(err);
1000
- })
983
+ this.$xdShowLoading({})
984
+ jfbRootExec('movieAddCard', {
985
+ vm: this,
986
+ data: {
987
+ ...options,
988
+ cart_order_id: this.tempOrderId,
989
+ show_type: 'coupon'
990
+ }
991
+ }).then(res => {
992
+ this.$xdHideLoading();
993
+ uni.showToast({
994
+ title: "添加成功",
995
+ icon: "none"
996
+ });
997
+ successCb(res);
998
+ }).catch(err => {
999
+ console.log(err, 'err')
1000
+ this.$xdHideLoading();
1001
+ if(errCb) errCb();
1002
+ this.$xdLog.catch(err);
1003
+ })
1001
1004
  },
1002
- getSettleListCoupons(cb) {
1005
+ getSettleListCoupons(cb) {
1003
1006
 
1004
- jfbRootExec('movieCardList', {
1005
- vm: this,
1006
- data: {
1007
- show_type: 'coupon'
1008
- }
1009
- }).then(res => {
1010
- cb(res.list)
1011
- this.cardList = res.list
1012
- }).catch(this.$xdLog.catch)
1013
- },
1014
- setSettleSelectCoupon(options, successCb, errCb) {
1015
-
1016
- this.$xdShowLoading({})
1017
- let cart_order_id = this.tempOrderId;
1018
- jfbRootExec('movieSelectCard', {
1019
- vm: this,
1020
- data: {
1021
- cart_order_id: cart_order_id,
1022
- select_content: 1,
1023
- ...options,
1024
- }
1025
- }).then(res => {
1026
- successCb(res)
1027
- this.$xdHideLoading()
1028
- }).catch(err => {
1029
- if(errCb) errCb(err)
1030
- this.$xdHideLoading()
1031
- this.$xdLog.catch(err);
1032
- })
1033
- },
1007
+ jfbRootExec('movieCardList', {
1008
+ vm: this,
1009
+ data: {
1010
+ show_type: 'coupon'
1011
+ }
1012
+ }).then(res => {
1013
+ cb(res.list)
1014
+ this.cardList = res.list
1015
+ }).catch(this.$xdLog.catch)
1016
+ },
1017
+ setSettleSelectCoupon(options, successCb, errCb) {
1018
+
1019
+ this.$xdShowLoading({})
1020
+ let cart_order_id = this.tempOrderId;
1021
+ jfbRootExec('movieSelectCard', {
1022
+ vm: this,
1023
+ data: {
1024
+ cart_order_id: cart_order_id,
1025
+ select_content: 1,
1026
+ ...options,
1027
+ }
1028
+ }).then(res => {
1029
+ successCb(res)
1030
+ this.$xdHideLoading()
1031
+ }).catch(err => {
1032
+ if(errCb) errCb(err)
1033
+ this.$xdHideLoading()
1034
+ this.$xdLog.catch(err);
1035
+ })
1036
+ },
1034
1037
 
1035
1038
  onJfbBack(options) {
1036
1039
  this.$xdUniHelper.navigateBack()
1037
1040
  },
1038
1041
 
1039
1042
  onJfbShow(options) {
1040
- if(this.timer) clearTimeout(this.timer);
1043
+ if(this.timer) clearInterval(this.timer);
1041
1044
  this.onJfbLoad(options)
1045
+ },
1046
+ onJfbUnload(){
1047
+ if(this.timer) clearInterval(this.timer);
1042
1048
  }
1043
1049
  }
1044
1050
  }