jufubao-base 1.0.121 → 1.0.123

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +5 -5
  3. package/src/components/JfbBasePay/JfbBasePay.vue +11 -5
  4. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +268 -238
  5. package/src/components/JfbBaseWallet/Api.js +60 -0
  6. package/src/components/JfbBaseWallet/Attr.js +101 -0
  7. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +306 -0
  8. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +80 -0
  9. package/src/components/JfbBaseWallet/JfbBaseWalletMixin.js +30 -0
  10. package/src/components/JfbBaseWallet/Mock.js +6 -0
  11. package/src/components/JfbBaseWalletDetail/Api.js +26 -0
  12. package/src/components/JfbBaseWalletDetail/Attr.js +16 -0
  13. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +175 -0
  14. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +80 -0
  15. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +30 -0
  16. package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
  17. package/src/components/JfbBaseWalletEffective/Api.js +27 -0
  18. package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
  19. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +176 -0
  20. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +80 -0
  21. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
  22. package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
  23. package/src/components/JfbBaseWalletIndex/Api.js +48 -0
  24. package/src/components/JfbBaseWalletIndex/Attr.js +33 -0
  25. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +822 -0
  26. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +80 -0
  27. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js +30 -0
  28. package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
  29. package/src/components/JfbBaseWalletItem/Api.js +37 -0
  30. package/src/components/JfbBaseWalletItem/Attr.js +33 -0
  31. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +501 -0
  32. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +80 -0
  33. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemMixin.js +30 -0
  34. package/src/components/JfbBaseWalletItem/Mock.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.121",
3
+ "version": "1.0.123",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -83,7 +83,7 @@
83
83
  :bg-color="mainColor"
84
84
  width="360rpx"
85
85
  radius="20rpx"
86
- size="small"
86
+ size="medium"
87
87
  @click="handleConfirm"
88
88
  >直接领取</XdButton
89
89
  >
@@ -102,7 +102,7 @@
102
102
  class="jfb-base-con-phone__body-wrap-btn"
103
103
  >
104
104
  <XdButton
105
- size="small"
105
+ size="medium"
106
106
  type="primary"
107
107
  :bg-color="mainColor"
108
108
  radius="20rpx"
@@ -110,7 +110,7 @@
110
110
  >{{ btnOneName }}</XdButton
111
111
  >
112
112
  <XdButton
113
- size="small"
113
+ size="medium"
114
114
  type="primary"
115
115
  :bg-color="mainColor"
116
116
  radius="20rpx"
@@ -266,9 +266,9 @@ export default {
266
266
  let image1 = await getImageInfo(getServiceUrl(res.used_background));
267
267
  console.log({ ...image }, "imageimage");
268
268
  this.topHeight = image.imgHeight / this.$rpxNum;
269
- this.topWidth = '100%';
269
+ this.topWidth = "100%";
270
270
  this.bottomHeight = image1.imgHeight / this.$rpxNum;
271
- this.bottomWidth = '100%';
271
+ this.bottomWidth = "100%";
272
272
  this.background = getServiceUrl(res.background);
273
273
  this.used_background = getServiceUrl(res.used_background);
274
274
  this.errmessage = res.message;
@@ -363,6 +363,7 @@ export default {
363
363
  });
364
364
  });
365
365
  },
366
+
366
367
  //第三方支付
367
368
  async doThirdPay() {
368
369
  if (this.$configProject.isPreview) return;
@@ -387,14 +388,16 @@ export default {
387
388
  channel_provider_id,
388
389
  login_providers: login_providers.join(","),
389
390
  };
390
- // #ifdef H5
391
- if (!(!this.$configProject.isPreview && (isWechat() || isWechatTools()))){
391
+
392
+ //设置支付成功页面地址
393
+ if (!this.$configProject.isPreview){
394
+ data['pay_success_url'] = '';
395
+ // #ifdef H5
392
396
  data['pay_success_url'] = `${window.location.protocol}//${window.location.host}/${this.projectAttr.deploy_dir}`;
397
+ // #endif
393
398
  data['pay_success_url'] += this.getSuccessUrl + `?order_id=${this.main_order_id}`;
394
399
  }
395
- // #endif
396
-
397
-
400
+ console.warn(`setThirdPlace.data:${data}`);
398
401
  jfbRootExec("setThirdPlace", {
399
402
  vm: this,
400
403
  data,
@@ -403,10 +406,13 @@ export default {
403
406
  this.$xdHideLoading();
404
407
  // #ifdef H5
405
408
  if(res && res.payment_type === 'url') {
409
+ console.warn(`setThirdPlace.type:url`);
410
+ console.warn(`setThirdPlace.res.${res.payment_url}`);
406
411
  window.location.replace(res.payment_url);
407
412
  return
408
413
  }
409
414
  // #endif
415
+ console.warn(`setThirdPlace.type:slef`);
410
416
  const { channel_data } = res;
411
417
  const paySignData = JSON.parse(Base64.decode(channel_data));
412
418
  this.openTemplatePay(paySignData, (ps) => {