Browse Source

fix: 修复伴宠师列表加载问题并更新环境配置

修改getUrl.js将环境从release改为develop
在companionPetList.vue中添加isZ参数
更新order.js中伴宠师列表接口地址并添加加载状态
调整CompanionItem.vue中经验年数字段路径
master
主管理员 2 weeks ago
parent
commit
7a3e953bb4
4 changed files with 11 additions and 4 deletions
  1. +8
    -2
      api/order/order.js
  2. +1
    -1
      components/CompanionItem/CompanionItem.vue
  3. +1
    -0
      pages_order/companionPetList/companionPetList.vue
  4. +1
    -1
      utils/getUrl.js

+ 8
- 2
api/order/order.js View File

@ -15,14 +15,20 @@ export const bindCode = (params) => {
// 查询伴宠师列表 // 查询伴宠师列表
export function getTeacherList(params) { export function getTeacherList(params) {
uni.showLoading({
title: '加载中'
})
return request({ return request({
url: '/applet/mall/teacher/getTeacherList',
// url: '/applet/mall/teacher/getTeacherList',
url: '/applet/mall/teacher/v2/getTeacherList',
headers: { headers: {
"isToken": true "isToken": true
}, },
method: 'get', method: 'get',
params params
})
}).finally(n => {
uni.hideLoading()
})
} }


+ 1
- 1
components/CompanionItem/CompanionItem.vue View File

@ -42,7 +42,7 @@
</view> </view>
<view> <view>
<view class="personal-item-bottom" v-if="showNumerBtn"> <view class="personal-item-bottom" v-if="showNumerBtn">
<text class="personal-item-bottom-text">养宠{{ item.experience || 0 }} | 评价{{ item.commentNum || 0 }} | 服务小结{{ item.serviceSummaryNum || 0 }}</text>
<text class="personal-item-bottom-text">养宠{{ item.appletUsersTeacher && item.appletUsersTeacher.experience || 0 }} | 评价{{ item.commentNum || 0 }} | 服务小结{{ item.serviceSummaryNum || 0 }}</text>
</view> </view>
<view class="personal-item-bottom" v-else-if="showDetailBtn"> <view class="personal-item-bottom" v-else-if="showDetailBtn">
<text class="personal-item-bottom-text">点击查看详情</text> <text class="personal-item-bottom-text">点击查看详情</text>


+ 1
- 0
pages_order/companionPetList/companionPetList.vue View File

@ -266,6 +266,7 @@
// longitude: 106.55073, // longitude: 106.55073,
// petTypes: ["1", "2"], // petTypes: ["1", "2"],
staffName: this.value,// staffName: this.value,//
isZ : 1,
} }
if(this.filterOptions.gender){ if(this.filterOptions.gender){


+ 1
- 1
utils/getUrl.js View File

@ -1,4 +1,4 @@
let current ="release";
let current ="develop";
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
// current = accountInfo.miniProgram.envVersion; // current = accountInfo.miniProgram.envVersion;


Loading…
Cancel
Save