From 7a3e953bb481d3d511a4bf2282716b1084ca31fa Mon Sep 17 00:00:00 2001 From: lzx_win <2602107437@qq.com> Date: Fri, 26 Sep 2025 15:28:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=B4=E5=AE=A0?= =?UTF-8?q?=E5=B8=88=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改getUrl.js将环境从release改为develop 在companionPetList.vue中添加isZ参数 更新order.js中伴宠师列表接口地址并添加加载状态 调整CompanionItem.vue中经验年数字段路径 --- api/order/order.js | 10 ++++++++-- components/CompanionItem/CompanionItem.vue | 2 +- pages_order/companionPetList/companionPetList.vue | 1 + utils/getUrl.js | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/api/order/order.js b/api/order/order.js index 65da025..bebdfcd 100644 --- a/api/order/order.js +++ b/api/order/order.js @@ -15,14 +15,20 @@ export const bindCode = (params) => { // 查询伴宠师列表 export function getTeacherList(params) { + uni.showLoading({ + title: '加载中' + }) return request({ - url: '/applet/mall/teacher/getTeacherList', + // url: '/applet/mall/teacher/getTeacherList', + url: '/applet/mall/teacher/v2/getTeacherList', headers: { "isToken": true }, method: 'get', params - }) + }).finally(n => { + uni.hideLoading() + }) } diff --git a/components/CompanionItem/CompanionItem.vue b/components/CompanionItem/CompanionItem.vue index c47b065..22b7841 100644 --- a/components/CompanionItem/CompanionItem.vue +++ b/components/CompanionItem/CompanionItem.vue @@ -42,7 +42,7 @@ - 养宠{{ item.experience || 0 }}年 | 评价{{ item.commentNum || 0 }}条 | 服务小结{{ item.serviceSummaryNum || 0 }}份 + 养宠{{ item.appletUsersTeacher && item.appletUsersTeacher.experience || 0 }}年 | 评价{{ item.commentNum || 0 }}条 | 服务小结{{ item.serviceSummaryNum || 0 }}份 点击查看详情 diff --git a/pages_order/companionPetList/companionPetList.vue b/pages_order/companionPetList/companionPetList.vue index 30b46c1..5dddce8 100644 --- a/pages_order/companionPetList/companionPetList.vue +++ b/pages_order/companionPetList/companionPetList.vue @@ -266,6 +266,7 @@ // longitude: 106.55073, // petTypes: ["1", "2"], staffName: this.value,//搜素字段 + isZ : 1, } if(this.filterOptions.gender){ diff --git a/utils/getUrl.js b/utils/getUrl.js index 7f40537..c2498c1 100644 --- a/utils/getUrl.js +++ b/utils/getUrl.js @@ -1,4 +1,4 @@ -let current ="release"; +let current ="develop"; const accountInfo = wx.getAccountInfoSync(); // current = accountInfo.miniProgram.envVersion;