@uxda/appkit 4.3.0 → 4.3.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/COMPONENT_USAGE.md +1523 -0
- package/dist/appkit.css +22 -8
- package/dist/index.js +151 -47
- package/package.json +1 -1
- package/src/balance/api/index.ts +6 -0
- package/src/notice/api/index.ts +6 -0
- package/src/payment/api/endpoints.ts +2 -0
- package/src/payment/api/index.ts +7 -0
- package/src/payment/components/RechargeResult.vue +0 -1
- package/src/payment/components/TradeView.vue +284 -124
- package/src/payment/services/request-payment.ts +2 -0
- package/src/payment/types.ts +1 -0
- package/src/shared/components/OcrBank.vue +229 -0
- package/src/shared/components/OcrBusinessLicense.vue +1 -0
- package/src/shared/http/Http.ts +1 -0
- package/src/user/api/index.ts +6 -0
package/dist/appkit.css
CHANGED
|
@@ -335,14 +335,15 @@
|
|
|
335
335
|
.recharge-view2 .bean-buy {
|
|
336
336
|
margin: 0 15px;
|
|
337
337
|
padding: 10px;
|
|
338
|
-
background: #
|
|
338
|
+
background: #fffbf3;
|
|
339
339
|
border-radius: 5px;
|
|
340
340
|
display: flex;
|
|
341
341
|
justify-content: space-between;
|
|
342
342
|
align-items: center;
|
|
343
|
+
flex-wrap: wrap;
|
|
343
344
|
}
|
|
344
345
|
.recharge-view2 .bean-buy .left .title {
|
|
345
|
-
color: #
|
|
346
|
+
color: #fd6701;
|
|
346
347
|
font-size: 14px;
|
|
347
348
|
font-weight: 600;
|
|
348
349
|
line-height: 20px;
|
|
@@ -373,9 +374,22 @@
|
|
|
373
374
|
height: 16px;
|
|
374
375
|
font-size: 0;
|
|
375
376
|
}
|
|
377
|
+
.recharge-view2 .balance-warning {
|
|
378
|
+
width: 100%;
|
|
379
|
+
padding: 8px 10px;
|
|
380
|
+
margin-top: 10px;
|
|
381
|
+
background: #fdefe6;
|
|
382
|
+
border-radius: 5px;
|
|
383
|
+
color: #fd6701;
|
|
384
|
+
font-size: 12px;
|
|
385
|
+
}
|
|
386
|
+
.recharge-view2 .balance-warning-tip {
|
|
387
|
+
margin: 10px 26px 0;
|
|
388
|
+
color: #666666;
|
|
389
|
+
font-size: 10px;
|
|
390
|
+
}
|
|
376
391
|
.recharge-view2 .amount-footer {
|
|
377
392
|
padding: 10px 0;
|
|
378
|
-
padding-bottom: 20px;
|
|
379
393
|
}
|
|
380
394
|
.recharge-view2 .amount-footer .agreement {
|
|
381
395
|
font-size: 12px;
|
|
@@ -399,7 +413,7 @@
|
|
|
399
413
|
font-size: 13px;
|
|
400
414
|
}
|
|
401
415
|
.recharge-view2 .amount-footer .buy-amount .left .amount {
|
|
402
|
-
color: #
|
|
416
|
+
color: #fd6701;
|
|
403
417
|
font-size: 20px;
|
|
404
418
|
font-weight: 600;
|
|
405
419
|
}
|
|
@@ -408,7 +422,7 @@
|
|
|
408
422
|
font-style: normal;
|
|
409
423
|
}
|
|
410
424
|
.recharge-view2 .amount-footer .buy-amount .recharge-button {
|
|
411
|
-
background: linear-gradient(90deg, #
|
|
425
|
+
background: linear-gradient(90deg, #ffebc1 0%, #ffd7a7 52.29%, #ffb875 100%);
|
|
412
426
|
color: #353535;
|
|
413
427
|
margin: 12px 0;
|
|
414
428
|
border: 0;
|
|
@@ -425,7 +439,7 @@
|
|
|
425
439
|
}
|
|
426
440
|
.recharge-view2 .amount-footer .link {
|
|
427
441
|
display: inline;
|
|
428
|
-
color: #
|
|
442
|
+
color: #fd6701;
|
|
429
443
|
}
|
|
430
444
|
.trade-dialog .nut-dialog__header {
|
|
431
445
|
font-size: 16px;
|
|
@@ -438,12 +452,12 @@
|
|
|
438
452
|
}
|
|
439
453
|
.trade-dialog .nut-dialog__footer-cancel {
|
|
440
454
|
color: #353535 !important;
|
|
441
|
-
border-color: #
|
|
455
|
+
border-color: #cccccc !important;
|
|
442
456
|
}
|
|
443
457
|
.trade-dialog .nut-dialog__footer-ok {
|
|
444
458
|
border: none;
|
|
445
459
|
color: #353535;
|
|
446
|
-
background: linear-gradient(90deg, #
|
|
460
|
+
background: linear-gradient(90deg, #ffebc1 0%, #ffb875 100%);
|
|
447
461
|
}
|
|
448
462
|
page {
|
|
449
463
|
--text-color: #333;
|
package/dist/index.js
CHANGED
|
@@ -997,6 +997,12 @@ const vendor$3 = {
|
|
|
997
997
|
traceId: generateUniqueId("appkit")
|
|
998
998
|
};
|
|
999
999
|
const startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
1000
|
+
logger$3.info({
|
|
1001
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
1002
|
+
receive: null,
|
|
1003
|
+
traceId: header.traceId,
|
|
1004
|
+
duration: 0
|
|
1005
|
+
});
|
|
1000
1006
|
request$1({
|
|
1001
1007
|
url: config.url,
|
|
1002
1008
|
method: config.method,
|
|
@@ -1495,6 +1501,7 @@ const request = (config) => {
|
|
|
1495
1501
|
}
|
|
1496
1502
|
}).catch((e) => {
|
|
1497
1503
|
console.log("request.catch===", e);
|
|
1504
|
+
reject(e);
|
|
1498
1505
|
});
|
|
1499
1506
|
});
|
|
1500
1507
|
};
|
|
@@ -2688,9 +2695,11 @@ const endpointsList$2 = {
|
|
|
2688
2695
|
certificateNo: params.user,
|
|
2689
2696
|
accountAuthFlag: params.accountAuthFlag || false,
|
|
2690
2697
|
channelCode: params.channelCode || null,
|
|
2691
|
-
payFinishJumpUrl: params.payFinishJumpUrl || null
|
|
2698
|
+
payFinishJumpUrl: params.payFinishJumpUrl || null,
|
|
2699
|
+
useCloudBean: params.useCloudBean || false
|
|
2692
2700
|
}),
|
|
2693
2701
|
transform: (data) => {
|
|
2702
|
+
console.log(data, "data-----");
|
|
2694
2703
|
let json = null;
|
|
2695
2704
|
try {
|
|
2696
2705
|
json = JSON.parse(data.prePayStr);
|
|
@@ -2728,6 +2737,12 @@ const vendor$2 = {
|
|
|
2728
2737
|
traceId: generateUniqueId("appkit")
|
|
2729
2738
|
};
|
|
2730
2739
|
const startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
2740
|
+
logger$2.info({
|
|
2741
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
2742
|
+
receive: null,
|
|
2743
|
+
traceId: header.traceId,
|
|
2744
|
+
duration: 0
|
|
2745
|
+
});
|
|
2731
2746
|
request$1({
|
|
2732
2747
|
url: config.url,
|
|
2733
2748
|
method: config.method,
|
|
@@ -2752,6 +2767,7 @@ const vendor$2 = {
|
|
|
2752
2767
|
title: data.msg,
|
|
2753
2768
|
icon: "none"
|
|
2754
2769
|
});
|
|
2770
|
+
reject(data.msg);
|
|
2755
2771
|
}
|
|
2756
2772
|
}).catch((e) => {
|
|
2757
2773
|
reject(e);
|
|
@@ -2915,6 +2931,8 @@ const requestBrandWCPayByBean = (params, Appcode = "") => {
|
|
|
2915
2931
|
}
|
|
2916
2932
|
});
|
|
2917
2933
|
}
|
|
2934
|
+
}).catch(() => {
|
|
2935
|
+
resolve(false);
|
|
2918
2936
|
});
|
|
2919
2937
|
});
|
|
2920
2938
|
};
|
|
@@ -3319,17 +3337,25 @@ const _hoisted_6$9 = {
|
|
|
3319
3337
|
};
|
|
3320
3338
|
const _hoisted_7$6 = { class: "amount" };
|
|
3321
3339
|
const _hoisted_8$5 = ["src"];
|
|
3322
|
-
const _hoisted_9$4 = {
|
|
3340
|
+
const _hoisted_9$4 = {
|
|
3341
|
+
key: 0,
|
|
3342
|
+
class: "balance-warning"
|
|
3343
|
+
};
|
|
3323
3344
|
const _hoisted_10$3 = {
|
|
3345
|
+
key: 1,
|
|
3346
|
+
class: "balance-warning-tip"
|
|
3347
|
+
};
|
|
3348
|
+
const _hoisted_11$3 = { class: "amount-footer" };
|
|
3349
|
+
const _hoisted_12$3 = {
|
|
3324
3350
|
key: 0,
|
|
3325
3351
|
class: "agreement"
|
|
3326
3352
|
};
|
|
3327
|
-
const
|
|
3328
|
-
const
|
|
3329
|
-
const
|
|
3330
|
-
const _hoisted_14$2 = { class: "item" };
|
|
3331
|
-
const _hoisted_15$2 = { class: "item" };
|
|
3353
|
+
const _hoisted_13$2 = { class: "buy-amount" };
|
|
3354
|
+
const _hoisted_14$2 = { class: "left" };
|
|
3355
|
+
const _hoisted_15$2 = { class: "amount" };
|
|
3332
3356
|
const _hoisted_16$2 = { class: "item" };
|
|
3357
|
+
const _hoisted_17$2 = { class: "item" };
|
|
3358
|
+
const _hoisted_18$2 = { class: "item" };
|
|
3333
3359
|
var script$A = /* @__PURE__ */ defineComponent({
|
|
3334
3360
|
__name: "TradeView",
|
|
3335
3361
|
props: {
|
|
@@ -3362,8 +3388,28 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3362
3388
|
state.selected = selected;
|
|
3363
3389
|
selectBean.value = false;
|
|
3364
3390
|
};
|
|
3391
|
+
const extraPaymentAmount = computed(() => {
|
|
3392
|
+
if (!selectBean.value || !amounts.value[state.selected]) {
|
|
3393
|
+
return 0;
|
|
3394
|
+
}
|
|
3395
|
+
const paymentAmount = amounts.value[state.selected].paymentAmount || 0;
|
|
3396
|
+
const currentBalance = balance.value || 0;
|
|
3397
|
+
return Math.max(0, paymentAmount - currentBalance);
|
|
3398
|
+
});
|
|
3365
3399
|
const currentAmount = computed(() => {
|
|
3366
|
-
|
|
3400
|
+
if (!amounts.value[state.selected]) {
|
|
3401
|
+
return 0;
|
|
3402
|
+
}
|
|
3403
|
+
if (selectBean.value) {
|
|
3404
|
+
if (balance.value < amounts.value[state.selected].paymentAmount) {
|
|
3405
|
+
return extraPaymentAmount.value;
|
|
3406
|
+
}
|
|
3407
|
+
return 0;
|
|
3408
|
+
}
|
|
3409
|
+
return amounts.value[state.selected].paymentAmount || 0;
|
|
3410
|
+
});
|
|
3411
|
+
const isCombinedPayment = computed(() => {
|
|
3412
|
+
return selectBean.value && amounts.value[state.selected] && balance.value < amounts.value[state.selected].paymentAmount;
|
|
3367
3413
|
});
|
|
3368
3414
|
onMounted(() => {
|
|
3369
3415
|
const $http = useHttp$2({ Appcode: props.headerApp, Tenant: props.tenant });
|
|
@@ -3377,24 +3423,28 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3377
3423
|
const showDialog = ref(false);
|
|
3378
3424
|
async function beanPay() {
|
|
3379
3425
|
const $http = useHttp$2({ Appcode: props.headerApp, Tenant: props.tenant });
|
|
3380
|
-
|
|
3426
|
+
try {
|
|
3427
|
+
const response = await $http.post(
|
|
3428
|
+
`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`
|
|
3429
|
+
);
|
|
3381
3430
|
if (response) {
|
|
3382
3431
|
showDialog.value = false;
|
|
3383
3432
|
emit("complete", { result: response, type: "bean" });
|
|
3384
3433
|
} else {
|
|
3385
3434
|
showToast({
|
|
3386
|
-
title: response
|
|
3435
|
+
title: response?.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3387
3436
|
icon: "none"
|
|
3388
3437
|
});
|
|
3389
3438
|
}
|
|
3390
|
-
})
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
return;
|
|
3439
|
+
} catch (error) {
|
|
3440
|
+
showToast({
|
|
3441
|
+
title: error?.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3442
|
+
icon: "none"
|
|
3443
|
+
});
|
|
3396
3444
|
}
|
|
3397
|
-
|
|
3445
|
+
}
|
|
3446
|
+
function proceedWechatPayment() {
|
|
3447
|
+
if (!state.agreed) {
|
|
3398
3448
|
showToast({
|
|
3399
3449
|
title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
|
|
3400
3450
|
icon: "none"
|
|
@@ -3413,40 +3463,75 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3413
3463
|
}
|
|
3414
3464
|
requestBrandWCPayByBean({
|
|
3415
3465
|
caseConfigId: amounts.value[state.selected].id,
|
|
3416
|
-
amount:
|
|
3466
|
+
amount: currentAmount.value,
|
|
3417
3467
|
app: "loankitMp",
|
|
3418
3468
|
tenant: props.tenant,
|
|
3419
3469
|
accountAuthFlag: false,
|
|
3420
3470
|
channelCode: "centergzh",
|
|
3421
3471
|
payFinishJumpUrl: props.payFinishJumpUrl,
|
|
3422
|
-
fromMini: !!params.from
|
|
3472
|
+
fromMini: !!params.from,
|
|
3473
|
+
useCloudBean: isCombinedPayment.value
|
|
3423
3474
|
}).then((result) => {
|
|
3424
|
-
console.log(result, "------requestBrandWCPay");
|
|
3425
3475
|
state.buttonLoading = false;
|
|
3426
3476
|
if (typeof result === "boolean" && result) {
|
|
3427
3477
|
window.location.href = props.payFinishJumpUrl;
|
|
3428
3478
|
} else {
|
|
3429
|
-
emit("complete", {
|
|
3479
|
+
emit("complete", {
|
|
3480
|
+
result,
|
|
3481
|
+
type: isCombinedPayment.value ? "combined" : "wePay"
|
|
3482
|
+
});
|
|
3430
3483
|
}
|
|
3484
|
+
}).catch((error) => {
|
|
3485
|
+
state.buttonLoading = false;
|
|
3486
|
+
showToast({
|
|
3487
|
+
title: error.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3488
|
+
icon: "none"
|
|
3489
|
+
});
|
|
3431
3490
|
});
|
|
3432
3491
|
} else {
|
|
3433
3492
|
wx.login({
|
|
3434
3493
|
success({ code }) {
|
|
3435
|
-
requestPaymentByBean(
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3494
|
+
requestPaymentByBean(
|
|
3495
|
+
{
|
|
3496
|
+
caseConfigId: amounts.value[state.selected].id,
|
|
3497
|
+
amount: currentAmount.value,
|
|
3498
|
+
app: props.app,
|
|
3499
|
+
tenant: props.tenant,
|
|
3500
|
+
user: code
|
|
3501
|
+
},
|
|
3502
|
+
props.headerApp
|
|
3503
|
+
).then((result) => {
|
|
3442
3504
|
state.buttonLoading = false;
|
|
3443
3505
|
if (result) {
|
|
3444
|
-
emit("complete", {
|
|
3506
|
+
emit("complete", {
|
|
3507
|
+
result: true,
|
|
3508
|
+
type: isCombinedPayment.value ? "combined" : "wePay"
|
|
3509
|
+
});
|
|
3445
3510
|
}
|
|
3511
|
+
}).catch((error) => {
|
|
3512
|
+
state.buttonLoading = false;
|
|
3513
|
+
showToast({
|
|
3514
|
+
title: error.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3515
|
+
icon: "none"
|
|
3516
|
+
});
|
|
3517
|
+
});
|
|
3518
|
+
},
|
|
3519
|
+
fail() {
|
|
3520
|
+
state.buttonLoading = false;
|
|
3521
|
+
showToast({
|
|
3522
|
+
title: "\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",
|
|
3523
|
+
icon: "none"
|
|
3446
3524
|
});
|
|
3447
3525
|
}
|
|
3448
3526
|
});
|
|
3449
3527
|
}
|
|
3528
|
+
}
|
|
3529
|
+
const onPayClick = () => {
|
|
3530
|
+
if (selectBean.value && !isCombinedPayment.value) {
|
|
3531
|
+
showDialog.value = true;
|
|
3532
|
+
return;
|
|
3533
|
+
}
|
|
3534
|
+
proceedWechatPayment();
|
|
3450
3535
|
};
|
|
3451
3536
|
return (_ctx, _cache) => {
|
|
3452
3537
|
const _component_nut_checkbox = Checkbox;
|
|
@@ -3469,29 +3554,28 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3469
3554
|
-1
|
|
3470
3555
|
/* CACHED */
|
|
3471
3556
|
)),
|
|
3472
|
-
!selectBean.value ? (openBlock(), createElementBlock(
|
|
3557
|
+
!selectBean.value || isCombinedPayment.value ? (openBlock(), createElementBlock(
|
|
3473
3558
|
"div",
|
|
3474
3559
|
_hoisted_5$c,
|
|
3475
|
-
"\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value || 0)),
|
|
3560
|
+
" \u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value || 0)),
|
|
3476
3561
|
1
|
|
3477
3562
|
/* TEXT */
|
|
3478
3563
|
)) : (openBlock(), createElementBlock(
|
|
3479
3564
|
"div",
|
|
3480
3565
|
_hoisted_6$9,
|
|
3481
|
-
"\u6263\u51CF\u540E\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
3566
|
+
" \u6263\u51CF\u540E\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
3482
3567
|
1
|
|
3483
3568
|
/* TEXT */
|
|
3484
3569
|
))
|
|
3485
3570
|
]),
|
|
3486
|
-
|
|
3487
|
-
key: 0,
|
|
3571
|
+
createElementVNode("div", {
|
|
3488
3572
|
class: "right",
|
|
3489
3573
|
onClick: _cache[0] || (_cache[0] = ($event) => selectBean.value = !selectBean.value)
|
|
3490
3574
|
}, [
|
|
3491
3575
|
createElementVNode(
|
|
3492
3576
|
"div",
|
|
3493
3577
|
_hoisted_7$6,
|
|
3494
|
-
"-" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
3578
|
+
" -" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
3495
3579
|
1
|
|
3496
3580
|
/* TEXT */
|
|
3497
3581
|
),
|
|
@@ -3499,12 +3583,20 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3499
3583
|
class: "icon",
|
|
3500
3584
|
src: selectBean.value ? "https://cdn.ddjf.com/static/images/appkit/select.svg" : "https://cdn.ddjf.com/static/images/appkit/not-select.svg"
|
|
3501
3585
|
}, null, 8, _hoisted_8$5)
|
|
3502
|
-
])
|
|
3586
|
+
]),
|
|
3587
|
+
isCombinedPayment.value ? (openBlock(), createElementBlock(
|
|
3588
|
+
"div",
|
|
3589
|
+
_hoisted_9$4,
|
|
3590
|
+
" \u4E91\u8C46\u4F59\u989D\u4E0D\u8DB3,\u8FD8\u9700\u989D\u5916\u652F\u4ED8" + toDisplayString(unref(formatAmount)(extraPaymentAmount.value)) + "\u5143 ",
|
|
3591
|
+
1
|
|
3592
|
+
/* TEXT */
|
|
3593
|
+
)) : createCommentVNode("v-if", true)
|
|
3503
3594
|
])) : createCommentVNode("v-if", true),
|
|
3595
|
+
isCombinedPayment.value ? (openBlock(), createElementBlock("div", _hoisted_10$3, " \u8BF7\u5728\u652F\u4ED8\u5B8C\u6210\u524D\u786E\u4FDD\u5143\u8C46\u4F59\u989D\u4E0D\u88AB\u6D88\u8017,\u5426\u5219\u672C\u6B21\u6743\u76CA\u53EF\u80FD\u8D2D\u4E70\u5931\u8D25 ")) : createCommentVNode("v-if", true),
|
|
3504
3596
|
renderSlot(_ctx.$slots, "banner")
|
|
3505
3597
|
]),
|
|
3506
|
-
createElementVNode("view",
|
|
3507
|
-
!selectBean.value ? (openBlock(), createElementBlock("view",
|
|
3598
|
+
createElementVNode("view", _hoisted_11$3, [
|
|
3599
|
+
!selectBean.value || isCombinedPayment.value ? (openBlock(), createElementBlock("view", _hoisted_12$3, [
|
|
3508
3600
|
createVNode(_component_nut_checkbox, {
|
|
3509
3601
|
modelValue: state.agreed,
|
|
3510
3602
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.agreed = $event)
|
|
@@ -3532,14 +3624,14 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3532
3624
|
/* STABLE */
|
|
3533
3625
|
}, 8, ["modelValue"])
|
|
3534
3626
|
])) : createCommentVNode("v-if", true),
|
|
3535
|
-
createElementVNode("div",
|
|
3536
|
-
createElementVNode("div",
|
|
3627
|
+
createElementVNode("div", _hoisted_13$2, [
|
|
3628
|
+
createElementVNode("div", _hoisted_14$2, [
|
|
3537
3629
|
_cache[8] || (_cache[8] = createTextVNode(
|
|
3538
3630
|
" \u5F85\u652F\u4ED8\uFF1A ",
|
|
3539
3631
|
-1
|
|
3540
3632
|
/* CACHED */
|
|
3541
3633
|
)),
|
|
3542
|
-
createElementVNode("span",
|
|
3634
|
+
createElementVNode("span", _hoisted_15$2, [
|
|
3543
3635
|
_cache[7] || (_cache[7] = createElementVNode(
|
|
3544
3636
|
"i",
|
|
3545
3637
|
null,
|
|
@@ -3590,22 +3682,22 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3590
3682
|
[
|
|
3591
3683
|
createElementVNode(
|
|
3592
3684
|
"div",
|
|
3593
|
-
|
|
3594
|
-
"\u4E91\u8C46\u6263\u51CF\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
3685
|
+
_hoisted_16$2,
|
|
3686
|
+
" \u4E91\u8C46\u6263\u51CF\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
3595
3687
|
1
|
|
3596
3688
|
/* TEXT */
|
|
3597
3689
|
),
|
|
3598
3690
|
createElementVNode(
|
|
3599
3691
|
"div",
|
|
3600
|
-
|
|
3601
|
-
"\u6743\u76CA\u589E\u52A0\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].priceRightNum || 0)) + "\u7B14",
|
|
3692
|
+
_hoisted_17$2,
|
|
3693
|
+
" \u6743\u76CA\u589E\u52A0\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].priceRightNum || 0)) + "\u7B14 ",
|
|
3602
3694
|
1
|
|
3603
3695
|
/* TEXT */
|
|
3604
3696
|
),
|
|
3605
3697
|
createElementVNode(
|
|
3606
3698
|
"div",
|
|
3607
|
-
|
|
3608
|
-
"\u6263\u51CF\u540E\u4E91\u8C46\u4F59\u989D\uFF1A" + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
3699
|
+
_hoisted_18$2,
|
|
3700
|
+
" \u6263\u51CF\u540E\u4E91\u8C46\u4F59\u989D\uFF1A" + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
3609
3701
|
1
|
|
3610
3702
|
/* TEXT */
|
|
3611
3703
|
)
|
|
@@ -6332,6 +6424,12 @@ const vendor$1 = {
|
|
|
6332
6424
|
traceId: generateUniqueId("appkit")
|
|
6333
6425
|
};
|
|
6334
6426
|
const startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
6427
|
+
logger$1.info({
|
|
6428
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
6429
|
+
receive: null,
|
|
6430
|
+
traceId: header.traceId,
|
|
6431
|
+
duration: 0
|
|
6432
|
+
});
|
|
6335
6433
|
request$1({
|
|
6336
6434
|
url: config.url,
|
|
6337
6435
|
method: config.method,
|
|
@@ -7711,6 +7809,12 @@ const vendor = {
|
|
|
7711
7809
|
traceId: generateUniqueId("appkit")
|
|
7712
7810
|
};
|
|
7713
7811
|
const startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
7812
|
+
logger.info({
|
|
7813
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
7814
|
+
receive: null,
|
|
7815
|
+
traceId: header.traceId,
|
|
7816
|
+
duration: 0
|
|
7817
|
+
});
|
|
7714
7818
|
request$1({
|
|
7715
7819
|
url: config.url,
|
|
7716
7820
|
method: config.method,
|
package/package.json
CHANGED
package/src/balance/api/index.ts
CHANGED
|
@@ -18,6 +18,12 @@ const vendor = {
|
|
|
18
18
|
}
|
|
19
19
|
const startTime = new Date().getTime()
|
|
20
20
|
|
|
21
|
+
logger.info({
|
|
22
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
23
|
+
receive: null,
|
|
24
|
+
traceId: header.traceId,
|
|
25
|
+
duration: 0,
|
|
26
|
+
})
|
|
21
27
|
TaroRequest({
|
|
22
28
|
url: config.url,
|
|
23
29
|
method: config.method,
|
package/src/notice/api/index.ts
CHANGED
|
@@ -18,6 +18,12 @@ const vendor = {
|
|
|
18
18
|
}
|
|
19
19
|
const startTime = new Date().getTime()
|
|
20
20
|
|
|
21
|
+
logger.info({
|
|
22
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
23
|
+
receive: null,
|
|
24
|
+
traceId: header.traceId,
|
|
25
|
+
duration: 0,
|
|
26
|
+
})
|
|
21
27
|
TaroRequest({
|
|
22
28
|
url: config.url,
|
|
23
29
|
method: config.method,
|
|
@@ -59,8 +59,10 @@ const endpointsList: HttpEndpoints = {
|
|
|
59
59
|
accountAuthFlag: params.accountAuthFlag || false,
|
|
60
60
|
channelCode: params.channelCode || null,
|
|
61
61
|
payFinishJumpUrl: params.payFinishJumpUrl || null,
|
|
62
|
+
useCloudBean: params.useCloudBean || false,
|
|
62
63
|
}),
|
|
63
64
|
transform: (data: any) => {
|
|
65
|
+
console.log(data, 'data-----')
|
|
64
66
|
let json = null
|
|
65
67
|
try {
|
|
66
68
|
json = JSON.parse(data.prePayStr)
|
package/src/payment/api/index.ts
CHANGED
|
@@ -18,6 +18,12 @@ const vendor = {
|
|
|
18
18
|
}
|
|
19
19
|
const startTime = new Date().getTime()
|
|
20
20
|
|
|
21
|
+
logger.info({
|
|
22
|
+
send: JSON.stringify({ url: config.url, data: config.data }),
|
|
23
|
+
receive: null,
|
|
24
|
+
traceId: header.traceId,
|
|
25
|
+
duration: 0,
|
|
26
|
+
})
|
|
21
27
|
TaroRequest({
|
|
22
28
|
url: config.url,
|
|
23
29
|
method: config.method,
|
|
@@ -45,6 +51,7 @@ const vendor = {
|
|
|
45
51
|
title: data.msg,
|
|
46
52
|
icon: 'none',
|
|
47
53
|
})
|
|
54
|
+
reject(data.msg)
|
|
48
55
|
}
|
|
49
56
|
})
|
|
50
57
|
.catch((e: any) => {
|