@pisell/private-materials 3.0.114 → 3.0.116

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.
@@ -154,7 +154,7 @@ var PaymentList = function PaymentList(props, ref) {
154
154
  var paymentList = (_filterPaymentList = filterPaymentList(list, platform)) === null || _filterPaymentList === void 0 ? void 0 : _filterPaymentList.paymentList;
155
155
 
156
156
  // 当支付方式大于1的时候
157
- if (paymentList.length > 1) {
157
+ if (paymentList.length > 0) {
158
158
  // 默认支付
159
159
  var first = paymentList[0];
160
160
 
@@ -633,8 +633,8 @@ var ToCPay = function ToCPay(props, ref) {
633
633
  onWalletPassChange: onWalletPassChange
634
634
  }), /*#__PURE__*/React.createElement(PaymentList, {
635
635
  ref: paymentListRef,
636
- handlePayment: function handlePayment() {
637
- handlePaymentByType();
636
+ handlePayment: function handlePayment(detail) {
637
+ handlePaymentByType(detail === null || detail === void 0 ? void 0 : detail.service);
638
638
  },
639
639
  paymentTypeChange: paymentTypeChange,
640
640
  hide: ((_state$payGroup23 = state.payGroup) === null || _state$payGroup23 === void 0 ? void 0 : _state$payGroup23.wait_amount) == 0,
@@ -90,7 +90,7 @@ var PaymentList = (props, ref) => {
90
90
  setLoading(true);
91
91
  const platform = ((_b2 = (_a2 = context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform) || "h5";
92
92
  const paymentList2 = (_c = (0, import_serve.filterPaymentList)(list, platform)) == null ? void 0 : _c.paymentList;
93
- if (paymentList2.length > 1) {
93
+ if (paymentList2.length > 0) {
94
94
  let first = paymentList2[0];
95
95
  setPaymentList(paymentList2);
96
96
  paymentTypeChange(first.service, first);
@@ -351,8 +351,8 @@ var ToCPay = (props, ref) => {
351
351
  import_PaymentList.default,
352
352
  {
353
353
  ref: paymentListRef,
354
- handlePayment: () => {
355
- handlePaymentByType();
354
+ handlePayment: (detail) => {
355
+ handlePaymentByType(detail == null ? void 0 : detail.service);
356
356
  },
357
357
  paymentTypeChange,
358
358
  hide: ((_q = state.payGroup) == null ? void 0 : _q.wait_amount) == 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.114",
3
+ "version": "3.0.116",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/utils": "1.0.28",
63
62
  "@pisell/materials": "3.0.37",
64
- "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "1.0.97"
63
+ "@pisell/utils": "1.0.28",
64
+ "@pisell/date-picker": "1.0.97",
65
+ "@pisell/icon": "0.0.11"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",