This commit is contained in:
zoujiandong
2025-06-09 08:38:59 +08:00
parent 6684bf1e29
commit db955ff4f3
15 changed files with 1565 additions and 550 deletions
+7 -5
View File
@@ -34,7 +34,7 @@
</template>
<script setup>
import { ref, watch} from "vue";
import { ref, watch,defineEmits} from "vue";
import headImg from "@/static/headImg.png";
import logoImg from "@/static/logo.png";
const keyWord = ref('');
@@ -65,11 +65,13 @@ watch(()=>props.type,(newVal)=>{
watch(()=>props.searchWord,(newVal)=>{
keyWord.value=newVal
})
const emit = defineEmits(['changeWord'])
const goMy=()=>{
uni.navigateTo({
url:'/pages/my/my'
})
}
const goBack = () => {
uni.navigateBack({
delta: 1,
@@ -82,10 +84,10 @@ const search=()=>{
// icon:'none'
// });
// }
uni.navigateTo({
url: `/pages/search/search?keyWord=${keyWord.value}`,
});
emit('changeWord',keyWord.value)
// uni.navigateTo({
// url: `/pages/search/search?keyWord=${keyWord.value}`,
// });
}
</script>