ts-glitter 22.0.1 → 22.0.2
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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +2 -2
- package/lowcode/backend-manager/bg-blog.js +19 -5
- package/lowcode/backend-manager/bg-blog.ts +20 -5
- package/lowcode/backend-manager/bg-line.js +2 -2
- package/lowcode/backend-manager/bg-line.ts +2 -2
- package/lowcode/backend-manager/bg-notify.js +10 -3
- package/lowcode/backend-manager/bg-notify.ts +10 -3
- package/lowcode/backend-manager/bg-sns.js +3 -3
- package/lowcode/backend-manager/bg-sns.ts +3 -3
- package/lowcode/backend-manager/bg-widget.js +77 -75
- package/lowcode/backend-manager/bg-widget.ts +121 -97
- package/lowcode/cms-plugin/auto-fcm-advertise.js +2 -2
- package/lowcode/cms-plugin/auto-fcm-advertise.ts +2 -2
- package/lowcode/cms-plugin/auto-fcm-history.js +2 -2
- package/lowcode/cms-plugin/auto-fcm-history.ts +2 -2
- package/lowcode/cms-plugin/menus-setting.js +2 -2
- package/lowcode/cms-plugin/menus-setting.ts +2 -4
- package/lowcode/cms-plugin/pos-pages/payment-page.js +11 -7
- package/lowcode/cms-plugin/pos-pages/payment-page.ts +17 -11
- package/lowcode/cms-plugin/shopping-discount-setting.js +1 -1
- package/lowcode/cms-plugin/shopping-discount-setting.ts +1 -1
- package/lowcode/cms-plugin/shopping-finance-setting.js +23 -10
- package/lowcode/cms-plugin/shopping-finance-setting.ts +282 -269
- package/lowcode/cms-plugin/shopping-order-manager.js +1 -1
- package/lowcode/cms-plugin/shopping-order-manager.ts +1 -1
- package/lowcode/cms-plugin/shopping-rebate.js +1 -1
- package/lowcode/cms-plugin/shopping-rebate.ts +1 -1
- package/lowcode/cms-plugin/shopping-setting-basic.js +36 -8
- package/lowcode/cms-plugin/shopping-setting-basic.ts +36 -8
- package/lowcode/glitter-base/route/shopping.js +16 -9
- package/lowcode/glitter-base/route/shopping.ts +16 -10
- package/lowcode/glitter-base/route/user.js +19 -9
- package/lowcode/glitter-base/route/user.ts +21 -10
- package/lowcode/glitterBundle/plugins/editor-elem.js +1 -5
- package/lowcode/glitterBundle/plugins/editor-elem.ts +1 -5
- package/package.json +1 -1
- package/src/api-public/services/checkout-event.js +17 -7
- package/src/api-public/services/checkout-event.js.map +1 -1
- package/src/api-public/services/line-message.js +122 -138
- package/src/api-public/services/line-message.js.map +1 -1
- package/src/api-public/services/line-message.ts +1134 -1130
- package/src/api-public/services/shopping.js +3 -5
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +4 -6
- package/src/api-public/services/strategies/ecpay-strategy.js +0 -1
- package/src/api-public/services/strategies/ecpay-strategy.js.map +1 -1
- package/src/api-public/services/strategies/ecpay-strategy.ts +3 -4
- package/src/api-public/services/strategies/ezpay-strategy.js +0 -1
- package/src/api-public/services/strategies/ezpay-strategy.js.map +1 -1
- package/src/api-public/services/strategies/ezpay-strategy.ts +4 -7
- package/src/modules/firebase.js +0 -4
- package/src/modules/firebase.js.map +1 -1
- package/src/modules/firebase.ts +5 -12
|
@@ -283,7 +283,6 @@ export class ShoppingFinanceSetting {
|
|
|
283
283
|
class="w-100 position-relative main-card"
|
|
284
284
|
style=" background: white; overflow: hidden; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; display: inline-flex;"
|
|
285
285
|
>
|
|
286
|
-
|
|
287
286
|
<div
|
|
288
287
|
class="pt-4"
|
|
289
288
|
style="align-self: stretch; justify-content: flex-start; align-items: center; gap: 28px; display: inline-flex"
|
|
@@ -334,272 +333,272 @@ export class ShoppingFinanceSetting {
|
|
|
334
333
|
key: 'setting',
|
|
335
334
|
title: '基本設定',
|
|
336
335
|
html: html` ${BgWidget.editeInput({
|
|
337
|
-
|
|
338
|
-
|
|
336
|
+
gvc: gvc,
|
|
337
|
+
title: html`<div>
|
|
339
338
|
自訂金流名稱 ${BgWidget.grayNote('未輸入則參照預設')}
|
|
340
339
|
</div>`,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
340
|
+
default: key_d.custome_name,
|
|
341
|
+
callback: text => {
|
|
342
|
+
key_d.custome_name = text;
|
|
343
|
+
},
|
|
344
|
+
placeHolder: '請輸入自訂顯示名稱',
|
|
345
|
+
global_language: true,
|
|
346
|
+
})}
|
|
348
347
|
<div style="margin-top: 8px;">
|
|
349
348
|
${(() => {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
349
|
+
switch (payData.key) {
|
|
350
|
+
case 'newWebPay':
|
|
351
|
+
case 'ecPay':
|
|
352
|
+
return [
|
|
353
|
+
BgWidget.inlineCheckBox({
|
|
354
|
+
title: '串接路徑',
|
|
355
|
+
gvc: gvc,
|
|
356
|
+
def: key_d.ActionURL,
|
|
357
|
+
array: (() => {
|
|
358
|
+
if (payData.key === 'newWebPay') {
|
|
359
|
+
return [
|
|
360
|
+
{
|
|
361
|
+
title: '正式站',
|
|
362
|
+
value: 'https://core.newebpay.com/MPG/mpg_gateway',
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
title: '測試站',
|
|
366
|
+
value: 'https://ccore.newebpay.com/MPG/mpg_gateway',
|
|
367
|
+
},
|
|
368
|
+
];
|
|
369
|
+
} else {
|
|
370
|
+
return [
|
|
371
|
+
{
|
|
372
|
+
title: '正式站',
|
|
373
|
+
value:
|
|
374
|
+
'https://payment.ecpay.com.tw/Cashier/AioCheckOut/V5',
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
title: '測試站',
|
|
378
|
+
value:
|
|
379
|
+
'https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut/V5',
|
|
380
|
+
},
|
|
381
|
+
];
|
|
382
|
+
}
|
|
383
|
+
})(),
|
|
384
|
+
callback: (text: any) => {
|
|
385
|
+
key_d.ActionURL = text;
|
|
386
|
+
},
|
|
387
|
+
}),
|
|
388
|
+
BgWidget.inlineCheckBox({
|
|
389
|
+
title: '開通付款方式',
|
|
390
|
+
gvc: gvc,
|
|
391
|
+
def: [
|
|
392
|
+
'credit',
|
|
393
|
+
'atm',
|
|
394
|
+
'web_atm',
|
|
395
|
+
'c_code',
|
|
396
|
+
'c_bar_code',
|
|
397
|
+
].filter(dd => {
|
|
398
|
+
return (key_d as any)[dd];
|
|
399
|
+
}),
|
|
400
|
+
array: [
|
|
401
|
+
{
|
|
402
|
+
title: '信用卡',
|
|
403
|
+
value: 'credit',
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
title: '一般 ATM',
|
|
407
|
+
value: 'atm',
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
title: '網路 ATM',
|
|
411
|
+
value: 'web_atm',
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
title: '超商代碼',
|
|
415
|
+
value: 'c_code',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
title: '超商條碼',
|
|
419
|
+
value: 'c_bar_code',
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
callback: (array: any) => {
|
|
423
|
+
['credit', 'atm', 'web_atm', 'c_code', 'c_bar_code'].map(
|
|
424
|
+
dd => {
|
|
425
|
+
(key_d as any)[dd] = !!array.find((d1: string) => {
|
|
426
|
+
return d1 === dd;
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
);
|
|
430
|
+
},
|
|
431
|
+
type: 'multiple',
|
|
432
|
+
}),
|
|
433
|
+
BgWidget.editeInput({
|
|
434
|
+
gvc: gvc,
|
|
435
|
+
title: '特店編號',
|
|
436
|
+
default: key_d.MERCHANT_ID,
|
|
437
|
+
callback: text => {
|
|
438
|
+
key_d.MERCHANT_ID = text;
|
|
439
|
+
},
|
|
440
|
+
placeHolder: '請輸入特店編號',
|
|
441
|
+
}),
|
|
442
|
+
BgWidget.editeInput({
|
|
443
|
+
gvc: gvc,
|
|
444
|
+
title: 'HASH_KEY',
|
|
445
|
+
default: key_d.HASH_KEY,
|
|
446
|
+
callback: text => {
|
|
447
|
+
key_d.HASH_KEY = text;
|
|
448
|
+
},
|
|
449
|
+
placeHolder: '請輸入HASH_KEY',
|
|
450
|
+
}),
|
|
451
|
+
BgWidget.editeInput({
|
|
452
|
+
gvc: gvc,
|
|
453
|
+
title: 'HASH_IV',
|
|
454
|
+
default: key_d.HASH_IV,
|
|
455
|
+
callback: text => {
|
|
456
|
+
key_d.HASH_IV = text;
|
|
457
|
+
},
|
|
458
|
+
placeHolder: '請輸入HASH_IV',
|
|
459
|
+
}),
|
|
460
|
+
BgWidget.editeInput({
|
|
461
|
+
gvc: gvc,
|
|
462
|
+
title: '信用卡授權檢查碼',
|
|
463
|
+
default: key_d.CreditCheckCode,
|
|
464
|
+
callback: text => {
|
|
465
|
+
key_d.CreditCheckCode = text;
|
|
466
|
+
},
|
|
467
|
+
placeHolder: '請輸入信用卡檢查碼',
|
|
468
|
+
}),
|
|
469
|
+
].join('');
|
|
470
|
+
case 'paypal':
|
|
471
|
+
return [
|
|
472
|
+
BgWidget.inlineCheckBox({
|
|
473
|
+
title: '串接路徑',
|
|
474
|
+
gvc: gvc,
|
|
475
|
+
def: `${key_d.BETA}`,
|
|
476
|
+
array: [
|
|
361
477
|
{
|
|
362
478
|
title: '正式站',
|
|
363
|
-
value:
|
|
479
|
+
value: `false`,
|
|
364
480
|
},
|
|
365
481
|
{
|
|
366
482
|
title: '測試站',
|
|
367
|
-
value:
|
|
483
|
+
value: `true`,
|
|
368
484
|
},
|
|
369
|
-
]
|
|
370
|
-
|
|
371
|
-
|
|
485
|
+
],
|
|
486
|
+
callback: (text: any) => {
|
|
487
|
+
key_d.BETA = text;
|
|
488
|
+
},
|
|
489
|
+
}),
|
|
490
|
+
BgWidget.editeInput({
|
|
491
|
+
gvc: gvc,
|
|
492
|
+
title: 'CLIENT_ID',
|
|
493
|
+
default: key_d.PAYPAL_CLIENT_ID,
|
|
494
|
+
callback: text => {
|
|
495
|
+
key_d.PAYPAL_CLIENT_ID = text;
|
|
496
|
+
},
|
|
497
|
+
placeHolder: '請輸入CLIENT_ID',
|
|
498
|
+
}),
|
|
499
|
+
BgWidget.editeInput({
|
|
500
|
+
gvc: gvc,
|
|
501
|
+
title: 'SECRET',
|
|
502
|
+
default: key_d.PAYPAL_SECRET,
|
|
503
|
+
callback: text => {
|
|
504
|
+
key_d.PAYPAL_SECRET = text;
|
|
505
|
+
},
|
|
506
|
+
placeHolder: '請輸入SECRET',
|
|
507
|
+
}),
|
|
508
|
+
].join('');
|
|
509
|
+
case 'line_pay':
|
|
510
|
+
return [
|
|
511
|
+
BgWidget.inlineCheckBox({
|
|
512
|
+
title: '串接路徑',
|
|
513
|
+
gvc: gvc,
|
|
514
|
+
def: `${key_d.BETA}`,
|
|
515
|
+
array: [
|
|
372
516
|
{
|
|
373
517
|
title: '正式站',
|
|
374
|
-
value:
|
|
375
|
-
'https://payment.ecpay.com.tw/Cashier/AioCheckOut/V5',
|
|
518
|
+
value: `false`,
|
|
376
519
|
},
|
|
377
520
|
{
|
|
378
521
|
title: '測試站',
|
|
379
|
-
value:
|
|
380
|
-
'https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut/V5',
|
|
522
|
+
value: `true`,
|
|
381
523
|
},
|
|
382
|
-
]
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}),
|
|
461
|
-
BgWidget.editeInput({
|
|
462
|
-
gvc: gvc,
|
|
463
|
-
title: '信用卡授權檢查碼',
|
|
464
|
-
default: key_d.CreditCheckCode,
|
|
465
|
-
callback: text => {
|
|
466
|
-
key_d.CreditCheckCode = text;
|
|
467
|
-
},
|
|
468
|
-
placeHolder: '請輸入信用卡檢查碼',
|
|
469
|
-
}),
|
|
470
|
-
].join('');
|
|
471
|
-
case 'paypal':
|
|
472
|
-
return [
|
|
473
|
-
BgWidget.inlineCheckBox({
|
|
474
|
-
title: '串接路徑',
|
|
475
|
-
gvc: gvc,
|
|
476
|
-
def: `${key_d.BETA}`,
|
|
477
|
-
array: [
|
|
478
|
-
{
|
|
479
|
-
title: '正式站',
|
|
480
|
-
value: `false`,
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
title: '測試站',
|
|
484
|
-
value: `true`,
|
|
485
|
-
},
|
|
486
|
-
],
|
|
487
|
-
callback: (text: any) => {
|
|
488
|
-
key_d.BETA = text;
|
|
489
|
-
},
|
|
490
|
-
}),
|
|
491
|
-
BgWidget.editeInput({
|
|
492
|
-
gvc: gvc,
|
|
493
|
-
title: 'CLIENT_ID',
|
|
494
|
-
default: key_d.PAYPAL_CLIENT_ID,
|
|
495
|
-
callback: text => {
|
|
496
|
-
key_d.PAYPAL_CLIENT_ID = text;
|
|
497
|
-
},
|
|
498
|
-
placeHolder: '請輸入CLIENT_ID',
|
|
499
|
-
}),
|
|
500
|
-
BgWidget.editeInput({
|
|
501
|
-
gvc: gvc,
|
|
502
|
-
title: 'SECRET',
|
|
503
|
-
default: key_d.PAYPAL_SECRET,
|
|
504
|
-
callback: text => {
|
|
505
|
-
key_d.PAYPAL_SECRET = text;
|
|
506
|
-
},
|
|
507
|
-
placeHolder: '請輸入SECRET',
|
|
508
|
-
}),
|
|
509
|
-
].join('');
|
|
510
|
-
case 'line_pay':
|
|
511
|
-
return [
|
|
512
|
-
BgWidget.inlineCheckBox({
|
|
513
|
-
title: '串接路徑',
|
|
514
|
-
gvc: gvc,
|
|
515
|
-
def: `${key_d.BETA}`,
|
|
516
|
-
array: [
|
|
517
|
-
{
|
|
518
|
-
title: '正式站',
|
|
519
|
-
value: `false`,
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
title: '測試站',
|
|
523
|
-
value: `true`,
|
|
524
|
-
},
|
|
525
|
-
],
|
|
526
|
-
callback: (text: any) => {
|
|
527
|
-
key_d.BETA = text;
|
|
528
|
-
},
|
|
529
|
-
}),
|
|
530
|
-
BgWidget.editeInput({
|
|
531
|
-
gvc: gvc,
|
|
532
|
-
title: 'CLIENT_ID',
|
|
533
|
-
default: key_d.CLIENT_ID,
|
|
534
|
-
callback: text => {
|
|
535
|
-
key_d.CLIENT_ID = text;
|
|
536
|
-
},
|
|
537
|
-
placeHolder: '請輸入CLIENT_ID',
|
|
538
|
-
}),
|
|
539
|
-
BgWidget.editeInput({
|
|
540
|
-
gvc: gvc,
|
|
541
|
-
title: 'SECRET',
|
|
542
|
-
default: key_d.SECRET,
|
|
543
|
-
callback: text => {
|
|
544
|
-
key_d.SECRET = text;
|
|
545
|
-
},
|
|
546
|
-
placeHolder: '請輸入SECRET',
|
|
547
|
-
}),
|
|
548
|
-
].join('');
|
|
549
|
-
case 'jkopay':
|
|
550
|
-
return [
|
|
551
|
-
BgWidget.editeInput({
|
|
552
|
-
gvc: gvc,
|
|
553
|
-
title: 'STORE_ID',
|
|
554
|
-
default: key_d.STORE_ID,
|
|
555
|
-
callback: text => {
|
|
556
|
-
key_d.STORE_ID = text;
|
|
557
|
-
},
|
|
558
|
-
placeHolder: '請輸入STORE_ID',
|
|
559
|
-
}),
|
|
560
|
-
].join('');
|
|
561
|
-
case 'paynow':
|
|
562
|
-
return [
|
|
563
|
-
BgWidget.inlineCheckBox({
|
|
564
|
-
title: '串接路徑',
|
|
565
|
-
gvc: gvc,
|
|
566
|
-
def: `${key_d.BETA}`,
|
|
567
|
-
array: [
|
|
568
|
-
{
|
|
569
|
-
title: '正式站',
|
|
570
|
-
value: `false`,
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
title: '測試站',
|
|
574
|
-
value: `true`,
|
|
575
|
-
},
|
|
576
|
-
],
|
|
577
|
-
callback: (text: any) => {
|
|
578
|
-
key_d.BETA = text;
|
|
579
|
-
},
|
|
580
|
-
}),
|
|
581
|
-
BgWidget.editeInput({
|
|
582
|
-
gvc: gvc,
|
|
583
|
-
title: '串接帳號',
|
|
584
|
-
default: key_d.account,
|
|
585
|
-
callback: text => {
|
|
586
|
-
key_d.account = text;
|
|
587
|
-
},
|
|
588
|
-
placeHolder: '請輸入串接帳號',
|
|
589
|
-
}),
|
|
590
|
-
BgWidget.editeInput({
|
|
591
|
-
gvc: gvc,
|
|
592
|
-
title: '串接密碼',
|
|
593
|
-
default: key_d.pwd,
|
|
594
|
-
callback: text => {
|
|
595
|
-
key_d.pwd = text;
|
|
596
|
-
},
|
|
597
|
-
placeHolder: '請輸入串接密碼',
|
|
598
|
-
}),
|
|
599
|
-
].join('');
|
|
600
|
-
}
|
|
601
|
-
return '';
|
|
602
|
-
})()}
|
|
524
|
+
],
|
|
525
|
+
callback: (text: any) => {
|
|
526
|
+
key_d.BETA = text;
|
|
527
|
+
},
|
|
528
|
+
}),
|
|
529
|
+
BgWidget.editeInput({
|
|
530
|
+
gvc: gvc,
|
|
531
|
+
title: 'CLIENT_ID',
|
|
532
|
+
default: key_d.CLIENT_ID,
|
|
533
|
+
callback: text => {
|
|
534
|
+
key_d.CLIENT_ID = text;
|
|
535
|
+
},
|
|
536
|
+
placeHolder: '請輸入CLIENT_ID',
|
|
537
|
+
}),
|
|
538
|
+
BgWidget.editeInput({
|
|
539
|
+
gvc: gvc,
|
|
540
|
+
title: 'SECRET',
|
|
541
|
+
default: key_d.SECRET,
|
|
542
|
+
callback: text => {
|
|
543
|
+
key_d.SECRET = text;
|
|
544
|
+
},
|
|
545
|
+
placeHolder: '請輸入SECRET',
|
|
546
|
+
}),
|
|
547
|
+
].join('');
|
|
548
|
+
case 'jkopay':
|
|
549
|
+
return [
|
|
550
|
+
BgWidget.editeInput({
|
|
551
|
+
gvc: gvc,
|
|
552
|
+
title: 'STORE_ID',
|
|
553
|
+
default: key_d.STORE_ID,
|
|
554
|
+
callback: text => {
|
|
555
|
+
key_d.STORE_ID = text;
|
|
556
|
+
},
|
|
557
|
+
placeHolder: '請輸入STORE_ID',
|
|
558
|
+
}),
|
|
559
|
+
].join('');
|
|
560
|
+
case 'paynow':
|
|
561
|
+
return [
|
|
562
|
+
BgWidget.inlineCheckBox({
|
|
563
|
+
title: '串接路徑',
|
|
564
|
+
gvc: gvc,
|
|
565
|
+
def: `${key_d.BETA}`,
|
|
566
|
+
array: [
|
|
567
|
+
{
|
|
568
|
+
title: '正式站',
|
|
569
|
+
value: `false`,
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
title: '測試站',
|
|
573
|
+
value: `true`,
|
|
574
|
+
},
|
|
575
|
+
],
|
|
576
|
+
callback: (text: any) => {
|
|
577
|
+
key_d.BETA = text;
|
|
578
|
+
},
|
|
579
|
+
}),
|
|
580
|
+
BgWidget.editeInput({
|
|
581
|
+
gvc: gvc,
|
|
582
|
+
title: '串接帳號',
|
|
583
|
+
default: key_d.account,
|
|
584
|
+
callback: text => {
|
|
585
|
+
key_d.account = text;
|
|
586
|
+
},
|
|
587
|
+
placeHolder: '請輸入串接帳號',
|
|
588
|
+
}),
|
|
589
|
+
BgWidget.editeInput({
|
|
590
|
+
gvc: gvc,
|
|
591
|
+
title: '串接密碼',
|
|
592
|
+
default: key_d.pwd,
|
|
593
|
+
callback: text => {
|
|
594
|
+
key_d.pwd = text;
|
|
595
|
+
},
|
|
596
|
+
placeHolder: '請輸入串接密碼',
|
|
597
|
+
}),
|
|
598
|
+
].join('');
|
|
599
|
+
}
|
|
600
|
+
return '';
|
|
601
|
+
})()}
|
|
603
602
|
</div>`,
|
|
604
603
|
};
|
|
605
604
|
|
|
@@ -641,7 +640,7 @@ export class ShoppingFinanceSetting {
|
|
|
641
640
|
if (
|
|
642
641
|
payData.key == 'ecPay' &&
|
|
643
642
|
key_d.ActionURL ==
|
|
644
|
-
|
|
643
|
+
'https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut/V5'
|
|
645
644
|
) {
|
|
646
645
|
key_d.MERCHANT_ID = '3002607';
|
|
647
646
|
key_d.HASH_KEY = 'pwFHCqoQZGmho4w6';
|
|
@@ -662,7 +661,6 @@ export class ShoppingFinanceSetting {
|
|
|
662
661
|
})}
|
|
663
662
|
</div>
|
|
664
663
|
</div>
|
|
665
|
-
|
|
666
664
|
</div>`;
|
|
667
665
|
})
|
|
668
666
|
.join('')}
|
|
@@ -827,7 +825,8 @@ export class ShoppingFinanceSetting {
|
|
|
827
825
|
class="w-100 position-relative main-card"
|
|
828
826
|
style=" background: white; overflow: hidden; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; display: inline-flex;"
|
|
829
827
|
>
|
|
830
|
-
<div
|
|
828
|
+
<div
|
|
829
|
+
class="pt-4"
|
|
831
830
|
style="align-self: stretch; justify-content: flex-start; align-items: center; gap: 28px; display: inline-flex"
|
|
832
831
|
>
|
|
833
832
|
<div style="min-width: 46px;max-width: 46px;">
|
|
@@ -853,8 +852,8 @@ export class ShoppingFinanceSetting {
|
|
|
853
852
|
</div>
|
|
854
853
|
</div>
|
|
855
854
|
</div>
|
|
856
|
-
|
|
857
|
-
<div class="position-absolute"
|
|
855
|
+
|
|
856
|
+
<div class="position-absolute" style="right:10px;top:10px;">
|
|
858
857
|
${BgWidget.customButton({
|
|
859
858
|
button: {
|
|
860
859
|
color: 'gray',
|
|
@@ -874,14 +873,14 @@ export class ShoppingFinanceSetting {
|
|
|
874
873
|
try {
|
|
875
874
|
return html`<div>
|
|
876
875
|
${(() => {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
876
|
+
switch (payData.key) {
|
|
877
|
+
case 'line_pay_scan':
|
|
878
|
+
return this.linePayScan(gvc, key_d);
|
|
879
|
+
case 'ut_credit_card':
|
|
880
|
+
return this.utCreditCard(gvc, key_d);
|
|
881
|
+
}
|
|
882
|
+
return '';
|
|
883
|
+
})()}
|
|
885
884
|
</div>`;
|
|
886
885
|
} catch (error) {
|
|
887
886
|
console.error(error);
|
|
@@ -2399,15 +2398,29 @@ export class ShoppingFinanceSetting {
|
|
|
2399
2398
|
return [
|
|
2400
2399
|
BgWidget.cancel(
|
|
2401
2400
|
gvc2.event(() => {
|
|
2402
|
-
|
|
2403
|
-
|
|
2401
|
+
dialog.checkYesOrNot({
|
|
2402
|
+
text: '確定要取消並關閉嗎?',
|
|
2403
|
+
callback: bool => {
|
|
2404
|
+
if (bool) {
|
|
2405
|
+
language_data.info = originContent;
|
|
2406
|
+
gvc2.closeDialog();
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
});
|
|
2404
2410
|
})
|
|
2405
2411
|
),
|
|
2406
2412
|
BgWidget.save(
|
|
2407
2413
|
gvc2.event(() => {
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2414
|
+
dialog.checkYesOrNot({
|
|
2415
|
+
text: '確定要儲存並更新嗎?',
|
|
2416
|
+
callback: bool => {
|
|
2417
|
+
if (bool) {
|
|
2418
|
+
gvc2.closeDialog();
|
|
2419
|
+
gvc.notifyDataChange(id);
|
|
2420
|
+
save();
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
});
|
|
2411
2424
|
})
|
|
2412
2425
|
),
|
|
2413
2426
|
].join('');
|