diff --git a/common/server/news.js b/common/server/news.js index 701b63a..2e1744d 100644 --- a/common/server/news.js +++ b/common/server/news.js @@ -9,6 +9,7 @@ import HttpRequest from "../system/request"; */ export const getFeaturedNewsList = async (page = 1, pageSize = 10, title = "") => { const res = await HttpRequest.getOrCache('/get_featured_news_list', { page, limit: pageSize, title }, 300); + console.log("getFeaturedNewsList", res); return res.data; } /** diff --git a/common/system/request.js b/common/system/request.js index 44035ea..8372c48 100644 --- a/common/system/request.js +++ b/common/system/request.js @@ -146,7 +146,7 @@ class HttpRequest { console.log(requestUrl, "请求消耗时间", endDate - startDate); const normalizedRes = normalizeResponseKeys(res); - resolve(normalizedRes); + resolve(normalizedRes.data); }, fail: e => { console.error('网络请求失败:', e); diff --git a/components/youdas-container/no-data.vue b/components/youdas-container/no-data.vue new file mode 100644 index 0000000..74d507b --- /dev/null +++ b/components/youdas-container/no-data.vue @@ -0,0 +1,61 @@ + + + + + \ No newline at end of file diff --git a/components/youdas-container/page-container.vue b/components/youdas-container/page-container.vue new file mode 100644 index 0000000..e69de29 diff --git a/pages/index/index.vue b/pages/index/index.vue index 9455435..6e430f9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -28,10 +28,7 @@ onLoad(async () => { } navigateTo('/pages/news/news'); - // const config = await getConfig(); - // console.log('config', config); - // const config1 = await getConfig(); - // console.log('config1', config1); + }); /** * 检查网络状态 diff --git a/pages/news/news.vue b/pages/news/news.vue index 4ab3b4e..39ee63d 100644 --- a/pages/news/news.vue +++ b/pages/news/news.vue @@ -10,170 +10,174 @@ - - + + - {{item.title}} + {{ item.title }} - {{item.tiem}} + {{ item.publish_time }} - + + + - \ No newline at end of file diff --git a/static/app-plus/no-data.png b/static/app-plus/no-data.png index a825ac0..17fd706 100644 Binary files a/static/app-plus/no-data.png and b/static/app-plus/no-data.png differ