diff --git a/jiuyi2/api/news.js b/jiuyi2/api/news.js index 24f8a137..fa7ac454 100644 --- a/jiuyi2/api/news.js +++ b/jiuyi2/api/news.js @@ -207,6 +207,16 @@ export const news = { method: 'POST' }) }, + + // 群聊发消息 + getMessageList(param) { + return util.request({ + url: `/user/chat/getMessageList`, + query: param.query, + data: param.data, + method: 'GET' + }) + }, } export default news \ No newline at end of file diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index 15eed9e5..36402503 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -422,6 +422,19 @@ const shop = { url: `/shopify/reviews/findReviewByProductId`, query: param.query, method: 'GET', + load: true, + }) + }, + + /** + * 分页查询商品评论列表 + * @param {Object} param + */ + recentOrder(param) { + return util.request({ + url: `/shopify/appOrder/recentOrder`, + query: param.query, + method: 'GET', }) }, } diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index 9ef496fa..a7122f2c 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -7,8 +7,9 @@ const config = { // #endif // #ifndef H5 host: 'http://91f.xyz:8080', - // host: 'http://22vn9z.natappfree.cc', - // host: 'https://63fdb472.r24.cpolar.top', + // host: 'http://6t42vi.natappfree.cc', + // host: 'http://nrpnpc.natappfree.cc', + // host: 'http://6aa4a4c3.r24.cpolar.top', // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/components/news/book.vue b/jiuyi2/components/news/book.vue index f32387a7..8577e803 100644 --- a/jiuyi2/components/news/book.vue +++ b/jiuyi2/components/news/book.vue @@ -209,13 +209,14 @@ // 移除加好友监听 function removelistener() { - uni.$chat.off(TencentCloudChat.EVENT.FRIEND_LIST_UPDATED); + uni.$chat.off(TencentCloudChat.EVENT.FRIEND_LIST_UPDATED, () => {}); } // 获取朋友列表 function getFriendList() { // 验证sdk是否准备完毕 let isReady = uni.$chat.isReady(); + console.log('getFriendList', isReady) if (!isReady) { setTimeout(function() { @@ -223,6 +224,7 @@ }, 500); return } + console.log('getFriendList') // api.news.getFriendList().then(rs => { diff --git a/jiuyi2/components/news/msgList.vue b/jiuyi2/components/news/msgList.vue index b132c915..1bc07c77 100644 --- a/jiuyi2/components/news/msgList.vue +++ b/jiuyi2/components/news/msgList.vue @@ -81,10 +81,19 @@ // 获取朋友列表 function getList() { - uni.$chat.getConversationList().then(rs => { - // console.log('getConversation', rs) - list.length = 0 - list.push(...rs.data.conversationList) + api.news.getMessageList({ + query: { + userId: userinfo.value.id, + } + }).then(rs => { + if (rs.code == 200) { + // + return + } + util.alert({ + content: rs.msg, + showCancel: false, + }) }) } @@ -202,7 +211,8 @@ --> - + - {{ util.formatTime('MM-dd HH:mm',item.lastMessage.lastTime) }} + + {{ util.formatTime('MM-dd HH:mm',item.lastMessage.lastTime) }} {{item.lastMessage.messageForShow}} diff --git a/jiuyi2/components/public/jy-shop-navigation/index.vue b/jiuyi2/components/public/jy-shop-navigation/index.vue index 642dd330..de64fd65 100644 --- a/jiuyi2/components/public/jy-shop-navigation/index.vue +++ b/jiuyi2/components/public/jy-shop-navigation/index.vue @@ -1,180 +1,171 @@ \ No newline at end of file diff --git a/jiuyi2/pages.json b/jiuyi2/pages.json index 05bb9d0a..d3958805 100644 --- a/jiuyi2/pages.json +++ b/jiuyi2/pages.json @@ -505,7 +505,8 @@ "path": "pages/shop/commodity/evaluate", "style": { "navigationBarTitleText": "商品评价", - "navigationBarBackgroundColor": "#fff" + "navigationBarBackgroundColor": "#fff", + "enablePullDownRefresh": true } }, { diff --git a/jiuyi2/pages/index/index.nvue b/jiuyi2/pages/index/index.nvue index d47c4eea..f5bf6ddb 100644 --- a/jiuyi2/pages/index/index.nvue +++ b/jiuyi2/pages/index/index.nvue @@ -277,6 +277,7 @@ // 获取首页分页视频 api.video.homeVideo({ query: { + userId: userinfo.value.id || 0, pageNum: recList.pageNum, pageSize: recList.pageSize, } diff --git a/jiuyi2/pages/index/wallet/wallet.vue b/jiuyi2/pages/index/wallet/wallet.vue index 983cc257..6ec07685 100644 --- a/jiuyi2/pages/index/wallet/wallet.vue +++ b/jiuyi2/pages/index/wallet/wallet.vue @@ -192,7 +192,7 @@ 商家明细 - + diff --git a/jiuyi2/pages/mine/mine.vue b/jiuyi2/pages/mine/mine.vue index 843639d8..be0ee4af 100644 --- a/jiuyi2/pages/mine/mine.vue +++ b/jiuyi2/pages/mine/mine.vue @@ -112,23 +112,23 @@ - + 待付款 - + 待发货 - + 待收货 - + 评价 - + 退款/售后 @@ -171,7 +171,7 @@ diff --git a/jiuyi2/pages/shop/commodity/index.vue b/jiuyi2/pages/shop/commodity/index.vue index 72e55944..52149fb3 100644 --- a/jiuyi2/pages/shop/commodity/index.vue +++ b/jiuyi2/pages/shop/commodity/index.vue @@ -1,4 +1,5 @@