@uxda/appkit 4.1.42 → 4.1.46
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 +2 -4
- package/dist/index.js +191 -224
- package/package.json +1 -1
- package/src/balance/components/PromoterCard.vue +8 -5
- package/src/balance/types.ts +1 -1
- 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/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,7 @@ var script$y = /* @__PURE__ */ defineComponent({
|
|
|
1779
1834
|
}
|
|
1780
1835
|
});
|
|
1781
1836
|
|
|
1782
|
-
script$
|
|
1837
|
+
script$x.__file = "src/payment/components/RightsPicker.vue";
|
|
1783
1838
|
|
|
1784
1839
|
const _hoisted_1$t = { class: "view recharge-view2" };
|
|
1785
1840
|
const _hoisted_2$k = { class: "flex-grow" };
|
|
@@ -1809,7 +1864,7 @@ const _hoisted_13$2 = { class: "amount" };
|
|
|
1809
1864
|
const _hoisted_14$2 = { class: "item" };
|
|
1810
1865
|
const _hoisted_15$2 = { class: "item" };
|
|
1811
1866
|
const _hoisted_16$2 = { class: "item" };
|
|
1812
|
-
var script$
|
|
1867
|
+
var script$w = /* @__PURE__ */ defineComponent({
|
|
1813
1868
|
__name: "TradeView",
|
|
1814
1869
|
props: {
|
|
1815
1870
|
app: { type: String, required: true },
|
|
@@ -1900,7 +1955,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1900
1955
|
const _component_nut_dialog = Dialog;
|
|
1901
1956
|
return openBlock(), createElementBlock("view", _hoisted_1$t, [
|
|
1902
1957
|
createElementVNode("view", _hoisted_2$k, [
|
|
1903
|
-
createVNode(script$
|
|
1958
|
+
createVNode(script$x, {
|
|
1904
1959
|
items: amounts.value,
|
|
1905
1960
|
selected: state.selected,
|
|
1906
1961
|
onChange: onAmountSelect
|
|
@@ -2044,14 +2099,14 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
2044
2099
|
}
|
|
2045
2100
|
});
|
|
2046
2101
|
|
|
2047
|
-
script$
|
|
2102
|
+
script$w.__file = "src/payment/components/TradeView.vue";
|
|
2048
2103
|
|
|
2049
2104
|
const components = {
|
|
2050
|
-
AmountPicker: script$
|
|
2051
|
-
RechargeView: script$
|
|
2052
|
-
UserAgreement: script$
|
|
2053
|
-
RechargeResult: script$
|
|
2054
|
-
TradeView: script$
|
|
2105
|
+
AmountPicker: script$I,
|
|
2106
|
+
RechargeView: script$A,
|
|
2107
|
+
UserAgreement: script$z,
|
|
2108
|
+
RechargeResult: script$y,
|
|
2109
|
+
TradeView: script$w
|
|
2055
2110
|
};
|
|
2056
2111
|
|
|
2057
2112
|
const _hoisted_1$s = { class: "account-card" };
|
|
@@ -2059,7 +2114,7 @@ const _hoisted_2$j = { class: "card" };
|
|
|
2059
2114
|
const _hoisted_3$e = { class: "card-row" };
|
|
2060
2115
|
const _hoisted_4$b = { class: "card-row-left" };
|
|
2061
2116
|
const _hoisted_5$9 = { class: "bean-nums number" };
|
|
2062
|
-
var script$
|
|
2117
|
+
var script$v = /* @__PURE__ */ defineComponent({
|
|
2063
2118
|
__name: "BalanceCard",
|
|
2064
2119
|
props: {
|
|
2065
2120
|
app: { type: String, required: true, default: "" }
|
|
@@ -2160,7 +2215,7 @@ var script$w = /* @__PURE__ */ defineComponent({
|
|
|
2160
2215
|
}
|
|
2161
2216
|
});
|
|
2162
2217
|
|
|
2163
|
-
script$
|
|
2218
|
+
script$v.__file = "src/balance/components/BalanceCard.vue";
|
|
2164
2219
|
|
|
2165
2220
|
const consumptionTypes = [
|
|
2166
2221
|
"\u5168\u90E8",
|
|
@@ -2182,7 +2237,7 @@ const _hoisted_2$i = { class: "consumption-filter-content" };
|
|
|
2182
2237
|
const _hoisted_3$d = { class: "title" };
|
|
2183
2238
|
const _hoisted_4$a = { class: "info" };
|
|
2184
2239
|
const _hoisted_5$8 = ["onClick"];
|
|
2185
|
-
var script$
|
|
2240
|
+
var script$u = /* @__PURE__ */ defineComponent({
|
|
2186
2241
|
__name: "ConsumptionFilter",
|
|
2187
2242
|
props: {
|
|
2188
2243
|
modelValue: { type: Array, required: true, default: () => ["\u5168\u90E8", "\u5168\u90E8", "\u5168\u90E8", ""] }
|
|
@@ -2306,12 +2361,12 @@ var script$v = /* @__PURE__ */ defineComponent({
|
|
|
2306
2361
|
}
|
|
2307
2362
|
});
|
|
2308
2363
|
|
|
2309
|
-
script$
|
|
2364
|
+
script$u.__file = "src/balance/components/ConsumptionFilter.vue";
|
|
2310
2365
|
|
|
2311
2366
|
const _hoisted_1$q = { class: "appkit-date-filter" };
|
|
2312
2367
|
const _hoisted_2$h = { class: "content" };
|
|
2313
2368
|
const _hoisted_3$c = { class: "time" };
|
|
2314
|
-
var script$
|
|
2369
|
+
var script$t = /* @__PURE__ */ defineComponent({
|
|
2315
2370
|
__name: "DateFilter",
|
|
2316
2371
|
props: {
|
|
2317
2372
|
from: { type: String, required: true },
|
|
@@ -2470,10 +2525,10 @@ var script$u = /* @__PURE__ */ defineComponent({
|
|
|
2470
2525
|
}
|
|
2471
2526
|
});
|
|
2472
2527
|
|
|
2473
|
-
script$
|
|
2528
|
+
script$t.__file = "src/balance/components/DateFilter.vue";
|
|
2474
2529
|
|
|
2475
2530
|
const _hoisted_1$p = { class: "consumption-rules" };
|
|
2476
|
-
var script$
|
|
2531
|
+
var script$s = /* @__PURE__ */ defineComponent({
|
|
2477
2532
|
__name: "ConsumptionRules",
|
|
2478
2533
|
emits: ["complete"],
|
|
2479
2534
|
setup(__props, { emit: __emit }) {
|
|
@@ -2511,7 +2566,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
2511
2566
|
}
|
|
2512
2567
|
});
|
|
2513
2568
|
|
|
2514
|
-
script$
|
|
2569
|
+
script$s.__file = "src/balance/components/ConsumptionRules.vue";
|
|
2515
2570
|
|
|
2516
2571
|
const _hoisted_1$o = { class: "empty-view" };
|
|
2517
2572
|
function render$1(_ctx, _cache) {
|
|
@@ -2536,16 +2591,16 @@ function render$1(_ctx, _cache) {
|
|
|
2536
2591
|
]));
|
|
2537
2592
|
}
|
|
2538
2593
|
|
|
2539
|
-
/* unplugin-vue-components disabled */const script$
|
|
2594
|
+
/* unplugin-vue-components disabled */const script$r = {};
|
|
2540
2595
|
|
|
2541
|
-
script$
|
|
2542
|
-
script$
|
|
2596
|
+
script$r.render = render$1;
|
|
2597
|
+
script$r.__file = "src/shared/components/EmptyView.vue";
|
|
2543
2598
|
|
|
2544
2599
|
const _hoisted_1$n = {
|
|
2545
2600
|
key: 0,
|
|
2546
2601
|
class: "tip"
|
|
2547
2602
|
};
|
|
2548
|
-
var script$
|
|
2603
|
+
var script$q = /* @__PURE__ */ defineComponent({
|
|
2549
2604
|
__name: "Tip",
|
|
2550
2605
|
setup(__props) {
|
|
2551
2606
|
const show = ref(false);
|
|
@@ -2580,7 +2635,7 @@ var script$r = /* @__PURE__ */ defineComponent({
|
|
|
2580
2635
|
}
|
|
2581
2636
|
});
|
|
2582
2637
|
|
|
2583
|
-
script$
|
|
2638
|
+
script$q.__file = "src/balance/components/Tip.vue";
|
|
2584
2639
|
|
|
2585
2640
|
const _hoisted_1$m = { class: "account-view" };
|
|
2586
2641
|
const _hoisted_2$g = { class: "scroll-content" };
|
|
@@ -2627,7 +2682,7 @@ const _hoisted_30 = {
|
|
|
2627
2682
|
key: 0,
|
|
2628
2683
|
class: "box-not-text"
|
|
2629
2684
|
};
|
|
2630
|
-
var script$
|
|
2685
|
+
var script$p = /* @__PURE__ */ defineComponent({
|
|
2631
2686
|
__name: "AccountView",
|
|
2632
2687
|
props: {
|
|
2633
2688
|
app: { type: String, required: true, default: "" }
|
|
@@ -2806,7 +2861,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2806
2861
|
[
|
|
2807
2862
|
createElementVNode("div", _hoisted_1$m, [
|
|
2808
2863
|
createElementVNode("div", _hoisted_2$g, [
|
|
2809
|
-
createVNode(unref(script$
|
|
2864
|
+
createVNode(unref(script$H), {
|
|
2810
2865
|
title: "\u6211\u7684\u8D26\u6237",
|
|
2811
2866
|
class: normalizeClass({ "with-background": scrolled.value > 0 }),
|
|
2812
2867
|
onClose: onPageHeaderClose
|
|
@@ -2859,7 +2914,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2859
2914
|
}, "\u4E91\u8C46\u5145\u503C")
|
|
2860
2915
|
])
|
|
2861
2916
|
]),
|
|
2862
|
-
createVNode(script$
|
|
2917
|
+
createVNode(script$q),
|
|
2863
2918
|
balance.value.privileges.corporateStar ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
2864
2919
|
_cache[10] || (_cache[10] = createElementVNode(
|
|
2865
2920
|
"div",
|
|
@@ -2971,7 +3026,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2971
3026
|
"close-on-click-overlay": false
|
|
2972
3027
|
}, {
|
|
2973
3028
|
default: withCtx(() => [
|
|
2974
|
-
createVNode(script$
|
|
3029
|
+
createVNode(script$s, {
|
|
2975
3030
|
onComplete: _cache[1] || (_cache[1] = ($event) => rulesPopupOpen.value = false)
|
|
2976
3031
|
})
|
|
2977
3032
|
]),
|
|
@@ -2987,7 +3042,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
2987
3042
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => datePickerOpen.value = $event)
|
|
2988
3043
|
}, {
|
|
2989
3044
|
default: withCtx(() => [
|
|
2990
|
-
datePickerOpen.value ? (openBlock(), createBlock(script$
|
|
3045
|
+
datePickerOpen.value ? (openBlock(), createBlock(script$t, {
|
|
2991
3046
|
key: 0,
|
|
2992
3047
|
from: filtering.dateFrom,
|
|
2993
3048
|
to: filtering.dateTo,
|
|
@@ -3007,7 +3062,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3007
3062
|
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => filterOpen.value = $event)
|
|
3008
3063
|
}, {
|
|
3009
3064
|
default: withCtx(() => [
|
|
3010
|
-
createVNode(script$
|
|
3065
|
+
createVNode(script$u, {
|
|
3011
3066
|
modelValue: [
|
|
3012
3067
|
filtering.\u8D26\u6237\u7C7B\u578B,
|
|
3013
3068
|
filtering.\u6536\u5165\u8FD8\u662F\u652F\u51FA,
|
|
@@ -3020,7 +3075,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3020
3075
|
_: 1
|
|
3021
3076
|
/* STABLE */
|
|
3022
3077
|
}, 8, ["visible"]),
|
|
3023
|
-
createVNode(unref(script$
|
|
3078
|
+
createVNode(unref(script$G), {
|
|
3024
3079
|
modelValue: secondBalanceOpen.value,
|
|
3025
3080
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => secondBalanceOpen.value = $event),
|
|
3026
3081
|
title: "\u6536\u652F\u660E\u7EC6"
|
|
@@ -3184,7 +3239,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3184
3239
|
/* KEYED_FRAGMENT */
|
|
3185
3240
|
)),
|
|
3186
3241
|
reachedLastPage.value ? (openBlock(), createElementBlock("div", _hoisted_30, "\u6CA1\u6709\u66F4\u591A\u4E86")) : createCommentVNode("v-if", true)
|
|
3187
|
-
])) : (openBlock(), createBlock(script$
|
|
3242
|
+
])) : (openBlock(), createBlock(script$r, { key: 1 }))
|
|
3188
3243
|
]),
|
|
3189
3244
|
_: 1
|
|
3190
3245
|
/* STABLE */
|
|
@@ -3203,13 +3258,13 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3203
3258
|
}
|
|
3204
3259
|
});
|
|
3205
3260
|
|
|
3206
|
-
script$
|
|
3261
|
+
script$p.__file = "src/balance/components/AccountView.vue";
|
|
3207
3262
|
|
|
3208
3263
|
const _hoisted_1$l = { class: "balance-reminder" };
|
|
3209
3264
|
const _hoisted_2$f = { class: "footer" };
|
|
3210
3265
|
const _hoisted_3$a = { class: "col" };
|
|
3211
3266
|
const _hoisted_4$8 = { class: "col" };
|
|
3212
|
-
var script$
|
|
3267
|
+
var script$o = /* @__PURE__ */ defineComponent({
|
|
3213
3268
|
__name: "BalanceReminder",
|
|
3214
3269
|
props: {
|
|
3215
3270
|
modelValue: { type: Boolean, required: true, default: () => false },
|
|
@@ -3281,10 +3336,10 @@ var script$p = /* @__PURE__ */ defineComponent({
|
|
|
3281
3336
|
}
|
|
3282
3337
|
});
|
|
3283
3338
|
|
|
3284
|
-
script$
|
|
3339
|
+
script$o.__file = "src/balance/components/BalanceReminder.vue";
|
|
3285
3340
|
|
|
3286
3341
|
const _hoisted_1$k = { class: "text" };
|
|
3287
|
-
var script$
|
|
3342
|
+
var script$n = /* @__PURE__ */ defineComponent({
|
|
3288
3343
|
__name: "DateRange",
|
|
3289
3344
|
props: {
|
|
3290
3345
|
"modelValue": {
|
|
@@ -3304,7 +3359,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
3304
3359
|
const openDateRangePicker = () => {
|
|
3305
3360
|
const child = ref();
|
|
3306
3361
|
$n.sheet({
|
|
3307
|
-
component: script$
|
|
3362
|
+
component: script$t,
|
|
3308
3363
|
ref: child,
|
|
3309
3364
|
props: {
|
|
3310
3365
|
from: model.value.from,
|
|
@@ -3354,14 +3409,14 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
3354
3409
|
}
|
|
3355
3410
|
});
|
|
3356
3411
|
|
|
3357
|
-
script$
|
|
3412
|
+
script$n.__file = "src/balance/components/DateRange.vue";
|
|
3358
3413
|
|
|
3359
3414
|
const _hoisted_1$j = { class: "list-filter-picker" };
|
|
3360
3415
|
const _hoisted_2$e = { class: "list-filter-picker-content" };
|
|
3361
3416
|
const _hoisted_3$9 = { class: "title" };
|
|
3362
3417
|
const _hoisted_4$7 = { class: "info" };
|
|
3363
3418
|
const _hoisted_5$6 = ["onClick"];
|
|
3364
|
-
var script$
|
|
3419
|
+
var script$m = /* @__PURE__ */ defineComponent({
|
|
3365
3420
|
__name: "ListFilterPicker",
|
|
3366
3421
|
props: {
|
|
3367
3422
|
modelValue: { type: Object, required: true }
|
|
@@ -3479,9 +3534,9 @@ var script$n = /* @__PURE__ */ defineComponent({
|
|
|
3479
3534
|
}
|
|
3480
3535
|
});
|
|
3481
3536
|
|
|
3482
|
-
script$
|
|
3537
|
+
script$m.__file = "src/balance/components/ListFilterPicker.vue";
|
|
3483
3538
|
|
|
3484
|
-
var script$
|
|
3539
|
+
var script$l = /* @__PURE__ */ defineComponent({
|
|
3485
3540
|
__name: "ListFilter",
|
|
3486
3541
|
props: {
|
|
3487
3542
|
"modelValue": {
|
|
@@ -3500,7 +3555,7 @@ var script$m = /* @__PURE__ */ defineComponent({
|
|
|
3500
3555
|
const emit = __emit;
|
|
3501
3556
|
const openPicker = () => {
|
|
3502
3557
|
$n.sheet({
|
|
3503
|
-
component: script$
|
|
3558
|
+
component: script$m,
|
|
3504
3559
|
props: {
|
|
3505
3560
|
modelValue: model,
|
|
3506
3561
|
onComplete: (result) => {
|
|
@@ -3538,9 +3593,12 @@ var script$m = /* @__PURE__ */ defineComponent({
|
|
|
3538
3593
|
}
|
|
3539
3594
|
});
|
|
3540
3595
|
|
|
3541
|
-
script$
|
|
3596
|
+
script$l.__file = "src/balance/components/ListFilter.vue";
|
|
3542
3597
|
|
|
3543
|
-
const _hoisted_1$i = {
|
|
3598
|
+
const _hoisted_1$i = {
|
|
3599
|
+
key: 0,
|
|
3600
|
+
class: "promoter-card"
|
|
3601
|
+
};
|
|
3544
3602
|
const _hoisted_2$d = {
|
|
3545
3603
|
key: 0,
|
|
3546
3604
|
class: "promoter-card-tab"
|
|
@@ -3553,7 +3611,7 @@ const _hoisted_6$3 = {
|
|
|
3553
3611
|
class: "promoter-card-ft-line"
|
|
3554
3612
|
};
|
|
3555
3613
|
const _hoisted_7$3 = { class: "promoter-card-ft-num" };
|
|
3556
|
-
var script$
|
|
3614
|
+
var script$k = /* @__PURE__ */ defineComponent({
|
|
3557
3615
|
__name: "PromoterCard",
|
|
3558
3616
|
props: {
|
|
3559
3617
|
useCase: { type: String, required: true, default: "" },
|
|
@@ -3575,6 +3633,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3575
3633
|
"rebate"
|
|
3576
3634
|
],
|
|
3577
3635
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3636
|
+
const props = __props;
|
|
3578
3637
|
const tab = ref("person");
|
|
3579
3638
|
const promoter = ref({
|
|
3580
3639
|
total: 0,
|
|
@@ -3590,20 +3649,23 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3590
3649
|
$http.get(endpoints$1.\u83B7\u53D6\u63A8\u5E7F\u65B9\u8D26\u6237\u4FE1\u606F, {
|
|
3591
3650
|
useCase: tab.value
|
|
3592
3651
|
}).then((data) => {
|
|
3593
|
-
promoter.value.
|
|
3652
|
+
promoter.value.balance = data?.balance || 0;
|
|
3594
3653
|
promoter.value.totalIncome = data?.totalIncome || 0;
|
|
3595
3654
|
promoter.value.totalRebateIncome = data?.totalRebateIncome || 0;
|
|
3596
3655
|
});
|
|
3597
3656
|
}
|
|
3598
3657
|
const emits = __emit;
|
|
3599
3658
|
useDidShow(() => {
|
|
3600
|
-
loadPromoter();
|
|
3659
|
+
Object.keys(props.applyRecord)?.length && loadPromoter();
|
|
3660
|
+
});
|
|
3661
|
+
watch(() => props.applyRecord, () => {
|
|
3662
|
+
Object.keys(props.applyRecord)?.length && loadPromoter();
|
|
3601
3663
|
});
|
|
3602
3664
|
__expose({
|
|
3603
3665
|
reload: loadPromoter
|
|
3604
3666
|
});
|
|
3605
3667
|
return (_ctx, _cache) => {
|
|
3606
|
-
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
3668
|
+
return _ctx.applyRecord.distributorFlag === "Y" || _ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
3607
3669
|
_ctx.useCase === "company" && _ctx.isAdmin ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
3608
3670
|
createElementVNode(
|
|
3609
3671
|
"div",
|
|
@@ -3634,7 +3696,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3634
3696
|
createElementVNode(
|
|
3635
3697
|
"div",
|
|
3636
3698
|
_hoisted_3$8,
|
|
3637
|
-
toDisplayString(promoter.value.
|
|
3699
|
+
toDisplayString(promoter.value.balance),
|
|
3638
3700
|
1
|
|
3639
3701
|
/* TEXT */
|
|
3640
3702
|
),
|
|
@@ -3722,119 +3784,12 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3722
3784
|
])
|
|
3723
3785
|
])) : createCommentVNode("v-if", true)
|
|
3724
3786
|
])
|
|
3725
|
-
]);
|
|
3726
|
-
};
|
|
3727
|
-
}
|
|
3728
|
-
});
|
|
3729
|
-
|
|
3730
|
-
script$l.__file = "src/balance/components/PromoterCard.vue";
|
|
3731
|
-
|
|
3732
|
-
var script$k = /* @__PURE__ */ defineComponent({
|
|
3733
|
-
__name: "index",
|
|
3734
|
-
emits: ["ocr"],
|
|
3735
|
-
setup(__props, { emit: __emit }) {
|
|
3736
|
-
const emits = __emit;
|
|
3737
|
-
const appKitOptions = useAppKitOptions();
|
|
3738
|
-
async function taroImgCompress(src, quality = 80) {
|
|
3739
|
-
return new Promise((resolve, reject) => {
|
|
3740
|
-
Taro.compressImage({
|
|
3741
|
-
src,
|
|
3742
|
-
quality,
|
|
3743
|
-
success: (res) => {
|
|
3744
|
-
resolve(res);
|
|
3745
|
-
},
|
|
3746
|
-
fail: (res) => {
|
|
3747
|
-
reject(res);
|
|
3748
|
-
}
|
|
3749
|
-
});
|
|
3750
|
-
});
|
|
3751
|
-
}
|
|
3752
|
-
function getCompressQuality(size) {
|
|
3753
|
-
let quality = 100;
|
|
3754
|
-
const curSize = size / (1024 * 1024);
|
|
3755
|
-
if (curSize > 6) {
|
|
3756
|
-
quality = quality - (curSize - 6) / curSize * 100;
|
|
3757
|
-
}
|
|
3758
|
-
return quality;
|
|
3759
|
-
}
|
|
3760
|
-
function allTrim(str) {
|
|
3761
|
-
return str.replace(/\s+/g, "");
|
|
3762
|
-
}
|
|
3763
|
-
async function ocrIDCard() {
|
|
3764
|
-
let ocrResult = null;
|
|
3765
|
-
try {
|
|
3766
|
-
const csRes = await Taro.chooseImage({
|
|
3767
|
-
count: 1
|
|
3768
|
-
});
|
|
3769
|
-
let { path, size } = csRes.tempFiles[0];
|
|
3770
|
-
const compressImg = await taroImgCompress(path, getCompressQuality(size)) || {};
|
|
3771
|
-
const filePath = compressImg.tempFilePath || path;
|
|
3772
|
-
Taro.showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
|
|
3773
|
-
const session = appKitOptions.token();
|
|
3774
|
-
const baseUrl = appKitOptions.baseUrl();
|
|
3775
|
-
const upRes = await Taro.uploadFile({
|
|
3776
|
-
url: baseUrl + "/hkapprove/ocr/idcard",
|
|
3777
|
-
filePath,
|
|
3778
|
-
name: "file",
|
|
3779
|
-
formData: {
|
|
3780
|
-
objectNo: `min${Date.now()}`,
|
|
3781
|
-
side: "face"
|
|
3782
|
-
},
|
|
3783
|
-
header: {
|
|
3784
|
-
sessionKey: session || "",
|
|
3785
|
-
token: session || ""
|
|
3786
|
-
}
|
|
3787
|
-
});
|
|
3788
|
-
Taro.hideLoading();
|
|
3789
|
-
const res = JSON.parse(upRes.data);
|
|
3790
|
-
if (res.code === "200") {
|
|
3791
|
-
const faceInfo = res.result.faceInfo || {};
|
|
3792
|
-
ocrResult = {
|
|
3793
|
-
faceInfo: {
|
|
3794
|
-
name: allTrim(faceInfo.name || ""),
|
|
3795
|
-
certNo: allTrim(faceInfo.num || ""),
|
|
3796
|
-
address: allTrim(faceInfo.address || "")
|
|
3797
|
-
},
|
|
3798
|
-
fileUploadVO: res.result.fileUploadVO || {}
|
|
3799
|
-
};
|
|
3800
|
-
if (!ocrResult.faceInfo.name && !ocrResult.faceInfo.certNo) {
|
|
3801
|
-
Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
|
|
3802
|
-
}
|
|
3803
|
-
} else {
|
|
3804
|
-
Taro.showToast({
|
|
3805
|
-
title: res.msg,
|
|
3806
|
-
icon: "error"
|
|
3807
|
-
});
|
|
3808
|
-
}
|
|
3809
|
-
} catch (err) {
|
|
3810
|
-
Taro.hideLoading();
|
|
3811
|
-
console.log(err);
|
|
3812
|
-
}
|
|
3813
|
-
emits("ocr", ocrResult);
|
|
3814
|
-
}
|
|
3815
|
-
return (_ctx, _cache) => {
|
|
3816
|
-
return openBlock(), createElementBlock("div", {
|
|
3817
|
-
class: "ocr-id",
|
|
3818
|
-
onClick: ocrIDCard
|
|
3819
|
-
}, [
|
|
3820
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3821
|
-
_cache[0] || (_cache[0] = createElementVNode(
|
|
3822
|
-
"img",
|
|
3823
|
-
{
|
|
3824
|
-
class: "ocr-id__img",
|
|
3825
|
-
src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0ibm9uZSI+PHBhdGggb3BhY2l0eT0iLjAxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQwIDB2NDBIMFYwaDQweiIgZmlsbD0iI0M0QzRDNCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzMuMDQ0IDE3LjM2M2MuOTYgMCAxLjczOS0uNzkgMS43MzktMS43NjYgMC0uOTc1LS43NzktMS43NjYtMS43NC0xLjc2Ni0uOTYgMC0xLjczOC43OS0xLjczOCAxLjc2NnMuNzc4IDEuNzY2IDEuNzM5IDEuNzY2eiIgZmlsbD0iIzRCQ0I5MyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAzMS44MTJWMTQuNzg4YzAtMi4yNTggMi4wNDktNC4wOTcgNC41NjQtNC4wOTdoMy44NDRsMS4xMzYtMy42NThDOS44ODggNS45MTMgMTEuMjM3IDUgMTIuNTQ4IDVIMjcuNDVjMS4zOSAwIDIuNjguODc2IDMuMDEgMi4wNDRsMS4xMzMgMy42NDdoMy44NDRjMi41MTUgMCA0LjU2NCAxLjgzOSA0LjU2NCA0LjA5N3YxLjczOWMwIC41MDMtLjQ1NC45MS0xLjAxNC45MXMtMS4wMTQtLjQwNy0xLjAxNC0uOTF2LTEuNzRjMC0xLjI1My0xLjEzOS0yLjI3NS0yLjUzNi0yLjI3NWgtMy44NDRjLS45MDcgMC0xLjcxMS0uNTQ5LTEuOTU1LTEuMzMybC0xLjEzNi0zLjY2YS4zNDIuMzQyIDAgMCAwLS4wMDctLjAyNWMtLjExLS4zOTYtLjYzOS0uNjc0LTEuMDQ1LS42NzRoLTE0LjljLS4zOTkgMC0uOTUuMzY2LTEuMDUzLjY5OWwtMS4xMzYgMy42NmMtLjI0Ny43ODYtMS4wNDUgMS4zMy0xLjk1NSAxLjMzMkg0LjU2NGMtMS4zOTcgMC0yLjUzNiAxLjAyMi0yLjUzNiAyLjI3NnYxNy4wMjRjMCAxLjI1NCAxLjEzOSAyLjI3NiAyLjUzNiAyLjI3NmgzMC44N2MxLjM5NyAwIDIuNTM1LTEuMDIyIDIuNTM1LTIuMjc2VjIxLjU5NmMwLS41MDMuNDU0LS45MSAxLjAxNC0uOTFzMS4wMTUuNDA3IDEuMDE1LjkxVjMxLjgxYy0uMDAzIDIuMjYtMi4wNSA0LjEtNC41NjcgNC4xSDQuNTY0QzIuMDQ5IDM1LjkxIDAgMzQuMDcgMCAzMS44MTF6IiBmaWxsPSIjNEJDQjkzIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi4xNzQgMjEuNzc4YzAtNC44NyAzLjcwNS04LjgzIDguMjYtOC44MyA0LjU1NiAwIDguMjYyIDMuOTYgOC4yNjIgOC44M3MtMy43MDYgOC44MzItOC4yNjEgOC44MzJjLTQuNTU2IDAtOC4yNjEtMy45NjItOC4yNjEtOC44MzJ6bTEuNzc5LjEzYzAgMy43OTYgMi45MDcgNi44ODMgNi40ODIgNi44ODMgMy41NzQgMCA2LjQ4MS0zLjA4NyA2LjQ4MS02Ljg4M3MtMi45MDctNi44ODMtNi40ODItNi44ODNjLTMuNTc0IDAtNi40ODEgMy4wODctNi40ODEgNi44ODN6IiBmaWxsPSIjNEJDQjkzIi8+PC9zdmc+"
|
|
3826
|
-
},
|
|
3827
|
-
null,
|
|
3828
|
-
-1
|
|
3829
|
-
/* HOISTED */
|
|
3830
|
-
))
|
|
3831
|
-
])
|
|
3832
|
-
]);
|
|
3787
|
+
])) : createCommentVNode("v-if", true);
|
|
3833
3788
|
};
|
|
3834
3789
|
}
|
|
3835
3790
|
});
|
|
3836
3791
|
|
|
3837
|
-
script$k.__file = "src/components/
|
|
3792
|
+
script$k.__file = "src/balance/components/PromoterCard.vue";
|
|
3838
3793
|
|
|
3839
3794
|
var script$j = /* @__PURE__ */ defineComponent({
|
|
3840
3795
|
__name: "index",
|
|
@@ -4198,8 +4153,8 @@ var script$g = /* @__PURE__ */ defineComponent({
|
|
|
4198
4153
|
const emit = __emit;
|
|
4199
4154
|
function onOCRInfo(payload) {
|
|
4200
4155
|
if (!payload) return;
|
|
4201
|
-
formState.name = payload
|
|
4202
|
-
formState.certNo = payload
|
|
4156
|
+
formState.name = payload?.faceInfo.name;
|
|
4157
|
+
formState.certNo = payload?.faceInfo.certNo;
|
|
4203
4158
|
}
|
|
4204
4159
|
function showVerifyToast(tip, duration = 1500) {
|
|
4205
4160
|
if (!tip) return;
|
|
@@ -4327,9 +4282,21 @@ var script$g = /* @__PURE__ */ defineComponent({
|
|
|
4327
4282
|
), [
|
|
4328
4283
|
[vModelText, formState.name]
|
|
4329
4284
|
]),
|
|
4330
|
-
createVNode(script$
|
|
4331
|
-
|
|
4332
|
-
|
|
4285
|
+
createVNode(script$C, { onComplete: onOCRInfo }, {
|
|
4286
|
+
icon: withCtx(() => _cache[9] || (_cache[9] = [
|
|
4287
|
+
createElementVNode(
|
|
4288
|
+
"img",
|
|
4289
|
+
{
|
|
4290
|
+
style: { "width": "20px", "height": "20px", "margin-left": "5px" },
|
|
4291
|
+
src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0ibm9uZSI+PHBhdGggb3BhY2l0eT0iLjAxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQwIDB2NDBIMFYwaDQweiIgZmlsbD0iI0M0QzRDNCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzMuMDQ0IDE3LjM2M2MuOTYgMCAxLjczOS0uNzkgMS43MzktMS43NjYgMC0uOTc1LS43NzktMS43NjYtMS43NC0xLjc2Ni0uOTYgMC0xLjczOC43OS0xLjczOCAxLjc2NnMuNzc4IDEuNzY2IDEuNzM5IDEuNzY2eiIgZmlsbD0iIzRCQ0I5MyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAzMS44MTJWMTQuNzg4YzAtMi4yNTggMi4wNDktNC4wOTcgNC41NjQtNC4wOTdoMy44NDRsMS4xMzYtMy42NThDOS44ODggNS45MTMgMTEuMjM3IDUgMTIuNTQ4IDVIMjcuNDVjMS4zOSAwIDIuNjguODc2IDMuMDEgMi4wNDRsMS4xMzMgMy42NDdoMy44NDRjMi41MTUgMCA0LjU2NCAxLjgzOSA0LjU2NCA0LjA5N3YxLjczOWMwIC41MDMtLjQ1NC45MS0xLjAxNC45MXMtMS4wMTQtLjQwNy0xLjAxNC0uOTF2LTEuNzRjMC0xLjI1My0xLjEzOS0yLjI3NS0yLjUzNi0yLjI3NWgtMy44NDRjLS45MDcgMC0xLjcxMS0uNTQ5LTEuOTU1LTEuMzMybC0xLjEzNi0zLjY2YS4zNDIuMzQyIDAgMCAwLS4wMDctLjAyNWMtLjExLS4zOTYtLjYzOS0uNjc0LTEuMDQ1LS42NzRoLTE0LjljLS4zOTkgMC0uOTUuMzY2LTEuMDUzLjY5OWwtMS4xMzYgMy42NmMtLjI0Ny43ODYtMS4wNDUgMS4zMy0xLjk1NSAxLjMzMkg0LjU2NGMtMS4zOTcgMC0yLjUzNiAxLjAyMi0yLjUzNiAyLjI3NnYxNy4wMjRjMCAxLjI1NCAxLjEzOSAyLjI3NiAyLjUzNiAyLjI3NmgzMC44N2MxLjM5NyAwIDIuNTM1LTEuMDIyIDIuNTM1LTIuMjc2VjIxLjU5NmMwLS41MDMuNDU0LS45MSAxLjAxNC0uOTFzMS4wMTUuNDA3IDEuMDE1LjkxVjMxLjgxYy0uMDAzIDIuMjYtMi4wNSA0LjEtNC41NjcgNC4xSDQuNTY0QzIuMDQ5IDM1LjkxIDAgMzQuMDcgMCAzMS44MTF6IiBmaWxsPSIjNEJDQjkzIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi4xNzQgMjEuNzc4YzAtNC44NyAzLjcwNS04LjgzIDguMjYtOC44MyA0LjU1NiAwIDguMjYyIDMuOTYgOC4yNjIgOC44M3MtMy43MDYgOC44MzItOC4yNjEgOC44MzJjLTQuNTU2IDAtOC4yNjEtMy45NjItOC4yNjEtOC44MzJ6bTEuNzc5LjEzYzAgMy43OTYgMi45MDcgNi44ODMgNi40ODIgNi44ODMgMy41NzQgMCA2LjQ4MS0zLjA4NyA2LjQ4MS02Ljg4M3MtMi45MDctNi44ODMtNi40ODItNi44ODNjLTMuNTc0IDAtNi40ODEgMy4wODctNi40ODEgNi44ODN6IiBmaWxsPSIjNEJDQjkzIi8+PC9zdmc+"
|
|
4292
|
+
},
|
|
4293
|
+
null,
|
|
4294
|
+
-1
|
|
4295
|
+
/* HOISTED */
|
|
4296
|
+
)
|
|
4297
|
+
])),
|
|
4298
|
+
_: 1
|
|
4299
|
+
/* STABLE */
|
|
4333
4300
|
})
|
|
4334
4301
|
])
|
|
4335
4302
|
]),
|
|
@@ -4457,7 +4424,7 @@ var script$g = /* @__PURE__ */ defineComponent({
|
|
|
4457
4424
|
class: "experience-button",
|
|
4458
4425
|
onClick: submit
|
|
4459
4426
|
}, {
|
|
4460
|
-
default: withCtx(() => _cache[
|
|
4427
|
+
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
4461
4428
|
createTextVNode("\u7ACB\u5373\u4F53\u9A8C")
|
|
4462
4429
|
])),
|
|
4463
4430
|
_: 1
|
|
@@ -4804,7 +4771,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
4804
4771
|
Fragment,
|
|
4805
4772
|
null,
|
|
4806
4773
|
renderList(bannerMessages.value, (item, key) => {
|
|
4807
|
-
return openBlock(), createBlock(script$
|
|
4774
|
+
return openBlock(), createBlock(script$E, {
|
|
4808
4775
|
class: normalizeClass({ show: key === activeKey.value }),
|
|
4809
4776
|
key,
|
|
4810
4777
|
showClose: item.noticeType === 0,
|
|
@@ -8086,4 +8053,4 @@ const AppKit = {
|
|
|
8086
8053
|
}
|
|
8087
8054
|
};
|
|
8088
8055
|
|
|
8089
|
-
export { script$
|
|
8056
|
+
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 };
|