6.9
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user