gxd-uni-library-editx 1.0.205 → 1.0.207

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": "gxd-uni-library-editx",
3
- "version": "1.0.205",
3
+ "version": "1.0.207",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -522,6 +522,7 @@ export default {
522
522
  //选择卡券
523
523
  handlerTicketSelect(flat, ticket, options){
524
524
  if(this.cardIsDisabled(ticket)) return Promise.reject('卡片禁用');
525
+ let _ticket = this.$xdUniHelper.cloneDeep(ticket);
525
526
 
526
527
  return new Promise((resolve, reject) => {
527
528
  if(flat){ //选择卡券,重新调用接口获取 selectedCardList, neePayPrice
@@ -592,12 +593,12 @@ export default {
592
593
  this.selectedCardList = this.selectedCardList.filter(item => item.card_number != ticket.card_number);
593
594
  }
594
595
  // #ifdef MP
595
- if(ticket.card_use_price) this.cardPayPrice = this.cardPayPrice - ticket.card_use_price;
596
- if(ticket.card_use_point) this.cardPayPoint = this.cardPayPoint - ticket.card_use_point;
596
+ if(_ticket.card_use_price) this.cardPayPrice = this.cardPayPrice - _ticket.card_use_price;
597
+ if(_ticket.card_use_point) this.cardPayPoint = this.cardPayPoint - _ticket.card_use_point;
597
598
  // #endif
598
599
  // #ifdef H5
599
- this.cardPayPrice = this.cardPayPrice - ticket.card_use_price;
600
- this.cardPayPoint = this.cardPayPoint - ticket.card_use_point;
600
+ this.cardPayPrice = this.cardPayPrice - _ticket.card_use_price;
601
+ this.cardPayPoint = this.cardPayPoint - _ticket.card_use_point;
601
602
  // #endif
602
603
 
603
604
  this.renderChecked = Date.now();