docs: annotate account commerce finance and content pages
This commit is contained in:
1 parent
60827b8bfb
commit
2be21c1c62
24 files changed
+223
No files matched your search
@@ -1,4 +1,7 @@
|
||||
<script>
|
||||
/**
|
||||
* 平台公告:分类、关键词和排序分页查询;详情路由与资源中心嵌入共用加载逻辑,列表和详情分别维护请求代次。
|
||||
*/
|
||||
import "~/assets/styles/notices.BXNGOj-Q.css";
|
||||
definePageMeta({
|
||||
key: (e) => e.fullPath,
|
||||
@@ -100,6 +103,7 @@ var ue = {
|
||||
B = ref(``),
|
||||
V = 0,
|
||||
H = !1;
|
||||
// 公告分类独立加载;失败单独显示分类错误,不混淆正文状态。
|
||||
async function U() {
|
||||
B.value = ``;
|
||||
try {
|
||||
@@ -110,6 +114,7 @@ var ue = {
|
||||
(B.value = e instanceof Error ? e.message : `公告分类加载失败`);
|
||||
}
|
||||
}
|
||||
// 应用搜索词并回到第一页。
|
||||
function W() {
|
||||
((I.value = F.value.trim()), (N.value = 1), Z());
|
||||
}
|
||||
@@ -119,6 +124,7 @@ var ue = {
|
||||
J = ref(``),
|
||||
Y = ref(null),
|
||||
X = 0;
|
||||
// 读取当前分页和筛选的公告;较早的响应或离页响应不再覆盖列表。
|
||||
async function Z() {
|
||||
let e = ++V;
|
||||
((j.value = !0), (M.value = ``));
|
||||
@@ -142,6 +148,7 @@ var ue = {
|
||||
!H && e === V && (j.value = !1);
|
||||
}
|
||||
}
|
||||
// 打开公告详情前清空上一条正文,只有当前详情请求可以更新弹窗。
|
||||
async function Q(e) {
|
||||
let t = ++X;
|
||||
((G.value = !0),
|
||||
@@ -162,9 +169,11 @@ var ue = {
|
||||
t === X && (q.value = !1);
|
||||
}
|
||||
}
|
||||
// 把零基分页器事件转换为接口页码,并使用事件给出的每页条数。
|
||||
function _e(e) {
|
||||
((N.value = e.page + 1), (P.value = e.rows), Z());
|
||||
}
|
||||
// 从公告详情路由解析 ID,无效编号只提示,不发送详情请求。
|
||||
async function $() {
|
||||
if (H) return;
|
||||
let e = O.query.id !== void 0 || O.path === `/notices/notice`,
|
||||
|
||||
Reference in new issue
Block a user