@@ -31,7 +31,6 @@
class="news-item flex items-center justify-between"
v-for="item in newsList"
:key="item.id"
- @mouseenter="changeCurrentData(item)"
>
@@ -152,6 +151,7 @@ const {prefixCls: prefixNews} = useDesign('news-wrap');
const {prefixCls: prefixInform} = useDesign('inform-wrap');
const {prefixCls: prefixRule} = useDesign('rule-wrap');
const {prefixCls: prefixCase} = useDesign('case-wrap');
+const store = useAppStore()
const {getToken, setLoginVisible} = useUserInfo()
const classList = reactive({
news: [`${prefixNews} mai-section`],
diff --git a/pages/rules.vue b/pages/rules.vue
index 3d37fe8..e1aba96 100644
--- a/pages/rules.vue
+++ b/pages/rules.vue
@@ -4,21 +4,45 @@
-
-
- {{ item.title }}
- {{ item.description }}
- {{ dayjs(item.createtime * 1000).format('YYYY-MM-DD hh:mm:ss') }}
-
+
+
+
+
+
+
+
{{ dayjs(item.createtime * 1000).format('YYYY-MM-DD') }}
+
{{
+ item.title
+ }}
+
{{ item.description }}
+
+ 查看详情
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -35,7 +59,7 @@ useHead({
title:'法规标准'
})
import {randomUUID} from '~~/utils';
-const {setTotal, current, total, setCurrentPage, limit, pagesRef} = usePagination(1, 4, 0)
+const {setTotal, current, total, setCurrentPage, limit, pagesRef} = usePagination(1, 6, 0)
const { technicalApi } = useApi()
const {prefixCls} = useDesign('mai-wrap');
@@ -78,9 +102,16 @@ async function getData() {
getData()
-
diff --git a/pages/search/[id].vue b/pages/search/[id].vue
index 3f64cc4..60ae884 100644
--- a/pages/search/[id].vue
+++ b/pages/search/[id].vue
@@ -1,23 +1,57 @@
-
-
-
-
{{ item.title }}
- {{ categoryNames[item.category_id] }}
-
-
-
{{ item.description }}
-
-
-
+
+
+
+
+
+
{{ item.title }}
+ {{
+ categoryNames[item.category_id].name
+ }}
+
+
+
{{ item.desc }}
+
+
+
+
+
+
+
+
+
+
{{ item.title }}
+ {{
+ routes[route.path.split('/')[2]]
+ }}
+
+
+
{{ item.description }}
+
+
+
+
文章来源: {{
+ item.fromDesc
+ }}
+
{{
+ dayjs(item.createtime * 1000).format('YYYY-MM-DD hh:mm:ss')
+ }}
+
+
+
+
+
+
@@ -33,6 +67,8 @@