@uxda/appkit 4.3.20 → 4.3.22
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/dist/appkit.css
CHANGED
|
@@ -239,8 +239,14 @@
|
|
|
239
239
|
flex-grow: 1;
|
|
240
240
|
}
|
|
241
241
|
.recharge-view .amount-footer {
|
|
242
|
+
position: fixed;
|
|
243
|
+
bottom: 0;
|
|
244
|
+
left: 0;
|
|
245
|
+
width: 100%;
|
|
246
|
+
background-color: #fff;
|
|
242
247
|
padding: 10px;
|
|
243
248
|
padding-bottom: 20px;
|
|
249
|
+
z-index: 10;
|
|
244
250
|
}
|
|
245
251
|
.recharge-view .amount-footer .agreement {
|
|
246
252
|
font-size: 12px;
|
|
@@ -424,6 +430,12 @@
|
|
|
424
430
|
}
|
|
425
431
|
.recharge-view2 .amount-footer {
|
|
426
432
|
padding: 10px 0;
|
|
433
|
+
position: fixed;
|
|
434
|
+
bottom: 0;
|
|
435
|
+
left: 0;
|
|
436
|
+
width: 100%;
|
|
437
|
+
z-index: 10;
|
|
438
|
+
background-color: #fff;
|
|
427
439
|
}
|
|
428
440
|
.recharge-view2 .amount-footer .agreement {
|
|
429
441
|
font-size: 12px;
|
package/dist/index.js
CHANGED
|
@@ -999,7 +999,7 @@ const endpointsList$3 = {
|
|
|
999
999
|
path: "/ac-app/account/info/detail/app",
|
|
1000
1000
|
// /app
|
|
1001
1001
|
translate: (data) => ({
|
|
1002
|
-
appCode: data.app
|
|
1002
|
+
appCode: data.app || ""
|
|
1003
1003
|
}),
|
|
1004
1004
|
transform(result) {
|
|
1005
1005
|
return {
|
|
@@ -1999,7 +1999,7 @@ const request = (config) => {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
if (raw.data !== void 0) {
|
|
2001
2001
|
const response = clientConfig.transforms && clientConfig.transforms[c.url] ? clientConfig.transforms[c.url](raw.data) : raw.data;
|
|
2002
|
-
const paging = config.data && config.data.page ? clientConfig.paging
|
|
2002
|
+
const paging = config.data && config.data.page ? clientConfig.paging?.transform(raw.data) : void 0;
|
|
2003
2003
|
resolve(
|
|
2004
2004
|
paging ? {
|
|
2005
2005
|
paging,
|
|
@@ -4109,14 +4109,14 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
4109
4109
|
}
|
|
4110
4110
|
}
|
|
4111
4111
|
const onPayClick = async () => {
|
|
4112
|
+
if (isCombinedPayment.value || selectBean.value) {
|
|
4113
|
+
const res = await checkBalance();
|
|
4114
|
+
if (!res) return;
|
|
4115
|
+
}
|
|
4112
4116
|
if (selectBean.value && !isCombinedPayment.value) {
|
|
4113
4117
|
showDialog.value = true;
|
|
4114
4118
|
return;
|
|
4115
4119
|
}
|
|
4116
|
-
if (isCombinedPayment.value) {
|
|
4117
|
-
const res = await checkBalance();
|
|
4118
|
-
if (!res) return;
|
|
4119
|
-
}
|
|
4120
4120
|
proceedWechatPayment();
|
|
4121
4121
|
};
|
|
4122
4122
|
async function checkBalance() {
|
|
@@ -4186,7 +4186,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
4186
4186
|
-1
|
|
4187
4187
|
/* CACHED */
|
|
4188
4188
|
)),
|
|
4189
|
-
!selectBean.value
|
|
4189
|
+
!selectBean.value ? (openBlock(), createElementBlock(
|
|
4190
4190
|
"div",
|
|
4191
4191
|
_hoisted_5$d,
|
|
4192
4192
|
" \u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value || 0)),
|
|
@@ -4195,7 +4195,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
4195
4195
|
)) : (openBlock(), createElementBlock(
|
|
4196
4196
|
"div",
|
|
4197
4197
|
_hoisted_6$9,
|
|
4198
|
-
" \u6263\u51CF\u540E\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
4198
|
+
" \u6263\u51CF\u540E\u4F59\u989D " + toDisplayString(balance.value > amounts.value[state.selected].paymentAmount ? unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount) : 0),
|
|
4199
4199
|
1
|
|
4200
4200
|
/* TEXT */
|
|
4201
4201
|
))
|
|
@@ -4207,7 +4207,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
4207
4207
|
createElementVNode(
|
|
4208
4208
|
"div",
|
|
4209
4209
|
_hoisted_7$6,
|
|
4210
|
-
" -" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
4210
|
+
" -" + toDisplayString(selectBean.value && balance.value < amounts.value[state.selected].paymentAmount ? balance.value : unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
4211
4211
|
1
|
|
4212
4212
|
/* TEXT */
|
|
4213
4213
|
),
|
package/package.json
CHANGED
|
@@ -191,8 +191,14 @@ defineExpose({
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.amount-footer {
|
|
194
|
+
position: fixed;
|
|
195
|
+
bottom: 0;
|
|
196
|
+
left: 0;
|
|
197
|
+
width: 100%;
|
|
198
|
+
background-color: #fff;
|
|
194
199
|
padding: 10px;
|
|
195
200
|
padding-bottom: 20px;
|
|
201
|
+
z-index: 10;
|
|
196
202
|
|
|
197
203
|
.agreement {
|
|
198
204
|
font-size: 12px;
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
<div class="bean-buy" v-if="amounts[state.selected]">
|
|
10
10
|
<div class="left">
|
|
11
11
|
<div class="title">使用云豆支付</div>
|
|
12
|
-
<div class="amount" v-if="!selectBean
|
|
12
|
+
<div class="amount" v-if="!selectBean">
|
|
13
13
|
余额 {{ formatAmount(balance || 0) }}
|
|
14
14
|
</div>
|
|
15
15
|
<div class="amount" v-else>
|
|
16
16
|
扣减后余额
|
|
17
|
-
{{ formatAmount(balance - amounts[state.selected].paymentAmount) }}
|
|
17
|
+
{{ balance > amounts[state.selected].paymentAmount ? formatAmount(balance - amounts[state.selected].paymentAmount) : 0 }}
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="right" @click="selectBean = !selectBean">
|
|
21
|
-
<div class="amount">
|
|
22
|
-
-{{ formatAmount(amounts[state.selected].paymentAmount || 0) }}
|
|
21
|
+
<div class="amount" >
|
|
22
|
+
-{{ selectBean && balance < amounts[state.selected].paymentAmount ? balance : formatAmount(amounts[state.selected].paymentAmount || 0) }}
|
|
23
23
|
</div>
|
|
24
24
|
<img
|
|
25
25
|
class="icon"
|
|
@@ -360,18 +360,18 @@ function getChannelCode() {
|
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
const onPayClick = async () => {
|
|
363
|
+
// 云豆支付与组合支付检验云豆是否已经改变,改变则刷新选择
|
|
364
|
+
if (isCombinedPayment.value || selectBean.value) {
|
|
365
|
+
const res = await checkBalance()
|
|
366
|
+
if (!res) return
|
|
367
|
+
}
|
|
368
|
+
|
|
363
369
|
// 用云豆支付(纯云豆支付)
|
|
364
370
|
if (selectBean.value && !isCombinedPayment.value) {
|
|
365
371
|
showDialog.value = true;
|
|
366
372
|
return;
|
|
367
373
|
}
|
|
368
374
|
|
|
369
|
-
if (isCombinedPayment.value) {
|
|
370
|
-
// 检验云豆是否已经改变,改变则刷新选择
|
|
371
|
-
const res = await checkBalance()
|
|
372
|
-
if (!res) return
|
|
373
|
-
}
|
|
374
|
-
|
|
375
375
|
// 纯微信支付
|
|
376
376
|
proceedWechatPayment();
|
|
377
377
|
}
|
|
@@ -512,6 +512,12 @@ defineExpose({
|
|
|
512
512
|
|
|
513
513
|
.amount-footer {
|
|
514
514
|
padding: 10px 0;
|
|
515
|
+
position: fixed;
|
|
516
|
+
bottom: 0;
|
|
517
|
+
left: 0;
|
|
518
|
+
width: 100%;
|
|
519
|
+
z-index: 10;
|
|
520
|
+
background-color: #fff;
|
|
515
521
|
|
|
516
522
|
.agreement {
|
|
517
523
|
font-size: 12px;
|
package/src/shared/http/Http.ts
CHANGED
|
@@ -74,7 +74,7 @@ const request: HttpInstance['request'] = <T>(config: HttpRequestConfig) => {
|
|
|
74
74
|
// 并拼装回原 raw 数据
|
|
75
75
|
const paging =
|
|
76
76
|
config.data && config.data.page
|
|
77
|
-
? (clientConfig.paging as Paging)
|
|
77
|
+
? (clientConfig.paging as Paging)?.transform(raw.data)
|
|
78
78
|
: void 0
|
|
79
79
|
|
|
80
80
|
resolve(
|