@uxda/appkit 1.2.65 → 1.2.66

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
@@ -3726,7 +3726,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
3726
3726
  }).catch(() => {
3727
3727
  startMessageCarousel();
3728
3728
  });
3729
- }, 400);
3729
+ }, 350);
3730
3730
  async function onDetail(item) {
3731
3731
  await noticeClick(item);
3732
3732
  emits("detail", item);
@@ -3937,7 +3937,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
3937
3937
  },
3938
3938
  setup(__props) {
3939
3939
  const props = __props;
3940
- onMounted(() => {
3940
+ const init = debounce(() => {
3941
3941
  if (!props.app) {
3942
3942
  return Taro.showToast({
3943
3943
  title: "NoticeEntry\u7EC4\u4EF6\u7F3A\u5C11appcode",
@@ -3945,6 +3945,10 @@ var script$2 = /* @__PURE__ */ defineComponent({
3945
3945
  });
3946
3946
  }
3947
3947
  getNotice();
3948
+ }, 300);
3949
+ init();
3950
+ useDidShow(() => {
3951
+ init();
3948
3952
  });
3949
3953
  const noticeShow = ref(false);
3950
3954
  async function getNotice() {
@@ -4341,7 +4345,7 @@ var script = /* @__PURE__ */ defineComponent({
4341
4345
  }, null, 8, ["nodes"]),
4342
4346
  item.link && item.msgType == 3 ? (openBlock(), createElementBlock("span", {
4343
4347
  key: 0,
4344
- class: "account-news-file",
4348
+ class: "notice-list-file",
4345
4349
  onClick: ($event) => onNoticeView(item.link)
4346
4350
  }, " \u67E5\u770B\u9644\u4EF6 ", 8, _hoisted_7)) : createCommentVNode("v-if", true)
4347
4351
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.65",
3
+ "version": "1.2.66",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -159,7 +159,7 @@ const onClose = debounce((item: any, index: number) => {
159
159
  .catch(() => {
160
160
  startMessageCarousel()
161
161
  })
162
- }, 400)
162
+ }, 350)
163
163
 
164
164
  // 跳转详情
165
165
  async function onDetail(item) {
@@ -11,10 +11,11 @@
11
11
  </template>
12
12
 
13
13
  <script lang="ts" setup>
14
- import { onMounted, ref } from 'vue'
14
+ import { ref } from 'vue'
15
15
  import { useHttp } from '../api'
16
16
  import { useAppKitOptions } from '../../Appkit'
17
- import Taro from '@tarojs/taro'
17
+ import Taro, { useDidShow } from '@tarojs/taro'
18
+ import debounce from 'lodash/debounce'
18
19
 
19
20
  const props = withDefaults(
20
21
  defineProps<{
@@ -27,7 +28,7 @@ const props = withDefaults(
27
28
  }
28
29
  )
29
30
 
30
- onMounted(() => {
31
+ const init = debounce(() => {
31
32
  if (!props.app) {
32
33
  return Taro.showToast({
33
34
  title: 'NoticeEntry组件缺少appcode',
@@ -35,6 +36,11 @@ onMounted(() => {
35
36
  })
36
37
  }
37
38
  getNotice()
39
+ }, 300)
40
+
41
+ init()
42
+ useDidShow(() => {
43
+ init()
38
44
  })
39
45
 
40
46
  // 通知红点
@@ -39,7 +39,7 @@
39
39
  <rich-text style="white-space: pre-wrap" :nodes="item.context"></rich-text>
40
40
  <span
41
41
  v-if="item.link && item.msgType == 3"
42
- class="account-news-file"
42
+ class="notice-list-file"
43
43
  @click="onNoticeView(item.link)"
44
44
  >
45
45
  查看附件