@pisell/private-materials 6.3.33 → 6.3.34
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 +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 +23 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -8
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +98 -66
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/utils.js +0 -1
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +602 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/Login2.0/Login2.js +4 -0
- package/es/pro/Login2.0/locales.js +93 -93
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +90 -51
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/utils.js +0 -1
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +498 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/Login2.0/Login2.js +3 -0
- package/lib/pro/Login2.0/locales.js +93 -93
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +4 -4
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -100,38 +100,38 @@ export default {
|
|
|
100
100
|
'pisell-phone-validation-required': 'Please enter your phone',
|
|
101
101
|
'pisell-phone-validation-invalid': 'Please enter a valid phone',
|
|
102
102
|
'pisell-phone-validation-invalid-format': 'Please enter a valid phone',
|
|
103
|
-
'pisell-phone-validation-china': 'Please enter a valid Chinese phone
|
|
104
|
-
'pisell-phone-validation-hongkong': 'Please enter a valid Hong Kong phone
|
|
105
|
-
'pisell-phone-validation-macau': 'Please enter a valid Macau phone
|
|
106
|
-
'pisell-phone-validation-taiwan': 'Please enter a valid Taiwan phone
|
|
107
|
-
'pisell-phone-validation-us-canada': 'Please enter a valid US/Canada phone
|
|
108
|
-
'pisell-phone-validation-uk': 'Please enter a valid UK phone
|
|
103
|
+
'pisell-phone-validation-china': 'Please enter a valid Chinese phone',
|
|
104
|
+
'pisell-phone-validation-hongkong': 'Please enter a valid Hong Kong phone',
|
|
105
|
+
'pisell-phone-validation-macau': 'Please enter a valid Macau phone',
|
|
106
|
+
'pisell-phone-validation-taiwan': 'Please enter a valid Taiwan phone',
|
|
107
|
+
'pisell-phone-validation-us-canada': 'Please enter a valid US/Canada phone',
|
|
108
|
+
'pisell-phone-validation-uk': 'Please enter a valid UK phone',
|
|
109
109
|
'pisell-phone-validation-australia': 'Please enter a valid Australian phone',
|
|
110
|
-
'pisell-phone-validation-japan': 'Please enter a valid Japanese phone
|
|
111
|
-
'pisell-phone-validation-korea': 'Please enter a valid Korean phone
|
|
112
|
-
'pisell-phone-validation-singapore': 'Please enter a valid Singapore phone
|
|
113
|
-
'pisell-phone-validation-malaysia': 'Please enter a valid Malaysian phone
|
|
114
|
-
'pisell-phone-validation-thailand': 'Please enter a valid Thai phone
|
|
115
|
-
'pisell-phone-validation-vietnam': 'Please enter a valid Vietnamese phone
|
|
116
|
-
'pisell-phone-validation-philippines': 'Please enter a valid Philippine phone
|
|
117
|
-
'pisell-phone-validation-indonesia': 'Please enter a valid Indonesian phone
|
|
118
|
-
'pisell-phone-validation-india': 'Please enter a valid Indian phone
|
|
119
|
-
'pisell-phone-validation-invalid-china': 'Please enter a valid Chinese phone
|
|
120
|
-
'pisell-phone-validation-invalid-hongkong': 'Please enter a valid Hong Kong phone
|
|
121
|
-
'pisell-phone-validation-invalid-macau': 'Please enter a valid Macau phone
|
|
122
|
-
'pisell-phone-validation-invalid-taiwan': 'Please enter a valid Taiwan phone
|
|
123
|
-
'pisell-phone-validation-invalid-us-canada': 'Please enter a valid US/Canada phone
|
|
124
|
-
'pisell-phone-validation-invalid-uk': 'Please enter a valid UK phone
|
|
125
|
-
'pisell-phone-validation-invalid-australia': 'Please enter a valid Australian phone
|
|
126
|
-
'pisell-phone-validation-invalid-japan': 'Please enter a valid Japanese phone
|
|
127
|
-
'pisell-phone-validation-invalid-korea': 'Please enter a valid Korean phone
|
|
128
|
-
'pisell-phone-validation-invalid-singapore': 'Please enter a valid Singapore phone
|
|
129
|
-
'pisell-phone-validation-invalid-malaysia': 'Please enter a valid Malaysian phone
|
|
130
|
-
'pisell-phone-validation-invalid-thailand': 'Please enter a valid Thai phone
|
|
131
|
-
'pisell-phone-validation-invalid-vietnam': 'Please enter a valid Vietnamese phone
|
|
132
|
-
'pisell-phone-validation-invalid-philippines': 'Please enter a valid Philippine phone
|
|
133
|
-
'pisell-phone-validation-invalid-indonesia': 'Please enter a valid Indonesian phone
|
|
134
|
-
'pisell-phone-validation-invalid-india': 'Please enter a valid Indian phone
|
|
110
|
+
'pisell-phone-validation-japan': 'Please enter a valid Japanese phone',
|
|
111
|
+
'pisell-phone-validation-korea': 'Please enter a valid Korean phone',
|
|
112
|
+
'pisell-phone-validation-singapore': 'Please enter a valid Singapore phone',
|
|
113
|
+
'pisell-phone-validation-malaysia': 'Please enter a valid Malaysian phone',
|
|
114
|
+
'pisell-phone-validation-thailand': 'Please enter a valid Thai phone',
|
|
115
|
+
'pisell-phone-validation-vietnam': 'Please enter a valid Vietnamese phone',
|
|
116
|
+
'pisell-phone-validation-philippines': 'Please enter a valid Philippine phone',
|
|
117
|
+
'pisell-phone-validation-indonesia': 'Please enter a valid Indonesian phone',
|
|
118
|
+
'pisell-phone-validation-india': 'Please enter a valid Indian phone',
|
|
119
|
+
'pisell-phone-validation-invalid-china': 'Please enter a valid Chinese phone',
|
|
120
|
+
'pisell-phone-validation-invalid-hongkong': 'Please enter a valid Hong Kong phone',
|
|
121
|
+
'pisell-phone-validation-invalid-macau': 'Please enter a valid Macau phone',
|
|
122
|
+
'pisell-phone-validation-invalid-taiwan': 'Please enter a valid Taiwan phone',
|
|
123
|
+
'pisell-phone-validation-invalid-us-canada': 'Please enter a valid US/Canada phone',
|
|
124
|
+
'pisell-phone-validation-invalid-uk': 'Please enter a valid UK phone',
|
|
125
|
+
'pisell-phone-validation-invalid-australia': 'Please enter a valid Australian phone',
|
|
126
|
+
'pisell-phone-validation-invalid-japan': 'Please enter a valid Japanese phone',
|
|
127
|
+
'pisell-phone-validation-invalid-korea': 'Please enter a valid Korean phone',
|
|
128
|
+
'pisell-phone-validation-invalid-singapore': 'Please enter a valid Singapore phone',
|
|
129
|
+
'pisell-phone-validation-invalid-malaysia': 'Please enter a valid Malaysian phone',
|
|
130
|
+
'pisell-phone-validation-invalid-thailand': 'Please enter a valid Thai phone',
|
|
131
|
+
'pisell-phone-validation-invalid-vietnam': 'Please enter a valid Vietnamese phone',
|
|
132
|
+
'pisell-phone-validation-invalid-philippines': 'Please enter a valid Philippine phone',
|
|
133
|
+
'pisell-phone-validation-invalid-indonesia': 'Please enter a valid Indonesian phone',
|
|
134
|
+
'pisell-phone-validation-invalid-india': 'Please enter a valid Indian phone',
|
|
135
135
|
// OAuth buttons
|
|
136
136
|
'pisell-register2-continue-with-google': 'Continue with Google',
|
|
137
137
|
'pisell-register2-continue-with-facebook': 'Continue with Facebook',
|
|
@@ -306,38 +306,38 @@ export default {
|
|
|
306
306
|
'pisell-phone-validation-required': '请输入手机号',
|
|
307
307
|
'pisell-phone-validation-invalid': '请输入正确的手机号',
|
|
308
308
|
'pisell-phone-validation-invalid-format': '请输入正确的手机号',
|
|
309
|
-
'pisell-phone-validation-china': '
|
|
310
|
-
'pisell-phone-validation-hongkong': '
|
|
311
|
-
'pisell-phone-validation-macau': '
|
|
312
|
-
'pisell-phone-validation-taiwan': '
|
|
313
|
-
'pisell-phone-validation-us-canada': '
|
|
314
|
-
'pisell-phone-validation-uk': '
|
|
309
|
+
'pisell-phone-validation-china': '请输入正确的中国大陆手机号',
|
|
310
|
+
'pisell-phone-validation-hongkong': '请输入正确的香港手机号',
|
|
311
|
+
'pisell-phone-validation-macau': '请输入正确的澳门手机号',
|
|
312
|
+
'pisell-phone-validation-taiwan': '请输入正确的台湾手机号',
|
|
313
|
+
'pisell-phone-validation-us-canada': '请输入正确的美国/加拿大手机号',
|
|
314
|
+
'pisell-phone-validation-uk': '请输入正确的英国手机号',
|
|
315
315
|
'pisell-phone-validation-australia': '请输入正确的澳大利亚手机号',
|
|
316
|
-
'pisell-phone-validation-japan': '
|
|
317
|
-
'pisell-phone-validation-korea': '
|
|
318
|
-
'pisell-phone-validation-singapore': '
|
|
319
|
-
'pisell-phone-validation-malaysia': '
|
|
320
|
-
'pisell-phone-validation-thailand': '
|
|
321
|
-
'pisell-phone-validation-vietnam': '
|
|
322
|
-
'pisell-phone-validation-philippines': '
|
|
323
|
-
'pisell-phone-validation-indonesia': '
|
|
324
|
-
'pisell-phone-validation-india': '
|
|
325
|
-
'pisell-phone-validation-invalid-china': '
|
|
326
|
-
'pisell-phone-validation-invalid-hongkong': '
|
|
327
|
-
'pisell-phone-validation-invalid-macau': '
|
|
328
|
-
'pisell-phone-validation-invalid-taiwan': '
|
|
329
|
-
'pisell-phone-validation-invalid-us-canada': '
|
|
330
|
-
'pisell-phone-validation-invalid-uk': '
|
|
331
|
-
'pisell-phone-validation-invalid-australia': '
|
|
332
|
-
'pisell-phone-validation-invalid-japan': '
|
|
333
|
-
'pisell-phone-validation-invalid-korea': '
|
|
334
|
-
'pisell-phone-validation-invalid-singapore': '
|
|
335
|
-
'pisell-phone-validation-invalid-malaysia': '
|
|
336
|
-
'pisell-phone-validation-invalid-thailand': '
|
|
337
|
-
'pisell-phone-validation-invalid-vietnam': '
|
|
338
|
-
'pisell-phone-validation-invalid-philippines': '
|
|
339
|
-
'pisell-phone-validation-invalid-indonesia': '
|
|
340
|
-
'pisell-phone-validation-invalid-india': '
|
|
316
|
+
'pisell-phone-validation-japan': '请输入正确的日本手机号',
|
|
317
|
+
'pisell-phone-validation-korea': '请输入正确的韩国手机号',
|
|
318
|
+
'pisell-phone-validation-singapore': '请输入正确的新加坡手机号',
|
|
319
|
+
'pisell-phone-validation-malaysia': '请输入正确的马来西亚手机号',
|
|
320
|
+
'pisell-phone-validation-thailand': '请输入正确的泰国手机号',
|
|
321
|
+
'pisell-phone-validation-vietnam': '请输入正确的越南手机号',
|
|
322
|
+
'pisell-phone-validation-philippines': '请输入正确的菲律宾手机号',
|
|
323
|
+
'pisell-phone-validation-indonesia': '请输入正确的印尼手机号',
|
|
324
|
+
'pisell-phone-validation-india': '请输入正确的印度手机号',
|
|
325
|
+
'pisell-phone-validation-invalid-china': '请输入正确的中国大陆手机号',
|
|
326
|
+
'pisell-phone-validation-invalid-hongkong': '请输入正确的香港手机号',
|
|
327
|
+
'pisell-phone-validation-invalid-macau': '请输入正确的澳门手机号',
|
|
328
|
+
'pisell-phone-validation-invalid-taiwan': '请输入正确的台湾手机号',
|
|
329
|
+
'pisell-phone-validation-invalid-us-canada': '请输入正确的美国/加拿大手机号',
|
|
330
|
+
'pisell-phone-validation-invalid-uk': '请输入正确的英国手机号',
|
|
331
|
+
'pisell-phone-validation-invalid-australia': '请输入正确的澳大利亚手机号',
|
|
332
|
+
'pisell-phone-validation-invalid-japan': '请输入正确的日本手机号',
|
|
333
|
+
'pisell-phone-validation-invalid-korea': '请输入正确的韩国手机号',
|
|
334
|
+
'pisell-phone-validation-invalid-singapore': '请输入正确的新加坡手机号',
|
|
335
|
+
'pisell-phone-validation-invalid-malaysia': '请输入正确的马来西亚手机号',
|
|
336
|
+
'pisell-phone-validation-invalid-thailand': '请输入正确的泰国手机号',
|
|
337
|
+
'pisell-phone-validation-invalid-vietnam': '请输入正确的越南手机号',
|
|
338
|
+
'pisell-phone-validation-invalid-philippines': '请输入正确的菲律宾手机号',
|
|
339
|
+
'pisell-phone-validation-invalid-indonesia': '请输入正确的印尼手机号',
|
|
340
|
+
'pisell-phone-validation-invalid-india': '请输入正确的印度手机号',
|
|
341
341
|
// OAuth buttons
|
|
342
342
|
'pisell-register2-continue-with-google': '使用Google继续',
|
|
343
343
|
'pisell-register2-continue-with-facebook': '使用Facebook继续',
|
|
@@ -552,38 +552,38 @@ export default {
|
|
|
552
552
|
'pisell-phone-validation-required': '請輸入手機號碼',
|
|
553
553
|
'pisell-phone-validation-invalid': '請輸入正確的手機號碼',
|
|
554
554
|
'pisell-phone-validation-invalid-format': '請輸入正確的手機號碼',
|
|
555
|
-
'pisell-phone-validation-china': '
|
|
556
|
-
'pisell-phone-validation-hongkong': '
|
|
557
|
-
'pisell-phone-validation-macau': '
|
|
558
|
-
'pisell-phone-validation-taiwan': '
|
|
559
|
-
'pisell-phone-validation-us-canada': '
|
|
560
|
-
'pisell-phone-validation-uk': '
|
|
555
|
+
'pisell-phone-validation-china': '請輸入正確的中國大陸手機號碼',
|
|
556
|
+
'pisell-phone-validation-hongkong': '請輸入正確的香港手機號碼',
|
|
557
|
+
'pisell-phone-validation-macau': '請輸入正確的澳門手機號碼',
|
|
558
|
+
'pisell-phone-validation-taiwan': '請輸入正確的台灣手機號碼',
|
|
559
|
+
'pisell-phone-validation-us-canada': '請輸入正確的美國/加拿大手機號碼',
|
|
560
|
+
'pisell-phone-validation-uk': '請輸入正確的英國手機號碼',
|
|
561
561
|
'pisell-phone-validation-australia': '請輸入正確的澳洲手機號碼',
|
|
562
|
-
'pisell-phone-validation-japan': '
|
|
563
|
-
'pisell-phone-validation-korea': '
|
|
564
|
-
'pisell-phone-validation-singapore': '
|
|
565
|
-
'pisell-phone-validation-malaysia': '
|
|
566
|
-
'pisell-phone-validation-thailand': '
|
|
567
|
-
'pisell-phone-validation-vietnam': '
|
|
568
|
-
'pisell-phone-validation-philippines': '
|
|
569
|
-
'pisell-phone-validation-indonesia': '
|
|
570
|
-
'pisell-phone-validation-india': '
|
|
571
|
-
'pisell-phone-validation-invalid-china': '
|
|
572
|
-
'pisell-phone-validation-invalid-hongkong': '
|
|
573
|
-
'pisell-phone-validation-invalid-macau': '
|
|
574
|
-
'pisell-phone-validation-invalid-taiwan': '
|
|
575
|
-
'pisell-phone-validation-invalid-us-canada': '
|
|
576
|
-
'pisell-phone-validation-invalid-uk': '
|
|
577
|
-
'pisell-phone-validation-invalid-australia': '
|
|
578
|
-
'pisell-phone-validation-invalid-japan': '
|
|
579
|
-
'pisell-phone-validation-invalid-korea': '
|
|
580
|
-
'pisell-phone-validation-invalid-singapore': '
|
|
581
|
-
'pisell-phone-validation-invalid-malaysia': '
|
|
582
|
-
'pisell-phone-validation-invalid-thailand': '
|
|
583
|
-
'pisell-phone-validation-invalid-vietnam': '
|
|
584
|
-
'pisell-phone-validation-invalid-philippines': '
|
|
585
|
-
'pisell-phone-validation-invalid-indonesia': '
|
|
586
|
-
'pisell-phone-validation-invalid-india': '
|
|
562
|
+
'pisell-phone-validation-japan': '請輸入正確的日本手機號碼',
|
|
563
|
+
'pisell-phone-validation-korea': '請輸入正確的韓國手機號碼',
|
|
564
|
+
'pisell-phone-validation-singapore': '請輸入正確的新加坡手機號碼',
|
|
565
|
+
'pisell-phone-validation-malaysia': '請輸入正確的馬來西亞手機號碼',
|
|
566
|
+
'pisell-phone-validation-thailand': '請輸入正確的泰國手機號碼',
|
|
567
|
+
'pisell-phone-validation-vietnam': '請輸入正確的越南手機號碼',
|
|
568
|
+
'pisell-phone-validation-philippines': '請輸入正確的菲律賓手機號碼',
|
|
569
|
+
'pisell-phone-validation-indonesia': '請輸入正確的印尼手機號碼',
|
|
570
|
+
'pisell-phone-validation-india': '請輸入正確的印度手機號碼',
|
|
571
|
+
'pisell-phone-validation-invalid-china': '請輸入正確的中國大陸手機號碼',
|
|
572
|
+
'pisell-phone-validation-invalid-hongkong': '請輸入正確的香港手機號碼',
|
|
573
|
+
'pisell-phone-validation-invalid-macau': '請輸入正確的澳門手機號碼',
|
|
574
|
+
'pisell-phone-validation-invalid-taiwan': '請輸入正確的台灣手機號碼',
|
|
575
|
+
'pisell-phone-validation-invalid-us-canada': '請輸入正確的美國/加拿大手機號碼',
|
|
576
|
+
'pisell-phone-validation-invalid-uk': '請輸入正確的英國手機號碼',
|
|
577
|
+
'pisell-phone-validation-invalid-australia': '請輸入正確的澳洲手機號碼',
|
|
578
|
+
'pisell-phone-validation-invalid-japan': '請輸入正確的日本手機號碼',
|
|
579
|
+
'pisell-phone-validation-invalid-korea': '請輸入正確的韓國手機號碼',
|
|
580
|
+
'pisell-phone-validation-invalid-singapore': '請輸入正確的新加坡手機號碼',
|
|
581
|
+
'pisell-phone-validation-invalid-malaysia': '請輸入正確的馬來西亞手機號碼',
|
|
582
|
+
'pisell-phone-validation-invalid-thailand': '請輸入正確的泰國手機號碼',
|
|
583
|
+
'pisell-phone-validation-invalid-vietnam': '請輸入正確的越南手機號碼',
|
|
584
|
+
'pisell-phone-validation-invalid-philippines': '請輸入正確的菲律賓手機號碼',
|
|
585
|
+
'pisell-phone-validation-invalid-indonesia': '請輸入正確的印尼手機號碼',
|
|
586
|
+
'pisell-phone-validation-invalid-india': '請輸入正確的印度手機號碼',
|
|
587
587
|
// Verification success
|
|
588
588
|
'pisell-verification-success-title': '驗證成功',
|
|
589
589
|
// Step-by-step login
|
|
@@ -9,7 +9,6 @@ import ProductExtension from './productExtension';
|
|
|
9
9
|
import RuleSetting from './ruleSetting';
|
|
10
10
|
import TaxSelect from './taxSelect';
|
|
11
11
|
import ToCPay from './pay/toC';
|
|
12
|
-
import Wallet from './wallet';
|
|
13
12
|
import WalletList from './walletList';
|
|
14
13
|
import WorkspaceListDetail from './workSpaceListDetail/';
|
|
15
14
|
import WorkspaceList from './workSpaceList';
|
|
@@ -19,4 +18,4 @@ import EditBookingModal from './booking/editBookingModal';
|
|
|
19
18
|
import StepController from './stepController';
|
|
20
19
|
import PinModal from './pinModal';
|
|
21
20
|
import PinVerifyModal from './pinVerifyModal';
|
|
22
|
-
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal,
|
|
21
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, };
|
package/lib/components/index.js
CHANGED
|
@@ -46,7 +46,6 @@ __export(components_exports, {
|
|
|
46
46
|
SubTotal: () => import_subTotal.default,
|
|
47
47
|
TaxSelect: () => import_taxSelect.default,
|
|
48
48
|
ToCPay: () => import_toC.default,
|
|
49
|
-
Wallet: () => import_wallet.default,
|
|
50
49
|
WalletList: () => import_walletList.default,
|
|
51
50
|
WorkspaceList: () => import_workSpaceList.default,
|
|
52
51
|
WorkspaceListDetail: () => import_workSpaceListDetail.default
|
|
@@ -63,7 +62,6 @@ var import_productExtension = __toESM(require("./productExtension"));
|
|
|
63
62
|
var import_ruleSetting = __toESM(require("./ruleSetting"));
|
|
64
63
|
var import_taxSelect = __toESM(require("./taxSelect"));
|
|
65
64
|
var import_toC = __toESM(require("./pay/toC"));
|
|
66
|
-
var import_wallet = __toESM(require("./wallet"));
|
|
67
65
|
var import_walletList = __toESM(require("./walletList"));
|
|
68
66
|
var import_workSpaceListDetail = __toESM(require("./workSpaceListDetail/"));
|
|
69
67
|
var import_workSpaceList = __toESM(require("./workSpaceList"));
|
|
@@ -92,7 +90,6 @@ var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
|
|
|
92
90
|
SubTotal,
|
|
93
91
|
TaxSelect,
|
|
94
92
|
ToCPay,
|
|
95
|
-
Wallet,
|
|
96
93
|
WalletList,
|
|
97
94
|
WorkspaceList,
|
|
98
95
|
WorkspaceListDetail
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
|
-
declare module 'react' {
|
|
4
|
-
interface HTMLAttributes<T> {
|
|
5
|
-
role?: string;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
namespace JSX {
|
|
10
|
-
interface IntrinsicElements {
|
|
11
|
-
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
14
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
|
15
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
|
|
16
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
|
17
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
|
18
|
-
role?: string;
|
|
19
|
-
};
|
|
20
|
-
img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
21
|
-
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
2
|
declare const WalletList: (props: any) => JSX.Element;
|
|
28
3
|
export default WalletList;
|
|
@@ -104,8 +104,48 @@ var DEFAULT_WALLET_CARD = {
|
|
|
104
104
|
en: "Level"
|
|
105
105
|
},
|
|
106
106
|
metadata: {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
showcaseWalletPassNew: [
|
|
108
|
+
{
|
|
109
|
+
type: "rechargeable",
|
|
110
|
+
display: 1,
|
|
111
|
+
custom_title: {
|
|
112
|
+
original: "Balance",
|
|
113
|
+
"zh-CN": "充值卡",
|
|
114
|
+
"zh-HK": "充值卡",
|
|
115
|
+
en: "Balance"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: "point",
|
|
120
|
+
display: 1,
|
|
121
|
+
custom_title: {
|
|
122
|
+
original: "Points",
|
|
123
|
+
"zh-CN": "积分卡",
|
|
124
|
+
"zh-HK": "積分卡",
|
|
125
|
+
en: "Points"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "voucher",
|
|
130
|
+
display: 1,
|
|
131
|
+
custom_title: {
|
|
132
|
+
original: "Voucher",
|
|
133
|
+
"zh-CN": "代金券",
|
|
134
|
+
"zh-HK": "代金券",
|
|
135
|
+
en: "Voucher"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: "discount",
|
|
140
|
+
display: 1,
|
|
141
|
+
custom_title: {
|
|
142
|
+
original: "Discount",
|
|
143
|
+
"zh-CN": "折扣卡",
|
|
144
|
+
"zh-HK": "折扣卡",
|
|
145
|
+
en: "Discount"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
],
|
|
109
149
|
coverImage: "",
|
|
110
150
|
icon: ""
|
|
111
151
|
}
|
|
@@ -171,7 +211,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
171
211
|
if (isMountedRef.current) {
|
|
172
212
|
setState({
|
|
173
213
|
list: [DEFAULT_WALLET_CARD],
|
|
174
|
-
balance:
|
|
214
|
+
balance: [],
|
|
175
215
|
hasAttempted: true,
|
|
176
216
|
isLoggedIn: false
|
|
177
217
|
});
|
|
@@ -269,7 +309,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
269
309
|
if (!isUserLoggedIn) {
|
|
270
310
|
setState({
|
|
271
311
|
list: [DEFAULT_WALLET_CARD],
|
|
272
|
-
balance:
|
|
312
|
+
balance: [],
|
|
273
313
|
hasAttempted: true,
|
|
274
314
|
isLoggedIn: false
|
|
275
315
|
});
|
|
@@ -281,6 +321,12 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
281
321
|
try {
|
|
282
322
|
cachedList = getFromLocalStorage(STORAGE_KEY);
|
|
283
323
|
cachedBalance = getFromLocalStorage(STORAGE_KEY_BALANCE);
|
|
324
|
+
if (!Array.isArray(cachedBalance) || !cachedBalance.some(() => {
|
|
325
|
+
var _a3;
|
|
326
|
+
return (_a3 = items == null ? void 0 : items.hasOwnProperty) == null ? void 0 : _a3.call(items, "gift_card_balance");
|
|
327
|
+
})) {
|
|
328
|
+
cachedBalance = null;
|
|
329
|
+
}
|
|
284
330
|
} catch (e) {
|
|
285
331
|
console.error("Error fetching from localStorage:", e);
|
|
286
332
|
}
|
|
@@ -293,10 +339,10 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
293
339
|
}
|
|
294
340
|
try {
|
|
295
341
|
if (!isMountedRef.current) return;
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
(
|
|
299
|
-
|
|
342
|
+
const walletListData = await (0, import_serve.getWalletList)();
|
|
343
|
+
const walletBalanceData = await (0, import_serve.batchGetWalletBalance)(
|
|
344
|
+
walletListData.map((item2) => item2.wallet_id)
|
|
345
|
+
);
|
|
300
346
|
if (!isMountedRef.current || requestIdRef.current !== requestId) return;
|
|
301
347
|
if (walletListData) {
|
|
302
348
|
try {
|
|
@@ -319,8 +365,20 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
319
365
|
try {
|
|
320
366
|
let retryBalanceData = walletBalanceData;
|
|
321
367
|
let retryListData = walletListData;
|
|
368
|
+
if (Array.isArray(walletListData) && walletListData.length === 0) {
|
|
369
|
+
retryListData = await (0, import_serve.getWalletList)();
|
|
370
|
+
if (retryListData && retryListData.length > 0) {
|
|
371
|
+
try {
|
|
372
|
+
saveToLocalStorage(STORAGE_KEY, retryListData);
|
|
373
|
+
} catch (e) {
|
|
374
|
+
console.error("Error saving retry list to localStorage:", e);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
322
378
|
if (!walletBalanceData) {
|
|
323
|
-
retryBalanceData = await (0, import_serve.
|
|
379
|
+
retryBalanceData = await (0, import_serve.batchGetWalletBalance)(
|
|
380
|
+
retryListData.map((item2) => item2.wallet_id)
|
|
381
|
+
);
|
|
324
382
|
if (retryBalanceData) {
|
|
325
383
|
try {
|
|
326
384
|
saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
|
|
@@ -332,16 +390,6 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
332
390
|
}
|
|
333
391
|
}
|
|
334
392
|
}
|
|
335
|
-
if (Array.isArray(walletListData) && walletListData.length === 0) {
|
|
336
|
-
retryListData = await (0, import_serve.getWalletList)({});
|
|
337
|
-
if (retryListData && retryListData.length > 0) {
|
|
338
|
-
try {
|
|
339
|
-
saveToLocalStorage(STORAGE_KEY, retryListData);
|
|
340
|
-
} catch (e) {
|
|
341
|
-
console.error("Error saving retry list to localStorage:", e);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
393
|
setState({
|
|
346
394
|
list: retryListData || [],
|
|
347
395
|
balance: retryBalanceData,
|
|
@@ -380,55 +428,46 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
380
428
|
console.error("onViewPinClick方法需要传入wallet_detail_id");
|
|
381
429
|
}
|
|
382
430
|
};
|
|
383
|
-
const renderWalletCard = (
|
|
431
|
+
const renderWalletCard = (_walletItem) => {
|
|
384
432
|
var _a2;
|
|
385
|
-
const { code, shop, wallet, id } =
|
|
433
|
+
const { code, shop, wallet, id } = _walletItem;
|
|
386
434
|
const { metadata, name } = wallet || {};
|
|
387
435
|
const {
|
|
388
|
-
|
|
389
|
-
showcaseWalletPass = [],
|
|
436
|
+
showcaseWalletPassNew = [],
|
|
390
437
|
coverImage = "",
|
|
391
438
|
icon = ""
|
|
392
439
|
} = metadata || {};
|
|
393
440
|
const { name: shopName } = shop;
|
|
394
|
-
const { balance } = state;
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
441
|
+
const { balance = [] } = state;
|
|
442
|
+
const balanceItem = balance.find((bi) => bi.wallet_id == _walletItem.wallet_id) || DEFAULT_BALANCE;
|
|
443
|
+
const _balanceKeyMap = {
|
|
444
|
+
rechargeable: "gift_card_balance",
|
|
445
|
+
point: "point_card_balance",
|
|
446
|
+
voucher: "voucher_count",
|
|
447
|
+
discount: "discount_card_count"
|
|
400
448
|
};
|
|
401
|
-
const cardItems = (
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
value += balance.good_pass_count;
|
|
410
|
-
}
|
|
411
|
-
return {
|
|
412
|
-
key,
|
|
413
|
-
label: key,
|
|
414
|
-
hidden: false,
|
|
415
|
-
value
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
);
|
|
449
|
+
const cardItems = showcaseWalletPassNew.map((item2) => {
|
|
450
|
+
const balanceKey = _balanceKeyMap[item2.type];
|
|
451
|
+
let value = balanceKey ? balanceItem[balanceKey] || 0 : 0;
|
|
452
|
+
return {
|
|
453
|
+
...item2,
|
|
454
|
+
value
|
|
455
|
+
};
|
|
456
|
+
});
|
|
419
457
|
const cardProps = {
|
|
420
458
|
// 先应用默认配置
|
|
421
459
|
...import_types.DEFAULT_CARD_CONFIG,
|
|
422
460
|
// 再应用globalState作为兜底
|
|
423
461
|
...globalState,
|
|
424
462
|
// 最后应用API返回的数据,这些拥有最高优先级
|
|
463
|
+
id: wallet.id,
|
|
425
464
|
iconImg: icon,
|
|
426
465
|
symbol,
|
|
427
466
|
cardNo: code,
|
|
428
467
|
walletName: getLocalizedName(name, (_a2 = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _a2.translateLocale),
|
|
429
468
|
shopName,
|
|
430
|
-
codeType: barcodetype,
|
|
431
|
-
items: cardItems,
|
|
469
|
+
// codeType: barcodetype,
|
|
470
|
+
items: cardItems.slice(0, 4),
|
|
432
471
|
customBackgroundImage: coverImage,
|
|
433
472
|
isLogin: isUserLoggedIn
|
|
434
473
|
// 添加登录状态
|
|
@@ -499,7 +538,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
499
538
|
]
|
|
500
539
|
};
|
|
501
540
|
const renderBalanceCard = (0, import_react.useCallback)((balance) => {
|
|
502
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-balance-card", key: balance.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-title" }, balance.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-value" }, balance.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-content" }, balance.items && balance.items.map((
|
|
541
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-balance-card", key: balance.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-title" }, balance.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-value" }, balance.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-content" }, balance.items && balance.items.map((item2) => /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item", key: item2.key }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-label" }, item2.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-value" }, item2.value)))));
|
|
503
542
|
}, []);
|
|
504
543
|
const isShowGuide = (0, import_react.useMemo)(() => {
|
|
505
544
|
var _a2;
|
|
@@ -518,7 +557,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
518
557
|
...globalState,
|
|
519
558
|
walletGuideConfig: (globalState == null ? void 0 : globalState.walletGuideConfig) || (0, import_status.defaultWalletGuideConfig)()
|
|
520
559
|
}
|
|
521
|
-
) : /* @__PURE__ */ import_react.default.createElement(import_materials.Carousel, { ref: carouselRef, ...carouselProps }, list.map((
|
|
560
|
+
) : /* @__PURE__ */ import_react.default.createElement(import_materials.Carousel, { ref: carouselRef, ...carouselProps }, list.map((item2) => renderWalletCard(item2)))), list && list.length > 1 && isUserLoggedIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-navigation" }, /* @__PURE__ */ import_react.default.createElement(
|
|
522
561
|
"div",
|
|
523
562
|
{
|
|
524
563
|
className: `wallet-nav-button wallet-prev ${currentIndex === 0 ? "disabled" : ""}`,
|
|
@@ -10,6 +10,10 @@ export declare const getWalletList: () => Promise<WalletPass[]>;
|
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const getWalletBalance: () => Promise<WalletBalance | null>;
|
|
13
|
+
/**
|
|
14
|
+
* 批量获取钱包余额信息
|
|
15
|
+
*/
|
|
16
|
+
export declare const batchGetWalletBalance: (walletIds: string[]) => Promise<Record<string, WalletBalance> | null>;
|
|
13
17
|
/**
|
|
14
18
|
* @title: 获取钱包店铺列表
|
|
15
19
|
* @description:
|
|
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/walletList/serve.ts
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
|
+
batchGetWalletBalance: () => batchGetWalletBalance,
|
|
22
23
|
getWalletBalance: () => getWalletBalance,
|
|
23
24
|
getWalletList: () => getWalletList,
|
|
24
25
|
getWalletShopList: () => getWalletShopList
|
|
@@ -41,6 +42,16 @@ var getWalletBalance = async () => {
|
|
|
41
42
|
return null;
|
|
42
43
|
}
|
|
43
44
|
};
|
|
45
|
+
var batchGetWalletBalance = async (walletIds) => {
|
|
46
|
+
try {
|
|
47
|
+
const { data } = await import_utils.request.getRequest().get("/h5/wallet/wallet-pass/balance/batch", {
|
|
48
|
+
wallet_id: walletIds
|
|
49
|
+
});
|
|
50
|
+
return data || {};
|
|
51
|
+
} catch (error) {
|
|
52
|
+
return {};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
44
55
|
var getWalletShopList = async (params) => {
|
|
45
56
|
try {
|
|
46
57
|
const { data } = await import_utils.request.getRequest().get("/h5/wallet/shop/list", params || {}, {
|
|
@@ -54,6 +65,7 @@ var getWalletShopList = async (params) => {
|
|
|
54
65
|
};
|
|
55
66
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
67
|
0 && (module.exports = {
|
|
68
|
+
batchGetWalletBalance,
|
|
57
69
|
getWalletBalance,
|
|
58
70
|
getWalletList,
|
|
59
71
|
getWalletShopList
|
|
@@ -6,14 +6,18 @@ export interface MultiLanguageName {
|
|
|
6
6
|
en: string;
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
}
|
|
9
|
+
declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
|
|
9
10
|
export interface WalletMetadata {
|
|
10
11
|
name: MultiLanguageName;
|
|
11
12
|
welcomeText?: string | MultiLanguageName;
|
|
12
13
|
customerName?: string;
|
|
13
14
|
coverImage?: string;
|
|
14
15
|
icon?: string;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
showcaseWalletPassNew?: Array<{
|
|
17
|
+
type: WalletPassType;
|
|
18
|
+
custom_title?: string | MultiLanguageName;
|
|
19
|
+
display?: 0 | 1;
|
|
20
|
+
}>;
|
|
17
21
|
}
|
|
18
22
|
export interface Shop {
|
|
19
23
|
id: number;
|
|
@@ -56,15 +60,10 @@ export interface WalletBalance {
|
|
|
56
60
|
voucher_count: number;
|
|
57
61
|
discount_card_count: number;
|
|
58
62
|
}
|
|
59
|
-
export interface WalletBalanceItem {
|
|
60
|
-
key: string;
|
|
61
|
-
label: string;
|
|
62
|
-
value: number;
|
|
63
|
-
}
|
|
64
63
|
export interface WalletCardItem {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
type: WalletPassType;
|
|
65
|
+
custom_title?: string | MultiLanguageName;
|
|
66
|
+
display: 0 | 1;
|
|
68
67
|
value?: number;
|
|
69
68
|
}
|
|
70
69
|
export interface State {
|
|
@@ -106,7 +105,7 @@ export interface WalletListProps {
|
|
|
106
105
|
platform?: 'pc' | 'h5' | 'ipad';
|
|
107
106
|
mode?: 'dark' | 'light';
|
|
108
107
|
cardStyle?: 'normal' | 'full';
|
|
109
|
-
codeType?: 'barCode' | '
|
|
108
|
+
codeType?: 'barCode' | 'qrCode';
|
|
110
109
|
codeDirection?: 'bottom' | 'top';
|
|
111
110
|
shopName?: boolean;
|
|
112
111
|
showWalletName?: boolean;
|
|
@@ -131,7 +130,7 @@ export interface WalletCardProps {
|
|
|
131
130
|
platform?: 'pc' | 'h5' | 'ipad';
|
|
132
131
|
mode?: 'dark' | 'light';
|
|
133
132
|
cardStyle?: 'normal' | 'full';
|
|
134
|
-
codeType?: 'barCode' | '
|
|
133
|
+
codeType?: 'barCode' | 'qrCode';
|
|
135
134
|
codeDirection?: 'bottom' | 'top';
|
|
136
135
|
shopName?: boolean;
|
|
137
136
|
showIcon?: boolean;
|
|
@@ -192,3 +191,4 @@ export interface CarouselSettings {
|
|
|
192
191
|
};
|
|
193
192
|
}>;
|
|
194
193
|
}
|
|
194
|
+
export {};
|