@uxda/appkit 4.2.47 → 4.2.50

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/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { GridItem, Grid, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Radio, RadioGroup, FormItem, Form, Skeleton, Cell, Input, Step, Steps } from '@nutui/nutui-taro';
1
+ import { Grid, GridItem, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Form, FormItem, RadioGroup, Radio, Skeleton, Cell, Input, Steps, Step } 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
- 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';
4
+ import { defineComponent, reactive, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, createCommentVNode, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, withDirectives, vShow, useModel, mergeModels, resolveComponent, vModelText, watchPostEffect, withModifiers } from 'vue';
5
5
  import '@nutui/nutui-taro/dist/packages/grid/style/css';
6
6
  import '@nutui/nutui-taro/dist/packages/griditem/style/css';
7
- import Taro, { getSystemInfoSync, getMenuButtonBoundingClientRect, request as request$1, useDidShow, useRouter } from '@tarojs/taro';
7
+ import Taro, { getSystemInfoSync, getMenuButtonBoundingClientRect, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, uploadFile, hideLoading, useDidShow, useRouter } from '@tarojs/taro';
8
8
  import '@nutui/nutui-taro/dist/packages/popup/style/css';
9
9
  import isMobilePhone from 'validator/es/lib/isMobilePhone';
10
10
  import isIdentityCard from 'validator/es/lib/isIdentityCard';
@@ -15,6 +15,7 @@ import '@nutui/nutui-taro/dist/packages/dialog/style/css';
15
15
  import '@nutui/nutui-taro/dist/packages/datepicker/style/css';
16
16
  import dayjs from 'dayjs';
17
17
  import groupBy from 'lodash-es/groupBy';
18
+ import { ScrollView } from '@tarojs/components';
18
19
  import { IconFont } from '@nutui/icons-vue-taro';
19
20
  import '@nutui/nutui-taro/dist/packages/form/style/css';
20
21
  import '@nutui/nutui-taro/dist/packages/formitem/style/css';
@@ -99,6 +100,56 @@ var script$J = /* @__PURE__ */ defineComponent({
99
100
 
100
101
  script$J.__file = "src/payment/components/AmountPicker.vue";
101
102
 
103
+ const getSdkConfig = (appCode) => {
104
+ return new Promise((resolve, reject) => {
105
+ const $http = useHttp$2();
106
+ $http.get("/wecom/config/getConfig", {
107
+ appCode: appCode || "loankitMp",
108
+ callbackUrl: location.href
109
+ }).then((response) => {
110
+ resolve(response);
111
+ });
112
+ });
113
+ };
114
+ function requestWxH5Pay(options) {
115
+ return new Promise((resolve, reject) => {
116
+ function onBridgeReady() {
117
+ WeixinJSBridge.invoke(
118
+ "getBrandWCPayRequest",
119
+ {
120
+ appId: options.appId,
121
+ nonceStr: options.nonceStr,
122
+ package: options.package,
123
+ paySign: options.paySign,
124
+ signType: options.signType,
125
+ timeStamp: options.timeStamp
126
+ },
127
+ function(res) {
128
+ console.log(res, "res");
129
+ if (res.err_msg == "get_brand_wcpay_request:ok") {
130
+ resolve(res);
131
+ }
132
+ }
133
+ );
134
+ }
135
+ if (typeof WeixinJSBridge == "undefined") {
136
+ if (document.addEventListener) {
137
+ document.addEventListener("WeixinJSBridgeReady", onBridgeReady, false);
138
+ } else if (document.attachEvent) {
139
+ document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
140
+ document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
141
+ }
142
+ } else {
143
+ onBridgeReady();
144
+ }
145
+ });
146
+ }
147
+ var getSdkConfig$1 = {
148
+ install($app) {
149
+ $app.getSdkConfig = getSdkConfig;
150
+ }
151
+ };
152
+
102
153
  function requestPayment$2(json) {
103
154
  return new Promise((resolve, reject) => {
104
155
  const success = (res) => {
@@ -116,6 +167,8 @@ function requestPayment$2(json) {
116
167
  });
117
168
  }
118
169
 
170
+ const services$2 = [getSdkConfig$1];
171
+
119
172
  function useSafeArea() {
120
173
  const systemInfo = getSystemInfoSync(), capsule = Taro.getEnv() === "WEAPP" ? getMenuButtonBoundingClientRect() : { top: 0, height: 0 };
121
174
  const status = systemInfo.statusBarHeight || 0, gap = capsule.top - status, nav = capsule.height + gap * 2, safeAreaBottom = (systemInfo.safeArea || {}).bottom || 0, bottom = systemInfo.screenHeight - safeAreaBottom;
@@ -507,8 +560,9 @@ var script$H = /* @__PURE__ */ defineComponent({
507
560
  default: withCtx(() => [
508
561
  createVNode(script$I, {
509
562
  title: _ctx.title,
563
+ style: normalizeStyle(unref(Taro).getEnv() !== "WEB" ? "" : "--height: 40px"),
510
564
  onClose: onPageHeaderClose
511
- }, null, 8, ["title"]),
565
+ }, null, 8, ["title", "style"]),
512
566
  createElementVNode("div", _hoisted_1$B, [
513
567
  renderSlot(_ctx.$slots, "default")
514
568
  ])
@@ -852,7 +906,7 @@ const vendor$3 = {
852
906
  data: data.result
853
907
  });
854
908
  } else if (data.code !== "401") {
855
- Taro.showToast({
909
+ showToast({
856
910
  title: data.msg,
857
911
  icon: "none"
858
912
  });
@@ -987,18 +1041,22 @@ var script$D = /* @__PURE__ */ defineComponent({
987
1041
  const emits = __emit;
988
1042
  const props = __props;
989
1043
  async function taroImgCompress(src, quality = 80) {
990
- return new Promise((resolve, reject) => {
991
- Taro.compressImage({
992
- src,
993
- quality,
994
- success: (res) => {
995
- resolve(res);
996
- },
997
- fail: (res) => {
998
- reject(res);
999
- }
1044
+ if (Taro.getEnv() === "WEB") {
1045
+ return src;
1046
+ } else {
1047
+ return new Promise((resolve, reject) => {
1048
+ Taro.compressImage({
1049
+ src,
1050
+ quality,
1051
+ success: (res) => {
1052
+ resolve(res);
1053
+ },
1054
+ fail: (res) => {
1055
+ reject(res);
1056
+ }
1057
+ });
1000
1058
  });
1001
- });
1059
+ }
1002
1060
  }
1003
1061
  function getCompressQuality(size) {
1004
1062
  let quality = 100;
@@ -1014,13 +1072,20 @@ var script$D = /* @__PURE__ */ defineComponent({
1014
1072
  async function onUploadFile(csRes) {
1015
1073
  let result = null;
1016
1074
  try {
1075
+ console.log("===\u4E0A\u4F20", csRes);
1017
1076
  let { path, size, tempFilePath } = csRes.tempFiles[0];
1018
- const compressImg = await taroImgCompress(path || tempFilePath, getCompressQuality(size)) || {};
1019
- const filePath = compressImg.tempFilePath || path;
1020
- Taro.showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
1077
+ let filePath;
1078
+ if (Taro.getEnv() !== "WEB") {
1079
+ const compressImg = await taroImgCompress(path || tempFilePath, getCompressQuality(size)) || {};
1080
+ filePath = compressImg.tempFilePath || path;
1081
+ } else {
1082
+ filePath = path || tempFilePath;
1083
+ }
1084
+ console.log(filePath, "filePath");
1085
+ showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
1021
1086
  const session = appKitOptions.token();
1022
1087
  const baseUrl = appKitOptions.baseUrl();
1023
- const upRes = await Taro.uploadFile({
1088
+ const upRes = await uploadFile({
1024
1089
  url: baseUrl + "/hkapprove/ocr/idcard",
1025
1090
  filePath,
1026
1091
  name: "file",
@@ -1032,7 +1097,7 @@ var script$D = /* @__PURE__ */ defineComponent({
1032
1097
  token: session || ""
1033
1098
  }
1034
1099
  });
1035
- Taro.hideLoading();
1100
+ hideLoading();
1036
1101
  const res = JSON.parse(upRes.data);
1037
1102
  if (res.code === "200") {
1038
1103
  const faceInfo = res.result.faceInfo || {};
@@ -1051,19 +1116,19 @@ var script$D = /* @__PURE__ */ defineComponent({
1051
1116
  };
1052
1117
  console.log("===\u8BC6\u522B", result);
1053
1118
  if (props.side === "face" && !result.faceInfo.name && !result.faceInfo.certNo) {
1054
- Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1119
+ showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1055
1120
  }
1056
1121
  if (props.side === "back" && !result.backInfo?.startDate && !result.backInfo?.endDate) {
1057
- Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1122
+ showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1058
1123
  }
1059
1124
  } else {
1060
- Taro.showToast({
1125
+ showToast({
1061
1126
  title: res.msg,
1062
1127
  icon: "error"
1063
1128
  });
1064
1129
  }
1065
1130
  } catch (err) {
1066
- Taro.hideLoading();
1131
+ hideLoading();
1067
1132
  console.log(err);
1068
1133
  }
1069
1134
  emits("complete", result);
@@ -1083,9 +1148,12 @@ var script$D = /* @__PURE__ */ defineComponent({
1083
1148
  type: "message"
1084
1149
  }
1085
1150
  ];
1151
+ if (Taro.getEnv() === "WEB") {
1152
+ actionSheetMenus.pop();
1153
+ }
1086
1154
  async function chooseImages(item) {
1087
1155
  if (["camera", "album"].includes(item.type)) {
1088
- const csRes = await Taro.chooseMedia({
1156
+ const csRes = await chooseMedia({
1089
1157
  count: 1,
1090
1158
  sourceType: [item.type],
1091
1159
  // "camera" | "album"
@@ -1094,7 +1162,7 @@ var script$D = /* @__PURE__ */ defineComponent({
1094
1162
  });
1095
1163
  onUploadFile(csRes);
1096
1164
  } else {
1097
- const csRes = await Taro.chooseMessageFile({
1165
+ const csRes = await chooseMessageFile({
1098
1166
  count: 1,
1099
1167
  type: "image"
1100
1168
  });
@@ -1184,16 +1252,22 @@ var script$C = /* @__PURE__ */ defineComponent({
1184
1252
  console.log("===onIconClick");
1185
1253
  let result = null;
1186
1254
  try {
1187
- const csRes = await Taro.chooseImage({
1188
- count: 1
1255
+ const csRes = await Taro.chooseMedia({
1256
+ count: 1,
1257
+ sourceType: ["album", "camera"]
1189
1258
  });
1190
- let { path, size } = csRes.tempFiles[0];
1191
- const compressImg = await taroImgCompress(path, getCompressQuality(size)) || {};
1192
- const filePath = compressImg.tempFilePath || path;
1193
- Taro.showLoading({ title: "\u8425\u4E1A\u6267\u7167\u8BC6\u522B\u4E2D.." });
1259
+ let { size, tempFilePath } = csRes.tempFiles[0];
1260
+ let filePath;
1261
+ if (Taro.getEnv() !== "WEB") {
1262
+ const compressImg = await taroImgCompress(tempFilePath, getCompressQuality(size)) || {};
1263
+ filePath = compressImg.tempFilePath;
1264
+ } else {
1265
+ filePath = tempFilePath;
1266
+ }
1267
+ showLoading({ title: "\u8425\u4E1A\u6267\u7167\u8BC6\u522B\u4E2D.." });
1194
1268
  const session = appKitOptions.token();
1195
1269
  const baseUrl = appKitOptions.baseUrl();
1196
- const upRes = await Taro.uploadFile({
1270
+ const upRes = await uploadFile({
1197
1271
  url: baseUrl + "/promoact/common/parseBusinessLicense",
1198
1272
  filePath,
1199
1273
  name: "file",
@@ -1204,7 +1278,7 @@ var script$C = /* @__PURE__ */ defineComponent({
1204
1278
  token: session || ""
1205
1279
  }
1206
1280
  });
1207
- Taro.hideLoading();
1281
+ hideLoading();
1208
1282
  const res = JSON.parse(upRes.data);
1209
1283
  if (res.code === "200") {
1210
1284
  const faceInfo = res.result || {};
@@ -1218,16 +1292,16 @@ var script$C = /* @__PURE__ */ defineComponent({
1218
1292
  };
1219
1293
  console.log("===\u8BC6\u522B", result);
1220
1294
  if (!result.companyName && !result.idCardNo) {
1221
- Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1295
+ showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1222
1296
  }
1223
1297
  } else {
1224
- Taro.showToast({
1298
+ showToast({
1225
1299
  title: res.msg,
1226
1300
  icon: "error"
1227
1301
  });
1228
1302
  }
1229
1303
  } catch (err) {
1230
- Taro.hideLoading();
1304
+ hideLoading();
1231
1305
  console.log(err);
1232
1306
  }
1233
1307
  emits("complete", result);
@@ -1366,10 +1440,10 @@ const endpointsList$2 = {
1366
1440
  translate: (params) => ({
1367
1441
  amount: params.amount,
1368
1442
  appCode: params.app,
1369
- // caseCode: data.stage, 这个参数可以不传
1370
1443
  tenantId: params.tenant,
1371
- // transFlowNo: '4343244', 这个参数可以不传
1372
- certificateNo: params.user
1444
+ certificateNo: params.user,
1445
+ accountAuthFlag: params.accountAuthFlag || null,
1446
+ channelCode: params.channelCode || null
1373
1447
  }),
1374
1448
  transform: (data) => {
1375
1449
  let json = null;
@@ -1445,7 +1519,7 @@ const vendor$2 = {
1445
1519
  data: data.result
1446
1520
  });
1447
1521
  } else if (data.code !== "401") {
1448
- Taro.showToast({
1522
+ showToast({
1449
1523
  title: data.msg,
1450
1524
  icon: "none"
1451
1525
  });
@@ -1547,7 +1621,7 @@ const requestPaymentByBean = (params, Appcode = "") => {
1547
1621
  ...params
1548
1622
  }).then((response) => {
1549
1623
  if (!response.json) {
1550
- Taro.showToast({
1624
+ showToast({
1551
1625
  title: response.message,
1552
1626
  icon: "none"
1553
1627
  });
@@ -1564,6 +1638,33 @@ const requestPaymentByBean = (params, Appcode = "") => {
1564
1638
  });
1565
1639
  });
1566
1640
  };
1641
+ const requestBrandWCPay = (params, Appcode = "") => {
1642
+ return new Promise((resolve, reject) => {
1643
+ const $http = useHttp$2({
1644
+ Appcode,
1645
+ Tenant: params.tenant
1646
+ });
1647
+ $http.post(endpoints.\u83B7\u53D6\u5FAE\u4FE1\u652F\u4ED8\u53C2\u6570\u5305, {
1648
+ ...params
1649
+ }).then((response) => {
1650
+ if (!response.json) {
1651
+ showToast({
1652
+ title: response.message,
1653
+ icon: "none"
1654
+ });
1655
+ resolve(false);
1656
+ } else {
1657
+ requestWxH5Pay(response.json).then((result) => {
1658
+ if (result) {
1659
+ resolve(true);
1660
+ } else {
1661
+ resolve(false);
1662
+ }
1663
+ });
1664
+ }
1665
+ });
1666
+ });
1667
+ };
1567
1668
  var requestPayment$1 = {
1568
1669
  install($app) {
1569
1670
  $app.requestPayment = requestPayment;
@@ -1583,7 +1684,8 @@ var script$B = /* @__PURE__ */ defineComponent({
1583
1684
  __name: "RechargeView",
1584
1685
  props: {
1585
1686
  app: { type: String, required: true },
1586
- tenant: { type: String, required: true }
1687
+ tenant: { type: String, required: true },
1688
+ payFinishJumpUrl: { type: String, required: false }
1587
1689
  },
1588
1690
  emits: ["complete", "agree"],
1589
1691
  setup(__props, { emit: __emit }) {
@@ -1604,7 +1706,7 @@ var script$B = /* @__PURE__ */ defineComponent({
1604
1706
  const onAmountSelect = (selected) => {
1605
1707
  state.selected = selected;
1606
1708
  };
1607
- onMounted(() => {
1709
+ onMounted(async () => {
1608
1710
  const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" ? props.app : "", Tenant: props.tenant });
1609
1711
  $http.get(endpoints.\u83B7\u53D6\u5145\u503C\u91D1\u989D\u5217\u8868, {
1610
1712
  app: props.app,
@@ -1615,30 +1717,41 @@ var script$B = /* @__PURE__ */ defineComponent({
1615
1717
  });
1616
1718
  const onPayClick = () => {
1617
1719
  if (!state.agreed) {
1618
- Taro.showToast({
1720
+ showToast({
1619
1721
  title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
1620
1722
  icon: "none"
1621
1723
  });
1622
1724
  return false;
1623
1725
  }
1624
1726
  state.buttonLoading = true;
1625
- wx.login({
1626
- success({ code }) {
1627
- requestPayment({
1628
- amount: amounts.value[state.selected].amount,
1629
- app: props.app,
1630
- // 'crm',
1631
- tenant: props.tenant,
1632
- // '17454646',
1633
- user: code
1634
- }).then((result) => {
1635
- state.buttonLoading = false;
1636
- if (result) {
1637
- emit("complete", true);
1638
- }
1639
- });
1640
- }
1641
- });
1727
+ if (Taro.getEnv() === "WEB") {
1728
+ requestBrandWCPay({
1729
+ amount: amounts.value[state.selected].amount,
1730
+ app: "loankitMp",
1731
+ tenant: props.tenant,
1732
+ accountAuthFlag: false,
1733
+ channelCode: "centergzh",
1734
+ payFinishJumpUrl: props.payFinishJumpUrl
1735
+ }).then((result) => {
1736
+ console.log(result);
1737
+ });
1738
+ } else {
1739
+ wx.login({
1740
+ success({ code }) {
1741
+ requestPayment({
1742
+ amount: amounts.value[state.selected].amount,
1743
+ app: props.app,
1744
+ tenant: props.tenant,
1745
+ user: code
1746
+ }).then((result) => {
1747
+ state.buttonLoading = false;
1748
+ if (result) {
1749
+ emit("complete", true);
1750
+ }
1751
+ });
1752
+ }
1753
+ });
1754
+ }
1642
1755
  };
1643
1756
  return (_ctx, _cache) => {
1644
1757
  const _component_nut_checkbox = Checkbox;
@@ -1956,7 +2069,7 @@ var script$x = /* @__PURE__ */ defineComponent({
1956
2069
  showDialog.value = false;
1957
2070
  emit("complete", { result: response, type: "bean" });
1958
2071
  } else {
1959
- Taro.showToast({
2072
+ showToast({
1960
2073
  title: response.message,
1961
2074
  icon: "none"
1962
2075
  });
@@ -1969,7 +2082,7 @@ var script$x = /* @__PURE__ */ defineComponent({
1969
2082
  return;
1970
2083
  }
1971
2084
  if (!selectBean.value && !state.agreed) {
1972
- Taro.showToast({
2085
+ showToast({
1973
2086
  title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
1974
2087
  icon: "none"
1975
2088
  });
@@ -2747,8 +2860,8 @@ var script$q = /* @__PURE__ */ defineComponent({
2747
2860
  },
2748
2861
  emits: ["recharge", "trade"],
2749
2862
  setup(__props, { emit: __emit }) {
2750
- ref(false);
2751
2863
  const props = __props;
2864
+ ref(false);
2752
2865
  const { formatAmount } = useAmount();
2753
2866
  const emit = __emit;
2754
2867
  const filterOpen = ref(false);
@@ -2784,9 +2897,11 @@ var script$q = /* @__PURE__ */ defineComponent({
2784
2897
  privileges: {}
2785
2898
  });
2786
2899
  useDidShow(() => {
2787
- Taro.setNavigationBarTitle({
2788
- title: "\u6211\u7684\u8D26\u6237"
2789
- });
2900
+ if (Taro.getEnv() !== "WEB") {
2901
+ Taro.setNavigationBarTitle({
2902
+ title: "\u6211\u7684\u8D26\u6237"
2903
+ });
2904
+ }
2790
2905
  loadBalance();
2791
2906
  });
2792
2907
  function groupDataByDate(data) {
@@ -2811,7 +2926,7 @@ var script$q = /* @__PURE__ */ defineComponent({
2811
2926
  consumptionGroups.value = [];
2812
2927
  }
2813
2928
  const $http = useHttp$3();
2814
- Taro.showLoading({
2929
+ showLoading({
2815
2930
  title: `\u52A0\u8F7D\u4E2D...`,
2816
2931
  mask: true
2817
2932
  });
@@ -2827,7 +2942,7 @@ var script$q = /* @__PURE__ */ defineComponent({
2827
2942
  reachedLastPage.value = false;
2828
2943
  }
2829
2944
  }).finally(() => {
2830
- Taro.hideLoading();
2945
+ hideLoading();
2831
2946
  });
2832
2947
  }
2833
2948
  async function loadBalance() {
@@ -2888,14 +3003,16 @@ var script$q = /* @__PURE__ */ defineComponent({
2888
3003
  loadConsumptions();
2889
3004
  }
2890
3005
  watch(secondBalanceOpen, () => {
2891
- Taro.setNavigationBarColor({
2892
- frontColor: secondBalanceOpen.value ? "#000000" : "#ffffff",
2893
- backgroundColor: "#ffffff",
2894
- animation: {
2895
- duration: 400,
2896
- timingFunc: "easeIn"
2897
- }
2898
- });
3006
+ if (Taro.getEnv() !== "WEB") {
3007
+ Taro.setNavigationBarColor({
3008
+ frontColor: secondBalanceOpen.value ? "#000000" : "#ffffff",
3009
+ backgroundColor: "#ffffff",
3010
+ animation: {
3011
+ duration: 400,
3012
+ timingFunc: "easeIn"
3013
+ }
3014
+ });
3015
+ }
2899
3016
  });
2900
3017
  function onDateReset() {
2901
3018
  resetDateRange();
@@ -2914,7 +3031,6 @@ var script$q = /* @__PURE__ */ defineComponent({
2914
3031
  });
2915
3032
  return (_ctx, _cache) => {
2916
3033
  const _component_nut_popup = Popup;
2917
- const _component_scroll_view = resolveComponent("scroll-view");
2918
3034
  return openBlock(), createElementBlock(
2919
3035
  Fragment,
2920
3036
  null,
@@ -2922,10 +3038,10 @@ var script$q = /* @__PURE__ */ defineComponent({
2922
3038
  createElementVNode("div", _hoisted_1$n, [
2923
3039
  createElementVNode("div", _hoisted_2$h, [
2924
3040
  createVNode(unref(script$I), {
2925
- title: "\u6211\u7684\u8D26\u6237",
3041
+ title: unref(Taro).getEnv() !== "WEB" ? "\u6211\u7684\u8D26\u6237" : "",
2926
3042
  class: normalizeClass({ "with-background": scrolled.value > 0 }),
2927
3043
  onClose: onPageHeaderClose
2928
- }, null, 8, ["class"]),
3044
+ }, null, 8, ["title", "class"]),
2929
3045
  createElementVNode("div", { class: "row jusify-right" }, [
2930
3046
  createElementVNode("div", {
2931
3047
  class: "small-bean-button",
@@ -2933,7 +3049,7 @@ var script$q = /* @__PURE__ */ defineComponent({
2933
3049
  }, _cache[7] || (_cache[7] = [
2934
3050
  createElementVNode(
2935
3051
  "label",
2936
- null,
3052
+ { class: "label" },
2937
3053
  "\u6536\u652F\u660E\u7EC6",
2938
3054
  -1
2939
3055
  /* HOISTED */
@@ -3270,7 +3386,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3270
3386
  /* CLASS */
3271
3387
  ),
3272
3388
  createElementVNode("div", _hoisted_26$1, [
3273
- createVNode(_component_scroll_view, {
3389
+ createVNode(unref(ScrollView), {
3274
3390
  class: "operation-scroll",
3275
3391
  "scroll-y": true,
3276
3392
  onScroll,
@@ -4319,7 +4435,7 @@ var script$h = /* @__PURE__ */ defineComponent({
4319
4435
  }
4320
4436
  function showVerifyToast(tip, duration = 1500) {
4321
4437
  if (!tip) return;
4322
- Taro.showToast({
4438
+ showToast({
4323
4439
  title: tip,
4324
4440
  icon: "none",
4325
4441
  duration
@@ -4632,7 +4748,7 @@ const vendor$1 = {
4632
4748
  data: data.result
4633
4749
  });
4634
4750
  } else if (data.code !== "401") {
4635
- Taro.showToast({
4751
+ showToast({
4636
4752
  title: data.msg,
4637
4753
  icon: "none"
4638
4754
  });
@@ -4818,7 +4934,7 @@ var script$f = /* @__PURE__ */ defineComponent({
4818
4934
  emits: ["detail", "close", "view", "popup"],
4819
4935
  setup(__props, { emit: __emit }) {
4820
4936
  const props = __props;
4821
- const { toReadFun, noticeClick } = useNotice();
4937
+ const { noticeClick } = useNotice();
4822
4938
  const bannerMessages = ref([]);
4823
4939
  const popMessages = ref([]);
4824
4940
  const activeKey = ref(0);
@@ -4888,7 +5004,7 @@ var script$f = /* @__PURE__ */ defineComponent({
4888
5004
  noticeStatus: 1,
4889
5005
  receiveId: item.id
4890
5006
  }).then(() => {
4891
- Taro.showToast({
5007
+ showToast({
4892
5008
  title: "\u6D88\u606F\u5DF2\u5173\u95ED",
4893
5009
  icon: "none"
4894
5010
  });
@@ -5013,7 +5129,7 @@ var script$e = /* @__PURE__ */ defineComponent({
5013
5129
  const props = __props;
5014
5130
  const init = debounce(() => {
5015
5131
  if (!props.app) {
5016
- return Taro.showToast({
5132
+ return showToast({
5017
5133
  title: "NoticeEntry\u7EC4\u4EF6\u7F3A\u5C11appcode",
5018
5134
  icon: "none"
5019
5135
  });
@@ -5192,14 +5308,14 @@ var script$d = /* @__PURE__ */ defineComponent({
5192
5308
 
5193
5309
  script$d.__file = "src/components/dd-search/index.vue";
5194
5310
 
5195
- function useCommonList(api, query, showLoading = true, method = "GET") {
5311
+ function useCommonList(api, query, loading = true, method = "GET") {
5196
5312
  const isLast = ref(false);
5197
5313
  const list = ref([]);
5198
5314
  const firstLoading = ref(true);
5199
5315
  const total = ref(0);
5200
5316
  const isLoading = ref(false);
5201
- async function fetchData(loading) {
5202
- loading && Taro.showLoading({
5317
+ async function fetchData(loading2) {
5318
+ loading2 && showLoading({
5203
5319
  title: "\u52A0\u8F7D\u4E2D..."
5204
5320
  });
5205
5321
  isLoading.value = true;
@@ -5208,7 +5324,7 @@ function useCommonList(api, query, showLoading = true, method = "GET") {
5208
5324
  ...unref(query)
5209
5325
  });
5210
5326
  isLoading.value = false;
5211
- loading && Taro.hideLoading();
5327
+ loading2 && hideLoading();
5212
5328
  if (res) {
5213
5329
  const pages = Math.ceil(res.total / res.pageSize);
5214
5330
  isLast.value = res.pageNum >= pages;
@@ -5236,7 +5352,7 @@ function useCommonList(api, query, showLoading = true, method = "GET") {
5236
5352
  async function init(pageNum) {
5237
5353
  query.value.pageNum = pageNum || 1;
5238
5354
  isLast.value = false;
5239
- const data = await fetchData(showLoading);
5355
+ const data = await fetchData(loading);
5240
5356
  list.value = data || [];
5241
5357
  firstLoading.value = false;
5242
5358
  }
@@ -5294,7 +5410,7 @@ var script$c = /* @__PURE__ */ defineComponent({
5294
5410
  const { list, init, runNext, runRefresh, isLast } = useCommonList("/cas/msg/queryUserMsg", query, true, "POST");
5295
5411
  onMounted(async () => {
5296
5412
  if (!props.app) {
5297
- return Taro.showToast({
5413
+ return showToast({
5298
5414
  title: "NoticeList\u7EC4\u4EF6\u7F3A\u5C11appcode",
5299
5415
  icon: "none"
5300
5416
  });
@@ -5327,6 +5443,10 @@ var script$c = /* @__PURE__ */ defineComponent({
5327
5443
  list.value[index].isRead = "1";
5328
5444
  }
5329
5445
  }
5446
+ showToast({
5447
+ title: "\u6D88\u606F\u5DF2\u8BFB",
5448
+ icon: "none"
5449
+ });
5330
5450
  }
5331
5451
  function onSearch(key) {
5332
5452
  delete query.value.title;
@@ -5656,7 +5776,7 @@ const vendor = {
5656
5776
  data: data.result
5657
5777
  });
5658
5778
  } else if (data.code !== "401") {
5659
- Taro.showToast({
5779
+ showToast({
5660
5780
  title: data.msg,
5661
5781
  icon: "none"
5662
5782
  });
@@ -5696,7 +5816,7 @@ function useHttp() {
5696
5816
  },
5697
5817
  (raw) => {
5698
5818
  if (raw.status > 500 && raw.status != 51015 && raw.status != 51014) {
5699
- Taro.showToast({
5819
+ showToast({
5700
5820
  title: raw.message,
5701
5821
  icon: "none"
5702
5822
  });
@@ -5845,7 +5965,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5845
5965
  }
5846
5966
  }
5847
5967
  async function updateImage(filePath) {
5848
- Taro.showLoading({
5968
+ showLoading({
5849
5969
  title: "\u4E0A\u4F20\u4E2D..."
5850
5970
  });
5851
5971
  const appkitOptions = useAppKitOptions();
@@ -5870,15 +5990,15 @@ var script$9 = /* @__PURE__ */ defineComponent({
5870
5990
  avatar: res.result,
5871
5991
  userId: props.userId
5872
5992
  }).then(() => {
5873
- Taro.hideLoading();
5874
- Taro.showToast({ title: "\u5934\u50CF\u4E0A\u4F20\u6210\u529F", icon: "none" });
5993
+ hideLoading();
5994
+ showToast({ title: "\u5934\u50CF\u4E0A\u4F20\u6210\u529F", icon: "none" });
5875
5995
  getUserInfoByUserId();
5876
5996
  emits("avatar-success", res.result);
5877
5997
  }).catch(() => {
5878
- Taro.hideLoading();
5998
+ hideLoading();
5879
5999
  });
5880
6000
  } else {
5881
- Taro.hideLoading();
6001
+ hideLoading();
5882
6002
  }
5883
6003
  }
5884
6004
  function toShowRole(item) {
@@ -5915,13 +6035,13 @@ var script$9 = /* @__PURE__ */ defineComponent({
5915
6035
  }
5916
6036
  function onUserNameOk() {
5917
6037
  if (!userState.value) {
5918
- return Taro.showToast({
6038
+ return showToast({
5919
6039
  title: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
5920
6040
  icon: "none"
5921
6041
  });
5922
6042
  }
5923
6043
  if (userState.value === userState.oldName) {
5924
- return Taro.showToast({
6044
+ return showToast({
5925
6045
  title: "\u7528\u6237\u540D\u4E0D\u80FD\u4E0E\u539F\u7528\u6237\u540D\u76F8\u540C",
5926
6046
  icon: "none"
5927
6047
  });
@@ -5932,7 +6052,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5932
6052
  tenantId: userState.tenantId,
5933
6053
  userId: props.userId
5934
6054
  }).then(() => {
5935
- Taro.showToast({ title: "\u7528\u6237\u540D\u4FEE\u6539\u6210\u529F", icon: "none" });
6055
+ showToast({ title: "\u7528\u6237\u540D\u4FEE\u6539\u6210\u529F", icon: "none" });
5936
6056
  getUserInfoByUserId();
5937
6057
  onUserNameCancel();
5938
6058
  emits("username-success");
@@ -5940,7 +6060,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5940
6060
  }
5941
6061
  function onNickNameOk() {
5942
6062
  if (!nickNameState.value) {
5943
- return Taro.showToast({
6063
+ return showToast({
5944
6064
  title: "\u8BF7\u8F93\u5165\u6635\u79F0",
5945
6065
  icon: "none"
5946
6066
  });
@@ -5949,7 +6069,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5949
6069
  $http.post("/cas/sysAccount/updateAccountInfo", {
5950
6070
  nickName: nickNameState.value
5951
6071
  }).then(() => {
5952
- Taro.showToast({ title: "\u6635\u79F0\u4FEE\u6539\u6210\u529F", icon: "none" });
6072
+ showToast({ title: "\u6635\u79F0\u4FEE\u6539\u6210\u529F", icon: "none" });
5953
6073
  getUserInfoByUserId();
5954
6074
  onNickNameCancel();
5955
6075
  });
@@ -6380,7 +6500,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6380
6500
  const current = ref(1);
6381
6501
  onMounted(() => {
6382
6502
  if (!params.mobile) {
6383
- return Taro.showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6503
+ return showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6384
6504
  }
6385
6505
  authState.mobile = params.mobile;
6386
6506
  });
@@ -6393,7 +6513,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6393
6513
  $http.post("/cas/sysAccount/verify", { verifyCode: authState.code }).then((res) => {
6394
6514
  console.log(res, "res");
6395
6515
  if (typeof res !== "boolean") return;
6396
- Taro.showToast({ title: "\u8EAB\u4EFD\u8BA4\u8BC1\u6210\u529F", icon: "success" });
6516
+ showToast({ title: "\u8EAB\u4EFD\u8BA4\u8BC1\u6210\u529F", icon: "success" });
6397
6517
  current.value++;
6398
6518
  });
6399
6519
  }
@@ -6401,7 +6521,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6401
6521
  const $http = useHttp();
6402
6522
  $http.get("/cas/sysAccount/getVerifyCodeToUserMobile").then((res) => {
6403
6523
  if (typeof res !== "boolean") return;
6404
- Taro.showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6524
+ showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6405
6525
  startCountdown();
6406
6526
  });
6407
6527
  }
@@ -6412,7 +6532,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6412
6532
  function onBinding() {
6413
6533
  const msg = phoneValidator(bindingState.mobile);
6414
6534
  if (msg) {
6415
- return Taro.showToast({ title: msg, icon: "none" });
6535
+ return showToast({ title: msg, icon: "none" });
6416
6536
  }
6417
6537
  const $http = useHttp();
6418
6538
  $http.post(`/cas/sysAccount/verifyAndChangeMobile`, {
@@ -6420,22 +6540,22 @@ var script$8 = /* @__PURE__ */ defineComponent({
6420
6540
  verifyCode: bindingState.code
6421
6541
  }).then((res) => {
6422
6542
  if (typeof res !== "boolean") return;
6423
- Taro.showToast({ title: "\u6362\u7ED1\u6210\u529F", icon: "success" });
6543
+ showToast({ title: "\u6362\u7ED1\u6210\u529F", icon: "success" });
6424
6544
  emits("success", bindingState.mobile);
6425
6545
  });
6426
6546
  }
6427
6547
  function onBindingCode() {
6428
6548
  const msg = phoneValidator(bindingState.mobile);
6429
6549
  if (msg) {
6430
- return Taro.showToast({ title: msg, icon: "none" });
6550
+ return showToast({ title: msg, icon: "none" });
6431
6551
  }
6432
6552
  if (params.mobile === bindingState.mobile) {
6433
- return Taro.showToast({ title: "\u65B0\u624B\u673A\u53F7\u7801\u4E0D\u5E94\u4E0E\u65E7\u624B\u673A\u53F7\u7801\u4E00\u81F4", icon: "none" });
6553
+ return showToast({ title: "\u65B0\u624B\u673A\u53F7\u7801\u4E0D\u5E94\u4E0E\u65E7\u624B\u673A\u53F7\u7801\u4E00\u81F4", icon: "none" });
6434
6554
  }
6435
6555
  const $http = useHttp();
6436
6556
  $http.get(`/cas/sysAccount/getVerifyCodeToMobile/${bindingState.mobile}`).then((res) => {
6437
6557
  if (typeof res !== "boolean") return;
6438
- Taro.showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6558
+ showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6439
6559
  startCountdown1();
6440
6560
  });
6441
6561
  }
@@ -6642,7 +6762,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
6642
6762
  const { encodePhone } = useEncode();
6643
6763
  onMounted(() => {
6644
6764
  if (!params.mobile) {
6645
- return Taro.showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6765
+ return showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6646
6766
  }
6647
6767
  });
6648
6768
  const showEncode = ref(true);
@@ -7010,7 +7130,7 @@ var script$6 = {
7010
7130
  fail: (err) => {
7011
7131
  console.error(err);
7012
7132
  this.imageInfo = "";
7013
- Taro.showToast({
7133
+ showToast({
7014
7134
  title: "\u4E0B\u8F7D\u56FE\u7247\u5931\u8D25",
7015
7135
  icon: "none"
7016
7136
  });
@@ -7634,12 +7754,12 @@ var script$4 = /* @__PURE__ */ defineComponent({
7634
7754
  }
7635
7755
  function toUpload() {
7636
7756
  if (formState.attachment.length >= 20) {
7637
- return Taro.showToast({
7757
+ return showToast({
7638
7758
  title: "\u6700\u591A\u4E0A\u4F2020\u4EFD\u9644\u4EF6",
7639
7759
  icon: "none"
7640
7760
  });
7641
7761
  }
7642
- Taro.chooseMedia({
7762
+ chooseMedia({
7643
7763
  count: 20 - formState.attachment.length,
7644
7764
  mediaType: ["mix"],
7645
7765
  maxDuration: 60,
@@ -7648,7 +7768,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7648
7768
  for (const item of res.tempFiles) {
7649
7769
  if (item.fileType === "video") {
7650
7770
  if (item.size > 1024 * 1024 * 50) {
7651
- return Taro.showToast({
7771
+ return showToast({
7652
7772
  title: "\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC750M",
7653
7773
  icon: "none"
7654
7774
  });
@@ -7704,7 +7824,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7704
7824
  success: (res) => {
7705
7825
  const html = res.html;
7706
7826
  if (html === "<p><br></p>" || !html) {
7707
- Taro.showToast({
7827
+ showToast({
7708
7828
  title: "\u8BF7\u8F93\u5165\u95EE\u9898\u63CF\u8FF0",
7709
7829
  icon: "none"
7710
7830
  });
@@ -7718,7 +7838,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7718
7838
  function requestFeedback() {
7719
7839
  const $http = useHttp();
7720
7840
  const appkitOptions = useAppKitOptions();
7721
- Taro.showLoading({
7841
+ showLoading({
7722
7842
  title: "\u53CD\u9988\u4E2D..."
7723
7843
  });
7724
7844
  const attachment = JSON.parse(
@@ -7748,6 +7868,10 @@ var script$4 = /* @__PURE__ */ defineComponent({
7748
7868
  clearFormState();
7749
7869
  }).catch(() => {
7750
7870
  Taro.hideLoading();
7871
+ showToast({
7872
+ title: "\u53CD\u9988\u63D0\u4EA4\u5931\u8D25",
7873
+ icon: "none"
7874
+ });
7751
7875
  });
7752
7876
  }
7753
7877
  function clearFormState() {
@@ -8340,15 +8464,15 @@ var script = /* @__PURE__ */ defineComponent({
8340
8464
  // tenantId: props.userId,
8341
8465
  }).then((res2) => {
8342
8466
  if (res2?.status) {
8343
- Taro.showToast({ title: "\u5DF2\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F", icon: "none" });
8467
+ showToast({ title: "\u5DF2\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F", icon: "none" });
8344
8468
  setTimeout(() => {
8345
8469
  toBack();
8346
8470
  }, 500);
8347
8471
  } else {
8348
- Taro.showToast({ title: "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8472
+ showToast({ title: "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8349
8473
  }
8350
8474
  }).catch((err) => {
8351
- Taro.showToast({ title: err?.errMsg || "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8475
+ showToast({ title: err?.errMsg || "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8352
8476
  });
8353
8477
  }
8354
8478
  watch(
@@ -8527,7 +8651,7 @@ const nutComponents = [
8527
8651
  ({
8528
8652
  ...components
8529
8653
  });
8530
- const services = [...services$1];
8654
+ const services = [...services$1, ...services$2];
8531
8655
  const $app = {
8532
8656
  setToken: (token) => {
8533
8657
  const appKitOptions = useAppKitOptions();
@@ -8540,6 +8664,8 @@ const $app = {
8540
8664
  requestPayment: (options) => {
8541
8665
  },
8542
8666
  invokeRecharge: (options) => {
8667
+ },
8668
+ getSdkConfig: (appCode) => {
8543
8669
  }
8544
8670
  };
8545
8671
  services.forEach((service) => {
@@ -8563,4 +8689,4 @@ const AppKit = {
8563
8689
  }
8564
8690
  };
8565
8691
 
8566
- export { script$q as AccountView, script$J as AmountPicker, script$H as AppDrawer, script$G as AppVerify, script$w as BalanceCard, script$p as BalanceReminder, script$o as DateRange, script$E as DeviceVersion, script$m as ListFilter, script$2 as LoginSetting, script$f as NoticeBanner, script$e as NoticeEntry, script$c as NoticeList, script$C as OcrBusinessLicense, script$D as OcrIcon, script$I as PageHeader, script$l as PromoterCard, script$z as RechargeResult, script$B as RechargeView, script$h as SelfRegistration, script$x as TradeView, script$A as UserAgreement, script as UserAuth, script$8 as UserBinding, script$7 as UserBindingSuccess, script$b as UserEntry, script$4 as UserFeedback, script$3 as UserFeedbackEntry, script$5 as UserHeadCrop, script$9 as UserInfo, script$1 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 };
8692
+ export { script$q as AccountView, script$J as AmountPicker, script$H as AppDrawer, script$G as AppVerify, script$w as BalanceCard, script$p as BalanceReminder, script$o as DateRange, script$E as DeviceVersion, script$m as ListFilter, script$2 as LoginSetting, script$f as NoticeBanner, script$e as NoticeEntry, script$c as NoticeList, script$C as OcrBusinessLicense, script$D as OcrIcon, script$I as PageHeader, script$l as PromoterCard, script$z as RechargeResult, script$B as RechargeView, script$h as SelfRegistration, script$x as TradeView, script$A as UserAgreement, script as UserAuth, script$8 as UserBinding, script$7 as UserBindingSuccess, script$b as UserEntry, script$4 as UserFeedback, script$3 as UserFeedbackEntry, script$5 as UserHeadCrop, script$9 as UserInfo, script$1 as UserResourceEmpty, components, createHttp, AppKit as default, defaultCryptoConfig, generateUniqueId, getSdkConfig, requestPayment$2 as requestPayment, requestWxH5Pay, useAppKit, useCountdown, useCrypto, useEncode, useLogger, useSafeArea, useTabbar, useUpload, useValidator };