diff --git a/api/user.js b/api/user.js
index d1c03d0..1509892 100644
--- a/api/user.js
+++ b/api/user.js
@@ -105,7 +105,8 @@ export function FetchUnbindReadCard(data) {
// 读者留言列表
// ?libcode=1&openId=1&page=0&phone=1&readCardNo=1&readName=1&size=10&title=1
-export function FetchInitReaderMessage(data) {
+// libcode openId page phone readCardNo readName size title
+ export function FetchInitReaderMessage(data) {
return request({
url: '/api/weixin/initReaderMessage',
data
@@ -138,18 +139,3 @@ export function FetchReaderMessage(data) {
data
});
}
-
-// 回复读者留言
-// {
-// "id": 0,
-// "reply": "回复"
-// }
-export function FetchReplyReaderMessage(data) {
- return request({
- url: '/api/weixin/replyReaderMessage',
- method: 'POST',
- data
- });
-}
-
-
diff --git a/pages/home/home.vue b/pages/home/home.vue
index c9474c5..890885f 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -172,6 +172,7 @@
+
{{ detail.title }}
{{ detail.suggestion }}
- {{ formatTimestamp(detail.suggestionTime) }}
+ {{ formatTimestamp(detail.suggestionTime) }}
馆方回复
{{ detail.reply }}
- 未回复
+ 暂未回复~
+ {{ formatTimestamp(detail.replyTime) }}
diff --git a/subpkg/pages/feedback-list/feedback-list.vue b/subpkg/pages/feedback-list/feedback-list.vue
index 48a6a87..a451aa2 100644
--- a/subpkg/pages/feedback-list/feedback-list.vue
+++ b/subpkg/pages/feedback-list/feedback-list.vue
@@ -20,6 +20,7 @@
{{ item.title }}
{{ formatTimestamp(item.suggestionTime) }}
+
加载中...
@@ -180,6 +181,7 @@ export default {
}
.feedback-item {
+ position: relative;
background-color: #fff;
border-radius: 8px;
padding: 15px;
diff --git a/subpkg/pages/ranking/ranking.vue b/subpkg/pages/ranking/ranking.vue
index 8d04626..ee23d56 100644
--- a/subpkg/pages/ranking/ranking.vue
+++ b/subpkg/pages/ranking/ranking.vue
@@ -16,8 +16,14 @@
+
+
+
+ 加载中...
+
+
-
+
暂无读者排行数据
@@ -31,6 +37,7 @@
]"
v-for="(item, index) in rankingData"
:key="index"
+ v-else
>
@@ -78,6 +85,7 @@ export default {
return {
rankingData: [],
defaultCover: '/static/images/default-book.png',
+ loading: true,
};
},
@@ -111,7 +119,7 @@ export default {
const formattedDate = `${year}-${month < 10 ? '0' + month : month}-${day < 10 ? '0' + day : day}`
const params = {
- 'libcode': config.LIB_CODE,
+ 'libcode': 'GD',
'starttime': formattedDate,
'endtime': this.getFormattedDate(new Date()),
'rownum': 10,
@@ -132,9 +140,11 @@ export default {
} else {
this.rankingData = [];
}
+ this.loading = false;
}).catch(error => {
console.error('排行接口错误', error)
this.rankingData = [];
+ this.loading = false;
})
}
}
@@ -194,6 +204,18 @@ export default {
min-height: 60vh;
}
+/* 加载中状态 */
+.loading {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ height: 50vh;
+ text-align: center;
+ color: #999;
+ font-size: 14px;
+}
+
/* 空状态 */
.empty {
height: 50vh;