@pisell/private-materials 3.4.87 → 3.4.89
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 +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/utils.js +4 -4
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useClearCart.d.ts +1 -1
- package/es/components/booking/hooks/useClearCart.js +39 -9
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/index.less +4 -2
- package/es/components/booking/info2/service/editService/index.js +36 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +76 -0
- package/es/components/booking/locales.d.ts +20 -0
- package/es/components/booking/locales.js +20 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +28 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +292 -115
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +12 -2
- package/es/components/pay/toC/index.js +53 -18
- package/es/components/pay/toC/locales.d.ts +115 -0
- package/es/components/pay/toC/locales.js +143 -18
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/serve.d.ts +10 -0
- package/es/components/pay/toC/serve.js +40 -1
- package/es/components/pay/toC/utils.d.ts +5 -0
- package/es/components/pay/toC/utils.js +10 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/index.less +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +41 -11
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +13 -5
- package/es/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/es/plus/walletPassGallery/locales.d.ts +10 -0
- package/es/plus/walletPassGallery/locales.js +26 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
- package/lib/components/booking/hooks/useClearCart.js +28 -6
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/index.less +4 -2
- package/lib/components/booking/info2/service/editService/index.js +24 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +38 -2
- package/lib/components/booking/locales.d.ts +20 -0
- package/lib/components/booking/locales.js +20 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +17 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +99 -16
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +19 -14
- package/lib/components/pay/toC/index.js +34 -3
- package/lib/components/pay/toC/locales.d.ts +115 -0
- package/lib/components/pay/toC/locales.js +133 -18
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/serve.d.ts +10 -0
- package/lib/components/pay/toC/serve.js +10 -0
- package/lib/components/pay/toC/utils.d.ts +5 -0
- package/lib/components/pay/toC/utils.js +17 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/index.less +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/lib/components/shoppingCart/hooks/useClearCart.js +42 -11
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -5
- package/lib/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/lib/plus/walletPassGallery/locales.d.ts +10 -0
- package/lib/plus/walletPassGallery/locales.js +20 -5
- package/lowcode/eco-cup-list/meta.ts +20 -56
- package/lowcode/eco-customer-list/meta.ts +20 -56
- package/package.json +3 -3
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
<svg width="46" height="32" viewBox="
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<path fill
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
<svg width="46" height="32" viewBox="170 168 754 328" fill="none" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill="#FFFFFF" d="M722.7,170h-352c-110,0-200,90-200,200l0,0c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0
|
|
3
|
+
C922.7,260,832.7,170,722.7,170z"/>
|
|
4
|
+
<path fill="#3C4043" d="M722.7,186.2c24.7,0,48.7,4.9,71.3,14.5c21.9,9.3,41.5,22.6,58.5,39.5
|
|
5
|
+
c16.9,16.9,30.2,36.6,39.5,58.5c9.6,22.6,14.5,46.6,14.5,71.3s-4.9,48.7-14.5,71.3c-9.3,21.9-22.6,41.5-39.5,58.5
|
|
6
|
+
c-16.9,16.9-36.6,30.2-58.5,39.5c-22.6,9.6-46.6,14.5-71.3,14.5h-352c-24.7,0-48.7-4.9-71.3-14.5c-21.9-9.3-41.5-22.6-58.5-39.5
|
|
7
|
+
c-16.9-16.9-30.2-36.6-39.5-58.5c-9.6-22.6-14.5-46.6-14.5-71.3s4.9-48.7,14.5-71.3c9.3-21.9,22.6-41.5,39.5-58.5
|
|
8
|
+
c16.9-16.9,36.6-30.2,58.5-39.5c22.6-9.6,46.6-14.5,71.3-14.5L722.7,186.2 M722.7,170h-352c-110,0-200,90-200,200l0,0
|
|
9
|
+
c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0C922.7,260,832.7,170,722.7,170L722.7,170z"/>
|
|
10
|
+
<path fill="#3C4043" d="M529.3,384.2v60.5h-19.2V295.3H561c12.9,0,23.9,4.3,32.9,12.9
|
|
11
|
+
c9.2,8.6,13.8,19.1,13.8,31.5c0,12.7-4.6,23.2-13.8,31.7c-8.9,8.5-19.9,12.7-32.9,12.7h-31.7V384.2z M529.3,313.7v52.1h32.1
|
|
12
|
+
c7.6,0,14-2.6,19-7.7c5.1-5.1,7.7-11.3,7.7-18.3c0-6.9-2.6-13-7.7-18.1c-5-5.3-11.3-7.9-19-7.9h-32.1V313.7z"/>
|
|
13
|
+
<path fill="#3C4043" d="M657.9,339.1c14.2,0,25.4,3.8,33.6,11.4c8.2,7.6,12.3,18,12.3,31.2v63h-18.3v-14.2h-0.8
|
|
14
|
+
c-7.9,11.7-18.5,17.5-31.7,17.5c-11.3,0-20.7-3.3-28.3-10s-11.4-15-11.4-25c0-10.6,4-19,12-25.2c8-6.3,18.7-9.4,32-9.4
|
|
15
|
+
c11.4,0,20.8,2.1,28.1,6.3v-4.4c0-6.7-2.6-12.3-7.9-17c-5.3-4.7-11.5-7-18.6-7c-10.7,0-19.2,4.5-25.4,13.6l-16.9-10.6
|
|
16
|
+
C625.9,345.8,639.7,339.1,657.9,339.1z M633.1,413.3c0,5,2.1,9.2,6.4,12.5c4.2,3.3,9.2,5,14.9,5c8.1,0,15.3-3,21.6-9
|
|
17
|
+
s9.5-13,9.5-21.1c-6-4.7-14.3-7.1-25-7.1c-7.8,0-14.3,1.9-19.5,5.6C635.7,403.1,633.1,407.8,633.1,413.3z"/>
|
|
18
|
+
<path fill="#3C4043" d="M808.2,342.4l-64,147.2h-19.8l23.8-51.5L706,342.4h20.9l30.4,73.4h0.4l29.6-73.4H808.2z"/>
|
|
19
|
+
<path fill="#4285F4" d="M452.93,372c0-6.26-0.56-12.25-1.6-18.01h-80.48v33L417.2,387
|
|
20
|
+
c-1.88,10.98-7.93,20.34-17.2,26.58v21.41h27.59C443.7,420.08,452.93,398.04,452.93,372z"/>
|
|
21
|
+
<path fill="#34A853" d="M400.01,413.58c-7.68,5.18-17.57,8.21-29.14,8.21c-22.35,0-41.31-15.06-48.1-35.36
|
|
22
|
+
h-28.46v22.08c14.1,27.98,43.08,47.18,76.56,47.18c23.14,0,42.58-7.61,56.73-20.71L400.01,413.58z"/>
|
|
23
|
+
<path fill="#FABB05" d="M320.09,370.05c0-5.7,0.95-11.21,2.68-16.39v-22.08h-28.46
|
|
24
|
+
c-5.83,11.57-9.11,24.63-9.11,38.47s3.29,26.9,9.11,38.47l28.46-22.08C321.04,381.26,320.09,375.75,320.09,370.05z"/>
|
|
25
|
+
<path fill="#E94235" d="M370.87,318.3c12.63,0,23.94,4.35,32.87,12.85l24.45-24.43
|
|
26
|
+
c-14.85-13.83-34.21-22.32-57.32-22.32c-33.47,0-62.46,19.2-76.56,47.18l28.46,22.08C329.56,333.36,348.52,318.3,370.87,318.3z"/>
|
|
9
27
|
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="46" height="32" viewBox="0 0 46 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.5" y="0.5" width="45" height="31" rx="3.5" fill="white"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="45" height="31" rx="3.5" stroke="#F2F4F7"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.4108 20.7039V16.7911H23.4303C24.2579 16.7911 24.9563 16.5138 25.5257 15.9669L25.6624 15.8282C26.7025 14.696 26.6342 12.9321 25.5257 11.8846C24.9715 11.33 24.2123 11.0296 23.4303 11.045H20.1885V20.7039H21.4108ZM21.4109 15.6048V12.2311H23.4611C23.9016 12.2311 24.3192 12.4006 24.6305 12.7087C25.2911 13.3557 25.3063 14.434 24.6685 15.1041C24.3572 15.4353 23.9167 15.6202 23.4611 15.6048H21.4109ZM31.3639 14.6112C30.84 14.1259 30.1263 13.8795 29.2229 13.8795C28.0613 13.8795 27.1882 14.3108 26.6112 15.1658L27.6893 15.8513C28.0841 15.2659 28.6231 14.9732 29.3064 14.9732C29.7391 14.9732 30.1567 15.135 30.4832 15.4277C30.802 15.7049 30.9842 16.1055 30.9842 16.5291V16.8141C30.5135 16.5522 29.9214 16.4136 29.1925 16.4136C28.3422 16.4136 27.6589 16.6138 27.1502 17.0221C26.6416 17.4303 26.3834 17.9695 26.3834 18.655C26.3682 19.2789 26.634 19.872 27.1047 20.2725C27.583 20.7039 28.1904 20.9195 28.904 20.9195C29.7467 20.9195 30.4148 20.5421 30.9235 19.7873H30.9767V20.7039H32.1458V16.6292C32.1458 15.7743 31.8877 15.0964 31.3639 14.6112ZM28.046 19.4869C27.7954 19.3021 27.6436 19.0017 27.6436 18.6782C27.6436 18.3161 27.8106 18.0157 28.1371 17.777C28.4712 17.5382 28.8889 17.4149 29.3824 17.4149C30.0658 17.4072 30.5974 17.5613 30.977 17.8694C30.977 18.3932 30.772 18.8476 30.3696 19.2327C30.0051 19.6025 29.5115 19.8104 28.9952 19.8104C28.6535 19.8181 28.3194 19.7026 28.046 19.4869ZM34.7734 23.6077L38.858 14.0952H37.5294L35.6389 18.8399H35.6162L33.6802 14.0952H32.3516L35.0316 20.2803L33.5132 23.6077H34.7734Z" fill="#3C4043"/>
|
|
5
|
+
<path d="M17.1905 15.9439C17.1905 15.5665 17.1601 15.1891 17.0994 14.8193H11.9443V16.9529H14.8977C14.7762 17.6384 14.3814 18.2546 13.8044 18.6398V20.0262H15.5658C16.5983 19.0634 17.1905 17.6385 17.1905 15.9439Z" fill="#4285F4"/>
|
|
6
|
+
<path d="M11.9452 21.3662C13.4181 21.3662 14.6632 20.8732 15.5666 20.0259L13.8053 18.6395C13.3118 18.9784 12.6816 19.1709 11.9452 19.1709C10.5179 19.1709 9.31074 18.1927 8.87799 16.8833H7.06348V18.316C7.98971 20.1877 9.88015 21.3662 11.9452 21.3662Z" fill="#34A853"/>
|
|
7
|
+
<path d="M8.87795 16.8834C8.65015 16.1978 8.65015 15.4507 8.87795 14.7575V13.3325H7.06315C6.28103 14.8961 6.28103 16.7447 7.06315 18.3083L8.87795 16.8834Z" fill="#FBBC04"/>
|
|
8
|
+
<path d="M11.9452 12.47C12.7272 12.4546 13.4788 12.755 14.0406 13.3018L15.6046 11.7151C14.61 10.7754 13.3042 10.2593 11.9452 10.2747C9.88015 10.2747 7.98971 11.4609 7.06348 13.3326L8.87799 14.7653C9.31074 13.4482 10.5179 12.47 11.9452 12.47Z" fill="#EA4335"/>
|
|
9
|
+
</svg>
|
|
@@ -4,9 +4,15 @@ export interface AddMWCreditCardRef {
|
|
|
4
4
|
init: () => void;
|
|
5
5
|
onReset: () => void;
|
|
6
6
|
onSubmit: () => void;
|
|
7
|
+
close: () => void;
|
|
7
8
|
}
|
|
8
9
|
export interface AddMWCreditCardProps {
|
|
10
|
+
/** 创建卡片回调 */
|
|
9
11
|
onCreate?: (values: any) => void;
|
|
12
|
+
/** 店铺名称,用于授权说明文案 */
|
|
13
|
+
shopName?: string;
|
|
14
|
+
/** 按钮 loading */
|
|
15
|
+
btnLoading?: boolean;
|
|
10
16
|
}
|
|
11
17
|
declare const _default: React.ForwardRefExoticComponent<AddMWCreditCardProps & React.RefAttributes<any>>;
|
|
12
18
|
export default _default;
|
|
@@ -71,7 +71,7 @@ var formatName = (card_name) => {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
var AddMWCreditCard = (props, ref) => {
|
|
74
|
-
const { onCreate } = props;
|
|
74
|
+
const { onCreate, shopName = "", btnLoading = false } = props;
|
|
75
75
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
76
76
|
const [form] = import_antd.Form.useForm();
|
|
77
77
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
@@ -147,12 +147,16 @@ var AddMWCreditCard = (props, ref) => {
|
|
|
147
147
|
const onSubmit = () => {
|
|
148
148
|
form.submit();
|
|
149
149
|
};
|
|
150
|
+
const close = () => {
|
|
151
|
+
setOpen(false);
|
|
152
|
+
};
|
|
150
153
|
(0, import_react.useImperativeHandle)(
|
|
151
154
|
ref,
|
|
152
155
|
() => ({
|
|
153
156
|
init,
|
|
154
157
|
onReset,
|
|
155
|
-
onSubmit
|
|
158
|
+
onSubmit,
|
|
159
|
+
close
|
|
156
160
|
})
|
|
157
161
|
);
|
|
158
162
|
const okText = (0, import_react.useMemo)(() => {
|
|
@@ -167,15 +171,37 @@ var AddMWCreditCard = (props, ref) => {
|
|
|
167
171
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
168
172
|
import_materials.PisellModal,
|
|
169
173
|
{
|
|
170
|
-
title: /* @__PURE__ */ import_react.default.createElement("div",
|
|
174
|
+
title: /* @__PURE__ */ import_react.default.createElement("div", { className: "secure-card-payment-title" }, import_utils.locales.getText("tocPay.text.secureCardPayment"), /* @__PURE__ */ import_react.default.createElement(
|
|
175
|
+
import_materials.Iconfont,
|
|
176
|
+
{
|
|
177
|
+
type: "pisell2-shield-tick",
|
|
178
|
+
className: "secure-card-payment-title-icon"
|
|
179
|
+
}
|
|
180
|
+
)),
|
|
171
181
|
open,
|
|
172
182
|
onCancel,
|
|
173
183
|
cancelVisible: false,
|
|
174
184
|
onOk: onSubmit,
|
|
175
185
|
okText,
|
|
176
|
-
bodyStyle: { padding: 24 }
|
|
186
|
+
bodyStyle: { padding: 24, display: "flex", flexDirection: "column" },
|
|
187
|
+
okButtonProps: {
|
|
188
|
+
loading: btnLoading,
|
|
189
|
+
style: {
|
|
190
|
+
display: "flex",
|
|
191
|
+
justifyContent: "center",
|
|
192
|
+
alignItems: "center"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
177
195
|
},
|
|
178
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
|
|
196
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-mw-credit-card-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
197
|
+
import_materials.PisellAlert,
|
|
198
|
+
{
|
|
199
|
+
className: "secure-card-tip-alert",
|
|
200
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-shield-tick" }),
|
|
201
|
+
showIcon: true,
|
|
202
|
+
message: import_utils.locales.getText("tocPay.text.secureBankInfo")
|
|
203
|
+
}
|
|
204
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
179
205
|
import_antd.Form,
|
|
180
206
|
{
|
|
181
207
|
layout: "vertical",
|
|
@@ -246,24 +272,21 @@ var AddMWCreditCard = (props, ref) => {
|
|
|
246
272
|
placeholder: import_utils.locales.getText("tocPay.text.incorrectName")
|
|
247
273
|
}
|
|
248
274
|
)
|
|
249
|
-
)),
|
|
275
|
+
))),
|
|
276
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "merchant-authorization-text" }, import_utils.locales.getText("tocPay.text.merchantAuthorizationBefore"), /* @__PURE__ */ import_react.default.createElement("span", { className: "merchant-shop-name" }, shopName), import_utils.locales.getText("tocPay.text.merchantAuthorizationAfter")),
|
|
277
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { className: "secure-card-divider" }),
|
|
278
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
250
279
|
import_antd.Form.Item,
|
|
251
280
|
{
|
|
252
281
|
name: "is_save",
|
|
253
282
|
valuePropName: "checked",
|
|
254
|
-
initialValue: true
|
|
283
|
+
initialValue: true,
|
|
284
|
+
className: "save-card-form-item"
|
|
255
285
|
},
|
|
256
286
|
/* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, null, /* @__PURE__ */ import_react.default.createElement("span", { className: "save-card-checkbox-text" }, import_utils.locales.getText("tocPay.text.saveCardForNextTime")))
|
|
257
|
-
)
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
className: "save-card-alert",
|
|
261
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-shield-tick" }),
|
|
262
|
-
showIcon: true,
|
|
263
|
-
message: import_utils.locales.getText("tocPay.text.secureBankInfo")
|
|
264
|
-
}
|
|
265
|
-
)))
|
|
266
|
-
))
|
|
287
|
+
),
|
|
288
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "save-card-encryption-text" }, import_utils.locales.getText("tocPay.text.saveCardEncryption"))
|
|
289
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "three-d-secure-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "three-d-secure-badge" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-shield-01", className: "three-d-secure-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "three-d-secure-badge-text" }, "3D")), /* @__PURE__ */ import_react.default.createElement("span", { className: "three-d-secure-text" }, import_utils.locales.getText("tocPay.text.threeDSecureProtection"))))
|
|
267
290
|
);
|
|
268
291
|
};
|
|
269
292
|
var Add_default = (0, import_react.forwardRef)(AddMWCreditCard);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* 表单 label 样式 */
|
|
1
2
|
.pisell-lowcode-form-item-label {
|
|
2
3
|
color: var(--Gray-900, #101828);
|
|
3
4
|
font-size: 14px;
|
|
@@ -6,20 +7,120 @@
|
|
|
6
7
|
line-height: 20px;
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
/* 标题区域 */
|
|
11
|
+
.secure-card-payment-title {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 6px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.secure-card-payment-title-icon {
|
|
19
|
+
color: #12b76a;
|
|
20
|
+
font-size: 20px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* 外层容器 - flex 列布局,使 3D Secure 内容少时贴底 */
|
|
24
|
+
.add-mw-credit-card-wrap {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
flex: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* 安全提示 Alert - 顶部 */
|
|
31
|
+
.secure-card-tip-alert {
|
|
32
|
+
margin-bottom: 12px;
|
|
33
|
+
.pisell-lowcode-alert-message {
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
line-height: 18px;
|
|
38
|
+
color: #027a48;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* 授权说明文案 */
|
|
43
|
+
.merchant-authorization-text {
|
|
44
|
+
color: var(--Gray-600, #475467);
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
line-height: 18px;
|
|
49
|
+
margin-top: 4px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* shopName 蓝色高亮 */
|
|
53
|
+
.merchant-shop-name {
|
|
54
|
+
color: #1570EF;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* 分割线 */
|
|
58
|
+
.secure-card-divider {
|
|
59
|
+
margin: 16px 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* 保存卡片 Checkbox */
|
|
63
|
+
.save-card-form-item {
|
|
64
|
+
margin-bottom: 4px !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
9
67
|
.save-card-checkbox-text {
|
|
10
68
|
color: var(--Gray-900, #101828);
|
|
11
|
-
font-size:
|
|
69
|
+
font-size: 14px;
|
|
12
70
|
font-style: normal;
|
|
13
71
|
font-weight: 500;
|
|
14
72
|
}
|
|
15
73
|
|
|
16
|
-
|
|
74
|
+
/* 保存卡片加密提示 */
|
|
75
|
+
.save-card-encryption-text {
|
|
76
|
+
color: var(--Gray-500, #667085);
|
|
77
|
+
font-size: 13px;
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
line-height: 18px;
|
|
81
|
+
padding-left: 24px;
|
|
82
|
+
margin-bottom: 24px;
|
|
83
|
+
}
|
|
17
84
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
85
|
+
/* 3D Secure 安全说明 - margin-top: auto 使其内容少时贴底,多时跟随流 */
|
|
86
|
+
.three-d-secure-section {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
gap: 8px;
|
|
91
|
+
padding: 16px 0;
|
|
92
|
+
margin-top: auto;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.three-d-secure-badge {
|
|
96
|
+
position: relative;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
width: 32px;
|
|
101
|
+
height: 32px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.three-d-secure-icon {
|
|
105
|
+
color: #2e90fa;
|
|
106
|
+
font-size: 32px;
|
|
107
|
+
}
|
|
24
108
|
|
|
25
|
-
|
|
109
|
+
.three-d-secure-badge-text {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 50%;
|
|
112
|
+
left: 50%;
|
|
113
|
+
transform: translate(-50%, -50%);
|
|
114
|
+
font-size: 10px;
|
|
115
|
+
font-weight: 700;
|
|
116
|
+
color: #2e90fa;
|
|
117
|
+
line-height: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.three-d-secure-text {
|
|
121
|
+
color: var(--Gray-600, #475467);
|
|
122
|
+
font-size: 13px;
|
|
123
|
+
font-style: normal;
|
|
124
|
+
font-weight: 400;
|
|
125
|
+
line-height: 18px;
|
|
126
|
+
}
|
|
@@ -2,10 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import './index.less';
|
|
3
3
|
export interface MWCreditCardListRef {
|
|
4
4
|
init: (order: any) => void;
|
|
5
|
+
close: () => void;
|
|
5
6
|
}
|
|
6
7
|
interface MWCreditCardListProps {
|
|
7
8
|
onAdd?: () => void;
|
|
8
9
|
onChange?: (cardId: number) => void;
|
|
10
|
+
btnLoading?: boolean;
|
|
9
11
|
}
|
|
10
12
|
declare const _default: React.ForwardRefExoticComponent<MWCreditCardListProps & React.RefAttributes<any>>;
|
|
11
13
|
export default _default;
|
|
@@ -50,7 +50,13 @@ var MWCreditCardList = (props, ref) => {
|
|
|
50
50
|
const [manage, setManage] = (0, import_react.useState)(false);
|
|
51
51
|
const [order, setOrder] = (0, import_react.useState)(null);
|
|
52
52
|
const _getCreditCardList = async () => {
|
|
53
|
+
var _a;
|
|
53
54
|
const cardList = await (0, import_serve.getCreditCardList)();
|
|
55
|
+
if (!cardList.length) {
|
|
56
|
+
(_a = props.onAdd) == null ? void 0 : _a.call(props);
|
|
57
|
+
setLoading(false);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
54
60
|
setCreditCardList(cardList);
|
|
55
61
|
if (cardList.length) {
|
|
56
62
|
setCurrentCard(cardList[0].id);
|
|
@@ -64,15 +70,18 @@ var MWCreditCardList = (props, ref) => {
|
|
|
64
70
|
setOrder(_order);
|
|
65
71
|
setOpen(true);
|
|
66
72
|
setManage(false);
|
|
67
|
-
setOkLoading(false);
|
|
68
73
|
setCurrentCard(0);
|
|
69
74
|
_getCreditCardList();
|
|
70
75
|
};
|
|
71
76
|
const cardChange = (id) => {
|
|
72
77
|
setCurrentCard(id);
|
|
73
78
|
};
|
|
79
|
+
const close = () => {
|
|
80
|
+
setOpen(false);
|
|
81
|
+
};
|
|
74
82
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
75
|
-
init
|
|
83
|
+
init,
|
|
84
|
+
close
|
|
76
85
|
}));
|
|
77
86
|
const renderOption = (d, active) => {
|
|
78
87
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -139,7 +148,6 @@ var MWCreditCardList = (props, ref) => {
|
|
|
139
148
|
});
|
|
140
149
|
}
|
|
141
150
|
};
|
|
142
|
-
const [okLoading, setOkLoading] = (0, import_react.useState)(false);
|
|
143
151
|
const { run: onOk } = (0, import_ahooks.useDebounceFn)(
|
|
144
152
|
() => {
|
|
145
153
|
var _a;
|
|
@@ -148,7 +156,6 @@ var MWCreditCardList = (props, ref) => {
|
|
|
148
156
|
handleBatchDeleteCards();
|
|
149
157
|
return;
|
|
150
158
|
}
|
|
151
|
-
setOkLoading(true);
|
|
152
159
|
let cur = creditCardList.find((d) => d.id === currentCard);
|
|
153
160
|
(_a = props.onChange) == null ? void 0 : _a.call(props, cur);
|
|
154
161
|
},
|
|
@@ -186,7 +193,12 @@ var MWCreditCardList = (props, ref) => {
|
|
|
186
193
|
onOk,
|
|
187
194
|
okButtonProps: {
|
|
188
195
|
disabled: !currentCard,
|
|
189
|
-
loading:
|
|
196
|
+
loading: props.btnLoading,
|
|
197
|
+
style: {
|
|
198
|
+
display: "flex",
|
|
199
|
+
justifyContent: "center",
|
|
200
|
+
alignItems: "center"
|
|
201
|
+
}
|
|
190
202
|
},
|
|
191
203
|
bodyStyle: { padding: 24 }
|
|
192
204
|
},
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
|
|
3
|
+
interface ThreedsLoadingProps {
|
|
4
|
+
/** 主标题(单行模式使用,覆盖默认文案) */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 副标题(多行模式第二行,可选) */
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** 描述说明(多行模式第三行,可选) */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** 是否展示"支付完成返回"按钮 */
|
|
11
|
+
showSuccessBackButton?: boolean;
|
|
12
|
+
/** "支付完成返回"按钮点击回调 */
|
|
13
|
+
onSuccessBack?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @title: 等待加载页
|
|
17
|
+
* @description: 通用的支付等待 loading 页面。
|
|
18
|
+
* - 默认单行文案模式(传 title 或使用默认文案)
|
|
19
|
+
* - 传入 subtitle / description 后进入多行文案模式
|
|
20
|
+
* 向后兼容:不传新 props 时行为与原来完全一致。
|
|
21
|
+
*/
|
|
22
|
+
declare const ThreedsLoading: React.FC<ThreedsLoadingProps>;
|
|
4
23
|
export default ThreedsLoading;
|
|
@@ -36,7 +36,13 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
|
|
37
37
|
var import_index = require("./index.less");
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
|
-
var ThreedsLoading = ({
|
|
39
|
+
var ThreedsLoading = ({
|
|
40
|
+
title,
|
|
41
|
+
subtitle,
|
|
42
|
+
description,
|
|
43
|
+
showSuccessBackButton,
|
|
44
|
+
onSuccessBack
|
|
45
|
+
}) => {
|
|
40
46
|
var _a;
|
|
41
47
|
const context = (0, import_useEngineContext.default)();
|
|
42
48
|
const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
|
|
@@ -47,6 +53,6 @@ var ThreedsLoading = ({ title, showSuccessBackButton, onSuccessBack }) => {
|
|
|
47
53
|
src: config.static + "/static/stripe_loading.gif",
|
|
48
54
|
alt: ""
|
|
49
55
|
}
|
|
50
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")), showSuccessBackButton && /* @__PURE__ */ import_react.default.createElement("div", { onClick: onSuccessBack, className: "threeds-loading-success-back-button" }, import_utils.locales.getText("tocPay.text.successBack")));
|
|
56
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")), subtitle && /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-subtitle" }, subtitle), description && /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-description" }, description), showSuccessBackButton && /* @__PURE__ */ import_react.default.createElement("div", { onClick: onSuccessBack, className: "threeds-loading-success-back-button" }, import_utils.locales.getText("tocPay.text.successBack")));
|
|
51
57
|
};
|
|
52
58
|
var ThreedsLoading_default = ThreedsLoading;
|
|
@@ -22,6 +22,26 @@
|
|
|
22
22
|
color: #353535;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.threeds-loading-subtitle {
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
padding: 0 40px;
|
|
28
|
+
text-align: center;
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
line-height: 20px;
|
|
32
|
+
color: #475467;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.threeds-loading-description {
|
|
36
|
+
margin-top: 4px;
|
|
37
|
+
padding: 0 40px;
|
|
38
|
+
text-align: center;
|
|
39
|
+
font-size: 13px;
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
line-height: 18px;
|
|
42
|
+
color: #667085;
|
|
43
|
+
}
|
|
44
|
+
|
|
25
45
|
.threeds-loading-success-back-button {
|
|
26
46
|
margin-top: 20px;
|
|
27
47
|
color: #4b6b99;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export interface TDSPayRef {
|
|
4
|
-
|
|
4
|
+
/** 初始化 3DS 支付流程
|
|
5
|
+
* @param res 卡信息(已保存卡含 id,新卡含表单字段)
|
|
6
|
+
* @param order 订单信息
|
|
7
|
+
* @param preCheckData 可选,外部预检查已获取的数据(跳过内部 fastPayNew / checkEnrollment)
|
|
8
|
+
*/
|
|
9
|
+
init: (res: any, order: any, preCheckData?: any) => void;
|
|
5
10
|
}
|
|
6
11
|
export interface TDSPayProps {
|
|
7
12
|
onChange?: (values: any) => void;
|
|
13
|
+
closeAll: () => void;
|
|
8
14
|
}
|
|
9
15
|
declare const _default: React.ForwardRefExoticComponent<TDSPayProps & React.RefAttributes<any>>;
|
|
10
16
|
export default _default;
|