jufubao-movie 1.0.29-beta4 → 1.0.29-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.29-beta4",
3
+ "version": "1.0.29-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -153,7 +153,7 @@
153
153
  </view>
154
154
  <view>
155
155
  <xd-button
156
- :disabled="show === false"
156
+ :disabled="payBtnDisabled"
157
157
  size="medium"
158
158
  type="primary"
159
159
  radius="40rpx"
@@ -310,7 +310,8 @@
310
310
  },
311
311
  //是否支持三方支付、补差
312
312
  payThird(){
313
- return this.otherPayMethod.find(item => item.method === 'third')
313
+ return true; //都开启补差
314
+ // return this.otherPayMethod.find(item => item.method === 'third')
314
315
  },
315
316
  //订单实际需要支付金额(减去各项已选,票券、钱包)
316
317
  orderNeedPayPrice(){
@@ -320,6 +321,11 @@
320
321
  let total_amount = this.order_info.total_price ? this.order_info.total_price : 0;
321
322
  let result = this.$xdUniHelper.cutFloatNumber(total_amount, total);
322
323
  return result;
324
+ },
325
+ payBtnDisabled(){
326
+ if(!this.show) return true;
327
+ if(!this.payThird && this.orderNeedPayPrice > 0) return true;
328
+ return false;
323
329
  }
324
330
  },
325
331
  created() {
@@ -445,7 +451,7 @@
445
451
  support_methods: JSON.stringify(support_methods)
446
452
  }
447
453
  }).then(res => {
448
- this.otherPayMethod = res.list;
454
+ this.otherPayMethod = res.list.filter(item => item.method != 'third');
449
455
  this.otherPayLoaded = true;
450
456
  })
451
457
  },