jufubao-third 1.0.14 → 1.0.16-beta1

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-third",
3
- "version": "1.0.14",
3
+ "version": "1.0.16-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -312,7 +312,7 @@
312
312
  >使用新票券</xd-button>
313
313
  </xd-down-drawer>
314
314
  <CusVipOpenDialog
315
- v-if="!isVip"
315
+ v-if="showVipOpenDialog"
316
316
  :bgImg="openVipBgImg"
317
317
  :btnBgImg="openVipBtnBgImg"
318
318
  @onOpen="handleOpenVip"
@@ -410,7 +410,8 @@
410
410
  skipTip: "N",
411
411
  openVipBtnBgImg: "",
412
412
  openVipBgImg: "",
413
- openPath: ""
413
+ openPath: "",
414
+ is_plus_site: false
414
415
  }
415
416
  },
416
417
  watch: {
@@ -465,6 +466,9 @@
465
466
  },
466
467
  curPayChannel(){
467
468
  return this.payChannels.find(item => item.channel_provider_id == this.channel_provider_id);
469
+ },
470
+ showVipOpenDialog() {
471
+ return !this.isVip&&this.is_plus_site;
468
472
  }
469
473
  },
470
474
  created() {
@@ -472,6 +476,7 @@
472
476
  let valid_token = this.$xdUniHelper.randomChar(20);
473
477
  this.$set(this.cardForm, "valid_token", valid_token);
474
478
  this.isVip = this.getTokenForKey('user_level') === 'VIP';
479
+ this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
475
480
  if (this.$configProject['isPreview']) {
476
481
  this.isVip=true
477
482
  }
@@ -263,6 +263,14 @@ export default {
263
263
  data: postData
264
264
  }).then(res => {
265
265
  this.$xdHideLoading();
266
+
267
+ //需要跳转到第三方支付地址
268
+ if(res['pay_url']) {
269
+ window.location.replace(res['pay_url']);
270
+ return
271
+ }
272
+
273
+ //其他支付模式
266
274
  if(successCb) successCb(res);
267
275
  if(res.need_pay_price == 0){
268
276
  this.$xdUniHelper.redirectTo({