@uxda/appkit 4.1.44 → 4.1.48
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 +4 -5
- package/dist/index.js +223 -233
- package/package.json +1 -1
- package/src/balance/components/AccountView.vue +5 -3
- package/src/balance/components/BalanceCard.vue +3 -1
- package/src/balance/components/PromoterCard.vue +6 -4
- package/src/payment/components/TradeView.vue +76 -54
- package/src/register/components/SelfRegistration.vue +16 -37
- package/src/shared/components/OcrBusinessLicense.vue +3 -6
- package/src/shared/components/OcrIcon.vue +133 -64
- package/src/shared/composables/useAmount.ts +46 -0
- package/src/shared/composables/useValidator.ts +2 -2
- package/src/components/ocr-id/index.vue +0 -114
- package/src/components/ocr-id/types.d.ts +0 -13
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridItem, Grid, Popup, Checkbox, Button, Dialog, DatePicker, Radio, RadioGroup, FormItem, Form, Skeleton, Cell, Input, Step, Steps } from '@nutui/nutui-taro';
|
|
1
|
+
import { GridItem, Grid, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Radio, RadioGroup, FormItem, Form, Skeleton, Cell, Input, Step, Steps } from '@nutui/nutui-taro';
|
|
2
2
|
import '@nutui/nutui-taro/dist/packages/button/style/css';
|
|
3
3
|
import '@nutui/nutui-taro/dist/packages/checkbox/style/css';
|
|
4
4
|
import { defineComponent, reactive, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, createCommentVNode, renderSlot, createVNode, unref, isRef, normalizeStyle, onMounted, createStaticVNode, watch, resolveComponent, withDirectives, vShow, useModel, mergeModels, vModelText, watchPostEffect, withModifiers } from 'vue';
|
|
@@ -8,6 +8,7 @@ import Taro, { useDidShow, useRouter } from '@tarojs/taro';
|
|
|
8
8
|
import '@nutui/nutui-taro/dist/packages/popup/style/css';
|
|
9
9
|
import { isIdentityCard, isMobilePhone } from 'validator';
|
|
10
10
|
import { NsForm, NsInput, NsButton, NsIcon, usePopup, useNutshell } from '@uxda/nutshell/taro';
|
|
11
|
+
import '@nutui/nutui-taro/dist/packages/actionsheet/style/css';
|
|
11
12
|
import debounce from 'lodash/debounce';
|
|
12
13
|
import '@nutui/nutui-taro/dist/packages/dialog/style/css';
|
|
13
14
|
import '@nutui/nutui-taro/dist/packages/datepicker/style/css';
|
|
@@ -25,7 +26,7 @@ import '@nutui/nutui-taro/dist/packages/step/style/css';
|
|
|
25
26
|
|
|
26
27
|
const _hoisted_1$C = { class: "token-line number" };
|
|
27
28
|
const _hoisted_2$p = { class: "number" };
|
|
28
|
-
var script$
|
|
29
|
+
var script$I = /* @__PURE__ */ defineComponent({
|
|
29
30
|
__name: "AmountPicker",
|
|
30
31
|
props: {
|
|
31
32
|
items: { type: Array, required: true, default: () => [] },
|
|
@@ -94,7 +95,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
94
95
|
}
|
|
95
96
|
});
|
|
96
97
|
|
|
97
|
-
script$
|
|
98
|
+
script$I.__file = "src/payment/components/AmountPicker.vue";
|
|
98
99
|
|
|
99
100
|
function requestPayment$2(json) {
|
|
100
101
|
return new Promise((resolve, reject) => {
|
|
@@ -427,7 +428,7 @@ const _hoisted_1$B = {
|
|
|
427
428
|
key: 0,
|
|
428
429
|
class: "page-title"
|
|
429
430
|
};
|
|
430
|
-
var script$
|
|
431
|
+
var script$H = /* @__PURE__ */ defineComponent({
|
|
431
432
|
__name: "PageHeader",
|
|
432
433
|
props: {
|
|
433
434
|
title: { type: String, required: false, default: "" },
|
|
@@ -475,10 +476,10 @@ var script$I = /* @__PURE__ */ defineComponent({
|
|
|
475
476
|
}
|
|
476
477
|
});
|
|
477
478
|
|
|
478
|
-
script$
|
|
479
|
+
script$H.__file = "src/shared/components/PageHeader.vue";
|
|
479
480
|
|
|
480
481
|
const _hoisted_1$A = { class: "drawer-body" };
|
|
481
|
-
var script$
|
|
482
|
+
var script$G = /* @__PURE__ */ defineComponent({
|
|
482
483
|
__name: "AppDrawer",
|
|
483
484
|
props: {
|
|
484
485
|
modelValue: { type: Boolean, required: true },
|
|
@@ -502,7 +503,7 @@ var script$H = /* @__PURE__ */ defineComponent({
|
|
|
502
503
|
"onUpdate:visible": onVisibleChange
|
|
503
504
|
}, {
|
|
504
505
|
default: withCtx(() => [
|
|
505
|
-
createVNode(script$
|
|
506
|
+
createVNode(script$H, {
|
|
506
507
|
title: _ctx.title,
|
|
507
508
|
onClose: onPageHeaderClose
|
|
508
509
|
}, null, 8, ["title"]),
|
|
@@ -517,7 +518,7 @@ var script$H = /* @__PURE__ */ defineComponent({
|
|
|
517
518
|
}
|
|
518
519
|
});
|
|
519
520
|
|
|
520
|
-
script$
|
|
521
|
+
script$G.__file = "src/shared/components/AppDrawer.vue";
|
|
521
522
|
|
|
522
523
|
const _hoisted_1$z = { class: "app-verify column" };
|
|
523
524
|
const _hoisted_2$o = { class: "caption" };
|
|
@@ -528,7 +529,7 @@ const _hoisted_5$b = {
|
|
|
528
529
|
class: "caption"
|
|
529
530
|
};
|
|
530
531
|
const _hoisted_6$6 = { class: "row buttons" };
|
|
531
|
-
var script$
|
|
532
|
+
var script$F = /* @__PURE__ */ defineComponent({
|
|
532
533
|
__name: "AppVerify",
|
|
533
534
|
props: {
|
|
534
535
|
phone: { type: String, required: true },
|
|
@@ -650,10 +651,10 @@ var script$G = /* @__PURE__ */ defineComponent({
|
|
|
650
651
|
}
|
|
651
652
|
});
|
|
652
653
|
|
|
653
|
-
script$
|
|
654
|
+
script$F.__file = "src/shared/components/AppVerify.vue";
|
|
654
655
|
|
|
655
656
|
const _hoisted_1$y = { key: 0 };
|
|
656
|
-
var script$
|
|
657
|
+
var script$E = /* @__PURE__ */ defineComponent({
|
|
657
658
|
__name: "index",
|
|
658
659
|
props: {
|
|
659
660
|
text: { type: String, required: false },
|
|
@@ -715,7 +716,7 @@ var script$F = /* @__PURE__ */ defineComponent({
|
|
|
715
716
|
}
|
|
716
717
|
});
|
|
717
718
|
|
|
718
|
-
script$
|
|
719
|
+
script$E.__file = "src/components/dd-notice-bar/index.vue";
|
|
719
720
|
|
|
720
721
|
const typeMappings = {
|
|
721
722
|
CZ: "\u5145\u503C",
|
|
@@ -911,7 +912,7 @@ function useHttp$3() {
|
|
|
911
912
|
return $http;
|
|
912
913
|
}
|
|
913
914
|
|
|
914
|
-
var script$
|
|
915
|
+
var script$D = /* @__PURE__ */ defineComponent({
|
|
915
916
|
__name: "DeviceVersion",
|
|
916
917
|
setup(__props) {
|
|
917
918
|
const showAlert = ref(false);
|
|
@@ -950,7 +951,7 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
950
951
|
}
|
|
951
952
|
});
|
|
952
953
|
return (_ctx, _cache) => {
|
|
953
|
-
return showAlert.value ? (openBlock(), createBlock(script$
|
|
954
|
+
return showAlert.value ? (openBlock(), createBlock(script$E, {
|
|
954
955
|
key: 0,
|
|
955
956
|
showClose: "",
|
|
956
957
|
style: normalizeStyle(topStype.value),
|
|
@@ -961,12 +962,14 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
961
962
|
}
|
|
962
963
|
});
|
|
963
964
|
|
|
964
|
-
script$
|
|
965
|
+
script$D.__file = "src/shared/components/DeviceVersion.vue";
|
|
965
966
|
|
|
966
|
-
var script$
|
|
967
|
+
var script$C = /* @__PURE__ */ defineComponent({
|
|
967
968
|
__name: "OcrIcon",
|
|
968
969
|
props: {
|
|
969
|
-
disabled: { type: Boolean, required:
|
|
970
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
971
|
+
side: { type: String, required: false, default: "face" },
|
|
972
|
+
class: { type: String, required: false, default: "" }
|
|
970
973
|
},
|
|
971
974
|
emits: ["complete"],
|
|
972
975
|
setup(__props, { emit: __emit }) {
|
|
@@ -998,17 +1001,11 @@ var script$D = /* @__PURE__ */ defineComponent({
|
|
|
998
1001
|
function allTrim(str) {
|
|
999
1002
|
return str.replace(/\s+/g, "");
|
|
1000
1003
|
}
|
|
1001
|
-
async function
|
|
1002
|
-
if (props.disabled) {
|
|
1003
|
-
return;
|
|
1004
|
-
}
|
|
1004
|
+
async function onUploadFile(csRes) {
|
|
1005
1005
|
let result = null;
|
|
1006
1006
|
try {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
});
|
|
1010
|
-
let { path, size } = csRes.tempFiles[0];
|
|
1011
|
-
const compressImg = await taroImgCompress(path, getCompressQuality(size)) || {};
|
|
1007
|
+
let { path, size, tempFilePath } = csRes.tempFiles[0];
|
|
1008
|
+
const compressImg = await taroImgCompress(path || tempFilePath, getCompressQuality(size)) || {};
|
|
1012
1009
|
const filePath = compressImg.tempFilePath || path;
|
|
1013
1010
|
Taro.showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
|
|
1014
1011
|
const session = appKitOptions.token();
|
|
@@ -1019,30 +1016,34 @@ var script$D = /* @__PURE__ */ defineComponent({
|
|
|
1019
1016
|
name: "file",
|
|
1020
1017
|
formData: {
|
|
1021
1018
|
objectNo: `min${Date.now()}`,
|
|
1022
|
-
side:
|
|
1019
|
+
side: props.side
|
|
1023
1020
|
},
|
|
1024
1021
|
header: {
|
|
1025
|
-
sessionKey: session || "",
|
|
1026
1022
|
token: session || ""
|
|
1027
1023
|
}
|
|
1028
1024
|
});
|
|
1029
1025
|
Taro.hideLoading();
|
|
1030
1026
|
const res = JSON.parse(upRes.data);
|
|
1031
1027
|
if (res.code === "200") {
|
|
1032
|
-
const faceInfo = res.result.faceInfo || {}
|
|
1028
|
+
const faceInfo = res.result.faceInfo || {};
|
|
1029
|
+
const backInfo = res.result.backInfo || {};
|
|
1033
1030
|
result = {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1031
|
+
faceInfo: {
|
|
1032
|
+
name: allTrim(faceInfo.name || ""),
|
|
1033
|
+
certNo: allTrim(faceInfo.num || ""),
|
|
1034
|
+
address: allTrim(faceInfo.address || "")
|
|
1035
|
+
},
|
|
1036
|
+
backInfo: {
|
|
1037
|
+
startDate: backInfo?.startDate || "",
|
|
1038
|
+
endDate: backInfo?.endDate || ""
|
|
1039
|
+
},
|
|
1040
|
+
fileUploadVO: res.result.fileUploadVO || {}
|
|
1043
1041
|
};
|
|
1044
1042
|
console.log("===\u8BC6\u522B", result);
|
|
1045
|
-
if (!result.name && !result.
|
|
1043
|
+
if (props.side === "face" && !result.faceInfo.name && !result.faceInfo.certNo) {
|
|
1044
|
+
Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
|
|
1045
|
+
}
|
|
1046
|
+
if (props.side === "back" && !result.backInfo?.startDate && !result.backInfo?.endDate) {
|
|
1046
1047
|
Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
|
|
1047
1048
|
}
|
|
1048
1049
|
} else {
|
|
@@ -1057,26 +1058,81 @@ var script$D = /* @__PURE__ */ defineComponent({
|
|
|
1057
1058
|
}
|
|
1058
1059
|
emits("complete", result);
|
|
1059
1060
|
}
|
|
1061
|
+
const activeSheetVisible = ref(false);
|
|
1062
|
+
const actionSheetMenus = [
|
|
1063
|
+
{
|
|
1064
|
+
name: "\u62CD\u6444",
|
|
1065
|
+
type: "camera"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
name: "\u4ECE\u76F8\u518C\u9009\u62E9",
|
|
1069
|
+
type: "album"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
name: "\u4ECE\u804A\u5929\u4F1A\u8BDD\u9009\u62E9",
|
|
1073
|
+
type: "message"
|
|
1074
|
+
}
|
|
1075
|
+
];
|
|
1076
|
+
async function chooseImages(item) {
|
|
1077
|
+
if (["camera", "album"].includes(item.type)) {
|
|
1078
|
+
const csRes = await Taro.chooseMedia({
|
|
1079
|
+
count: 1,
|
|
1080
|
+
sourceType: [item.type],
|
|
1081
|
+
// "camera" | "album"
|
|
1082
|
+
maxDuration: 60
|
|
1083
|
+
// 使用duration属性判断是图片还是视频,图片没有该属性
|
|
1084
|
+
});
|
|
1085
|
+
onUploadFile(csRes);
|
|
1086
|
+
} else {
|
|
1087
|
+
const csRes = await Taro.chooseMessageFile({
|
|
1088
|
+
count: 1,
|
|
1089
|
+
type: "image"
|
|
1090
|
+
});
|
|
1091
|
+
onUploadFile(csRes);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
function onPhotograph() {
|
|
1095
|
+
if (props.disabled) return;
|
|
1096
|
+
activeSheetVisible.value = true;
|
|
1097
|
+
}
|
|
1060
1098
|
return (_ctx, _cache) => {
|
|
1099
|
+
const _component_nut_action_sheet = ActionSheet;
|
|
1061
1100
|
return openBlock(), createElementBlock(
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
class: normalizeClass(["ocr-icon", _ctx.disabled ? "disabled" : ""]),
|
|
1065
|
-
onClick: onIconClick
|
|
1066
|
-
},
|
|
1101
|
+
Fragment,
|
|
1102
|
+
null,
|
|
1067
1103
|
[
|
|
1068
|
-
|
|
1104
|
+
createElementVNode(
|
|
1105
|
+
"div",
|
|
1106
|
+
{
|
|
1107
|
+
class: normalizeClass(["ocr-icon", [_ctx.disabled ? "disabled" : ""]]),
|
|
1108
|
+
onClick: onPhotograph
|
|
1109
|
+
},
|
|
1110
|
+
[
|
|
1111
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1112
|
+
createVNode(unref(NsIcon), { name: "https://cdn.ddjf.com/static/images/beidouxing/ocr-icon.png" })
|
|
1113
|
+
])
|
|
1114
|
+
],
|
|
1115
|
+
2
|
|
1116
|
+
/* CLASS */
|
|
1117
|
+
),
|
|
1118
|
+
createVNode(_component_nut_action_sheet, {
|
|
1119
|
+
visible: activeSheetVisible.value,
|
|
1120
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => activeSheetVisible.value = $event),
|
|
1121
|
+
"menu-items": actionSheetMenus,
|
|
1122
|
+
onChoose: chooseImages,
|
|
1123
|
+
"cancel-txt": "\u53D6\u6D88"
|
|
1124
|
+
}, null, 8, ["visible"])
|
|
1069
1125
|
],
|
|
1070
|
-
|
|
1071
|
-
/*
|
|
1126
|
+
64
|
|
1127
|
+
/* STABLE_FRAGMENT */
|
|
1072
1128
|
);
|
|
1073
1129
|
};
|
|
1074
1130
|
}
|
|
1075
1131
|
});
|
|
1076
1132
|
|
|
1077
|
-
script$
|
|
1133
|
+
script$C.__file = "src/shared/components/OcrIcon.vue";
|
|
1078
1134
|
|
|
1079
|
-
var script$
|
|
1135
|
+
var script$B = /* @__PURE__ */ defineComponent({
|
|
1080
1136
|
__name: "OcrBusinessLicense",
|
|
1081
1137
|
props: {
|
|
1082
1138
|
disabled: { type: Boolean, required: true }
|
|
@@ -1135,7 +1191,6 @@ var script$C = /* @__PURE__ */ defineComponent({
|
|
|
1135
1191
|
objectNo: `min${Date.now()}`
|
|
1136
1192
|
},
|
|
1137
1193
|
header: {
|
|
1138
|
-
sessionKey: session || "",
|
|
1139
1194
|
token: session || ""
|
|
1140
1195
|
}
|
|
1141
1196
|
});
|
|
@@ -1184,7 +1239,7 @@ var script$C = /* @__PURE__ */ defineComponent({
|
|
|
1184
1239
|
}
|
|
1185
1240
|
});
|
|
1186
1241
|
|
|
1187
|
-
script$
|
|
1242
|
+
script$B.__file = "src/shared/components/OcrBusinessLicense.vue";
|
|
1188
1243
|
|
|
1189
1244
|
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
1190
1245
|
HttpMethod2["get"] = "GET";
|
|
@@ -1508,7 +1563,7 @@ const _hoisted_1$x = { class: "view recharge-view" };
|
|
|
1508
1563
|
const _hoisted_2$n = { class: "flex-grow" };
|
|
1509
1564
|
const _hoisted_3$i = { class: "amount-footer" };
|
|
1510
1565
|
const _hoisted_4$e = { class: "agreement" };
|
|
1511
|
-
var script$
|
|
1566
|
+
var script$A = /* @__PURE__ */ defineComponent({
|
|
1512
1567
|
__name: "RechargeView",
|
|
1513
1568
|
props: {
|
|
1514
1569
|
app: { type: String, required: true },
|
|
@@ -1574,7 +1629,7 @@ var script$B = /* @__PURE__ */ defineComponent({
|
|
|
1574
1629
|
const _component_nut_button = Button;
|
|
1575
1630
|
return openBlock(), createElementBlock("view", _hoisted_1$x, [
|
|
1576
1631
|
createElementVNode("view", _hoisted_2$n, [
|
|
1577
|
-
createVNode(script$
|
|
1632
|
+
createVNode(script$I, {
|
|
1578
1633
|
items: amounts.value,
|
|
1579
1634
|
selected: state.selected,
|
|
1580
1635
|
onChange: onAmountSelect
|
|
@@ -1616,7 +1671,7 @@ var script$B = /* @__PURE__ */ defineComponent({
|
|
|
1616
1671
|
}
|
|
1617
1672
|
});
|
|
1618
1673
|
|
|
1619
|
-
script$
|
|
1674
|
+
script$A.__file = "src/payment/components/RechargeView.vue";
|
|
1620
1675
|
|
|
1621
1676
|
const _hoisted_1$w = { class: "agreement-doc" };
|
|
1622
1677
|
function render$2(_ctx, _cache) {
|
|
@@ -1625,10 +1680,10 @@ function render$2(_ctx, _cache) {
|
|
|
1625
1680
|
]));
|
|
1626
1681
|
}
|
|
1627
1682
|
|
|
1628
|
-
/* unplugin-vue-components disabled */const script$
|
|
1683
|
+
/* unplugin-vue-components disabled */const script$z = {};
|
|
1629
1684
|
|
|
1630
|
-
script$
|
|
1631
|
-
script$
|
|
1685
|
+
script$z.render = render$2;
|
|
1686
|
+
script$z.__file = "src/payment/components/UserAgreement.vue";
|
|
1632
1687
|
|
|
1633
1688
|
const _hoisted_1$v = { class: "recharge-result" };
|
|
1634
1689
|
const _hoisted_2$m = { class: "content" };
|
|
@@ -1640,7 +1695,7 @@ const _hoisted_4$d = {
|
|
|
1640
1695
|
key: 1,
|
|
1641
1696
|
class: "caption"
|
|
1642
1697
|
};
|
|
1643
|
-
var script$
|
|
1698
|
+
var script$y = /* @__PURE__ */ defineComponent({
|
|
1644
1699
|
__name: "RechargeResult",
|
|
1645
1700
|
props: {
|
|
1646
1701
|
type: { type: String, required: true, default: "recharge" },
|
|
@@ -1698,12 +1753,12 @@ var script$z = /* @__PURE__ */ defineComponent({
|
|
|
1698
1753
|
}
|
|
1699
1754
|
});
|
|
1700
1755
|
|
|
1701
|
-
script$
|
|
1756
|
+
script$y.__file = "src/payment/components/RechargeResult.vue";
|
|
1702
1757
|
|
|
1703
1758
|
const _hoisted_1$u = { class: "tag" };
|
|
1704
1759
|
const _hoisted_2$l = { class: "token-line number" };
|
|
1705
1760
|
const _hoisted_3$g = { class: "number" };
|
|
1706
|
-
var script$
|
|
1761
|
+
var script$x = /* @__PURE__ */ defineComponent({
|
|
1707
1762
|
__name: "RightsPicker",
|
|
1708
1763
|
props: {
|
|
1709
1764
|
items: { type: Array, required: true, default: () => [] },
|
|
@@ -1779,7 +1834,33 @@ var script$y = /* @__PURE__ */ defineComponent({
|
|
|
1779
1834
|
}
|
|
1780
1835
|
});
|
|
1781
1836
|
|
|
1782
|
-
script$
|
|
1837
|
+
script$x.__file = "src/payment/components/RightsPicker.vue";
|
|
1838
|
+
|
|
1839
|
+
function useAmount() {
|
|
1840
|
+
function limitDecimal(value, precision = 1) {
|
|
1841
|
+
if (!value) return value;
|
|
1842
|
+
value = String(value);
|
|
1843
|
+
if (value.includes(".")) {
|
|
1844
|
+
value = value.slice(0, value.indexOf(".") + (precision + 1));
|
|
1845
|
+
}
|
|
1846
|
+
value = value.replace(/[^0-9.]/g, "");
|
|
1847
|
+
value = value.replace(/\.{2,}/g, ".");
|
|
1848
|
+
return value;
|
|
1849
|
+
}
|
|
1850
|
+
function formatAmount(value, digits = 2) {
|
|
1851
|
+
if (!value) {
|
|
1852
|
+
return "0";
|
|
1853
|
+
}
|
|
1854
|
+
return value.toLocaleString("en-US", {
|
|
1855
|
+
minimumFractionDigits: 0,
|
|
1856
|
+
maximumFractionDigits: digits
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
return {
|
|
1860
|
+
limitDecimal,
|
|
1861
|
+
formatAmount
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1783
1864
|
|
|
1784
1865
|
const _hoisted_1$t = { class: "view recharge-view2" };
|
|
1785
1866
|
const _hoisted_2$k = { class: "flex-grow" };
|
|
@@ -1809,7 +1890,7 @@ const _hoisted_13$2 = { class: "amount" };
|
|
|
1809
1890
|
const _hoisted_14$2 = { class: "item" };
|
|
1810
1891
|
const _hoisted_15$2 = { class: "item" };
|
|
1811
1892
|
const _hoisted_16$2 = { class: "item" };
|
|
1812
|
-
var script$
|
|
1893
|
+
var script$w = /* @__PURE__ */ defineComponent({
|
|
1813
1894
|
__name: "TradeView",
|
|
1814
1895
|
props: {
|
|
1815
1896
|
app: { type: String, required: true },
|
|
@@ -1818,6 +1899,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1818
1899
|
emits: ["complete", "agree"],
|
|
1819
1900
|
setup(__props, { emit: __emit }) {
|
|
1820
1901
|
const props = __props;
|
|
1902
|
+
const { formatAmount } = useAmount();
|
|
1821
1903
|
const emit = __emit;
|
|
1822
1904
|
const state = reactive({
|
|
1823
1905
|
agreed: false,
|
|
@@ -1900,7 +1982,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1900
1982
|
const _component_nut_dialog = Dialog;
|
|
1901
1983
|
return openBlock(), createElementBlock("view", _hoisted_1$t, [
|
|
1902
1984
|
createElementVNode("view", _hoisted_2$k, [
|
|
1903
|
-
createVNode(script$
|
|
1985
|
+
createVNode(script$x, {
|
|
1904
1986
|
items: amounts.value,
|
|
1905
1987
|
selected: state.selected,
|
|
1906
1988
|
onChange: onAmountSelect
|
|
@@ -1917,13 +1999,13 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1917
1999
|
!selectBean.value ? (openBlock(), createElementBlock(
|
|
1918
2000
|
"div",
|
|
1919
2001
|
_hoisted_5$a,
|
|
1920
|
-
"\u4F59\u989D " + toDisplayString(balance.value),
|
|
2002
|
+
"\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value || 0)),
|
|
1921
2003
|
1
|
|
1922
2004
|
/* TEXT */
|
|
1923
2005
|
)) : (openBlock(), createElementBlock(
|
|
1924
2006
|
"div",
|
|
1925
2007
|
_hoisted_6$5,
|
|
1926
|
-
"\u6263\u51CF\u540E\u4F59\u989D " + toDisplayString((balance.value - amounts.value[state.selected].paymentAmount)
|
|
2008
|
+
"\u6263\u51CF\u540E\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
1927
2009
|
1
|
|
1928
2010
|
/* TEXT */
|
|
1929
2011
|
))
|
|
@@ -1936,7 +2018,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1936
2018
|
createElementVNode(
|
|
1937
2019
|
"div",
|
|
1938
2020
|
_hoisted_7$5,
|
|
1939
|
-
"-" + toDisplayString(amounts.value[state.selected].paymentAmount),
|
|
2021
|
+
"-" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
1940
2022
|
1
|
|
1941
2023
|
/* TEXT */
|
|
1942
2024
|
),
|
|
@@ -1976,7 +2058,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1976
2058
|
/* HOISTED */
|
|
1977
2059
|
)),
|
|
1978
2060
|
createTextVNode(
|
|
1979
|
-
toDisplayString(currentAmount.value),
|
|
2061
|
+
toDisplayString(unref(formatAmount)(currentAmount.value)),
|
|
1980
2062
|
1
|
|
1981
2063
|
/* TEXT */
|
|
1982
2064
|
)
|
|
@@ -2013,21 +2095,21 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
2013
2095
|
createElementVNode(
|
|
2014
2096
|
"div",
|
|
2015
2097
|
_hoisted_14$2,
|
|
2016
|
-
"\u4E91\u8C46\u6263\u51CF\uFF1A" + toDisplayString(amounts.value[state.selected].paymentAmount),
|
|
2098
|
+
"\u4E91\u8C46\u6263\u51CF\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
2017
2099
|
1
|
|
2018
2100
|
/* TEXT */
|
|
2019
2101
|
),
|
|
2020
2102
|
createElementVNode(
|
|
2021
2103
|
"div",
|
|
2022
2104
|
_hoisted_15$2,
|
|
2023
|
-
"\u6743\u76CA\u589E\u52A0\uFF1A" + toDisplayString(amounts.value[state.selected].priceRightNum) + "\u7B14",
|
|
2105
|
+
"\u6743\u76CA\u589E\u52A0\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].priceRightNum || 0)) + "\u7B14",
|
|
2024
2106
|
1
|
|
2025
2107
|
/* TEXT */
|
|
2026
2108
|
),
|
|
2027
2109
|
createElementVNode(
|
|
2028
2110
|
"div",
|
|
2029
2111
|
_hoisted_16$2,
|
|
2030
|
-
"\u6263\u51CF\u540E\u4E91\u8C46\u4F59\u989D\uFF1A" + toDisplayString((balance.value - amounts.value[state.selected].paymentAmount)
|
|
2112
|
+
"\u6263\u51CF\u540E\u4E91\u8C46\u4F59\u989D\uFF1A" + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
2031
2113
|
1
|
|
2032
2114
|
/* TEXT */
|
|
2033
2115
|
)
|
|
@@ -2044,14 +2126,14 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
2044
2126
|
}
|
|
2045
2127
|
});
|
|
2046
2128
|
|
|
2047
|
-
script$
|
|
2129
|
+
script$w.__file = "src/payment/components/TradeView.vue";
|
|
2048
2130
|
|
|
2049
2131
|
const components = {
|
|
2050
|
-
AmountPicker: script$
|
|
2051
|
-
RechargeView: script$
|
|
2052
|
-
UserAgreement: script$
|
|
2053
|
-
RechargeResult: script$
|
|
2054
|
-
TradeView: script$
|
|
2132
|
+
AmountPicker: script$I,
|
|
2133
|
+
RechargeView: script$A,
|
|
2134
|
+
UserAgreement: script$z,
|
|
2135
|
+
RechargeResult: script$y,
|
|
2136
|
+
TradeView: script$w
|
|
2055
2137
|
};
|
|
2056
2138
|
|
|
2057
2139
|
const _hoisted_1$s = { class: "account-card" };
|
|
@@ -2059,7 +2141,7 @@ const _hoisted_2$j = { class: "card" };
|
|
|
2059
2141
|
const _hoisted_3$e = { class: "card-row" };
|
|
2060
2142
|
const _hoisted_4$b = { class: "card-row-left" };
|
|
2061
2143
|
const _hoisted_5$9 = { class: "bean-nums number" };
|
|
2062
|
-
var script$
|
|
2144
|
+
var script$v = /* @__PURE__ */ defineComponent({
|
|
2063
2145
|
__name: "BalanceCard",
|
|
2064
2146
|
props: {
|
|
2065
2147
|
app: { type: String, required: true, default: "" }
|
|
@@ -2076,6 +2158,7 @@ var script$w = /* @__PURE__ */ defineComponent({
|
|
|
2076
2158
|
],
|
|
2077
2159
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2078
2160
|
const props = __props;
|
|
2161
|
+
const { formatAmount } = useAmount();
|
|
2079
2162
|
const balance = ref({
|
|
2080
2163
|
total: 0,
|
|
2081
2164
|
privileges: []
|
|
@@ -2121,7 +2204,7 @@ var script$w = /* @__PURE__ */ defineComponent({
|
|
|
2121
2204
|
createElementVNode(
|
|
2122
2205
|
"div",
|
|
2123
2206
|
_hoisted_5$9,
|
|
2124
|
-
toDisplayString(balance.value.total || 0),
|
|
2207
|
+
toDisplayString(unref(formatAmount)(balance.value.total || 0)),
|
|
2125
2208
|
1
|
|
2126
2209
|
/* TEXT */
|
|
2127
2210
|
)
|
|
@@ -2160,7 +2243,7 @@ var script$w = /* @__PURE__ */ defineComponent({
|
|
|
2160
2243
|
}
|
|
2161
2244
|
});
|
|
2162
2245
|
|
|
2163
|
-
script$
|
|
2246
|
+
script$v.__file = "src/balance/components/BalanceCard.vue";
|
|
2164
2247
|
|
|
2165
2248
|
const consumptionTypes = [
|
|
2166
2249
|
"\u5168\u90E8",
|
|
@@ -2182,7 +2265,7 @@ const _hoisted_2$i = { class: "consumption-filter-content" };
|
|
|
2182
2265
|
const _hoisted_3$d = { class: "title" };
|
|
2183
2266
|
const _hoisted_4$a = { class: "info" };
|
|
2184
2267
|
const _hoisted_5$8 = ["onClick"];
|
|
2185
|
-
var script$
|
|
2268
|
+
var script$u = /* @__PURE__ */ defineComponent({
|
|
2186
2269
|
__name: "ConsumptionFilter",
|
|
2187
2270
|
props: {
|
|
2188
2271
|
modelValue: { type: Array, required: true, default: () => ["\u5168\u90E8", "\u5168\u90E8", "\u5168\u90E8", ""] }
|
|
@@ -2306,12 +2389,12 @@ var script$v = /* @__PURE__ */ defineComponent({
|
|
|
2306
2389
|
}
|
|
2307
2390
|
});
|
|
2308
2391
|
|
|
2309
|
-
script$
|
|
2392
|
+
script$u.__file = "src/balance/components/ConsumptionFilter.vue";
|
|
2310
2393
|
|
|
2311
2394
|
const _hoisted_1$q = { class: "appkit-date-filter" };
|
|
2312
2395
|
const _hoisted_2$h = { class: "content" };
|
|
2313
2396
|
const _hoisted_3$c = { class: "time" };
|
|
2314
|
-
var script$
|
|
2397
|
+
var script$t = /* @__PURE__ */ defineComponent({
|
|
2315
2398
|
__name: "DateFilter",
|
|
2316
2399
|
props: {
|
|
2317
2400
|
from: { type: String, required: true },
|
|
@@ -2470,10 +2553,10 @@ var script$u = /* @__PURE__ */ defineComponent({
|
|
|
2470
2553
|
}
|
|
2471
2554
|
});
|
|
2472
2555
|
|
|
2473
|
-
script$
|
|
2556
|
+
script$t.__file = "src/balance/components/DateFilter.vue";
|
|
2474
2557
|
|
|
2475
2558
|
const _hoisted_1$p = { class: "consumption-rules" };
|
|
2476
|
-
var script$
|
|
2559
|
+
var script$s = /* @__PURE__ */ defineComponent({
|
|
2477
2560
|
__name: "ConsumptionRules",
|
|
2478
2561
|
emits: ["complete"],
|
|
2479
2562
|
setup(__props, { emit: __emit }) {
|
|
@@ -2511,7 +2594,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
2511
2594
|
}
|
|
2512
2595
|
});
|
|
2513
2596
|
|
|
2514
|
-
script$
|
|
2597
|
+
script$s.__file = "src/balance/components/ConsumptionRules.vue";
|
|
2515
2598
|
|
|
2516
2599
|
const _hoisted_1$o = { class: "empty-view" };
|
|
2517
2600
|
function render$1(_ctx, _cache) {
|
|
@@ -2536,16 +2619,16 @@ function render$1(_ctx, _cache) {
|
|
|
2536
2619
|
]));
|
|
2537
2620
|
}
|
|
2538
2621
|
|
|
2539
|
-
/* unplugin-vue-components disabled */const script$
|
|
2622
|
+
/* unplugin-vue-components disabled */const script$r = {};
|
|
2540
2623
|
|
|
2541
|
-
script$
|
|
2542
|
-
script$
|
|
2624
|
+
script$r.render = render$1;
|
|
2625
|
+
script$r.__file = "src/shared/components/EmptyView.vue";
|
|
2543
2626
|
|
|
2544
2627
|
const _hoisted_1$n = {
|
|
2545
2628
|
key: 0,
|
|
2546
2629
|
class: "tip"
|
|
2547
2630
|
};
|
|
2548
|
-
var script$
|
|
2631
|
+
var script$q = /* @__PURE__ */ defineComponent({
|
|
2549
2632
|
__name: "Tip",
|
|
2550
2633
|
setup(__props) {
|
|
2551
2634
|
const show = ref(false);
|
|
@@ -2580,7 +2663,7 @@ var script$r = /* @__PURE__ */ defineComponent({
|
|
|
2580
2663
|
}
|
|
2581
2664
|
});
|
|
2582
2665
|
|
|
2583
|
-
script$
|
|
2666
|
+
script$q.__file = "src/balance/components/Tip.vue";
|
|
2584
2667
|
|
|
2585
2668
|
const _hoisted_1$m = { class: "account-view" };
|
|
2586
2669
|
const _hoisted_2$g = { class: "scroll-content" };
|
|
@@ -2627,7 +2710,7 @@ const _hoisted_30 = {
|
|
|
2627
2710
|
key: 0,
|
|
2628
2711
|
class: "box-not-text"
|
|
2629
2712
|
};
|
|
2630
|
-
var script$
|
|
2713
|
+
var script$p = /* @__PURE__ */ defineComponent({
|
|
2631
2714
|
__name: "AccountView",
|
|
2632
2715
|
props: {
|
|
2633
2716
|
app: { type: String, required: true, default: "" }
|
|
@@ -2636,6 +2719,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2636
2719
|
setup(__props, { emit: __emit }) {
|
|
2637
2720
|
ref(false);
|
|
2638
2721
|
const props = __props;
|
|
2722
|
+
const { formatAmount } = useAmount();
|
|
2639
2723
|
const emit = __emit;
|
|
2640
2724
|
const filterOpen = ref(false);
|
|
2641
2725
|
const rulesPopupOpen = ref(false);
|
|
@@ -2806,7 +2890,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2806
2890
|
[
|
|
2807
2891
|
createElementVNode("div", _hoisted_1$m, [
|
|
2808
2892
|
createElementVNode("div", _hoisted_2$g, [
|
|
2809
|
-
createVNode(unref(script$
|
|
2893
|
+
createVNode(unref(script$H), {
|
|
2810
2894
|
title: "\u6211\u7684\u8D26\u6237",
|
|
2811
2895
|
class: normalizeClass({ "with-background": scrolled.value > 0 }),
|
|
2812
2896
|
onClose: onPageHeaderClose
|
|
@@ -2849,7 +2933,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2849
2933
|
createElementVNode(
|
|
2850
2934
|
"div",
|
|
2851
2935
|
_hoisted_6$4,
|
|
2852
|
-
toDisplayString(balance.value.total || 0),
|
|
2936
|
+
toDisplayString(unref(formatAmount)(balance.value.total || 0)),
|
|
2853
2937
|
1
|
|
2854
2938
|
/* TEXT */
|
|
2855
2939
|
),
|
|
@@ -2859,7 +2943,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2859
2943
|
}, "\u4E91\u8C46\u5145\u503C")
|
|
2860
2944
|
])
|
|
2861
2945
|
]),
|
|
2862
|
-
createVNode(script$
|
|
2946
|
+
createVNode(script$q),
|
|
2863
2947
|
balance.value.privileges.corporateStar ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
2864
2948
|
_cache[10] || (_cache[10] = createElementVNode(
|
|
2865
2949
|
"div",
|
|
@@ -2881,7 +2965,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2881
2965
|
createElementVNode(
|
|
2882
2966
|
"span",
|
|
2883
2967
|
null,
|
|
2884
|
-
toDisplayString(item.count),
|
|
2968
|
+
toDisplayString(unref(formatAmount)(item.count || 0)),
|
|
2885
2969
|
1
|
|
2886
2970
|
/* TEXT */
|
|
2887
2971
|
),
|
|
@@ -2944,7 +3028,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2944
3028
|
createElementVNode(
|
|
2945
3029
|
"div",
|
|
2946
3030
|
_hoisted_15$1,
|
|
2947
|
-
toDisplayString(item.count) + toDisplayString(item.unit),
|
|
3031
|
+
toDisplayString(unref(formatAmount)(item.count || 0)) + toDisplayString(item.unit),
|
|
2948
3032
|
1
|
|
2949
3033
|
/* TEXT */
|
|
2950
3034
|
),
|
|
@@ -2971,7 +3055,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2971
3055
|
"close-on-click-overlay": false
|
|
2972
3056
|
}, {
|
|
2973
3057
|
default: withCtx(() => [
|
|
2974
|
-
createVNode(script$
|
|
3058
|
+
createVNode(script$s, {
|
|
2975
3059
|
onComplete: _cache[1] || (_cache[1] = ($event) => rulesPopupOpen.value = false)
|
|
2976
3060
|
})
|
|
2977
3061
|
]),
|
|
@@ -2987,7 +3071,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2987
3071
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => datePickerOpen.value = $event)
|
|
2988
3072
|
}, {
|
|
2989
3073
|
default: withCtx(() => [
|
|
2990
|
-
datePickerOpen.value ? (openBlock(), createBlock(script$
|
|
3074
|
+
datePickerOpen.value ? (openBlock(), createBlock(script$t, {
|
|
2991
3075
|
key: 0,
|
|
2992
3076
|
from: filtering.dateFrom,
|
|
2993
3077
|
to: filtering.dateTo,
|
|
@@ -3007,7 +3091,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3007
3091
|
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => filterOpen.value = $event)
|
|
3008
3092
|
}, {
|
|
3009
3093
|
default: withCtx(() => [
|
|
3010
|
-
createVNode(script$
|
|
3094
|
+
createVNode(script$u, {
|
|
3011
3095
|
modelValue: [
|
|
3012
3096
|
filtering.\u8D26\u6237\u7C7B\u578B,
|
|
3013
3097
|
filtering.\u6536\u5165\u8FD8\u662F\u652F\u51FA,
|
|
@@ -3020,7 +3104,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3020
3104
|
_: 1
|
|
3021
3105
|
/* STABLE */
|
|
3022
3106
|
}, 8, ["visible"]),
|
|
3023
|
-
createVNode(unref(script$
|
|
3107
|
+
createVNode(unref(script$G), {
|
|
3024
3108
|
modelValue: secondBalanceOpen.value,
|
|
3025
3109
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => secondBalanceOpen.value = $event),
|
|
3026
3110
|
title: "\u6536\u652F\u660E\u7EC6"
|
|
@@ -3184,7 +3268,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3184
3268
|
/* KEYED_FRAGMENT */
|
|
3185
3269
|
)),
|
|
3186
3270
|
reachedLastPage.value ? (openBlock(), createElementBlock("div", _hoisted_30, "\u6CA1\u6709\u66F4\u591A\u4E86")) : createCommentVNode("v-if", true)
|
|
3187
|
-
])) : (openBlock(), createBlock(script$
|
|
3271
|
+
])) : (openBlock(), createBlock(script$r, { key: 1 }))
|
|
3188
3272
|
]),
|
|
3189
3273
|
_: 1
|
|
3190
3274
|
/* STABLE */
|
|
@@ -3203,13 +3287,13 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3203
3287
|
}
|
|
3204
3288
|
});
|
|
3205
3289
|
|
|
3206
|
-
script$
|
|
3290
|
+
script$p.__file = "src/balance/components/AccountView.vue";
|
|
3207
3291
|
|
|
3208
3292
|
const _hoisted_1$l = { class: "balance-reminder" };
|
|
3209
3293
|
const _hoisted_2$f = { class: "footer" };
|
|
3210
3294
|
const _hoisted_3$a = { class: "col" };
|
|
3211
3295
|
const _hoisted_4$8 = { class: "col" };
|
|
3212
|
-
var script$
|
|
3296
|
+
var script$o = /* @__PURE__ */ defineComponent({
|
|
3213
3297
|
__name: "BalanceReminder",
|
|
3214
3298
|
props: {
|
|
3215
3299
|
modelValue: { type: Boolean, required: true, default: () => false },
|
|
@@ -3281,10 +3365,10 @@ var script$p = /* @__PURE__ */ defineComponent({
|
|
|
3281
3365
|
}
|
|
3282
3366
|
});
|
|
3283
3367
|
|
|
3284
|
-
script$
|
|
3368
|
+
script$o.__file = "src/balance/components/BalanceReminder.vue";
|
|
3285
3369
|
|
|
3286
3370
|
const _hoisted_1$k = { class: "text" };
|
|
3287
|
-
var script$
|
|
3371
|
+
var script$n = /* @__PURE__ */ defineComponent({
|
|
3288
3372
|
__name: "DateRange",
|
|
3289
3373
|
props: {
|
|
3290
3374
|
"modelValue": {
|
|
@@ -3304,7 +3388,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
3304
3388
|
const openDateRangePicker = () => {
|
|
3305
3389
|
const child = ref();
|
|
3306
3390
|
$n.sheet({
|
|
3307
|
-
component: script$
|
|
3391
|
+
component: script$t,
|
|
3308
3392
|
ref: child,
|
|
3309
3393
|
props: {
|
|
3310
3394
|
from: model.value.from,
|
|
@@ -3354,14 +3438,14 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
3354
3438
|
}
|
|
3355
3439
|
});
|
|
3356
3440
|
|
|
3357
|
-
script$
|
|
3441
|
+
script$n.__file = "src/balance/components/DateRange.vue";
|
|
3358
3442
|
|
|
3359
3443
|
const _hoisted_1$j = { class: "list-filter-picker" };
|
|
3360
3444
|
const _hoisted_2$e = { class: "list-filter-picker-content" };
|
|
3361
3445
|
const _hoisted_3$9 = { class: "title" };
|
|
3362
3446
|
const _hoisted_4$7 = { class: "info" };
|
|
3363
3447
|
const _hoisted_5$6 = ["onClick"];
|
|
3364
|
-
var script$
|
|
3448
|
+
var script$m = /* @__PURE__ */ defineComponent({
|
|
3365
3449
|
__name: "ListFilterPicker",
|
|
3366
3450
|
props: {
|
|
3367
3451
|
modelValue: { type: Object, required: true }
|
|
@@ -3479,9 +3563,9 @@ var script$n = /* @__PURE__ */ defineComponent({
|
|
|
3479
3563
|
}
|
|
3480
3564
|
});
|
|
3481
3565
|
|
|
3482
|
-
script$
|
|
3566
|
+
script$m.__file = "src/balance/components/ListFilterPicker.vue";
|
|
3483
3567
|
|
|
3484
|
-
var script$
|
|
3568
|
+
var script$l = /* @__PURE__ */ defineComponent({
|
|
3485
3569
|
__name: "ListFilter",
|
|
3486
3570
|
props: {
|
|
3487
3571
|
"modelValue": {
|
|
@@ -3500,7 +3584,7 @@ var script$m = /* @__PURE__ */ defineComponent({
|
|
|
3500
3584
|
const emit = __emit;
|
|
3501
3585
|
const openPicker = () => {
|
|
3502
3586
|
$n.sheet({
|
|
3503
|
-
component: script$
|
|
3587
|
+
component: script$m,
|
|
3504
3588
|
props: {
|
|
3505
3589
|
modelValue: model,
|
|
3506
3590
|
onComplete: (result) => {
|
|
@@ -3538,7 +3622,7 @@ var script$m = /* @__PURE__ */ defineComponent({
|
|
|
3538
3622
|
}
|
|
3539
3623
|
});
|
|
3540
3624
|
|
|
3541
|
-
script$
|
|
3625
|
+
script$l.__file = "src/balance/components/ListFilter.vue";
|
|
3542
3626
|
|
|
3543
3627
|
const _hoisted_1$i = {
|
|
3544
3628
|
key: 0,
|
|
@@ -3556,7 +3640,7 @@ const _hoisted_6$3 = {
|
|
|
3556
3640
|
class: "promoter-card-ft-line"
|
|
3557
3641
|
};
|
|
3558
3642
|
const _hoisted_7$3 = { class: "promoter-card-ft-num" };
|
|
3559
|
-
var script$
|
|
3643
|
+
var script$k = /* @__PURE__ */ defineComponent({
|
|
3560
3644
|
__name: "PromoterCard",
|
|
3561
3645
|
props: {
|
|
3562
3646
|
useCase: { type: String, required: true, default: "" },
|
|
@@ -3579,6 +3663,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3579
3663
|
],
|
|
3580
3664
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3581
3665
|
const props = __props;
|
|
3666
|
+
const { formatAmount } = useAmount();
|
|
3582
3667
|
const tab = ref("person");
|
|
3583
3668
|
const promoter = ref({
|
|
3584
3669
|
total: 0,
|
|
@@ -3641,7 +3726,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3641
3726
|
createElementVNode(
|
|
3642
3727
|
"div",
|
|
3643
3728
|
_hoisted_3$8,
|
|
3644
|
-
toDisplayString(promoter.value.balance),
|
|
3729
|
+
toDisplayString(unref(formatAmount)(promoter.value.balance || 0)),
|
|
3645
3730
|
1
|
|
3646
3731
|
/* TEXT */
|
|
3647
3732
|
),
|
|
@@ -3673,13 +3758,13 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3673
3758
|
_cache[8] || (_cache[8] = createElementVNode(
|
|
3674
3759
|
"div",
|
|
3675
3760
|
{ class: "promoter-card-ft-info" },
|
|
3676
|
-
"\u9500\u552E\u7D2F\u8BA1\u6536\u76CA(\
|
|
3761
|
+
"\u9500\u552E\u7D2F\u8BA1\u6536\u76CA(\u5143)",
|
|
3677
3762
|
-1
|
|
3678
3763
|
/* HOISTED */
|
|
3679
3764
|
)),
|
|
3680
3765
|
createElementVNode("div", _hoisted_5$5, [
|
|
3681
3766
|
createTextVNode(
|
|
3682
|
-
toDisplayString(promoter.value.totalIncome) + " ",
|
|
3767
|
+
toDisplayString(unref(formatAmount)(promoter.value.totalIncome || 0)) + " ",
|
|
3683
3768
|
1
|
|
3684
3769
|
/* TEXT */
|
|
3685
3770
|
),
|
|
@@ -3711,7 +3796,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3711
3796
|
)),
|
|
3712
3797
|
createElementVNode("div", _hoisted_7$3, [
|
|
3713
3798
|
createTextVNode(
|
|
3714
|
-
toDisplayString(promoter.value.totalRebateIncome) + " ",
|
|
3799
|
+
toDisplayString(unref(formatAmount)(promoter.value.totalRebateIncome || 0)) + " ",
|
|
3715
3800
|
1
|
|
3716
3801
|
/* TEXT */
|
|
3717
3802
|
),
|
|
@@ -3734,114 +3819,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3734
3819
|
}
|
|
3735
3820
|
});
|
|
3736
3821
|
|
|
3737
|
-
script$
|
|
3738
|
-
|
|
3739
|
-
var script$k = /* @__PURE__ */ defineComponent({
|
|
3740
|
-
__name: "index",
|
|
3741
|
-
emits: ["ocr"],
|
|
3742
|
-
setup(__props, { emit: __emit }) {
|
|
3743
|
-
const emits = __emit;
|
|
3744
|
-
const appKitOptions = useAppKitOptions();
|
|
3745
|
-
async function taroImgCompress(src, quality = 80) {
|
|
3746
|
-
return new Promise((resolve, reject) => {
|
|
3747
|
-
Taro.compressImage({
|
|
3748
|
-
src,
|
|
3749
|
-
quality,
|
|
3750
|
-
success: (res) => {
|
|
3751
|
-
resolve(res);
|
|
3752
|
-
},
|
|
3753
|
-
fail: (res) => {
|
|
3754
|
-
reject(res);
|
|
3755
|
-
}
|
|
3756
|
-
});
|
|
3757
|
-
});
|
|
3758
|
-
}
|
|
3759
|
-
function getCompressQuality(size) {
|
|
3760
|
-
let quality = 100;
|
|
3761
|
-
const curSize = size / (1024 * 1024);
|
|
3762
|
-
if (curSize > 6) {
|
|
3763
|
-
quality = quality - (curSize - 6) / curSize * 100;
|
|
3764
|
-
}
|
|
3765
|
-
return quality;
|
|
3766
|
-
}
|
|
3767
|
-
function allTrim(str) {
|
|
3768
|
-
return str.replace(/\s+/g, "");
|
|
3769
|
-
}
|
|
3770
|
-
async function ocrIDCard() {
|
|
3771
|
-
let ocrResult = null;
|
|
3772
|
-
try {
|
|
3773
|
-
const csRes = await Taro.chooseImage({
|
|
3774
|
-
count: 1
|
|
3775
|
-
});
|
|
3776
|
-
let { path, size } = csRes.tempFiles[0];
|
|
3777
|
-
const compressImg = await taroImgCompress(path, getCompressQuality(size)) || {};
|
|
3778
|
-
const filePath = compressImg.tempFilePath || path;
|
|
3779
|
-
Taro.showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
|
|
3780
|
-
const session = appKitOptions.token();
|
|
3781
|
-
const baseUrl = appKitOptions.baseUrl();
|
|
3782
|
-
const upRes = await Taro.uploadFile({
|
|
3783
|
-
url: baseUrl + "/hkapprove/ocr/idcard",
|
|
3784
|
-
filePath,
|
|
3785
|
-
name: "file",
|
|
3786
|
-
formData: {
|
|
3787
|
-
objectNo: `min${Date.now()}`,
|
|
3788
|
-
side: "face"
|
|
3789
|
-
},
|
|
3790
|
-
header: {
|
|
3791
|
-
sessionKey: session || "",
|
|
3792
|
-
token: session || ""
|
|
3793
|
-
}
|
|
3794
|
-
});
|
|
3795
|
-
Taro.hideLoading();
|
|
3796
|
-
const res = JSON.parse(upRes.data);
|
|
3797
|
-
if (res.code === "200") {
|
|
3798
|
-
const faceInfo = res.result.faceInfo || {};
|
|
3799
|
-
ocrResult = {
|
|
3800
|
-
faceInfo: {
|
|
3801
|
-
name: allTrim(faceInfo.name || ""),
|
|
3802
|
-
certNo: allTrim(faceInfo.num || ""),
|
|
3803
|
-
address: allTrim(faceInfo.address || "")
|
|
3804
|
-
},
|
|
3805
|
-
fileUploadVO: res.result.fileUploadVO || {}
|
|
3806
|
-
};
|
|
3807
|
-
if (!ocrResult.faceInfo.name && !ocrResult.faceInfo.certNo) {
|
|
3808
|
-
Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
|
|
3809
|
-
}
|
|
3810
|
-
} else {
|
|
3811
|
-
Taro.showToast({
|
|
3812
|
-
title: res.msg,
|
|
3813
|
-
icon: "error"
|
|
3814
|
-
});
|
|
3815
|
-
}
|
|
3816
|
-
} catch (err) {
|
|
3817
|
-
Taro.hideLoading();
|
|
3818
|
-
console.log(err);
|
|
3819
|
-
}
|
|
3820
|
-
emits("ocr", ocrResult);
|
|
3821
|
-
}
|
|
3822
|
-
return (_ctx, _cache) => {
|
|
3823
|
-
return openBlock(), createElementBlock("div", {
|
|
3824
|
-
class: "ocr-id",
|
|
3825
|
-
onClick: ocrIDCard
|
|
3826
|
-
}, [
|
|
3827
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3828
|
-
_cache[0] || (_cache[0] = createElementVNode(
|
|
3829
|
-
"img",
|
|
3830
|
-
{
|
|
3831
|
-
class: "ocr-id__img",
|
|
3832
|
-
src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0ibm9uZSI+PHBhdGggb3BhY2l0eT0iLjAxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQwIDB2NDBIMFYwaDQweiIgZmlsbD0iI0M0QzRDNCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzMuMDQ0IDE3LjM2M2MuOTYgMCAxLjczOS0uNzkgMS43MzktMS43NjYgMC0uOTc1LS43NzktMS43NjYtMS43NC0xLjc2Ni0uOTYgMC0xLjczOC43OS0xLjczOCAxLjc2NnMuNzc4IDEuNzY2IDEuNzM5IDEuNzY2eiIgZmlsbD0iIzRCQ0I5MyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAzMS44MTJWMTQuNzg4YzAtMi4yNTggMi4wNDktNC4wOTcgNC41NjQtNC4wOTdoMy44NDRsMS4xMzYtMy42NThDOS44ODggNS45MTMgMTEuMjM3IDUgMTIuNTQ4IDVIMjcuNDVjMS4zOSAwIDIuNjguODc2IDMuMDEgMi4wNDRsMS4xMzMgMy42NDdoMy44NDRjMi41MTUgMCA0LjU2NCAxLjgzOSA0LjU2NCA0LjA5N3YxLjczOWMwIC41MDMtLjQ1NC45MS0xLjAxNC45MXMtMS4wMTQtLjQwNy0xLjAxNC0uOTF2LTEuNzRjMC0xLjI1My0xLjEzOS0yLjI3NS0yLjUzNi0yLjI3NWgtMy44NDRjLS45MDcgMC0xLjcxMS0uNTQ5LTEuOTU1LTEuMzMybC0xLjEzNi0zLjY2YS4zNDIuMzQyIDAgMCAwLS4wMDctLjAyNWMtLjExLS4zOTYtLjYzOS0uNjc0LTEuMDQ1LS42NzRoLTE0LjljLS4zOTkgMC0uOTUuMzY2LTEuMDUzLjY5OWwtMS4xMzYgMy42NmMtLjI0Ny43ODYtMS4wNDUgMS4zMy0xLjk1NSAxLjMzMkg0LjU2NGMtMS4zOTcgMC0yLjUzNiAxLjAyMi0yLjUzNiAyLjI3NnYxNy4wMjRjMCAxLjI1NCAxLjEzOSAyLjI3NiAyLjUzNiAyLjI3NmgzMC44N2MxLjM5NyAwIDIuNTM1LTEuMDIyIDIuNTM1LTIuMjc2VjIxLjU5NmMwLS41MDMuNDU0LS45MSAxLjAxNC0uOTFzMS4wMTUuNDA3IDEuMDE1LjkxVjMxLjgxYy0uMDAzIDIuMjYtMi4wNSA0LjEtNC41NjcgNC4xSDQuNTY0QzIuMDQ5IDM1LjkxIDAgMzQuMDcgMCAzMS44MTF6IiBmaWxsPSIjNEJDQjkzIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi4xNzQgMjEuNzc4YzAtNC44NyAzLjcwNS04LjgzIDguMjYtOC44MyA0LjU1NiAwIDguMjYyIDMuOTYgOC4yNjIgOC44M3MtMy43MDYgOC44MzItOC4yNjEgOC44MzJjLTQuNTU2IDAtOC4yNjEtMy45NjItOC4yNjEtOC44MzJ6bTEuNzc5LjEzYzAgMy43OTYgMi45MDcgNi44ODMgNi40ODIgNi44ODMgMy41NzQgMCA2LjQ4MS0zLjA4NyA2LjQ4MS02Ljg4M3MtMi45MDctNi44ODMtNi40ODItNi44ODNjLTMuNTc0IDAtNi40ODEgMy4wODctNi40ODEgNi44ODN6IiBmaWxsPSIjNEJDQjkzIi8+PC9zdmc+"
|
|
3833
|
-
},
|
|
3834
|
-
null,
|
|
3835
|
-
-1
|
|
3836
|
-
/* HOISTED */
|
|
3837
|
-
))
|
|
3838
|
-
])
|
|
3839
|
-
]);
|
|
3840
|
-
};
|
|
3841
|
-
}
|
|
3842
|
-
});
|
|
3843
|
-
|
|
3844
|
-
script$k.__file = "src/components/ocr-id/index.vue";
|
|
3822
|
+
script$k.__file = "src/balance/components/PromoterCard.vue";
|
|
3845
3823
|
|
|
3846
3824
|
var script$j = /* @__PURE__ */ defineComponent({
|
|
3847
3825
|
__name: "index",
|
|
@@ -4205,8 +4183,8 @@ var script$g = /* @__PURE__ */ defineComponent({
|
|
|
4205
4183
|
const emit = __emit;
|
|
4206
4184
|
function onOCRInfo(payload) {
|
|
4207
4185
|
if (!payload) return;
|
|
4208
|
-
formState.name = payload
|
|
4209
|
-
formState.certNo = payload
|
|
4186
|
+
formState.name = payload?.faceInfo.name;
|
|
4187
|
+
formState.certNo = payload?.faceInfo.certNo;
|
|
4210
4188
|
}
|
|
4211
4189
|
function showVerifyToast(tip, duration = 1500) {
|
|
4212
4190
|
if (!tip) return;
|
|
@@ -4334,9 +4312,21 @@ var script$g = /* @__PURE__ */ defineComponent({
|
|
|
4334
4312
|
), [
|
|
4335
4313
|
[vModelText, formState.name]
|
|
4336
4314
|
]),
|
|
4337
|
-
createVNode(script$
|
|
4338
|
-
|
|
4339
|
-
|
|
4315
|
+
createVNode(script$C, { onComplete: onOCRInfo }, {
|
|
4316
|
+
icon: withCtx(() => _cache[9] || (_cache[9] = [
|
|
4317
|
+
createElementVNode(
|
|
4318
|
+
"img",
|
|
4319
|
+
{
|
|
4320
|
+
style: { "width": "20px", "height": "20px", "margin-left": "5px" },
|
|
4321
|
+
src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0ibm9uZSI+PHBhdGggb3BhY2l0eT0iLjAxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQwIDB2NDBIMFYwaDQweiIgZmlsbD0iI0M0QzRDNCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzMuMDQ0IDE3LjM2M2MuOTYgMCAxLjczOS0uNzkgMS43MzktMS43NjYgMC0uOTc1LS43NzktMS43NjYtMS43NC0xLjc2Ni0uOTYgMC0xLjczOC43OS0xLjczOCAxLjc2NnMuNzc4IDEuNzY2IDEuNzM5IDEuNzY2eiIgZmlsbD0iIzRCQ0I5MyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAzMS44MTJWMTQuNzg4YzAtMi4yNTggMi4wNDktNC4wOTcgNC41NjQtNC4wOTdoMy44NDRsMS4xMzYtMy42NThDOS44ODggNS45MTMgMTEuMjM3IDUgMTIuNTQ4IDVIMjcuNDVjMS4zOSAwIDIuNjguODc2IDMuMDEgMi4wNDRsMS4xMzMgMy42NDdoMy44NDRjMi41MTUgMCA0LjU2NCAxLjgzOSA0LjU2NCA0LjA5N3YxLjczOWMwIC41MDMtLjQ1NC45MS0xLjAxNC45MXMtMS4wMTQtLjQwNy0xLjAxNC0uOTF2LTEuNzRjMC0xLjI1My0xLjEzOS0yLjI3NS0yLjUzNi0yLjI3NWgtMy44NDRjLS45MDcgMC0xLjcxMS0uNTQ5LTEuOTU1LTEuMzMybC0xLjEzNi0zLjY2YS4zNDIuMzQyIDAgMCAwLS4wMDctLjAyNWMtLjExLS4zOTYtLjYzOS0uNjc0LTEuMDQ1LS42NzRoLTE0LjljLS4zOTkgMC0uOTUuMzY2LTEuMDUzLjY5OWwtMS4xMzYgMy42NmMtLjI0Ny43ODYtMS4wNDUgMS4zMy0xLjk1NSAxLjMzMkg0LjU2NGMtMS4zOTcgMC0yLjUzNiAxLjAyMi0yLjUzNiAyLjI3NnYxNy4wMjRjMCAxLjI1NCAxLjEzOSAyLjI3NiAyLjUzNiAyLjI3NmgzMC44N2MxLjM5NyAwIDIuNTM1LTEuMDIyIDIuNTM1LTIuMjc2VjIxLjU5NmMwLS41MDMuNDU0LS45MSAxLjAxNC0uOTFzMS4wMTUuNDA3IDEuMDE1LjkxVjMxLjgxYy0uMDAzIDIuMjYtMi4wNSA0LjEtNC41NjcgNC4xSDQuNTY0QzIuMDQ5IDM1LjkxIDAgMzQuMDcgMCAzMS44MTF6IiBmaWxsPSIjNEJDQjkzIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi4xNzQgMjEuNzc4YzAtNC44NyAzLjcwNS04LjgzIDguMjYtOC44MyA0LjU1NiAwIDguMjYyIDMuOTYgOC4yNjIgOC44M3MtMy43MDYgOC44MzItOC4yNjEgOC44MzJjLTQuNTU2IDAtOC4yNjEtMy45NjItOC4yNjEtOC44MzJ6bTEuNzc5LjEzYzAgMy43OTYgMi45MDcgNi44ODMgNi40ODIgNi44ODMgMy41NzQgMCA2LjQ4MS0zLjA4NyA2LjQ4MS02Ljg4M3MtMi45MDctNi44ODMtNi40ODItNi44ODNjLTMuNTc0IDAtNi40ODEgMy4wODctNi40ODEgNi44ODN6IiBmaWxsPSIjNEJDQjkzIi8+PC9zdmc+"
|
|
4322
|
+
},
|
|
4323
|
+
null,
|
|
4324
|
+
-1
|
|
4325
|
+
/* HOISTED */
|
|
4326
|
+
)
|
|
4327
|
+
])),
|
|
4328
|
+
_: 1
|
|
4329
|
+
/* STABLE */
|
|
4340
4330
|
})
|
|
4341
4331
|
])
|
|
4342
4332
|
]),
|
|
@@ -4464,7 +4454,7 @@ var script$g = /* @__PURE__ */ defineComponent({
|
|
|
4464
4454
|
class: "experience-button",
|
|
4465
4455
|
onClick: submit
|
|
4466
4456
|
}, {
|
|
4467
|
-
default: withCtx(() => _cache[
|
|
4457
|
+
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
4468
4458
|
createTextVNode("\u7ACB\u5373\u4F53\u9A8C")
|
|
4469
4459
|
])),
|
|
4470
4460
|
_: 1
|
|
@@ -4811,7 +4801,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
4811
4801
|
Fragment,
|
|
4812
4802
|
null,
|
|
4813
4803
|
renderList(bannerMessages.value, (item, key) => {
|
|
4814
|
-
return openBlock(), createBlock(script$
|
|
4804
|
+
return openBlock(), createBlock(script$E, {
|
|
4815
4805
|
class: normalizeClass({ show: key === activeKey.value }),
|
|
4816
4806
|
key,
|
|
4817
4807
|
showClose: item.noticeType === 0,
|
|
@@ -8093,4 +8083,4 @@ const AppKit = {
|
|
|
8093
8083
|
}
|
|
8094
8084
|
};
|
|
8095
8085
|
|
|
8096
|
-
export { script$
|
|
8086
|
+
export { script$p as AccountView, script$I as AmountPicker, script$G as AppDrawer, script$F as AppVerify, script$v as BalanceCard, script$o as BalanceReminder, script$n as DateRange, script$D as DeviceVersion, script$l as ListFilter, script$1 as LoginSetting, script$e as NoticeBanner, script$d as NoticeEntry, script$b as NoticeList, script$B as OcrBusinessLicense, script$C as OcrIcon, script$H as PageHeader, script$k as PromoterCard, script$y as RechargeResult, script$A as RechargeView, script$g as SelfRegistration, script$w as TradeView, script$z as UserAgreement, script$7 as UserBinding, script$6 as UserBindingSuccess, script$a as UserEntry, script$3 as UserFeedback, script$2 as UserFeedbackEntry, script$4 as UserHeadCrop, script$8 as UserInfo, script as UserResourceEmpty, components, createHttp, AppKit as default, defaultCryptoConfig, generateUniqueId, requestPayment$2 as requestPayment, services$1 as services, useAppKit, useCountdown, useCrypto, useEncode, useLogger, useSafeArea, useTabbar, useUpload, useValidator };
|