From 00eafbd444d046d572d251674f34147a899dc63d Mon Sep 17 00:00:00 2001 From: 15004070936 <1097449274@qq.com> Date: Fri, 17 Jul 2026 16:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 26 +++++---- components/chat/submit.vue | 5 +- pages.json | 2 +- pages/book/book.vue | 93 ++++++++++++++++++------------ pages/book/bookinfo.vue | 56 +++++++++--------- pages/book/bookpj.vue | 74 ++++++++++++------------ pages/book/bookshop.vue | 39 +++++++------ pages/book/bookteacher.vue | 45 ++++++++------- pages/category/category.vue | 111 ++++++++++++++++++------------------ pages/chatbox/chat-box1.vue | 2 +- pages/chatbox/chat.vue | 2 +- pages/product/cdetail.vue | 36 ++++++------ pages/product/cxlist.vue | 46 +++++++-------- pages/product/detail.vue | 56 +++++++++--------- pages/product/list.vue | 62 ++++++++++---------- pages/product/order.vue | 92 +++++++++++++++--------------- pages/user/courselist.vue | 86 +++++++++++++++------------- pages/user/mycollect.vue | 62 ++++++++++---------- pages/user/mycustom.vue | 82 ++++++++++++++++---------- pages/user/user.vue | 78 ++++++++++++------------- 20 files changed, 556 insertions(+), 499 deletions(-) diff --git a/App.vue b/App.vue index 9399570..78fa9ed 100644 --- a/App.vue +++ b/App.vue @@ -29,7 +29,7 @@ onLaunch() { // 判断版本更新 需要真机进行测试 //checkupdate(); - + // 极光推送start------------------------------ //#ifdef APP-PLUS // 消息推送 @@ -89,7 +89,7 @@ // url: `/pages/chatbox/chat` // }); // } - + uni.reLaunch({ url: `/pages/chatbox/chat` }); @@ -125,7 +125,7 @@ let extras = result.extras console.log("自定义消息", result) }) - + //#endif // 极光推送end-------------- @@ -230,10 +230,10 @@ this.reconnecting = true; // 重新加载一次个人信息,目的是为了保证网络已经正常且token有效 uni.$http.get('/api/getInfo').then((res) => { - uni.showToast({ - title: '连接已断开,尝试重新连接...', - icon: 'none' - }) + // uni.showToast({ + // title: '连接已断开,尝试重新连接...', + // icon: 'none' + // }) // 重新连接 let token = uni.getStorageSync("token"); wsApi.reconnect(this.$wsUrl, token); @@ -416,10 +416,10 @@ this.$store.dispatch('friendStore/loadFriend'), this.$store.dispatch('groupStore/loadGroup') ]).then(() => { - uni.showToast({ - title: "已重新连接", - icon: 'none' - }); + // uni.showToast({ + // title: "已重新连接", + // icon: 'none' + // }); // 加载离线消息 const chatState = this.$store.state.chatStore; this.pullPrivateOfflineMessage(chatState.privateMsgMaxId); @@ -431,6 +431,10 @@ }, loadFriendInfo(id, callback) { let friend = this.$store.getters['friendStore/findFriend'](id) + if (!friend) { + this.$store.dispatch('friendStore/loadFriend') + friend = this.$store.getters['friendStore/findFriend'](id) + } if (!friend) { console.log("未知用户:", id) friend = { diff --git a/components/chat/submit.vue b/components/chat/submit.vue index 2f7a5fc..aa3a061 100644 --- a/components/chat/submit.vue +++ b/components/chat/submit.vue @@ -67,7 +67,7 @@ - {{vlength}}″ + {{vlength<=50?60-vlength:60-vlength+'秒后自动发送'}}″ 上滑取消录音 @@ -340,8 +340,7 @@ export default { this.vlength = i; i++; //结束计时 - if (i > 60) { - clearInterval(this.timer); + if (i >= 60) { this.touchend(); } }, 1000) diff --git a/pages.json b/pages.json index b7745d5..66f23c4 100644 --- a/pages.json +++ b/pages.json @@ -404,7 +404,7 @@ "path": "pages/book/bookshop", "style" : { - "navigationBarTitleText": "预约学员", + "navigationBarTitleText": "全店预约学员", "enablePullDownRefresh": false } }, diff --git a/pages/book/book.vue b/pages/book/book.vue index 9aa3b16..68ce2f0 100644 --- a/pages/book/book.vue +++ b/pages/book/book.vue @@ -1,25 +1,25 @@ @@ -134,7 +134,7 @@ "lessCnt": "3", }, remark:null - + }; }, onLoad(options) { @@ -157,6 +157,10 @@ } }, methods: { + formatTime(timeStr) { + // 假设 timeStr 格式为 "HH:MM:SS" + return timeStr.slice(0, 5); // 取前5位 "HH:MM" + }, getimgRemoteFile(img){ if(img){ img=img.split(',')[0]; @@ -240,7 +244,7 @@ // icon: 'success', // duration: 2000 // }); - + // 刷新保存 myCache('courserefresh',1); uni.showModal({ @@ -263,8 +267,8 @@ } } }); - - + + } else{ uni.showModal({ @@ -279,7 +283,7 @@ }); } }, - + } } @@ -321,11 +325,17 @@ flex-direction: row; justify-content: center; align-items: center; - .osimg{ - width: 120rpx; - height: 120rpx; - border-radius: 10rpx; - } + .osimg{ + margin-left: 24%; + width: 300rpx; + height: 300rpx; + margin-right: 10rpx; + >image { + width: 300rpx; + height: 300rpx; + border-radius: 10rpx; + } + } .osrcon{ display: flex; flex-direction: column; @@ -341,6 +351,7 @@ padding-bottom: 15rpx; } .oscell{ + display: flex; flex-direction: row; align-items: center; @@ -353,7 +364,7 @@ } } } - + .oinfo{ padding:20rpx; position: relative; @@ -366,7 +377,7 @@ padding: 20rpx 20rpx; } } - + .tcon{ display: flex; flex-direction: column; @@ -393,14 +404,14 @@ } } } - + .red{ color:#ff3d0e; } .green{ color:#00cd00; } - + ::v-deep.uni-radio-input-checked{ background-color: #00A99A !important; border-color: #00A99A !important; @@ -410,7 +421,7 @@ ::v-deep.uni-radio-input-checked::before{ display: none!important; } - + .scell{ display: flex; flex-wrap: wrap; @@ -472,11 +483,17 @@ flex-direction: row; justify-content: center; align-items: center; - .osimg{ - width: 160rpx; - height: 260rpx; - border-radius: 10rpx; - } + .osimg{ + margin-left: 24%; + width: 300rpx; + height: 300rpx; + margin-right: 10rpx; + >image { + width: 300rpx; + height: 300rpx; + border-radius: 10rpx; + } + } .osname{ display: flex; flex: 1; @@ -513,7 +530,7 @@ font-size: 26rpx; color: #333; margin-right: 10rpx; - } + } .txtbg3{ padding: 2rpx 15rpx; border-radius: 30rpx; @@ -597,6 +614,6 @@ } } } - - + + diff --git a/pages/book/bookinfo.vue b/pages/book/bookinfo.vue index 9212097..d205aae 100644 --- a/pages/book/bookinfo.vue +++ b/pages/book/bookinfo.vue @@ -1,8 +1,8 @@