@uxda/appkit 1.2.71 → 1.2.72
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 +24 -0
- package/dist/index.js +27 -27
- package/package.json +1 -1
- package/src/notice/components/NoticePopup.vue +1 -3
package/dist/appkit.css
CHANGED
|
@@ -448,6 +448,30 @@
|
|
|
448
448
|
.user-feedback-entry:active {
|
|
449
449
|
background: rgba(255, 255, 255, 0.7);
|
|
450
450
|
}
|
|
451
|
+
.login-setting {
|
|
452
|
+
position: fixed;
|
|
453
|
+
z-index: 4;
|
|
454
|
+
left: 12px;
|
|
455
|
+
top: 10px;
|
|
456
|
+
bottom: 10px;
|
|
457
|
+
align-items: center;
|
|
458
|
+
justify-content: center;
|
|
459
|
+
width: calc(100% - 24px);
|
|
460
|
+
background: #ffffff;
|
|
461
|
+
border-radius: 5px;
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
}
|
|
465
|
+
.login-setting-img {
|
|
466
|
+
height: 111px;
|
|
467
|
+
width: 198px;
|
|
468
|
+
}
|
|
469
|
+
.login-setting-text {
|
|
470
|
+
margin-top: 10px;
|
|
471
|
+
color: #353535;
|
|
472
|
+
opacity: 0.4;
|
|
473
|
+
font-size: 12px;
|
|
474
|
+
}
|
|
451
475
|
.amount-picker {
|
|
452
476
|
padding: 14px 0 14px 14px;
|
|
453
477
|
}
|
package/dist/index.js
CHANGED
|
@@ -3510,32 +3510,6 @@ function useHttp() {
|
|
|
3510
3510
|
return $http;
|
|
3511
3511
|
}
|
|
3512
3512
|
|
|
3513
|
-
function useNotice() {
|
|
3514
|
-
async function noticeClick(item, cb) {
|
|
3515
|
-
if (item.isRead === 0) {
|
|
3516
|
-
await toReadFun([item.id || item.msgId]);
|
|
3517
|
-
}
|
|
3518
|
-
if (item.link) {
|
|
3519
|
-
cb && cb(item.link);
|
|
3520
|
-
}
|
|
3521
|
-
return true;
|
|
3522
|
-
}
|
|
3523
|
-
async function toReadFun(msgIds) {
|
|
3524
|
-
const $http = useHttp();
|
|
3525
|
-
return new Promise((resolve) => {
|
|
3526
|
-
$http.post("/cas/msg/read", msgIds).then(() => {
|
|
3527
|
-
resolve(true);
|
|
3528
|
-
}).catch(() => {
|
|
3529
|
-
resolve(false);
|
|
3530
|
-
});
|
|
3531
|
-
});
|
|
3532
|
-
}
|
|
3533
|
-
return {
|
|
3534
|
-
noticeClick,
|
|
3535
|
-
toReadFun
|
|
3536
|
-
};
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
3513
|
const _hoisted_1$5 = /* @__PURE__ */ createElementVNode(
|
|
3540
3514
|
"div",
|
|
3541
3515
|
{ class: "notice-popup-hd" },
|
|
@@ -3597,7 +3571,7 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
3597
3571
|
createElementVNode(
|
|
3598
3572
|
"div",
|
|
3599
3573
|
_hoisted_3$4,
|
|
3600
|
-
toDisplayString(_ctx.message.context),
|
|
3574
|
+
toDisplayString(_ctx.message.context.replace("\u3010\u7CFB\u7EDF\u516C\u544A\u3011 ", "")),
|
|
3601
3575
|
1
|
|
3602
3576
|
/* TEXT */
|
|
3603
3577
|
),
|
|
@@ -3623,6 +3597,32 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
3623
3597
|
|
|
3624
3598
|
script$5.__file = "src/notice/components/NoticePopup.vue";
|
|
3625
3599
|
|
|
3600
|
+
function useNotice() {
|
|
3601
|
+
async function noticeClick(item, cb) {
|
|
3602
|
+
if (item.isRead === 0) {
|
|
3603
|
+
await toReadFun([item.id || item.msgId]);
|
|
3604
|
+
}
|
|
3605
|
+
if (item.link) {
|
|
3606
|
+
cb && cb(item.link);
|
|
3607
|
+
}
|
|
3608
|
+
return true;
|
|
3609
|
+
}
|
|
3610
|
+
async function toReadFun(msgIds) {
|
|
3611
|
+
const $http = useHttp();
|
|
3612
|
+
return new Promise((resolve) => {
|
|
3613
|
+
$http.post("/cas/msg/read", msgIds).then(() => {
|
|
3614
|
+
resolve(true);
|
|
3615
|
+
}).catch(() => {
|
|
3616
|
+
resolve(false);
|
|
3617
|
+
});
|
|
3618
|
+
});
|
|
3619
|
+
}
|
|
3620
|
+
return {
|
|
3621
|
+
noticeClick,
|
|
3622
|
+
toReadFun
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
3626
|
const _hoisted_1$4 = /* @__PURE__ */ createElementVNode(
|
|
3627
3627
|
"img",
|
|
3628
3628
|
{
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/>系统公告
|
|
14
14
|
</div>
|
|
15
15
|
<div class="notice-popup-bd">
|
|
16
|
-
<div style="white-space: pre-wrap">{{ message.context }}</div>
|
|
16
|
+
<div style="white-space: pre-wrap">{{ message.context.replace('【系统公告】 ', '') }}</div>
|
|
17
17
|
<div
|
|
18
18
|
v-if="message.jumpUrl || message.link"
|
|
19
19
|
class="notice-popup-bd-link"
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
32
|
import { onMounted, ref } from 'vue'
|
|
33
33
|
import { useHttp } from '../api'
|
|
34
|
-
import { useNotice } from './useNotice'
|
|
35
34
|
|
|
36
35
|
const props = withDefaults(
|
|
37
36
|
defineProps<{
|
|
@@ -42,7 +41,6 @@ const props = withDefaults(
|
|
|
42
41
|
}
|
|
43
42
|
)
|
|
44
43
|
|
|
45
|
-
const { noticeClick } = useNotice()
|
|
46
44
|
const showPopup = ref(true)
|
|
47
45
|
|
|
48
46
|
onMounted(() => {})
|