This commit is contained in:
aiShuiJiaoDeXioShou 2024-09-10 15:58:58 +08:00
parent ddd1bde192
commit 0b0a0d9663
6 changed files with 8 additions and 8 deletions

BIN
acdr-admin.zip Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
<template> <template>
<view <view
:class="[ :class="[
'pos-fixed z-999 left-[10px] flex gap-[10px] items-center content-center justify-center', 'pos-fixed z-999 left-[1px] flex gap-[5px] items-center content-center justify-center',
isH5 ? 'top-[20px]' : 'top-[40px]', isH5 ? 'top-[20px]' : 'top-[40px]',
]" ]"
> >

View File

@ -2,7 +2,7 @@
<view class="w-full h-full"> <view class="w-full h-full">
<wd-search <wd-search
v-model="value" v-model="value"
placeholder="每一次搜索与众不同" placeholder="搜索..."
cancel-txt="搜索" cancel-txt="搜索"
@search="search" @search="search"
@cancel="search" @cancel="search"

View File

@ -12,7 +12,7 @@
<Banner /> <Banner />
<AddressCell /> <AddressCell />
<!-- 这里放搜索框 --> <!-- 这里放搜索框 -->
<view class="w-[80vw] pos-absolute top-[53vw]"> <view class="w-[70vw] pos-absolute top-[3vw] right-0">
<Search /> <Search />
</view> </view>
<loading-animation v-model="isLoading" /> <loading-animation v-model="isLoading" />

View File

@ -3,6 +3,7 @@ package com.yskj.acdr.master.pet.controller;
import cn.dev33.satoken.stp.StpUtil; import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.io.FileUtil; import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yskj.acdr.common.response.GlobalResponse; import com.yskj.acdr.common.response.GlobalResponse;
import com.yskj.acdr.master.file.service.FileMapService; import com.yskj.acdr.master.file.service.FileMapService;
import com.yskj.acdr.master.pet.entity.PetExpertCertification; import com.yskj.acdr.master.pet.entity.PetExpertCertification;
@ -159,10 +160,9 @@ public class PetController {
*/ */
@GetMapping("/index") @GetMapping("/index")
public GlobalResponse<PetInfo> index() { public GlobalResponse<PetInfo> index() {
PetInfo one = petInfoService.lambdaQuery() List<PetInfo> one = petInfoService.list(new LambdaQueryWrapper<PetInfo>()
.eq(PetInfo::getUserId, StpUtil.getLoginIdAsLong()) .eq(PetInfo::getUserId, StpUtil.getLoginIdAsLong()));
.one(); return GlobalResponse.success(one.getFirst());
return GlobalResponse.success(one);
} }
} }

View File

@ -90,7 +90,7 @@ mybatis-plus:
mapper-locations: classpath*:com/yskj/**/master/**/mapper/xml/*.xml mapper-locations: classpath*:com/yskj/**/master/**/mapper/xml/*.xml
configuration: configuration:
# 开启MyBatis的SQL打印 # 开启MyBatis的SQL打印
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 当使用非实体类接收返回数据时字段值若为空则返回null不设置此项会忽略为null的字段 # 当使用非实体类接收返回数据时字段值若为空则返回null不设置此项会忽略为null的字段
call-setters-on-nulls: true call-setters-on-nulls: true