diff --git a/common/fishMarketApi.js b/common/fishMarketApi.js
index 3af9bdc..1917002 100644
--- a/common/fishMarketApi.js
+++ b/common/fishMarketApi.js
@@ -86,6 +86,10 @@ export function getFishUnreadSummary() {
return tui.request('/app/fishmarket/unread/summary', 'GET', {}, false, true, true).then(unwrap)
}
+export function markAllFishUnreadRead() {
+ return tui.request('/app/fishmarket/unread/read-all', 'POST', {}, false, false, true).then(unwrap)
+}
+
export function deleteFishComment(id) {
return tui.request(`/app/fishmarket/comments/${id}`, 'DELETE', {}, false, false, true).then(unwrap)
}
@@ -142,10 +146,18 @@ export function pageMyFishSessions(data = {}) {
return tui.request('/app/fishmarket/my/sessions', 'POST', data, false, false, true).then(unwrap)
}
+export function deleteMyFishSessionMessage(id) {
+ return tui.request(`/app/fishmarket/my/sessions/${id}`, 'DELETE', {}, false, false, true).then(unwrap)
+}
+
export function pageMyFishMessageComments(data = {}) {
return tui.request('/app/fishmarket/my/message-comments', 'POST', data, false, false, true).then(unwrap)
}
+export function deleteMyFishCommentMessage(id) {
+ return tui.request(`/app/fishmarket/my/message-comments/${id}`, 'DELETE', {}, false, false, true).then(unwrap)
+}
+
export function pageMyFishComments(data = {}) {
return tui.request('/app/fishmarket/my/comments', 'POST', data, false, false, true).then(unwrap)
}
diff --git a/components/tab-bar/postList.vue b/components/tab-bar/postList.vue
index edbc7a2..3c093a9 100644
--- a/components/tab-bar/postList.vue
+++ b/components/tab-bar/postList.vue
@@ -120,6 +120,10 @@
>
{{item.xiangyao}}
+
+
+ {{item.browseCount}}
+
@@ -208,7 +212,7 @@
imageKey: 'graduation',
action: 'mine'
}],
- baseCategories: ['推荐', '最新'],
+ baseCategories: ['推荐', '最新', '热门'],
categoryList: [],
goodsList: [],
pageNum: 1,
@@ -518,7 +522,7 @@
const category = this.categories[this.categoryIndex]
const categoryItem = this.categoryList.find(item => item.name == category)
const area = this.getArea()
- const sortType = this.sortType || (category == '附近' ? 'school' : (category == '最新' ? 'latest' : 'hot'))
+ const sortType = category == '热门' ? 'favorite' : (category == '最新' ? 'latest' : (this.sortType || (category == '附近' ? 'school' : 'hot')))
const query = {
pageNum: this.pageNum,
pageSize: this.pageSize,
@@ -553,6 +557,7 @@
price: isWant ? (item.expectedPrice || 0) : (item.price || 0),
originalPrice: item.originPrice,
xiangyao: item.likeCount || 0,
+ browseCount: item.browseCount || 0,
distance: item.distance || '本校',
icon: item.userAvatar || '/static/images/img/songshu.png',
shopName: item.userName || '校园同学',
@@ -985,6 +990,7 @@
}
.category-row {
+ margin-top: -15rpx;
height: 80rpx;
display: flex;
align-items: center;
@@ -1193,6 +1199,15 @@
font-size: 17rpx;
}
+ .browse-count {
+ margin-left: 10rpx;
+ display: flex;
+ align-items: center;
+ gap: 3rpx;
+ color: #a1aaa6;
+ font-size: 17rpx;
+ }
+
.page-like-effect {
position: fixed;
top: 0;
diff --git a/package1/address/addressList.vue b/package1/address/addressList.vue
index b3fefc8..ad603d9 100644
--- a/package1/address/addressList.vue
+++ b/package1/address/addressList.vue
@@ -39,9 +39,10 @@
-
-