@uxda/appkit 4.3.1 → 4.3.3

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.
Files changed (131) hide show
  1. package/.eslintrc.mjs +7 -7
  2. package/COMPONENT_USAGE.md +1523 -0
  3. package/PROJECT_DOCS.md +142 -142
  4. package/README.md +187 -187
  5. package/babel.config.js +12 -12
  6. package/dist/appkit.css +48 -3
  7. package/dist/assets/asset-DcH8Kg-2 +1 -0
  8. package/dist/index.js +147 -78
  9. package/package.json +79 -82
  10. package/project.config.json +15 -15
  11. package/project.tt.json +13 -13
  12. package/rollup.config.mjs +78 -78
  13. package/src/Appkit.ts +72 -72
  14. package/src/balance/api/endpoints.ts +133 -133
  15. package/src/balance/api/index.ts +118 -118
  16. package/src/balance/components/AccountView.vue +770 -770
  17. package/src/balance/components/BalanceCard.vue +210 -210
  18. package/src/balance/components/BalanceReminder.vue +84 -84
  19. package/src/balance/components/ConsumptionFilter.vue +218 -218
  20. package/src/balance/components/ConsumptionRules.vue +68 -68
  21. package/src/balance/components/DateFilter.vue +259 -259
  22. package/src/balance/components/DateRange.vue +111 -111
  23. package/src/balance/components/ListFilter.vue +62 -62
  24. package/src/balance/components/ListFilterPicker.vue +191 -191
  25. package/src/balance/components/PromoterCard.vue +307 -307
  26. package/src/balance/components/SecondBalance.vue +77 -77
  27. package/src/balance/components/Tip.vue +45 -45
  28. package/src/balance/components/index.ts +8 -8
  29. package/src/balance/types.ts +99 -99
  30. package/src/components/bt-cropper/index.vue +730 -730
  31. package/src/components/bt-cropper/utils/calcCropper.js +42 -42
  32. package/src/components/bt-cropper/utils/calcImagePosition.js +23 -23
  33. package/src/components/bt-cropper/utils/calcImageSize.js +37 -37
  34. package/src/components/bt-cropper/utils/calcPointDistance.js +12 -12
  35. package/src/components/bt-cropper/utils/calcRightAndBottom.js +7 -7
  36. package/src/components/bt-cropper/utils/ratio.js +3 -3
  37. package/src/components/bt-cropper/utils/tools.js +25 -25
  38. package/src/components/dd-area/index.vue +225 -225
  39. package/src/components/dd-icon/doc.md +21 -21
  40. package/src/components/dd-icon/index.vue +23 -23
  41. package/src/components/dd-notice-bar/index.vue +78 -78
  42. package/src/components/dd-search/doc.md +34 -34
  43. package/src/components/dd-search/index.vue +168 -168
  44. package/src/components/dd-selector/index.vue +124 -124
  45. package/src/components/dd-skeleton/doc.md +19 -19
  46. package/src/components/dd-skeleton/index.vue +36 -36
  47. package/src/global.ts +6 -6
  48. package/src/index.ts +101 -101
  49. package/src/main.scss +1 -1
  50. package/src/notice/api/endpoints.ts +54 -54
  51. package/src/notice/api/index.ts +121 -121
  52. package/src/notice/components/NoticeBanner.vue +247 -247
  53. package/src/notice/components/NoticeEntry.vue +99 -99
  54. package/src/notice/components/NoticeList.vue +311 -311
  55. package/src/notice/components/NoticeList2.vue +398 -240
  56. package/src/notice/components/NoticePopup.vue +163 -163
  57. package/src/notice/components/index.ts +6 -6
  58. package/src/notice/components/useCommonList.ts +86 -86
  59. package/src/notice/components/useNotice.ts +35 -35
  60. package/src/notice/index.ts +1 -1
  61. package/src/notice/types.ts +25 -25
  62. package/src/payment/api/config.ts +7 -7
  63. package/src/payment/api/endpoints.ts +96 -96
  64. package/src/payment/api/index.ts +107 -107
  65. package/src/payment/components/AmountPicker.vue +90 -90
  66. package/src/payment/components/RechargeResult.vue +69 -69
  67. package/src/payment/components/RechargeView.vue +191 -191
  68. package/src/payment/components/RightsPicker.vue +105 -105
  69. package/src/payment/components/TradeView.vue +363 -363
  70. package/src/payment/components/UserAgreement.vue +234 -234
  71. package/src/payment/components/index.ts +22 -22
  72. package/src/payment/index.ts +5 -5
  73. package/src/payment/services/index.ts +16 -16
  74. package/src/payment/services/invoke-recharge.ts +25 -25
  75. package/src/payment/services/request-payment.ts +130 -130
  76. package/src/payment/types.ts +33 -33
  77. package/src/register/components/SelfRegistration.vue +233 -233
  78. package/src/register/components/index.ts +2 -2
  79. package/src/scenarios/components/SharePoster.vue +364 -364
  80. package/src/scenarios/components/index.ts +2 -2
  81. package/src/scenarios/components/poster-paste.vue +93 -93
  82. package/src/scenarios/components/share-poster.md +273 -273
  83. package/src/shared/components/AppDrawer.vue +53 -53
  84. package/src/shared/components/AppVerify.vue +128 -128
  85. package/src/shared/components/DeviceVersion.vue +78 -78
  86. package/src/shared/components/EmptyView.vue +33 -33
  87. package/src/shared/components/OcrBusinessLicense.vue +137 -137
  88. package/src/shared/components/OcrIcon.vue +229 -229
  89. package/src/shared/components/PageHeader.vue +84 -84
  90. package/src/shared/components/index.ts +8 -8
  91. package/src/shared/composables/index.ts +9 -9
  92. package/src/shared/composables/useAmount.ts +46 -46
  93. package/src/shared/composables/useCountdown.ts +46 -46
  94. package/src/shared/composables/useCrypto.ts +76 -76
  95. package/src/shared/composables/useDeviceEnv.ts +26 -26
  96. package/src/shared/composables/useDragBox.ts +97 -97
  97. package/src/shared/composables/useEncode.ts +43 -43
  98. package/src/shared/composables/useLogger.ts +144 -144
  99. package/src/shared/composables/useSafeArea.ts +46 -46
  100. package/src/shared/composables/useTabbar.ts +24 -24
  101. package/src/shared/composables/useUpload.ts +61 -61
  102. package/src/shared/composables/useValidator.ts +32 -32
  103. package/src/shared/composables/useWxAuth.ts +48 -48
  104. package/src/shared/http/Http.ts +148 -148
  105. package/src/shared/http/index.ts +1 -1
  106. package/src/shared/http/types.ts +163 -163
  107. package/src/shared/index.ts +9 -9
  108. package/src/shared/tracking/directives/index.ts +40 -40
  109. package/src/shared/tracking/examples/page-tracking-template.vue +27 -27
  110. package/src/shared/weixin/index.ts +9 -9
  111. package/src/shared/weixin/jssdk.ts +103 -103
  112. package/src/shared/weixin/payment.ts +38 -38
  113. package/src/styles/vars.scss +3 -3
  114. package/src/user/api/endpoints.ts +17 -17
  115. package/src/user/api/index.ts +123 -123
  116. package/src/user/components/LoginSetting.vue +114 -114
  117. package/src/user/components/UserAuth.vue +218 -218
  118. package/src/user/components/UserBinding.vue +277 -277
  119. package/src/user/components/UserBindingSuccess.vue +80 -80
  120. package/src/user/components/UserEntry.vue +139 -139
  121. package/src/user/components/UserFeedback.vue +427 -427
  122. package/src/user/components/UserFeedbackEntry.vue +175 -175
  123. package/src/user/components/UserHeadCrop.vue +65 -65
  124. package/src/user/components/UserInfo.vue +709 -709
  125. package/src/user/components/UserResourceEmpty.vue +75 -75
  126. package/src/user/components/index.ts +23 -23
  127. package/src/user/index.ts +1 -1
  128. package/src/utils/utils.ts +33 -33
  129. package/tsconfig.json +30 -30
  130. package/types/global.d.ts +22 -22
  131. package/types/vue.d.ts +10 -10
package/babel.config.js CHANGED
@@ -1,12 +1,12 @@
1
- // babel-preset-taro 更多选项和默认值:
2
- // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
3
- module.exports = {
4
- presets: [
5
- ['taro', {
6
- framework: 'vue3',
7
- ts: true
8
- }]
9
- ],
10
- plugins: [
11
- ],
12
- }
1
+ // babel-preset-taro 更多选项和默认值:
2
+ // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
3
+ module.exports = {
4
+ presets: [
5
+ ['taro', {
6
+ framework: 'vue3',
7
+ ts: true
8
+ }]
9
+ ],
10
+ plugins: [
11
+ ],
12
+ }
package/dist/appkit.css CHANGED
@@ -445,9 +445,9 @@
445
445
  color: #353535;
446
446
  background: linear-gradient(90deg, #FFEBC1 0%, #FFB875 100%);
447
447
  }
448
- page {
449
- --text-color: #333;
450
- --text-color-dark-mode: #eee;
448
+ page {
449
+ --text-color: #333;
450
+ --text-color-dark-mode: #eee;
451
451
  }
452
452
  .account-card .card {
453
453
  background: linear-gradient(90deg, #EEF1FA 0%, #E4E6F3 100%);
@@ -1844,6 +1844,51 @@ page {
1844
1844
  color: rgba(53, 53, 53, 0.4);
1845
1845
  text-align: end;
1846
1846
  }
1847
+ .news-tab .nut-tabs__list {
1848
+ display: flex;
1849
+ }
1850
+ .news-tab .custom-tab-item {
1851
+ flex: 1;
1852
+ display: flex;
1853
+ flex-direction: column;
1854
+ justify-content: center;
1855
+ align-items: center;
1856
+ padding: 10px;
1857
+ }
1858
+ .news-tab .customLine {
1859
+ position: relative;
1860
+ }
1861
+ .news-tab .customLine::after {
1862
+ content: "";
1863
+ position: absolute;
1864
+ width: 50px;
1865
+ height: 2px;
1866
+ background: #017fff;
1867
+ bottom: 0;
1868
+ left: 50%;
1869
+ transform: translateX(-50%);
1870
+ }
1871
+ .news-tab .custom-title {
1872
+ color: #8a8a8a;
1873
+ font-size: 15px;
1874
+ display: flex;
1875
+ align-items: center;
1876
+ }
1877
+ .news-tab .custom-title-dot {
1878
+ height: 12px;
1879
+ line-height: 12px;
1880
+ padding: 0 6px;
1881
+ color: #fff;
1882
+ border-radius: 8px;
1883
+ background: #e04747;
1884
+ margin-left: 2px;
1885
+ font-size: 9px;
1886
+ }
1887
+ .news-tab .custom-title.active {
1888
+ color: #017fff;
1889
+ font-weight: 600;
1890
+ font-size: 17px;
1891
+ }
1847
1892
  .user-entry {
1848
1893
  position: absolute;
1849
1894
  left: 0;
@@ -0,0 +1 @@
1
+
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { GridItem, Grid, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Radio, RadioGroup, FormItem, Form, Ellipsis, Skeleton, Cell, Input, Step, Steps } from '@nutui/nutui-taro';
1
+ import { Grid, GridItem, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Form, FormItem, RadioGroup, Radio, Ellipsis, 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, resolveDirective, createCommentVNode, withDirectives, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, vShow, mergeModels, useModel, resolveComponent, vModelText, watchPostEffect, withModifiers } from 'vue';
4
+ import { defineComponent, reactive, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, resolveDirective, createCommentVNode, withDirectives, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, vShow, mergeModels, useModel, 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
7
  import Taro, { showModal, getSystemInfoSync, getMenuButtonBoundingClientRect, uploadFile, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, getStorageSync, setStorageSync, getSystemInfo, getNetworkType, getEnv, getAccountInfoSync, getPerformance, onAppHide, useDidShow, onAppShow, onNetworkStatusChange, useRouter } from '@tarojs/taro';
@@ -9,7 +9,7 @@ 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';
11
11
  import qs from 'qs';
12
- import { NsForm, NsInput, NsButton, NsIcon, usePopup, useNutshell, NsButtonGroup, usePaging, NsPage, NsTabs, NsTabsItem, NsPageContent, NsSkeleton, NsRepeator, NsCard, NsEmpty, NsCheckbox } from '@uxda/nutshell/taro';
12
+ import { NsForm, NsInput, NsButton, NsIcon, usePopup, useNutshell, NsButtonGroup, usePaging, NsPage, NsTabs, NsPageContent, NsSkeleton, NsRepeator, NsCard, NsEmpty, NsCheckbox } from '@uxda/nutshell/taro';
13
13
  import '@nutui/nutui-taro/dist/packages/actionsheet/style/css';
14
14
  import pako from 'pako';
15
15
  import dsBridge from 'dsbridge';
@@ -657,8 +657,8 @@ script$K.__file = "src/shared/components/AppDrawer.vue";
657
657
  const _hoisted_1$D = { class: "app-verify column" };
658
658
  const _hoisted_2$s = { class: "caption" };
659
659
  const _hoisted_3$m = { class: "number" };
660
- const _hoisted_4$h = { class: "form-btn" };
661
- const _hoisted_5$d = {
660
+ const _hoisted_4$i = { class: "form-btn" };
661
+ const _hoisted_5$e = {
662
662
  key: 1,
663
663
  class: "caption"
664
664
  };
@@ -738,7 +738,7 @@ var script$J = /* @__PURE__ */ defineComponent({
738
738
  method: (value) => value.length === 6
739
739
  }]
740
740
  }, null, 8, ["modelValue", "rules"]),
741
- createElementVNode("div", _hoisted_4$h, [
741
+ createElementVNode("div", _hoisted_4$i, [
742
742
  !sent.value ? withDirectives((openBlock(), createBlock(
743
743
  unref(NsButton),
744
744
  {
@@ -757,7 +757,7 @@ var script$J = /* @__PURE__ */ defineComponent({
757
757
  ]) : createCommentVNode("v-if", true),
758
758
  sent.value ? (openBlock(), createElementBlock(
759
759
  "div",
760
- _hoisted_5$d,
760
+ _hoisted_5$e,
761
761
  toDisplayString(countdown.value) + "s\u540E\u91CD\u65B0\u53D1\u9001",
762
762
  1
763
763
  /* TEXT */
@@ -1559,6 +1559,15 @@ function isApp() {
1559
1559
  var __defProp = Object.defineProperty;
1560
1560
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1561
1561
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1562
+ var TrackingEventType = /* @__PURE__ */ ((TrackingEventType2) => {
1563
+ TrackingEventType2["PAGE_VIEW"] = "page_view";
1564
+ TrackingEventType2["PAGE_LEAVE"] = "page_leave";
1565
+ TrackingEventType2["APP_DEVICE_INFO"] = "app_device_info";
1566
+ TrackingEventType2["CLICK"] = "click";
1567
+ TrackingEventType2["CUSTOM"] = "custom";
1568
+ return TrackingEventType2;
1569
+ })(TrackingEventType || {});
1570
+ const { PAGE_VIEW, PAGE_LEAVE, CLICK, CUSTOM, APP_DEVICE_INFO } = TrackingEventType;
1562
1571
  const DEFAULT_CONFIG = {
1563
1572
  enabled: true,
1564
1573
  debug: false,
@@ -2955,7 +2964,7 @@ const isIOS = () => {
2955
2964
  const _hoisted_1$B = { class: "view recharge-view" };
2956
2965
  const _hoisted_2$r = { class: "flex-grow" };
2957
2966
  const _hoisted_3$l = { class: "amount-footer" };
2958
- const _hoisted_4$g = { class: "agreement" };
2967
+ const _hoisted_4$h = { class: "agreement" };
2959
2968
  var script$E = /* @__PURE__ */ defineComponent({
2960
2969
  __name: "RechargeView",
2961
2970
  props: {
@@ -3059,7 +3068,7 @@ var script$E = /* @__PURE__ */ defineComponent({
3059
3068
  }, null, 8, ["items", "selected"])
3060
3069
  ]),
3061
3070
  createElementVNode("view", _hoisted_3$l, [
3062
- createElementVNode("view", _hoisted_4$g, [
3071
+ createElementVNode("view", _hoisted_4$h, [
3063
3072
  createVNode(_component_nut_checkbox, {
3064
3073
  modelValue: state.agreed,
3065
3074
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.agreed = $event)
@@ -3132,7 +3141,7 @@ const _hoisted_3$k = {
3132
3141
  key: 0,
3133
3142
  class: "caption"
3134
3143
  };
3135
- const _hoisted_4$f = {
3144
+ const _hoisted_4$g = {
3136
3145
  key: 1,
3137
3146
  class: "caption"
3138
3147
  };
@@ -3173,7 +3182,7 @@ var script$C = /* @__PURE__ */ defineComponent({
3173
3182
  ),
3174
3183
  __props.payMethod == "bean" ? (openBlock(), createElementBlock("div", _hoisted_3$k, "\u6743\u76CA\u5DF2\u5230\u8D26")) : (openBlock(), createElementBlock(
3175
3184
  "div",
3176
- _hoisted_4$f,
3185
+ _hoisted_4$g,
3177
3186
  toDisplayString(views[__props.type][1]) + "\u5C06\u57281\u5206\u949F\u4E4B\u5185\u5230\u8D26",
3178
3187
  1
3179
3188
  /* TEXT */
@@ -3320,8 +3329,8 @@ const _hoisted_3$i = {
3320
3329
  key: 0,
3321
3330
  class: "bean-buy"
3322
3331
  };
3323
- const _hoisted_4$e = { class: "left" };
3324
- const _hoisted_5$c = {
3332
+ const _hoisted_4$f = { class: "left" };
3333
+ const _hoisted_5$d = {
3325
3334
  key: 0,
3326
3335
  class: "amount"
3327
3336
  };
@@ -3473,7 +3482,7 @@ var script$A = /* @__PURE__ */ defineComponent({
3473
3482
  onChange: onAmountSelect
3474
3483
  }, null, 8, ["items", "selected"]),
3475
3484
  amounts.value[state.selected] ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
3476
- createElementVNode("div", _hoisted_4$e, [
3485
+ createElementVNode("div", _hoisted_4$f, [
3477
3486
  _cache[4] || (_cache[4] = createElementVNode(
3478
3487
  "div",
3479
3488
  { class: "title" },
@@ -3483,7 +3492,7 @@ var script$A = /* @__PURE__ */ defineComponent({
3483
3492
  )),
3484
3493
  !selectBean.value ? (openBlock(), createElementBlock(
3485
3494
  "div",
3486
- _hoisted_5$c,
3495
+ _hoisted_5$d,
3487
3496
  "\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value || 0)),
3488
3497
  1
3489
3498
  /* TEXT */
@@ -3647,8 +3656,8 @@ const components = {
3647
3656
  const _hoisted_1$w = { class: "account-card" };
3648
3657
  const _hoisted_2$n = { class: "card" };
3649
3658
  const _hoisted_3$h = { class: "card-row" };
3650
- const _hoisted_4$d = { class: "card-row-left" };
3651
- const _hoisted_5$b = { class: "bean-nums number" };
3659
+ const _hoisted_4$e = { class: "card-row-left" };
3660
+ const _hoisted_5$c = { class: "bean-nums number" };
3652
3661
  const _hoisted_6$8 = { class: "card-row-right" };
3653
3662
  var script$z = /* @__PURE__ */ defineComponent({
3654
3663
  __name: "BalanceCard",
@@ -3695,7 +3704,7 @@ var script$z = /* @__PURE__ */ defineComponent({
3695
3704
  return openBlock(), createElementBlock("div", _hoisted_1$w, [
3696
3705
  createElementVNode("div", _hoisted_2$n, [
3697
3706
  createElementVNode("div", _hoisted_3$h, [
3698
- createElementVNode("div", _hoisted_4$d, [
3707
+ createElementVNode("div", _hoisted_4$e, [
3699
3708
  _cache[0] || (_cache[0] = createElementVNode(
3700
3709
  "div",
3701
3710
  { class: "bean-box" },
@@ -3713,7 +3722,7 @@ var script$z = /* @__PURE__ */ defineComponent({
3713
3722
  )),
3714
3723
  createElementVNode(
3715
3724
  "div",
3716
- _hoisted_5$b,
3725
+ _hoisted_5$c,
3717
3726
  toDisplayString(unref(formatAmount)(balance.value.total || 0)),
3718
3727
  1
3719
3728
  /* TEXT */
@@ -3748,7 +3757,7 @@ var script$z = /* @__PURE__ */ defineComponent({
3748
3757
  ])
3749
3758
  ])
3750
3759
  ]),
3751
- createCommentVNode(' <div class="line"></div>\n <div class="card-row">\n <div class="card-row-left desc">\u6743\u76CA\u4F7F\u7528\u65F6\u81EA\u52A8\u6263\u51CF\u4E91\u8C46</div>\n <div class="card-row-right">\n <div class="pay" v-track-click @click="gotoRecharge">\n <div>\u5145\u503C</div>\n <img\n class="pay-icon"\n src="https://cdn.ddjf.com/static/images/bpms-workBench/bean-right.png"\n />\n </div>\n </div>\n </div> ')
3760
+ createCommentVNode(' <div class="line"></div>\r\n <div class="card-row">\r\n <div class="card-row-left desc">\u6743\u76CA\u4F7F\u7528\u65F6\u81EA\u52A8\u6263\u51CF\u4E91\u8C46</div>\r\n <div class="card-row-right">\r\n <div class="pay" v-track-click @click="gotoRecharge">\r\n <div>\u5145\u503C</div>\r\n <img\r\n class="pay-icon"\r\n src="https://cdn.ddjf.com/static/images/bpms-workBench/bean-right.png"\r\n />\r\n </div>\r\n </div>\r\n </div> ')
3752
3761
  ])
3753
3762
  ]);
3754
3763
  };
@@ -3775,8 +3784,8 @@ const consumptionDirections = ["\u5168\u90E8", "\u6536\u5165", "\u652F\u51FA"];
3775
3784
  const _hoisted_1$v = { class: "consumption-filter" };
3776
3785
  const _hoisted_2$m = { class: "consumption-filter-content" };
3777
3786
  const _hoisted_3$g = { class: "title" };
3778
- const _hoisted_4$c = { class: "info" };
3779
- const _hoisted_5$a = ["onClick"];
3787
+ const _hoisted_4$d = { class: "info" };
3788
+ const _hoisted_5$b = ["onClick"];
3780
3789
  const _hoisted_6$7 = { class: "consumption-filter-btn spa-between" };
3781
3790
  var script$y = /* @__PURE__ */ defineComponent({
3782
3791
  __name: "ConsumptionFilter",
@@ -3855,7 +3864,7 @@ var script$y = /* @__PURE__ */ defineComponent({
3855
3864
  1
3856
3865
  /* TEXT */
3857
3866
  ),
3858
- createElementVNode("div", _hoisted_4$c, [
3867
+ createElementVNode("div", _hoisted_4$d, [
3859
3868
  (openBlock(true), createElementBlock(
3860
3869
  Fragment,
3861
3870
  null,
@@ -3864,7 +3873,7 @@ var script$y = /* @__PURE__ */ defineComponent({
3864
3873
  onClick: () => onFilterSectionClick(index, it.code),
3865
3874
  class: normalizeClass([getItemClass(index, it.code), "info-item"]),
3866
3875
  key: i
3867
- }, toDisplayString(typeof it === "string" ? it : it.name), 11, _hoisted_5$a);
3876
+ }, toDisplayString(typeof it === "string" ? it : it.name), 11, _hoisted_5$b);
3868
3877
  }),
3869
3878
  128
3870
3879
  /* KEYED_FRAGMENT */
@@ -3914,7 +3923,7 @@ script$y.__file = "src/balance/components/ConsumptionFilter.vue";
3914
3923
  const _hoisted_1$u = { class: "appkit-date-filter" };
3915
3924
  const _hoisted_2$l = { class: "content" };
3916
3925
  const _hoisted_3$f = { class: "time" };
3917
- const _hoisted_4$b = { class: "buttons spa-between" };
3926
+ const _hoisted_4$c = { class: "buttons spa-between" };
3918
3927
  var script$x = /* @__PURE__ */ defineComponent({
3919
3928
  __name: "DateFilter",
3920
3929
  props: {
@@ -4037,7 +4046,7 @@ var script$x = /* @__PURE__ */ defineComponent({
4037
4046
  )
4038
4047
  ])
4039
4048
  ]),
4040
- createElementVNode("div", _hoisted_4$b, [
4049
+ createElementVNode("div", _hoisted_4$c, [
4041
4050
  createElementVNode("div", {
4042
4051
  class: "btn",
4043
4052
  onClick: reset
@@ -4213,8 +4222,8 @@ script$u.__file = "src/balance/components/Tip.vue";
4213
4222
  const _hoisted_1$q = { class: "account-view" };
4214
4223
  const _hoisted_2$k = { class: "scroll-content" };
4215
4224
  const _hoisted_3$e = { class: "row jusify-right" };
4216
- const _hoisted_4$a = { class: "balance" };
4217
- const _hoisted_5$9 = { class: "bean-box spa-between" };
4225
+ const _hoisted_4$b = { class: "balance" };
4226
+ const _hoisted_5$a = { class: "bean-box spa-between" };
4218
4227
  const _hoisted_6$6 = { class: "bean-counts spa-between" };
4219
4228
  const _hoisted_7$5 = { class: "counts number" };
4220
4229
  const _hoisted_8$4 = {
@@ -4476,8 +4485,8 @@ var script$t = /* @__PURE__ */ defineComponent({
4476
4485
  [_directive_track_click]
4477
4486
  ])
4478
4487
  ]),
4479
- createElementVNode("div", _hoisted_4$a, [
4480
- createElementVNode("div", _hoisted_5$9, [
4488
+ createElementVNode("div", _hoisted_4$b, [
4489
+ createElementVNode("div", _hoisted_5$a, [
4481
4490
  _cache[9] || (_cache[9] = createElementVNode(
4482
4491
  "div",
4483
4492
  { class: "bean-img" },
@@ -4950,8 +4959,8 @@ script$t.__file = "src/balance/components/AccountView.vue";
4950
4959
  const _hoisted_1$p = { class: "balance-reminder" };
4951
4960
  const _hoisted_2$j = { class: "body" };
4952
4961
  const _hoisted_3$d = { class: "footer" };
4953
- const _hoisted_4$9 = { class: "col" };
4954
- const _hoisted_5$8 = { class: "col" };
4962
+ const _hoisted_4$a = { class: "col" };
4963
+ const _hoisted_5$9 = { class: "col" };
4955
4964
  var script$s = /* @__PURE__ */ defineComponent({
4956
4965
  __name: "BalanceReminder",
4957
4966
  props: {
@@ -4992,7 +5001,7 @@ var script$s = /* @__PURE__ */ defineComponent({
4992
5001
  )
4993
5002
  ]),
4994
5003
  createElementVNode("div", _hoisted_3$d, [
4995
- createElementVNode("div", _hoisted_4$9, [
5004
+ createElementVNode("div", _hoisted_4$a, [
4996
5005
  createVNode(_component_nut_button, {
4997
5006
  class: "cancel-button",
4998
5007
  onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", false)),
@@ -5009,7 +5018,7 @@ var script$s = /* @__PURE__ */ defineComponent({
5009
5018
  /* STABLE */
5010
5019
  })
5011
5020
  ]),
5012
- createElementVNode("div", _hoisted_5$8, [
5021
+ createElementVNode("div", _hoisted_5$9, [
5013
5022
  withDirectives((openBlock(), createBlock(_component_nut_button, {
5014
5023
  block: "",
5015
5024
  class: "recharge-button",
@@ -5147,8 +5156,8 @@ script$r.__file = "src/balance/components/DateRange.vue";
5147
5156
  const _hoisted_1$n = { class: "list-filter-picker" };
5148
5157
  const _hoisted_2$i = { class: "list-filter-picker-content" };
5149
5158
  const _hoisted_3$c = { class: "title" };
5150
- const _hoisted_4$8 = { class: "info" };
5151
- const _hoisted_5$7 = ["onClick"];
5159
+ const _hoisted_4$9 = { class: "info" };
5160
+ const _hoisted_5$8 = ["onClick"];
5152
5161
  const _hoisted_6$5 = { class: "list-filter-picker-btn spa-between" };
5153
5162
  var script$q = /* @__PURE__ */ defineComponent({
5154
5163
  __name: "ListFilterPicker",
@@ -5225,7 +5234,7 @@ var script$q = /* @__PURE__ */ defineComponent({
5225
5234
  1
5226
5235
  /* TEXT */
5227
5236
  ),
5228
- createElementVNode("div", _hoisted_4$8, [
5237
+ createElementVNode("div", _hoisted_4$9, [
5229
5238
  (openBlock(true), createElementBlock(
5230
5239
  Fragment,
5231
5240
  null,
@@ -5234,7 +5243,7 @@ var script$q = /* @__PURE__ */ defineComponent({
5234
5243
  onClick: () => onFilterSectionClick(item.name, it.value),
5235
5244
  class: normalizeClass([getItemClass(item.name, it.value), "info-item"]),
5236
5245
  key: i
5237
- }, toDisplayString(typeof it === "string" ? it : it.label), 11, _hoisted_5$7);
5246
+ }, toDisplayString(typeof it === "string" ? it : it.label), 11, _hoisted_5$8);
5238
5247
  }),
5239
5248
  128
5240
5249
  /* KEYED_FRAGMENT */
@@ -5350,8 +5359,8 @@ const _hoisted_1$m = {
5350
5359
  };
5351
5360
  const _hoisted_2$h = { class: "promoter-card-hd-num number" };
5352
5361
  const _hoisted_3$b = ["src"];
5353
- const _hoisted_4$7 = { class: "promoter-card-ft" };
5354
- const _hoisted_5$6 = {
5362
+ const _hoisted_4$8 = { class: "promoter-card-ft" };
5363
+ const _hoisted_5$7 = {
5355
5364
  key: 0,
5356
5365
  class: "promoter-card-ft-item"
5357
5366
  };
@@ -5509,8 +5518,8 @@ var script$o = /* @__PURE__ */ defineComponent({
5509
5518
  ])), [
5510
5519
  [_directive_track_click]
5511
5520
  ]) : createCommentVNode("v-if", true),
5512
- createElementVNode("div", _hoisted_4$7, [
5513
- __props.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
5521
+ createElementVNode("div", _hoisted_4$8, [
5522
+ __props.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
5514
5523
  __props.\u663E\u793A\u4E0B\u7EA7\u5206\u9500\u5546 ? (openBlock(), createElementBlock(
5515
5524
  Fragment,
5516
5525
  { key: 0 },
@@ -5952,8 +5961,8 @@ script$l.__file = "src/components/dd-selector/index.vue";
5952
5961
  const _hoisted_1$j = { class: "self-registration" };
5953
5962
  const _hoisted_2$f = { class: "self-registration-body" };
5954
5963
  const _hoisted_3$a = ["src"];
5955
- const _hoisted_4$6 = { class: "self-registration__input" };
5956
- const _hoisted_5$5 = { class: "self-registration-bottom" };
5964
+ const _hoisted_4$7 = { class: "self-registration__input" };
5965
+ const _hoisted_5$6 = { class: "self-registration-bottom" };
5957
5966
  var script$k = /* @__PURE__ */ defineComponent({
5958
5967
  __name: "SelfRegistration",
5959
5968
  props: {
@@ -6113,7 +6122,7 @@ var script$k = /* @__PURE__ */ defineComponent({
6113
6122
  required: ""
6114
6123
  }, {
6115
6124
  default: withCtx(() => [
6116
- createElementVNode("div", _hoisted_4$6, [
6125
+ createElementVNode("div", _hoisted_4$7, [
6117
6126
  withDirectives(createElementVNode(
6118
6127
  "input",
6119
6128
  {
@@ -6264,7 +6273,7 @@ var script$k = /* @__PURE__ */ defineComponent({
6264
6273
  /* STABLE */
6265
6274
  })
6266
6275
  ]),
6267
- createElementVNode("div", _hoisted_5$5, [
6276
+ createElementVNode("div", _hoisted_5$6, [
6268
6277
  withDirectives((openBlock(), createBlock(_component_nut_button, {
6269
6278
  block: "",
6270
6279
  type: "primary",
@@ -6575,7 +6584,7 @@ var script$i = /* @__PURE__ */ defineComponent({
6575
6584
  emits: ["detail", "close", "view", "popup", "hasBanner"],
6576
6585
  setup(__props, { emit: __emit }) {
6577
6586
  const props = __props;
6578
- const { toReadFun, noticeClick } = useNotice();
6587
+ const { noticeClick } = useNotice();
6579
6588
  const bannerMessages = ref([]);
6580
6589
  const popMessages = ref([]);
6581
6590
  const activeKey = ref(0);
@@ -7028,8 +7037,8 @@ const _hoisted_3$7 = {
7028
7037
  key: 0,
7029
7038
  class: "wrapper"
7030
7039
  };
7031
- const _hoisted_4$5 = ["onClick"];
7032
- const _hoisted_5$4 = { class: "time" };
7040
+ const _hoisted_4$6 = ["onClick"];
7041
+ const _hoisted_5$5 = { class: "time" };
7033
7042
  const _hoisted_6$3 = {
7034
7043
  key: 0,
7035
7044
  class: "notice-list-label"
@@ -7162,7 +7171,7 @@ var script$f = /* @__PURE__ */ defineComponent({
7162
7171
  createElementVNode("div", null, [
7163
7172
  createElementVNode(
7164
7173
  "div",
7165
- _hoisted_5$4,
7174
+ _hoisted_5$5,
7166
7175
  toDisplayString(formatMinutes(item.receiveTime)),
7167
7176
  1
7168
7177
  /* TEXT */
@@ -7219,7 +7228,7 @@ var script$f = /* @__PURE__ */ defineComponent({
7219
7228
  /* CLASS */
7220
7229
  )
7221
7230
  ])
7222
- ], 10, _hoisted_4$5)), [
7231
+ ], 10, _hoisted_4$6)), [
7223
7232
  [_directive_track_click, "\u6D88\u606F\u8BE6\u60C5"]
7224
7233
  ]);
7225
7234
  }),
@@ -7261,16 +7270,21 @@ var script$f = /* @__PURE__ */ defineComponent({
7261
7270
 
7262
7271
  script$f.__file = "src/notice/components/NoticeList.vue";
7263
7272
 
7264
- const _hoisted_1$d = {
7273
+ const _hoisted_1$d = ["onClick"];
7274
+ const _hoisted_2$9 = {
7275
+ key: 0,
7276
+ class: "custom-title-dot"
7277
+ };
7278
+ const _hoisted_3$6 = {
7265
7279
  key: 0,
7266
7280
  class: "read-all"
7267
7281
  };
7268
- const _hoisted_2$9 = {
7282
+ const _hoisted_4$5 = {
7269
7283
  key: 0,
7270
7284
  class: "news-item-title-icon",
7271
- src: "https://cdn.ddjf.com/static/images/loan-manage-app/ic_msg_system_notice.webp"
7285
+ src: "https://cdn.ddjf.com/static/images/fnfundkit/ic_msg_system_notice.png"
7272
7286
  };
7273
- const _hoisted_3$6 = { class: "news-item-time" };
7287
+ const _hoisted_5$4 = { class: "news-item-time" };
7274
7288
  var script$e = /* @__PURE__ */ defineComponent({
7275
7289
  __name: "NoticeList2",
7276
7290
  props: {
@@ -7281,9 +7295,28 @@ var script$e = /* @__PURE__ */ defineComponent({
7281
7295
  emits: ["itemClick"],
7282
7296
  setup(__props, { expose: __expose, emit: __emit }) {
7283
7297
  const props = __props;
7298
+ const tabList = ref([
7299
+ {
7300
+ label: "\u5168\u90E8",
7301
+ value: "\u5168\u90E8"
7302
+ },
7303
+ {
7304
+ label: "\u4E1A\u52A1\u6D88\u606F",
7305
+ value: "\u4E1A\u52A1\u6D88\u606F"
7306
+ },
7307
+ {
7308
+ label: "\u7CFB\u7EDF\u516C\u544A",
7309
+ value: "\u7CFB\u7EDF\u516C\u544A"
7310
+ },
7311
+ {
7312
+ label: "\u672A\u8BFB",
7313
+ value: "\u672A\u8BFB"
7314
+ }
7315
+ ]);
7284
7316
  const $http = useHttp$1(), \u663E\u793A\u9AA8\u67B6\u5C4F = ref(true);
7285
7317
  useDidShow(() => {
7286
7318
  nextPage(1);
7319
+ getNotice();
7287
7320
  });
7288
7321
  const state = reactive({
7289
7322
  search: "",
@@ -7336,6 +7369,7 @@ var script$e = /* @__PURE__ */ defineComponent({
7336
7369
  }
7337
7370
  function itemClick(item) {
7338
7371
  read(item);
7372
+ getNotice();
7339
7373
  emits("itemClick", item);
7340
7374
  }
7341
7375
  function read(item) {
@@ -7363,9 +7397,24 @@ var script$e = /* @__PURE__ */ defineComponent({
7363
7397
  });
7364
7398
  });
7365
7399
  } finally {
7400
+ getNotice();
7366
7401
  hideLoading();
7367
7402
  }
7368
7403
  }
7404
+ const noticeShow = ref(false);
7405
+ async function getNotice() {
7406
+ const appkitOptions = useAppKitOptions();
7407
+ const $http2 = useHttp$1();
7408
+ $http2.get("/cas/msg/count-unread", {
7409
+ deviceType: 2,
7410
+ appCode: props.app,
7411
+ tenantId: appkitOptions.tenant(),
7412
+ userId: props.userId
7413
+ }).then((result) => {
7414
+ if (typeof result === "object") return;
7415
+ noticeShow.value = result > 0;
7416
+ });
7417
+ }
7369
7418
  const emits = __emit;
7370
7419
  __expose({
7371
7420
  readAll
@@ -7381,7 +7430,7 @@ var script$e = /* @__PURE__ */ defineComponent({
7381
7430
  class: normalizeClass(["tabContainer", { inH5: unref(isWeb)() }])
7382
7431
  },
7383
7432
  [
7384
- createCommentVNode(' <ns-search\n v-track-search="{\n trackInput: false,\n trackSubmit: true,\n minLength: 2,\n }"\n style="margin: 0 12px"\n placeholder="\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22"\n v-model="state.search"\n ></ns-search> '),
7433
+ createCommentVNode(' <ns-tabs\r\n v-model="state.tab"\r\n fill="#fff"\r\n square\r\n size="xl"\r\n style="height: 46px"\r\n @change="onTabChange"\r\n >\r\n <ns-tabs-item key="\u5168\u90E8" tab="\u5168\u90E8"></ns-tabs-item>\r\n <ns-tabs-item key="\u4E1A\u52A1\u6D88\u606F" tab="\u4E1A\u52A1\u6D88\u606F"></ns-tabs-item>\r\n <ns-tabs-item key="\u7CFB\u7EDF\u516C\u544A" tab="\u7CFB\u7EDF\u516C\u544A"></ns-tabs-item>\r\n <ns-tabs-item key="\u672A\u8BFB" tab="\u672A\u8BFB"></ns-tabs-item>\r\n </ns-tabs> '),
7385
7434
  createVNode(unref(NsTabs), {
7386
7435
  modelValue: state.tab,
7387
7436
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.tab = $event),
@@ -7389,30 +7438,50 @@ var script$e = /* @__PURE__ */ defineComponent({
7389
7438
  square: "",
7390
7439
  size: "xl",
7391
7440
  style: { "height": "46px" },
7392
- onChange: onTabChange
7441
+ class: "news-tab",
7442
+ items: tabList.value
7393
7443
  }, {
7394
- default: withCtx(() => [
7395
- createVNode(unref(NsTabsItem), {
7396
- key: "\u5168\u90E8",
7397
- tab: "\u5168\u90E8"
7398
- }),
7399
- createVNode(unref(NsTabsItem), {
7400
- key: "\u4E1A\u52A1\u6D88\u606F",
7401
- tab: "\u4E1A\u52A1\u6D88\u606F"
7402
- }),
7403
- createVNode(unref(NsTabsItem), {
7404
- key: "\u7CFB\u7EDF\u516C\u544A",
7405
- tab: "\u7CFB\u7EDF\u516C\u544A"
7406
- }),
7407
- createVNode(unref(NsTabsItem), {
7408
- key: "\u672A\u8BFB",
7409
- tab: "\u672A\u8BFB"
7410
- })
7444
+ titles: withCtx(() => [
7445
+ (openBlock(true), createElementBlock(
7446
+ Fragment,
7447
+ null,
7448
+ renderList(tabList.value, (item) => {
7449
+ return openBlock(), createElementBlock("div", {
7450
+ class: normalizeClass([{ customLine: state.tab === item.value }, "nut-tabs__titles-item custom-tab-item"]),
7451
+ key: item.value,
7452
+ onClick: ($event) => {
7453
+ state.tab = item.value;
7454
+ onTabChange();
7455
+ }
7456
+ }, [
7457
+ createElementVNode(
7458
+ "div",
7459
+ {
7460
+ class: normalizeClass(["custom-title", { active: state.tab === item.value }])
7461
+ },
7462
+ [
7463
+ createElementVNode(
7464
+ "div",
7465
+ null,
7466
+ toDisplayString(item.label),
7467
+ 1
7468
+ /* TEXT */
7469
+ ),
7470
+ item.value === "\u672A\u8BFB" && noticeShow.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, " \u2022\u2022\u2022 ")) : createCommentVNode("v-if", true)
7471
+ ],
7472
+ 2
7473
+ /* CLASS */
7474
+ )
7475
+ ], 10, _hoisted_1$d);
7476
+ }),
7477
+ 128
7478
+ /* KEYED_FRAGMENT */
7479
+ ))
7411
7480
  ]),
7412
7481
  _: 1
7413
7482
  /* STABLE */
7414
- }, 8, ["modelValue"]),
7415
- state.list.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
7483
+ }, 8, ["modelValue", "items"]),
7484
+ state.list.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
7416
7485
  withDirectives((openBlock(), createElementBlock("div", {
7417
7486
  class: "btn",
7418
7487
  onClick: readAll
@@ -7469,7 +7538,7 @@ var script$e = /* @__PURE__ */ defineComponent({
7469
7538
  class: "news-item-title"
7470
7539
  },
7471
7540
  [
7472
- item.\u662F\u516C\u544A ? (openBlock(), createElementBlock("img", _hoisted_2$9)) : createCommentVNode("v-if", true),
7541
+ item.\u662F\u516C\u544A ? (openBlock(), createElementBlock("img", _hoisted_4$5)) : createCommentVNode("v-if", true),
7473
7542
  createTextVNode(
7474
7543
  " " + toDisplayString(item.\u6807\u9898),
7475
7544
  1
@@ -7490,7 +7559,7 @@ var script$e = /* @__PURE__ */ defineComponent({
7490
7559
  }, null, 8, ["style", "content"]),
7491
7560
  createElementVNode(
7492
7561
  "div",
7493
- _hoisted_3$6,
7562
+ _hoisted_5$4,
7494
7563
  toDisplayString(item.\u65F6\u95F4),
7495
7564
  1
7496
7565
  /* TEXT */