@uxda/appkit 4.2.47 → 4.2.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/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, showLoading, 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
  });
@@ -1017,7 +1071,7 @@ var script$D = /* @__PURE__ */ defineComponent({
1017
1071
  let { path, size, tempFilePath } = csRes.tempFiles[0];
1018
1072
  const compressImg = await taroImgCompress(path || tempFilePath, getCompressQuality(size)) || {};
1019
1073
  const filePath = compressImg.tempFilePath || path;
1020
- Taro.showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
1074
+ showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
1021
1075
  const session = appKitOptions.token();
1022
1076
  const baseUrl = appKitOptions.baseUrl();
1023
1077
  const upRes = await Taro.uploadFile({
@@ -1032,7 +1086,7 @@ var script$D = /* @__PURE__ */ defineComponent({
1032
1086
  token: session || ""
1033
1087
  }
1034
1088
  });
1035
- Taro.hideLoading();
1089
+ hideLoading();
1036
1090
  const res = JSON.parse(upRes.data);
1037
1091
  if (res.code === "200") {
1038
1092
  const faceInfo = res.result.faceInfo || {};
@@ -1051,19 +1105,19 @@ var script$D = /* @__PURE__ */ defineComponent({
1051
1105
  };
1052
1106
  console.log("===\u8BC6\u522B", result);
1053
1107
  if (props.side === "face" && !result.faceInfo.name && !result.faceInfo.certNo) {
1054
- Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1108
+ showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1055
1109
  }
1056
1110
  if (props.side === "back" && !result.backInfo?.startDate && !result.backInfo?.endDate) {
1057
- Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1111
+ showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1058
1112
  }
1059
1113
  } else {
1060
- Taro.showToast({
1114
+ showToast({
1061
1115
  title: res.msg,
1062
1116
  icon: "error"
1063
1117
  });
1064
1118
  }
1065
1119
  } catch (err) {
1066
- Taro.hideLoading();
1120
+ hideLoading();
1067
1121
  console.log(err);
1068
1122
  }
1069
1123
  emits("complete", result);
@@ -1190,7 +1244,7 @@ var script$C = /* @__PURE__ */ defineComponent({
1190
1244
  let { path, size } = csRes.tempFiles[0];
1191
1245
  const compressImg = await taroImgCompress(path, getCompressQuality(size)) || {};
1192
1246
  const filePath = compressImg.tempFilePath || path;
1193
- Taro.showLoading({ title: "\u8425\u4E1A\u6267\u7167\u8BC6\u522B\u4E2D.." });
1247
+ showLoading({ title: "\u8425\u4E1A\u6267\u7167\u8BC6\u522B\u4E2D.." });
1194
1248
  const session = appKitOptions.token();
1195
1249
  const baseUrl = appKitOptions.baseUrl();
1196
1250
  const upRes = await Taro.uploadFile({
@@ -1204,7 +1258,7 @@ var script$C = /* @__PURE__ */ defineComponent({
1204
1258
  token: session || ""
1205
1259
  }
1206
1260
  });
1207
- Taro.hideLoading();
1261
+ hideLoading();
1208
1262
  const res = JSON.parse(upRes.data);
1209
1263
  if (res.code === "200") {
1210
1264
  const faceInfo = res.result || {};
@@ -1218,16 +1272,16 @@ var script$C = /* @__PURE__ */ defineComponent({
1218
1272
  };
1219
1273
  console.log("===\u8BC6\u522B", result);
1220
1274
  if (!result.companyName && !result.idCardNo) {
1221
- Taro.showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1275
+ showToast({ title: "\u8BC6\u522B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", icon: "none" });
1222
1276
  }
1223
1277
  } else {
1224
- Taro.showToast({
1278
+ showToast({
1225
1279
  title: res.msg,
1226
1280
  icon: "error"
1227
1281
  });
1228
1282
  }
1229
1283
  } catch (err) {
1230
- Taro.hideLoading();
1284
+ hideLoading();
1231
1285
  console.log(err);
1232
1286
  }
1233
1287
  emits("complete", result);
@@ -1366,10 +1420,10 @@ const endpointsList$2 = {
1366
1420
  translate: (params) => ({
1367
1421
  amount: params.amount,
1368
1422
  appCode: params.app,
1369
- // caseCode: data.stage, 这个参数可以不传
1370
1423
  tenantId: params.tenant,
1371
- // transFlowNo: '4343244', 这个参数可以不传
1372
- certificateNo: params.user
1424
+ certificateNo: params.user,
1425
+ accountAuthFlag: params.accountAuthFlag || null,
1426
+ channelCode: params.channelCode || null
1373
1427
  }),
1374
1428
  transform: (data) => {
1375
1429
  let json = null;
@@ -1445,7 +1499,7 @@ const vendor$2 = {
1445
1499
  data: data.result
1446
1500
  });
1447
1501
  } else if (data.code !== "401") {
1448
- Taro.showToast({
1502
+ showToast({
1449
1503
  title: data.msg,
1450
1504
  icon: "none"
1451
1505
  });
@@ -1547,7 +1601,7 @@ const requestPaymentByBean = (params, Appcode = "") => {
1547
1601
  ...params
1548
1602
  }).then((response) => {
1549
1603
  if (!response.json) {
1550
- Taro.showToast({
1604
+ showToast({
1551
1605
  title: response.message,
1552
1606
  icon: "none"
1553
1607
  });
@@ -1564,6 +1618,33 @@ const requestPaymentByBean = (params, Appcode = "") => {
1564
1618
  });
1565
1619
  });
1566
1620
  };
1621
+ const requestBrandWCPay = (params, Appcode = "") => {
1622
+ return new Promise((resolve, reject) => {
1623
+ const $http = useHttp$2({
1624
+ Appcode,
1625
+ Tenant: params.tenant
1626
+ });
1627
+ $http.post(endpoints.\u83B7\u53D6\u5FAE\u4FE1\u652F\u4ED8\u53C2\u6570\u5305, {
1628
+ ...params
1629
+ }).then((response) => {
1630
+ if (!response.json) {
1631
+ showToast({
1632
+ title: response.message,
1633
+ icon: "none"
1634
+ });
1635
+ resolve(false);
1636
+ } else {
1637
+ requestWxH5Pay(response.json).then((result) => {
1638
+ if (result) {
1639
+ resolve(true);
1640
+ } else {
1641
+ resolve(false);
1642
+ }
1643
+ });
1644
+ }
1645
+ });
1646
+ });
1647
+ };
1567
1648
  var requestPayment$1 = {
1568
1649
  install($app) {
1569
1650
  $app.requestPayment = requestPayment;
@@ -1604,7 +1685,7 @@ var script$B = /* @__PURE__ */ defineComponent({
1604
1685
  const onAmountSelect = (selected) => {
1605
1686
  state.selected = selected;
1606
1687
  };
1607
- onMounted(() => {
1688
+ onMounted(async () => {
1608
1689
  const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" ? props.app : "", Tenant: props.tenant });
1609
1690
  $http.get(endpoints.\u83B7\u53D6\u5145\u503C\u91D1\u989D\u5217\u8868, {
1610
1691
  app: props.app,
@@ -1615,30 +1696,40 @@ var script$B = /* @__PURE__ */ defineComponent({
1615
1696
  });
1616
1697
  const onPayClick = () => {
1617
1698
  if (!state.agreed) {
1618
- Taro.showToast({
1699
+ showToast({
1619
1700
  title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
1620
1701
  icon: "none"
1621
1702
  });
1622
1703
  return false;
1623
1704
  }
1624
1705
  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
- });
1706
+ if (Taro.getEnv() === "WEB") {
1707
+ requestBrandWCPay({
1708
+ amount: amounts.value[state.selected].amount,
1709
+ app: "loankitMp",
1710
+ tenant: props.tenant,
1711
+ accountAuthFlag: false,
1712
+ channelCode: "centergzh"
1713
+ }).then((result) => {
1714
+ console.log(result);
1715
+ });
1716
+ } else {
1717
+ wx.login({
1718
+ success({ code }) {
1719
+ requestPayment({
1720
+ amount: amounts.value[state.selected].amount,
1721
+ app: props.app,
1722
+ tenant: props.tenant,
1723
+ user: code
1724
+ }).then((result) => {
1725
+ state.buttonLoading = false;
1726
+ if (result) {
1727
+ emit("complete", true);
1728
+ }
1729
+ });
1730
+ }
1731
+ });
1732
+ }
1642
1733
  };
1643
1734
  return (_ctx, _cache) => {
1644
1735
  const _component_nut_checkbox = Checkbox;
@@ -1956,7 +2047,7 @@ var script$x = /* @__PURE__ */ defineComponent({
1956
2047
  showDialog.value = false;
1957
2048
  emit("complete", { result: response, type: "bean" });
1958
2049
  } else {
1959
- Taro.showToast({
2050
+ showToast({
1960
2051
  title: response.message,
1961
2052
  icon: "none"
1962
2053
  });
@@ -1969,7 +2060,7 @@ var script$x = /* @__PURE__ */ defineComponent({
1969
2060
  return;
1970
2061
  }
1971
2062
  if (!selectBean.value && !state.agreed) {
1972
- Taro.showToast({
2063
+ showToast({
1973
2064
  title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
1974
2065
  icon: "none"
1975
2066
  });
@@ -2747,8 +2838,8 @@ var script$q = /* @__PURE__ */ defineComponent({
2747
2838
  },
2748
2839
  emits: ["recharge", "trade"],
2749
2840
  setup(__props, { emit: __emit }) {
2750
- ref(false);
2751
2841
  const props = __props;
2842
+ ref(false);
2752
2843
  const { formatAmount } = useAmount();
2753
2844
  const emit = __emit;
2754
2845
  const filterOpen = ref(false);
@@ -2784,9 +2875,11 @@ var script$q = /* @__PURE__ */ defineComponent({
2784
2875
  privileges: {}
2785
2876
  });
2786
2877
  useDidShow(() => {
2787
- Taro.setNavigationBarTitle({
2788
- title: "\u6211\u7684\u8D26\u6237"
2789
- });
2878
+ if (Taro.getEnv() !== "WEB") {
2879
+ Taro.setNavigationBarTitle({
2880
+ title: "\u6211\u7684\u8D26\u6237"
2881
+ });
2882
+ }
2790
2883
  loadBalance();
2791
2884
  });
2792
2885
  function groupDataByDate(data) {
@@ -2811,7 +2904,7 @@ var script$q = /* @__PURE__ */ defineComponent({
2811
2904
  consumptionGroups.value = [];
2812
2905
  }
2813
2906
  const $http = useHttp$3();
2814
- Taro.showLoading({
2907
+ showLoading({
2815
2908
  title: `\u52A0\u8F7D\u4E2D...`,
2816
2909
  mask: true
2817
2910
  });
@@ -2827,7 +2920,7 @@ var script$q = /* @__PURE__ */ defineComponent({
2827
2920
  reachedLastPage.value = false;
2828
2921
  }
2829
2922
  }).finally(() => {
2830
- Taro.hideLoading();
2923
+ hideLoading();
2831
2924
  });
2832
2925
  }
2833
2926
  async function loadBalance() {
@@ -2888,14 +2981,16 @@ var script$q = /* @__PURE__ */ defineComponent({
2888
2981
  loadConsumptions();
2889
2982
  }
2890
2983
  watch(secondBalanceOpen, () => {
2891
- Taro.setNavigationBarColor({
2892
- frontColor: secondBalanceOpen.value ? "#000000" : "#ffffff",
2893
- backgroundColor: "#ffffff",
2894
- animation: {
2895
- duration: 400,
2896
- timingFunc: "easeIn"
2897
- }
2898
- });
2984
+ if (Taro.getEnv() !== "WEB") {
2985
+ Taro.setNavigationBarColor({
2986
+ frontColor: secondBalanceOpen.value ? "#000000" : "#ffffff",
2987
+ backgroundColor: "#ffffff",
2988
+ animation: {
2989
+ duration: 400,
2990
+ timingFunc: "easeIn"
2991
+ }
2992
+ });
2993
+ }
2899
2994
  });
2900
2995
  function onDateReset() {
2901
2996
  resetDateRange();
@@ -2914,7 +3009,6 @@ var script$q = /* @__PURE__ */ defineComponent({
2914
3009
  });
2915
3010
  return (_ctx, _cache) => {
2916
3011
  const _component_nut_popup = Popup;
2917
- const _component_scroll_view = resolveComponent("scroll-view");
2918
3012
  return openBlock(), createElementBlock(
2919
3013
  Fragment,
2920
3014
  null,
@@ -2922,10 +3016,10 @@ var script$q = /* @__PURE__ */ defineComponent({
2922
3016
  createElementVNode("div", _hoisted_1$n, [
2923
3017
  createElementVNode("div", _hoisted_2$h, [
2924
3018
  createVNode(unref(script$I), {
2925
- title: "\u6211\u7684\u8D26\u6237",
3019
+ title: unref(Taro).getEnv() !== "WEB" ? "\u6211\u7684\u8D26\u6237" : "",
2926
3020
  class: normalizeClass({ "with-background": scrolled.value > 0 }),
2927
3021
  onClose: onPageHeaderClose
2928
- }, null, 8, ["class"]),
3022
+ }, null, 8, ["title", "class"]),
2929
3023
  createElementVNode("div", { class: "row jusify-right" }, [
2930
3024
  createElementVNode("div", {
2931
3025
  class: "small-bean-button",
@@ -2933,7 +3027,7 @@ var script$q = /* @__PURE__ */ defineComponent({
2933
3027
  }, _cache[7] || (_cache[7] = [
2934
3028
  createElementVNode(
2935
3029
  "label",
2936
- null,
3030
+ { class: "label" },
2937
3031
  "\u6536\u652F\u660E\u7EC6",
2938
3032
  -1
2939
3033
  /* HOISTED */
@@ -3270,7 +3364,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3270
3364
  /* CLASS */
3271
3365
  ),
3272
3366
  createElementVNode("div", _hoisted_26$1, [
3273
- createVNode(_component_scroll_view, {
3367
+ createVNode(unref(ScrollView), {
3274
3368
  class: "operation-scroll",
3275
3369
  "scroll-y": true,
3276
3370
  onScroll,
@@ -4319,7 +4413,7 @@ var script$h = /* @__PURE__ */ defineComponent({
4319
4413
  }
4320
4414
  function showVerifyToast(tip, duration = 1500) {
4321
4415
  if (!tip) return;
4322
- Taro.showToast({
4416
+ showToast({
4323
4417
  title: tip,
4324
4418
  icon: "none",
4325
4419
  duration
@@ -4632,7 +4726,7 @@ const vendor$1 = {
4632
4726
  data: data.result
4633
4727
  });
4634
4728
  } else if (data.code !== "401") {
4635
- Taro.showToast({
4729
+ showToast({
4636
4730
  title: data.msg,
4637
4731
  icon: "none"
4638
4732
  });
@@ -4818,7 +4912,7 @@ var script$f = /* @__PURE__ */ defineComponent({
4818
4912
  emits: ["detail", "close", "view", "popup"],
4819
4913
  setup(__props, { emit: __emit }) {
4820
4914
  const props = __props;
4821
- const { toReadFun, noticeClick } = useNotice();
4915
+ const { noticeClick } = useNotice();
4822
4916
  const bannerMessages = ref([]);
4823
4917
  const popMessages = ref([]);
4824
4918
  const activeKey = ref(0);
@@ -4888,7 +4982,7 @@ var script$f = /* @__PURE__ */ defineComponent({
4888
4982
  noticeStatus: 1,
4889
4983
  receiveId: item.id
4890
4984
  }).then(() => {
4891
- Taro.showToast({
4985
+ showToast({
4892
4986
  title: "\u6D88\u606F\u5DF2\u5173\u95ED",
4893
4987
  icon: "none"
4894
4988
  });
@@ -5013,7 +5107,7 @@ var script$e = /* @__PURE__ */ defineComponent({
5013
5107
  const props = __props;
5014
5108
  const init = debounce(() => {
5015
5109
  if (!props.app) {
5016
- return Taro.showToast({
5110
+ return showToast({
5017
5111
  title: "NoticeEntry\u7EC4\u4EF6\u7F3A\u5C11appcode",
5018
5112
  icon: "none"
5019
5113
  });
@@ -5192,14 +5286,14 @@ var script$d = /* @__PURE__ */ defineComponent({
5192
5286
 
5193
5287
  script$d.__file = "src/components/dd-search/index.vue";
5194
5288
 
5195
- function useCommonList(api, query, showLoading = true, method = "GET") {
5289
+ function useCommonList(api, query, loading = true, method = "GET") {
5196
5290
  const isLast = ref(false);
5197
5291
  const list = ref([]);
5198
5292
  const firstLoading = ref(true);
5199
5293
  const total = ref(0);
5200
5294
  const isLoading = ref(false);
5201
- async function fetchData(loading) {
5202
- loading && Taro.showLoading({
5295
+ async function fetchData(loading2) {
5296
+ loading2 && showLoading({
5203
5297
  title: "\u52A0\u8F7D\u4E2D..."
5204
5298
  });
5205
5299
  isLoading.value = true;
@@ -5208,7 +5302,7 @@ function useCommonList(api, query, showLoading = true, method = "GET") {
5208
5302
  ...unref(query)
5209
5303
  });
5210
5304
  isLoading.value = false;
5211
- loading && Taro.hideLoading();
5305
+ loading2 && hideLoading();
5212
5306
  if (res) {
5213
5307
  const pages = Math.ceil(res.total / res.pageSize);
5214
5308
  isLast.value = res.pageNum >= pages;
@@ -5236,7 +5330,7 @@ function useCommonList(api, query, showLoading = true, method = "GET") {
5236
5330
  async function init(pageNum) {
5237
5331
  query.value.pageNum = pageNum || 1;
5238
5332
  isLast.value = false;
5239
- const data = await fetchData(showLoading);
5333
+ const data = await fetchData(loading);
5240
5334
  list.value = data || [];
5241
5335
  firstLoading.value = false;
5242
5336
  }
@@ -5294,7 +5388,7 @@ var script$c = /* @__PURE__ */ defineComponent({
5294
5388
  const { list, init, runNext, runRefresh, isLast } = useCommonList("/cas/msg/queryUserMsg", query, true, "POST");
5295
5389
  onMounted(async () => {
5296
5390
  if (!props.app) {
5297
- return Taro.showToast({
5391
+ return showToast({
5298
5392
  title: "NoticeList\u7EC4\u4EF6\u7F3A\u5C11appcode",
5299
5393
  icon: "none"
5300
5394
  });
@@ -5327,6 +5421,10 @@ var script$c = /* @__PURE__ */ defineComponent({
5327
5421
  list.value[index].isRead = "1";
5328
5422
  }
5329
5423
  }
5424
+ showToast({
5425
+ title: "\u6D88\u606F\u5DF2\u8BFB",
5426
+ icon: "none"
5427
+ });
5330
5428
  }
5331
5429
  function onSearch(key) {
5332
5430
  delete query.value.title;
@@ -5656,7 +5754,7 @@ const vendor = {
5656
5754
  data: data.result
5657
5755
  });
5658
5756
  } else if (data.code !== "401") {
5659
- Taro.showToast({
5757
+ showToast({
5660
5758
  title: data.msg,
5661
5759
  icon: "none"
5662
5760
  });
@@ -5696,7 +5794,7 @@ function useHttp() {
5696
5794
  },
5697
5795
  (raw) => {
5698
5796
  if (raw.status > 500 && raw.status != 51015 && raw.status != 51014) {
5699
- Taro.showToast({
5797
+ showToast({
5700
5798
  title: raw.message,
5701
5799
  icon: "none"
5702
5800
  });
@@ -5845,7 +5943,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5845
5943
  }
5846
5944
  }
5847
5945
  async function updateImage(filePath) {
5848
- Taro.showLoading({
5946
+ showLoading({
5849
5947
  title: "\u4E0A\u4F20\u4E2D..."
5850
5948
  });
5851
5949
  const appkitOptions = useAppKitOptions();
@@ -5870,15 +5968,15 @@ var script$9 = /* @__PURE__ */ defineComponent({
5870
5968
  avatar: res.result,
5871
5969
  userId: props.userId
5872
5970
  }).then(() => {
5873
- Taro.hideLoading();
5874
- Taro.showToast({ title: "\u5934\u50CF\u4E0A\u4F20\u6210\u529F", icon: "none" });
5971
+ hideLoading();
5972
+ showToast({ title: "\u5934\u50CF\u4E0A\u4F20\u6210\u529F", icon: "none" });
5875
5973
  getUserInfoByUserId();
5876
5974
  emits("avatar-success", res.result);
5877
5975
  }).catch(() => {
5878
- Taro.hideLoading();
5976
+ hideLoading();
5879
5977
  });
5880
5978
  } else {
5881
- Taro.hideLoading();
5979
+ hideLoading();
5882
5980
  }
5883
5981
  }
5884
5982
  function toShowRole(item) {
@@ -5915,13 +6013,13 @@ var script$9 = /* @__PURE__ */ defineComponent({
5915
6013
  }
5916
6014
  function onUserNameOk() {
5917
6015
  if (!userState.value) {
5918
- return Taro.showToast({
6016
+ return showToast({
5919
6017
  title: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
5920
6018
  icon: "none"
5921
6019
  });
5922
6020
  }
5923
6021
  if (userState.value === userState.oldName) {
5924
- return Taro.showToast({
6022
+ return showToast({
5925
6023
  title: "\u7528\u6237\u540D\u4E0D\u80FD\u4E0E\u539F\u7528\u6237\u540D\u76F8\u540C",
5926
6024
  icon: "none"
5927
6025
  });
@@ -5932,7 +6030,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5932
6030
  tenantId: userState.tenantId,
5933
6031
  userId: props.userId
5934
6032
  }).then(() => {
5935
- Taro.showToast({ title: "\u7528\u6237\u540D\u4FEE\u6539\u6210\u529F", icon: "none" });
6033
+ showToast({ title: "\u7528\u6237\u540D\u4FEE\u6539\u6210\u529F", icon: "none" });
5936
6034
  getUserInfoByUserId();
5937
6035
  onUserNameCancel();
5938
6036
  emits("username-success");
@@ -5940,7 +6038,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5940
6038
  }
5941
6039
  function onNickNameOk() {
5942
6040
  if (!nickNameState.value) {
5943
- return Taro.showToast({
6041
+ return showToast({
5944
6042
  title: "\u8BF7\u8F93\u5165\u6635\u79F0",
5945
6043
  icon: "none"
5946
6044
  });
@@ -5949,7 +6047,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
5949
6047
  $http.post("/cas/sysAccount/updateAccountInfo", {
5950
6048
  nickName: nickNameState.value
5951
6049
  }).then(() => {
5952
- Taro.showToast({ title: "\u6635\u79F0\u4FEE\u6539\u6210\u529F", icon: "none" });
6050
+ showToast({ title: "\u6635\u79F0\u4FEE\u6539\u6210\u529F", icon: "none" });
5953
6051
  getUserInfoByUserId();
5954
6052
  onNickNameCancel();
5955
6053
  });
@@ -6380,7 +6478,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6380
6478
  const current = ref(1);
6381
6479
  onMounted(() => {
6382
6480
  if (!params.mobile) {
6383
- return Taro.showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6481
+ return showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6384
6482
  }
6385
6483
  authState.mobile = params.mobile;
6386
6484
  });
@@ -6393,7 +6491,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6393
6491
  $http.post("/cas/sysAccount/verify", { verifyCode: authState.code }).then((res) => {
6394
6492
  console.log(res, "res");
6395
6493
  if (typeof res !== "boolean") return;
6396
- Taro.showToast({ title: "\u8EAB\u4EFD\u8BA4\u8BC1\u6210\u529F", icon: "success" });
6494
+ showToast({ title: "\u8EAB\u4EFD\u8BA4\u8BC1\u6210\u529F", icon: "success" });
6397
6495
  current.value++;
6398
6496
  });
6399
6497
  }
@@ -6401,7 +6499,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6401
6499
  const $http = useHttp();
6402
6500
  $http.get("/cas/sysAccount/getVerifyCodeToUserMobile").then((res) => {
6403
6501
  if (typeof res !== "boolean") return;
6404
- Taro.showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6502
+ showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6405
6503
  startCountdown();
6406
6504
  });
6407
6505
  }
@@ -6412,7 +6510,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
6412
6510
  function onBinding() {
6413
6511
  const msg = phoneValidator(bindingState.mobile);
6414
6512
  if (msg) {
6415
- return Taro.showToast({ title: msg, icon: "none" });
6513
+ return showToast({ title: msg, icon: "none" });
6416
6514
  }
6417
6515
  const $http = useHttp();
6418
6516
  $http.post(`/cas/sysAccount/verifyAndChangeMobile`, {
@@ -6420,22 +6518,22 @@ var script$8 = /* @__PURE__ */ defineComponent({
6420
6518
  verifyCode: bindingState.code
6421
6519
  }).then((res) => {
6422
6520
  if (typeof res !== "boolean") return;
6423
- Taro.showToast({ title: "\u6362\u7ED1\u6210\u529F", icon: "success" });
6521
+ showToast({ title: "\u6362\u7ED1\u6210\u529F", icon: "success" });
6424
6522
  emits("success", bindingState.mobile);
6425
6523
  });
6426
6524
  }
6427
6525
  function onBindingCode() {
6428
6526
  const msg = phoneValidator(bindingState.mobile);
6429
6527
  if (msg) {
6430
- return Taro.showToast({ title: msg, icon: "none" });
6528
+ return showToast({ title: msg, icon: "none" });
6431
6529
  }
6432
6530
  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" });
6531
+ return showToast({ title: "\u65B0\u624B\u673A\u53F7\u7801\u4E0D\u5E94\u4E0E\u65E7\u624B\u673A\u53F7\u7801\u4E00\u81F4", icon: "none" });
6434
6532
  }
6435
6533
  const $http = useHttp();
6436
6534
  $http.get(`/cas/sysAccount/getVerifyCodeToMobile/${bindingState.mobile}`).then((res) => {
6437
6535
  if (typeof res !== "boolean") return;
6438
- Taro.showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6536
+ showToast({ title: "\u77ED\u4FE1\u53D1\u9001\u6210\u529F,\u8BF7\u6CE8\u610F\u67E5\u6536", icon: "none" });
6439
6537
  startCountdown1();
6440
6538
  });
6441
6539
  }
@@ -6642,7 +6740,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
6642
6740
  const { encodePhone } = useEncode();
6643
6741
  onMounted(() => {
6644
6742
  if (!params.mobile) {
6645
- return Taro.showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6743
+ return showToast({ title: "\u8DEF\u5F84\u7F3A\u5C11mobile\u53C2\u6570", icon: "none" });
6646
6744
  }
6647
6745
  });
6648
6746
  const showEncode = ref(true);
@@ -7010,7 +7108,7 @@ var script$6 = {
7010
7108
  fail: (err) => {
7011
7109
  console.error(err);
7012
7110
  this.imageInfo = "";
7013
- Taro.showToast({
7111
+ showToast({
7014
7112
  title: "\u4E0B\u8F7D\u56FE\u7247\u5931\u8D25",
7015
7113
  icon: "none"
7016
7114
  });
@@ -7634,7 +7732,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7634
7732
  }
7635
7733
  function toUpload() {
7636
7734
  if (formState.attachment.length >= 20) {
7637
- return Taro.showToast({
7735
+ return showToast({
7638
7736
  title: "\u6700\u591A\u4E0A\u4F2020\u4EFD\u9644\u4EF6",
7639
7737
  icon: "none"
7640
7738
  });
@@ -7648,7 +7746,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7648
7746
  for (const item of res.tempFiles) {
7649
7747
  if (item.fileType === "video") {
7650
7748
  if (item.size > 1024 * 1024 * 50) {
7651
- return Taro.showToast({
7749
+ return showToast({
7652
7750
  title: "\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC750M",
7653
7751
  icon: "none"
7654
7752
  });
@@ -7704,7 +7802,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7704
7802
  success: (res) => {
7705
7803
  const html = res.html;
7706
7804
  if (html === "<p><br></p>" || !html) {
7707
- Taro.showToast({
7805
+ showToast({
7708
7806
  title: "\u8BF7\u8F93\u5165\u95EE\u9898\u63CF\u8FF0",
7709
7807
  icon: "none"
7710
7808
  });
@@ -7718,7 +7816,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
7718
7816
  function requestFeedback() {
7719
7817
  const $http = useHttp();
7720
7818
  const appkitOptions = useAppKitOptions();
7721
- Taro.showLoading({
7819
+ showLoading({
7722
7820
  title: "\u53CD\u9988\u4E2D..."
7723
7821
  });
7724
7822
  const attachment = JSON.parse(
@@ -7748,6 +7846,10 @@ var script$4 = /* @__PURE__ */ defineComponent({
7748
7846
  clearFormState();
7749
7847
  }).catch(() => {
7750
7848
  Taro.hideLoading();
7849
+ showToast({
7850
+ title: "\u53CD\u9988\u63D0\u4EA4\u5931\u8D25",
7851
+ icon: "none"
7852
+ });
7751
7853
  });
7752
7854
  }
7753
7855
  function clearFormState() {
@@ -8340,15 +8442,15 @@ var script = /* @__PURE__ */ defineComponent({
8340
8442
  // tenantId: props.userId,
8341
8443
  }).then((res2) => {
8342
8444
  if (res2?.status) {
8343
- Taro.showToast({ title: "\u5DF2\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F", icon: "none" });
8445
+ showToast({ title: "\u5DF2\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F", icon: "none" });
8344
8446
  setTimeout(() => {
8345
8447
  toBack();
8346
8448
  }, 500);
8347
8449
  } else {
8348
- Taro.showToast({ title: "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8450
+ showToast({ title: "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8349
8451
  }
8350
8452
  }).catch((err) => {
8351
- Taro.showToast({ title: err?.errMsg || "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8453
+ showToast({ title: err?.errMsg || "\u8BA4\u8BC1\u5931\u8D25", icon: "none" });
8352
8454
  });
8353
8455
  }
8354
8456
  watch(
@@ -8527,7 +8629,7 @@ const nutComponents = [
8527
8629
  ({
8528
8630
  ...components
8529
8631
  });
8530
- const services = [...services$1];
8632
+ const services = [...services$1, ...services$2];
8531
8633
  const $app = {
8532
8634
  setToken: (token) => {
8533
8635
  const appKitOptions = useAppKitOptions();
@@ -8540,6 +8642,8 @@ const $app = {
8540
8642
  requestPayment: (options) => {
8541
8643
  },
8542
8644
  invokeRecharge: (options) => {
8645
+ },
8646
+ getSdkConfig: (appCode) => {
8543
8647
  }
8544
8648
  };
8545
8649
  services.forEach((service) => {
@@ -8563,4 +8667,4 @@ const AppKit = {
8563
8667
  }
8564
8668
  };
8565
8669
 
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 };
8670
+ 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 };