This commit is contained in:
zoujiandong
2025-05-29 17:01:07 +08:00
parent 1ee5968dfe
commit 6684bf1e29
23 changed files with 2834 additions and 39 deletions
+17 -11
View File
@@ -2,25 +2,25 @@
<view class="navbox">
<view class="bg"></view>
<view class="namebox">
<view class="logo">logo</view>
<view class="logo">
<up--image
:src="logoImg"
width="62rpx"
height="62rpx"
radius="50%"
></up--image>
</view>
<view class="name">{{ navName }}</view>
</view>
<view class="search">
<view class="searchwrap">
<!-- <up--image
:src="ssImg"
class="ssImg"
mode="widthFix"
width="30rpx"
height="30rpx"
></up--image> -->
<input type="text" class="ipt" v-model="keyWord" :placeholder="placeholder"/>
<up-icon name="search" size="26" color="#999" @click="search"></up-icon>
</view>
<up--image
:src="headImg"
@click="goMy"
mode="widthFix"
width="62rpx"
height="62rpx"
@@ -33,7 +33,7 @@
<script setup>
import { ref, watch} from "vue";
import headImg from "@/static/headImg.png";
import ssImg from "@/static/ss.png";
import logoImg from "@/static/logo.png";
const keyWord = ref('');
const props=defineProps({
searchWord:{
@@ -62,6 +62,11 @@ watch(()=>props.type,(newVal)=>{
watch(()=>props.searchWord,(newVal)=>{
keyWord.value=newVal
})
const goMy=()=>{
uni.navigateTo({
url:'/pages/my/my'
})
}
const search=()=>{
// if (!keyWord.value) {
// return uni.showToast({
@@ -104,6 +109,7 @@ const search=()=>{
padding-top: 102rpx;
margin: 0rpx 30rpx 0rpx;
display: flex;
align-items: center;
.name {
margin-left: 16rpx;
font-size: 30rpx;