@pisell/private-materials 3.0.111 → 3.0.113
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/build/lowcode/assets-daily.json +19 -11
- package/build/lowcode/assets-dev.json +10 -2
- package/build/lowcode/assets-prod.json +19 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -16
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/footer/index.js +1 -1
- package/es/components/booking/deposit/DepositItem/index.d.ts +4 -1
- package/es/components/booking/deposit/DepositItem/index.js +17 -6
- package/es/components/booking/deposit/DepositItem/index.less +36 -12
- package/es/components/booking/deposit/index.js +5 -2
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +2 -1
- package/es/components/booking/info/service/editService/index.js +11 -9
- package/es/components/booking/locales.d.ts +12 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/model.d.ts +2 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/es/components/pay/toC/PayAmount/index.js +25 -0
- package/es/components/pay/toC/PayAmount/index.less +21 -0
- package/es/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/es/components/pay/toC/PayCountdown/index.js +26 -0
- package/es/components/pay/toC/PayCountdown/index.less +22 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentList/index.js +342 -0
- package/es/components/pay/toC/PaymentList/index.less +112 -0
- package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/es/components/pay/toC/PaymentList/mock.js +128 -0
- package/es/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/es/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/es/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/es/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/es/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/es/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +26 -0
- package/es/components/pay/toC/PaymentList/serve.js +135 -0
- package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/es/components/pay/toC/PaymentList/status.js +100 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/es/components/pay/toC/PaymentList/utils.js +53 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +74 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.js +79 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +65 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +110 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +349 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +375 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +37 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +21 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +222 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +130 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +524 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +121 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +30 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +37 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +13 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +15 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +108 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +96 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +108 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +142 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +19 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +344 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +114 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +40 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/index.js +316 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/es/components/pay/toC/WalletPassBlock/index.js +72 -0
- package/es/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/index.js +647 -0
- package/es/components/pay/toC/index.less +22 -0
- package/es/components/pay/toC/locales.d.ts +208 -0
- package/es/components/pay/toC/locales.js +207 -0
- package/es/components/pay/toC/model.d.ts +35 -0
- package/es/components/pay/toC/model.js +43 -0
- package/es/components/pay/toC/payGroup.d.ts +48 -0
- package/es/components/pay/toC/payGroup.js +105 -0
- package/es/components/pay/toC/serve.d.ts +34 -0
- package/es/components/pay/toC/serve.js +148 -0
- package/es/components/pay/toC/status.d.ts +3 -0
- package/es/components/pay/toC/status.js +82 -0
- package/es/components/pay/toC/utils.d.ts +30 -0
- package/es/components/pay/toC/utils.js +48 -0
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/utils/index.d.ts +6 -5
- package/es/utils/index.js +28 -6
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/footer/index.js +1 -1
- package/lib/components/booking/deposit/DepositItem/index.d.ts +4 -1
- package/lib/components/booking/deposit/DepositItem/index.js +17 -6
- package/lib/components/booking/deposit/DepositItem/index.less +36 -12
- package/lib/components/booking/deposit/index.js +5 -2
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +2 -1
- package/lib/components/booking/info/service/editService/index.js +2 -0
- package/lib/components/booking/locales.d.ts +12 -0
- package/lib/components/booking/locales.js +12 -0
- package/lib/components/booking/model.d.ts +2 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +5 -2
- package/lib/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/lib/components/pay/toC/PayAmount/index.js +42 -0
- package/lib/components/pay/toC/PayAmount/index.less +21 -0
- package/lib/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/lib/components/pay/toC/PayCountdown/index.js +49 -0
- package/lib/components/pay/toC/PayCountdown/index.less +22 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentList/index.js +256 -0
- package/lib/components/pay/toC/PaymentList/index.less +112 -0
- package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/lib/components/pay/toC/PaymentList/mock.js +174 -0
- package/lib/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/lib/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/lib/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/lib/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/lib/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/lib/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +26 -0
- package/lib/components/pay/toC/PaymentList/serve.js +83 -0
- package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/lib/components/pay/toC/PaymentList/status.js +132 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/lib/components/pay/toC/PaymentList/utils.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +96 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +68 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +61 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +270 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +224 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +39 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +139 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +80 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +336 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +53 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +76 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +69 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +48 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +124 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +94 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +81 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +71 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +87 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +126 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +284 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +54 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +70 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +176 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/lib/components/pay/toC/WalletPassBlock/index.js +97 -0
- package/lib/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/index.js +366 -0
- package/lib/components/pay/toC/index.less +22 -0
- package/lib/components/pay/toC/locales.d.ts +208 -0
- package/lib/components/pay/toC/locales.js +231 -0
- package/lib/components/pay/toC/model.d.ts +35 -0
- package/lib/components/pay/toC/model.js +60 -0
- package/lib/components/pay/toC/payGroup.d.ts +48 -0
- package/lib/components/pay/toC/payGroup.js +77 -0
- package/lib/components/pay/toC/serve.d.ts +34 -0
- package/lib/components/pay/toC/serve.js +78 -0
- package/lib/components/pay/toC/status.d.ts +3 -0
- package/lib/components/pay/toC/status.js +92 -0
- package/lib/components/pay/toC/utils.d.ts +30 -0
- package/lib/components/pay/toC/utils.js +62 -0
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/utils/index.d.ts +6 -5
- package/lib/utils/index.js +12 -1
- package/lowcode/toc-pay/meta.ts +59 -0
- package/package.json +4 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type OnChangeTypeKey = 'paymentType' | 'paymentListInit';
|
|
4
|
+
export interface PaymentListProps {
|
|
5
|
+
store?: {
|
|
6
|
+
paymentList?: any[];
|
|
7
|
+
paymentType?: string;
|
|
8
|
+
};
|
|
9
|
+
handlePayment: (res: any) => void;
|
|
10
|
+
paymentTypeChange: (res: any) => void;
|
|
11
|
+
hide?: boolean;
|
|
12
|
+
renderTitle?: () => React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface PaymentListRef {
|
|
15
|
+
init: (props: any) => {};
|
|
16
|
+
calculateSurcharge: (amount: number) => any;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<PaymentListProps & React.RefAttributes<unknown>>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import React, { useState, useMemo, useImperativeHandle, forwardRef } from 'react';
|
|
12
|
+
import { filterPaymentList, getPaymentList } from "./serve";
|
|
13
|
+
import { PisellCheckboxGroup, PisellRow, PisellTooltip, Iconfont, PisellEmpty } from '@pisell/materials';
|
|
14
|
+
import { calculateSurcharge } from "./utils";
|
|
15
|
+
import classNames from 'classnames';
|
|
16
|
+
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
17
|
+
import "./index.less";
|
|
18
|
+
import { locales } from '@pisell/utils';
|
|
19
|
+
|
|
20
|
+
// onChange的key
|
|
21
|
+
|
|
22
|
+
// 线下支付方式列表
|
|
23
|
+
var offline = ['pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_payment'];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @title: 支付列表
|
|
27
|
+
* @description:
|
|
28
|
+
* @param {PaymentListProps} props
|
|
29
|
+
* @param {any} ref
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @Author: zhiwei.Wang
|
|
32
|
+
* @Date: 2024-08-16 10:52
|
|
33
|
+
*/
|
|
34
|
+
var PaymentList = function PaymentList(props, ref) {
|
|
35
|
+
var _props$store2, _props$store4;
|
|
36
|
+
// 支付列表
|
|
37
|
+
var _useState = useState([]),
|
|
38
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
+
paymentList = _useState2[0],
|
|
40
|
+
setPaymentList = _useState2[1];
|
|
41
|
+
// 当前选择的支付方式
|
|
42
|
+
var _useState3 = useState(''),
|
|
43
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
44
|
+
paymentType = _useState4[0],
|
|
45
|
+
setPaymentType = _useState4[1];
|
|
46
|
+
// loading
|
|
47
|
+
var _useState5 = useState(true),
|
|
48
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
49
|
+
loading = _useState6[0],
|
|
50
|
+
setLoading = _useState6[1];
|
|
51
|
+
var context = useEngineContext();
|
|
52
|
+
|
|
53
|
+
// 支付列表, 补充图标 兼容受控方式
|
|
54
|
+
var _paymentList = useMemo(function () {
|
|
55
|
+
var _props$store;
|
|
56
|
+
return (props === null || props === void 0 ? void 0 : (_props$store = props.store) === null || _props$store === void 0 ? void 0 : _props$store.paymentList) || paymentList;
|
|
57
|
+
}, [paymentList, props === null || props === void 0 ? void 0 : (_props$store2 = props.store) === null || _props$store2 === void 0 ? void 0 : _props$store2.paymentList]);
|
|
58
|
+
|
|
59
|
+
// 当前选择的支付方式, 兼容受控方式
|
|
60
|
+
var _paymentType = useMemo(function () {
|
|
61
|
+
var _props$store3;
|
|
62
|
+
return (props === null || props === void 0 ? void 0 : (_props$store3 = props.store) === null || _props$store3 === void 0 ? void 0 : _props$store3.paymentType) || paymentType;
|
|
63
|
+
}, [paymentType, props === null || props === void 0 ? void 0 : (_props$store4 = props.store) === null || _props$store4 === void 0 ? void 0 : _props$store4.paymentType]);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @title: 获取支付列表
|
|
67
|
+
* @description:
|
|
68
|
+
* @param {any} initProps
|
|
69
|
+
* @return {*}
|
|
70
|
+
* @Author: zhiwei.Wang
|
|
71
|
+
* @Date: 2024-08-15 11:20
|
|
72
|
+
*/
|
|
73
|
+
var _getPaymentList = /*#__PURE__*/function () {
|
|
74
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(initProps) {
|
|
75
|
+
var _props$paymentTypeCha;
|
|
76
|
+
var params, res, paymentList, first;
|
|
77
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78
|
+
while (1) switch (_context.prev = _context.next) {
|
|
79
|
+
case 0:
|
|
80
|
+
setLoading(true);
|
|
81
|
+
|
|
82
|
+
// 参数
|
|
83
|
+
params = {
|
|
84
|
+
order_id: initProps === null || initProps === void 0 ? void 0 : initProps.order.order_id,
|
|
85
|
+
total_amount: initProps === null || initProps === void 0 ? void 0 : initProps.order.total_amount,
|
|
86
|
+
sale_channel: (initProps === null || initProps === void 0 ? void 0 : initProps.order.sale_channel) || 'online-store'
|
|
87
|
+
}; // 结果
|
|
88
|
+
_context.next = 4;
|
|
89
|
+
return getPaymentList(params);
|
|
90
|
+
case 4:
|
|
91
|
+
res = _context.sent;
|
|
92
|
+
// 支付列表
|
|
93
|
+
paymentList = res.paymentList; // 默认支付
|
|
94
|
+
first = paymentList[0];
|
|
95
|
+
(_props$paymentTypeCha = props.paymentTypeChange) === null || _props$paymentTypeCha === void 0 ? void 0 : _props$paymentTypeCha.call(props, first);
|
|
96
|
+
|
|
97
|
+
// 设置支付列表
|
|
98
|
+
setPaymentList(paymentList);
|
|
99
|
+
// 设置默认的支付方式
|
|
100
|
+
setPaymentType(first.service);
|
|
101
|
+
|
|
102
|
+
// 如果只有一个支付方式, 则直接支付
|
|
103
|
+
isAutoPayment(paymentList);
|
|
104
|
+
|
|
105
|
+
// 解除loading
|
|
106
|
+
setLoading(false);
|
|
107
|
+
return _context.abrupt("return", res);
|
|
108
|
+
case 13:
|
|
109
|
+
case "end":
|
|
110
|
+
return _context.stop();
|
|
111
|
+
}
|
|
112
|
+
}, _callee);
|
|
113
|
+
}));
|
|
114
|
+
return function _getPaymentList(_x2) {
|
|
115
|
+
return _ref.apply(this, arguments);
|
|
116
|
+
};
|
|
117
|
+
}();
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @title: 计算手续费
|
|
121
|
+
* @description:
|
|
122
|
+
* @param {number} amount
|
|
123
|
+
* @return {*}
|
|
124
|
+
* @Author: zhiwei.Wang
|
|
125
|
+
* @Date: 2024-08-16 10:52
|
|
126
|
+
*/
|
|
127
|
+
var _calculateSurcharge = function _calculateSurcharge(amount) {
|
|
128
|
+
if (!paymentList.length) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
// 计算手续费
|
|
132
|
+
var list = calculateSurcharge(paymentList, amount);
|
|
133
|
+
|
|
134
|
+
// 设置支付列表
|
|
135
|
+
setPaymentList(list);
|
|
136
|
+
return list;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @title: 唯一初始化
|
|
141
|
+
* @description:
|
|
142
|
+
* @param {any} list
|
|
143
|
+
* @return {*}
|
|
144
|
+
* @Author: zhiwei.Wang
|
|
145
|
+
* @Date: 2024-08-16 10:53
|
|
146
|
+
*/
|
|
147
|
+
var init = function init(list) {
|
|
148
|
+
var _context$appHelper, _context$appHelper$co, _filterPaymentList;
|
|
149
|
+
// 打开loading
|
|
150
|
+
setLoading(true);
|
|
151
|
+
var platform = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : (_context$appHelper$co = _context$appHelper.constants) === null || _context$appHelper$co === void 0 ? void 0 : _context$appHelper$co.platform) || 'h5';
|
|
152
|
+
|
|
153
|
+
// 过滤数据
|
|
154
|
+
var paymentList = (_filterPaymentList = filterPaymentList(list, platform)) === null || _filterPaymentList === void 0 ? void 0 : _filterPaymentList.paymentList;
|
|
155
|
+
|
|
156
|
+
// 当支付方式大于1的时候
|
|
157
|
+
if (paymentList.length > 1) {
|
|
158
|
+
// 默认支付
|
|
159
|
+
var first = paymentList[0];
|
|
160
|
+
|
|
161
|
+
// 设置支付列表
|
|
162
|
+
setPaymentList(paymentList);
|
|
163
|
+
|
|
164
|
+
// 设置默认的支付方式
|
|
165
|
+
paymentTypeChange(first.service, first);
|
|
166
|
+
|
|
167
|
+
// 如果只有一个支付方式, 则直接支付
|
|
168
|
+
isAutoPayment(paymentList);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// 解除loading
|
|
172
|
+
setLoading(false);
|
|
173
|
+
return paymentList;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @title: 当只有线下支付时, 自动触发支付
|
|
178
|
+
* @description:
|
|
179
|
+
* @param {any} list
|
|
180
|
+
* @return {*}
|
|
181
|
+
* @Author: zhiwei.Wang
|
|
182
|
+
* @Date: 2024-08-16 10:53
|
|
183
|
+
*/
|
|
184
|
+
var isAutoPayment = function isAutoPayment(list) {
|
|
185
|
+
var _list = list;
|
|
186
|
+
|
|
187
|
+
// 只有一个支付方式时
|
|
188
|
+
if (_list.length === 1) {
|
|
189
|
+
var isOfflinePayment = _list.find(function (d) {
|
|
190
|
+
return offline.find(function (t) {
|
|
191
|
+
return d.service.includes(t);
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
if (isOfflinePayment) {
|
|
195
|
+
setTimeout(function () {
|
|
196
|
+
var _props$handlePayment;
|
|
197
|
+
(_props$handlePayment = props.handlePayment) === null || _props$handlePayment === void 0 ? void 0 : _props$handlePayment.call(props, isOfflinePayment);
|
|
198
|
+
}, 200);
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return false;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @title: 支付方式变化时回调
|
|
207
|
+
* @description:
|
|
208
|
+
* @param {any} key
|
|
209
|
+
* @param {any} item
|
|
210
|
+
* @return {*}
|
|
211
|
+
* @Author: zhiwei.Wang
|
|
212
|
+
* @Date: 2024-08-16 10:54
|
|
213
|
+
*/
|
|
214
|
+
var paymentTypeChange = function paymentTypeChange(key, item) {
|
|
215
|
+
var _props$paymentTypeCha2;
|
|
216
|
+
setPaymentType(key);
|
|
217
|
+
(_props$paymentTypeCha2 = props.paymentTypeChange) === null || _props$paymentTypeCha2 === void 0 ? void 0 : _props$paymentTypeCha2.call(props, item);
|
|
218
|
+
};
|
|
219
|
+
useImperativeHandle(ref, function () {
|
|
220
|
+
return {
|
|
221
|
+
init: init,
|
|
222
|
+
calculateSurcharge: _calculateSurcharge
|
|
223
|
+
};
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @title: 渲染手续费弹窗
|
|
228
|
+
* @description:
|
|
229
|
+
* @param {any} _item
|
|
230
|
+
* @return {*}
|
|
231
|
+
* @Author: zhiwei.Wang
|
|
232
|
+
* @Date: 2024-08-16 10:54
|
|
233
|
+
*/
|
|
234
|
+
var renderToast = function renderToast(_item) {
|
|
235
|
+
var _item$params, _item$params2, _item$params3;
|
|
236
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
237
|
+
className: "surcharge-modal-wrap"
|
|
238
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
239
|
+
className: "surcharge-modal-title"
|
|
240
|
+
}, _item.title + ' ' + (_item !== null && _item !== void 0 && (_item$params = _item.params) !== null && _item$params !== void 0 && _item$params.description ? locales.getText('tocPay.text.paymentInstructions') : locales.getText('tocPay.text.serviceCharge'))), /*#__PURE__*/React.createElement("div", {
|
|
241
|
+
className: "surcharge-info",
|
|
242
|
+
dangerouslySetInnerHTML: {
|
|
243
|
+
__html: _item !== null && _item !== void 0 && (_item$params2 = _item.params) !== null && _item$params2 !== void 0 && _item$params2.description ? _item === null || _item === void 0 ? void 0 : (_item$params3 = _item.params) === null || _item$params3 === void 0 ? void 0 : _item$params3.description : _item.surcharge_fee
|
|
244
|
+
}
|
|
245
|
+
}));
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @title: 列表
|
|
250
|
+
* @description:
|
|
251
|
+
* @param {*} useMemo
|
|
252
|
+
* @return {*}
|
|
253
|
+
* @Author: zhiwei.Wang
|
|
254
|
+
* @Date: 2024-08-16 10:55
|
|
255
|
+
*/
|
|
256
|
+
var content = useMemo(function () {
|
|
257
|
+
// loading时不展示
|
|
258
|
+
if (loading) {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// 没有支付方式展示空
|
|
263
|
+
if (!_paymentList.length) {
|
|
264
|
+
return /*#__PURE__*/React.createElement(PisellEmpty, {
|
|
265
|
+
description: locales.getText('tocPay.text.noAvailablePaymentMethods')
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
return /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
|
|
269
|
+
options: _paymentList,
|
|
270
|
+
value: _paymentType,
|
|
271
|
+
iconPosition: "right",
|
|
272
|
+
mode: "single",
|
|
273
|
+
rowKey: "service",
|
|
274
|
+
className: "payment-list",
|
|
275
|
+
gap: 12,
|
|
276
|
+
onChange: paymentTypeChange,
|
|
277
|
+
optionClassName: 'payment-item',
|
|
278
|
+
renderOption: function renderOption(d, active) {
|
|
279
|
+
var _d$params, _d$params2;
|
|
280
|
+
// 是否展示手续费icon
|
|
281
|
+
var showIcon = d.surcharge && d.service !== 'pisell.other.cashmanual' && d.service !== 'pisell.custom_payment' || (d === null || d === void 0 ? void 0 : (_d$params = d.params) === null || _d$params === void 0 ? void 0 : _d$params.description) && (d.service === 'pisell.other.cashmanual' || d.service === 'pisell.custom_payment');
|
|
282
|
+
return /*#__PURE__*/React.createElement(PisellRow, {
|
|
283
|
+
platform: "h5",
|
|
284
|
+
key: d.service,
|
|
285
|
+
gap: 12,
|
|
286
|
+
centerContentFill: true,
|
|
287
|
+
leftContent: /*#__PURE__*/React.createElement("img", {
|
|
288
|
+
className: 'payment-type-image',
|
|
289
|
+
src: d.url
|
|
290
|
+
}),
|
|
291
|
+
centerContent: /*#__PURE__*/React.createElement("div", {
|
|
292
|
+
className: classNames('payment-name', {
|
|
293
|
+
'text-active-color': active
|
|
294
|
+
})
|
|
295
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
296
|
+
className: classNames('payment-name-text', {
|
|
297
|
+
'text-active-color': active
|
|
298
|
+
})
|
|
299
|
+
}, d.title, ' '), /*#__PURE__*/React.createElement("div", {
|
|
300
|
+
className: ""
|
|
301
|
+
}, (d !== null && d !== void 0 && (_d$params2 = d.params) !== null && _d$params2 !== void 0 && _d$params2.description || d.surcharge) && d.service !== 'pisell.offline_payment' ? /*#__PURE__*/React.createElement(PisellTooltip, {
|
|
302
|
+
title: renderToast(d),
|
|
303
|
+
onClick: function onClick(e) {
|
|
304
|
+
e.stopPropagation();
|
|
305
|
+
}
|
|
306
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
307
|
+
className: classNames('surcharge-wrap', {
|
|
308
|
+
'text-active-color': active
|
|
309
|
+
})
|
|
310
|
+
}, d.surcharge ? /*#__PURE__*/React.createElement("span", {
|
|
311
|
+
className: classNames('surcharge', {
|
|
312
|
+
'text-active-color': active
|
|
313
|
+
})
|
|
314
|
+
}, d.surcharge, ' ') : null, showIcon ? /*#__PURE__*/React.createElement(Iconfont, {
|
|
315
|
+
type: "pisell2-help-circle",
|
|
316
|
+
className: classNames('icon', {
|
|
317
|
+
'text-active-color': active
|
|
318
|
+
})
|
|
319
|
+
}) : null)) : null, d.payment_method && d.service === 'pisell.offline_payment' ? /*#__PURE__*/React.createElement(PisellTooltip, {
|
|
320
|
+
title: renderToast(d),
|
|
321
|
+
onClick: function onClick(e) {
|
|
322
|
+
e.stopPropagation();
|
|
323
|
+
}
|
|
324
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
325
|
+
className: 'surcharge-wrap'
|
|
326
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
327
|
+
type: "pisell2-help-circle",
|
|
328
|
+
className: classNames('icon', {
|
|
329
|
+
'text-active-color': active
|
|
330
|
+
})
|
|
331
|
+
}))) : null))
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}, [_paymentList, _paymentType, loading]);
|
|
336
|
+
return props.hide ? null : /*#__PURE__*/React.createElement("div", {
|
|
337
|
+
className: ""
|
|
338
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
339
|
+
className: "payment-header"
|
|
340
|
+
}, props.renderTitle ? props.renderTitle() : locales.getText('tocPay.text.paymentMethod')), content);
|
|
341
|
+
};
|
|
342
|
+
export default /*#__PURE__*/forwardRef(PaymentList);
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.payment-list {
|
|
2
|
+
margin-top: 10px;
|
|
3
|
+
margin-bottom: 12px;
|
|
4
|
+
|
|
5
|
+
.payment-item {
|
|
6
|
+
padding: 16px;
|
|
7
|
+
|
|
8
|
+
.payment-type-icon-wrap {
|
|
9
|
+
width: 27px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
|
|
14
|
+
.payment-type-icon {
|
|
15
|
+
font-size: 27px;
|
|
16
|
+
color: var(--theme-color);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.payment-type-image {
|
|
23
|
+
width: 46px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
object-fit: contain;
|
|
26
|
+
border-radius: 0 !important;
|
|
27
|
+
border: none !important;
|
|
28
|
+
background: var(--Base-White, #FFF);
|
|
29
|
+
padding: 0 !important;
|
|
30
|
+
display: block;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.payment-name {
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
display: flex;
|
|
36
|
+
min-height: 44px;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
|
|
39
|
+
.payment-name-text {
|
|
40
|
+
color: var(--Gray-700, #101828);
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
line-height: 20px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.surcharge-wrap {
|
|
47
|
+
display: inline;
|
|
48
|
+
position: relative;
|
|
49
|
+
z-index: 2;
|
|
50
|
+
vertical-align: middle;
|
|
51
|
+
|
|
52
|
+
.surcharge {
|
|
53
|
+
color: var(--Gray-600, #667085);
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
line-height: 18px;
|
|
58
|
+
margin-right: 6px;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
// display: flex;
|
|
65
|
+
// align-items: center;
|
|
66
|
+
// justify-content: center;
|
|
67
|
+
// width: 18px;
|
|
68
|
+
// height: 18px;
|
|
69
|
+
font-size: 18px;
|
|
70
|
+
color: #475467;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
.text-active-color {
|
|
80
|
+
color: var(--theme-color) !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.payment-header {
|
|
84
|
+
color: var(--Gray-900, #101828);
|
|
85
|
+
font-size: 18px;
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
line-height: 28px;
|
|
89
|
+
margin-top: 20px;
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.surcharge-modal-wrap {
|
|
94
|
+
text-align: left;
|
|
95
|
+
padding: 6px 4px;
|
|
96
|
+
|
|
97
|
+
.surcharge-modal-title {
|
|
98
|
+
color: var(--Gray-700, #344054);
|
|
99
|
+
font-size: 14px;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
line-height: 18px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.surcharge-info {
|
|
106
|
+
margin-top: 4px;
|
|
107
|
+
color: var(--Gray-500, #667085);
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
font-style: normal;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare const mockList: ({
|
|
2
|
+
icon: string;
|
|
3
|
+
name: string;
|
|
4
|
+
service: string;
|
|
5
|
+
surcharge: string;
|
|
6
|
+
surcharge_fee: string;
|
|
7
|
+
params?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
icon: string;
|
|
10
|
+
name: string;
|
|
11
|
+
service: string;
|
|
12
|
+
surcharge: string;
|
|
13
|
+
surcharge_fee: string;
|
|
14
|
+
params: {
|
|
15
|
+
type_list: string[];
|
|
16
|
+
payment_method?: undefined;
|
|
17
|
+
custom_payment_id?: undefined;
|
|
18
|
+
code?: undefined;
|
|
19
|
+
name?: undefined;
|
|
20
|
+
type?: undefined;
|
|
21
|
+
description?: undefined;
|
|
22
|
+
voucher_tag?: undefined;
|
|
23
|
+
};
|
|
24
|
+
} | {
|
|
25
|
+
icon: string;
|
|
26
|
+
name: string;
|
|
27
|
+
service: string;
|
|
28
|
+
surcharge: string;
|
|
29
|
+
surcharge_fee: string;
|
|
30
|
+
params: {
|
|
31
|
+
payment_method: string;
|
|
32
|
+
type_list?: undefined;
|
|
33
|
+
custom_payment_id?: undefined;
|
|
34
|
+
code?: undefined;
|
|
35
|
+
name?: undefined;
|
|
36
|
+
type?: undefined;
|
|
37
|
+
description?: undefined;
|
|
38
|
+
voucher_tag?: undefined;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
icon: string;
|
|
42
|
+
name: string;
|
|
43
|
+
service: string;
|
|
44
|
+
surcharge: string;
|
|
45
|
+
surcharge_fee: string;
|
|
46
|
+
params: {
|
|
47
|
+
custom_payment_id: number;
|
|
48
|
+
code: string;
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
description: string;
|
|
52
|
+
type_list?: undefined;
|
|
53
|
+
payment_method?: undefined;
|
|
54
|
+
voucher_tag?: undefined;
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
icon: string;
|
|
58
|
+
name: string;
|
|
59
|
+
service: string;
|
|
60
|
+
surcharge: string;
|
|
61
|
+
surcharge_fee: string;
|
|
62
|
+
params: {
|
|
63
|
+
custom_payment_id: number;
|
|
64
|
+
code: string;
|
|
65
|
+
name: string;
|
|
66
|
+
type: string;
|
|
67
|
+
description: string;
|
|
68
|
+
voucher_tag: string;
|
|
69
|
+
type_list?: undefined;
|
|
70
|
+
payment_method?: undefined;
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
icon: string;
|
|
74
|
+
name: string;
|
|
75
|
+
service: string;
|
|
76
|
+
surcharge: string;
|
|
77
|
+
surcharge_fee: string;
|
|
78
|
+
params: {
|
|
79
|
+
custom_payment_id: number;
|
|
80
|
+
code: string;
|
|
81
|
+
name: string;
|
|
82
|
+
type: string;
|
|
83
|
+
description: null;
|
|
84
|
+
type_list?: undefined;
|
|
85
|
+
payment_method?: undefined;
|
|
86
|
+
voucher_tag?: undefined;
|
|
87
|
+
};
|
|
88
|
+
})[];
|