diff --git a/api/user.js b/api/user.js index 47fa112..d1c03d0 100644 --- a/api/user.js +++ b/api/user.js @@ -101,4 +101,55 @@ export function FetchUnbindReadCard(data) { method: 'POST', data }); -} \ No newline at end of file +} + +// 读者留言列表 +// ?libcode=1&openId=1&page=0&phone=1&readCardNo=1&readName=1&size=10&title=1 +export function FetchInitReaderMessage(data) { + return request({ + url: '/api/weixin/initReaderMessage', + data + }); +} + +// 根据id查看读者留言详情 +// ?id=1 +export function FetchReaderMessageDetailsById(data) { + return request({ + url: '/api/weixin/getReaderMessageDetailsById', + data + }); +} + +// 读者留言 +// { +// "libcode": "馆代码", +// "openid": "string", +// "phone": "联系方式", +// "readCardNo": "读者证号", +// "readName": "读者名称", +// "suggestion": "建议", +// "title": "标题" +// } +export function FetchReaderMessage(data) { + return request({ + url: '/api/weixin/readerMessage', + method: 'POST', + data + }); +} + +// 回复读者留言 +// { +// "id": 0, +// "reply": "回复" +// } +export function FetchReplyReaderMessage(data) { + return request({ + url: '/api/weixin/replyReaderMessage', + method: 'POST', + data + }); +} + + diff --git a/components/book-list-item/book-list-item.vue b/components/book-list-item/book-list-item.vue index 97a5e05..5431d41 100644 --- a/components/book-list-item/book-list-item.vue +++ b/components/book-list-item/book-list-item.vue @@ -4,7 +4,7 @@ @@ -19,8 +19,6 @@