@uxda/appkit 1.2.59 → 1.2.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/appkit.css CHANGED
@@ -1190,6 +1190,7 @@ page {
1190
1190
  display: flex;
1191
1191
  align-items: center;
1192
1192
  margin-bottom: 20px;
1193
+ font-weight: 600;
1193
1194
  }
1194
1195
  .notice-popup-hd-icon {
1195
1196
  width: 20px;
@@ -1210,6 +1211,7 @@ page {
1210
1211
  .notice-popup-bd-link {
1211
1212
  color: #007fff;
1212
1213
  margin-top: 2px;
1214
+ font-weight: 600;
1213
1215
  }
1214
1216
  .notice-popup-ft {
1215
1217
  display: flex;
@@ -1227,6 +1229,7 @@ page {
1227
1229
  border-radius: 15px;
1228
1230
  }
1229
1231
  .notice-banner {
1232
+ background: #e6f2ff;
1230
1233
  height: 30px;
1231
1234
  margin-bottom: 8px;
1232
1235
  }
package/dist/index.js CHANGED
@@ -3647,7 +3647,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
3647
3647
  bannerStyle: { type: null, required: false, default: "" },
3648
3648
  fixed: { type: Boolean, required: false, default: false }
3649
3649
  },
3650
- emits: ["detail", "close", "view"],
3650
+ emits: ["detail", "close", "view", "popup"],
3651
3651
  setup(__props, { emit: __emit }) {
3652
3652
  const props = __props;
3653
3653
  const { toReadFun, noticeClick } = useNotice();
@@ -3665,6 +3665,12 @@ var script$1 = /* @__PURE__ */ defineComponent({
3665
3665
  onMounted(() => {
3666
3666
  queryNoticeMsg();
3667
3667
  });
3668
+ watch(
3669
+ () => popMessages.value,
3670
+ () => {
3671
+ emits("popup", !!popMessages.value.length);
3672
+ }
3673
+ );
3668
3674
  async function queryNoticeMsg() {
3669
3675
  const appkitOptions = useAppKitOptions();
3670
3676
  const $http = useHttp();
@@ -3708,7 +3714,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
3708
3714
  stopMessageCarousel();
3709
3715
  const $http = useHttp();
3710
3716
  $http.post("/cas/msg/setMsgStatus", {
3711
- device: "PC",
3717
+ device: "MINI",
3712
3718
  deviceType: 0,
3713
3719
  noticeStatus: 1,
3714
3720
  receiveId: item.id
@@ -3718,7 +3724,6 @@ var script$1 = /* @__PURE__ */ defineComponent({
3718
3724
  icon: "none"
3719
3725
  });
3720
3726
  bannerMessages.value.splice(index, 1);
3721
- startMessageCarousel();
3722
3727
  }).catch(() => {
3723
3728
  startMessageCarousel();
3724
3729
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -33,7 +33,7 @@
33
33
  </template>
34
34
 
35
35
  <script lang="ts" setup>
36
- import { computed, onMounted, ref } from 'vue'
36
+ import { computed, onMounted, ref, watch } from 'vue'
37
37
  import { useHttp } from '../api'
38
38
  import { useAppKitOptions } from '../../Appkit'
39
39
  import DdNoticeBar from '../../components/dd-notice-bar/index.vue'
@@ -74,6 +74,13 @@ onMounted(() => {
74
74
  queryNoticeMsg()
75
75
  })
76
76
 
77
+ watch(
78
+ () => popMessages.value,
79
+ () => {
80
+ emits('popup', !!popMessages.value.length)
81
+ }
82
+ )
83
+
77
84
  // 查询当前用户当前应用系统消息
78
85
  async function queryNoticeMsg() {
79
86
  const appkitOptions = useAppKitOptions()
@@ -141,7 +148,7 @@ const onClose = debounce((item: any, index: number) => {
141
148
  })
142
149
  bannerMessages.value.splice(index, 1)
143
150
 
144
- startMessageCarousel()
151
+ // startMessageCarousel()
145
152
 
146
153
  // if (item.isRead === 0) {
147
154
  // toReadFun([item.id])
@@ -173,11 +180,12 @@ const onTouchEnd = debounce(() => {
173
180
  }, 100)
174
181
 
175
182
  // 父组件事件
176
- const emits = defineEmits(['detail', 'close', 'view'])
183
+ const emits = defineEmits(['detail', 'close', 'view', 'popup'])
177
184
  </script>
178
185
 
179
186
  <style lang="scss">
180
187
  .notice-banner {
188
+ background: #e6f2ff;
181
189
  height: 30px;
182
190
  margin-bottom: 8px;
183
191
  &.fixed {
@@ -120,6 +120,7 @@ const emits = defineEmits(['close', 'view'])
120
120
  display: flex;
121
121
  align-items: center;
122
122
  margin-bottom: 20px;
123
+ font-weight: 600;
123
124
  &-icon {
124
125
  width: 20px;
125
126
  height: 20px;
@@ -140,6 +141,7 @@ const emits = defineEmits(['close', 'view'])
140
141
  &-link {
141
142
  color: #007fff;
142
143
  margin-top: 2px;
144
+ font-weight: 600;
143
145
  }
144
146
  }
145
147
  &-ft {