修改bug

This commit is contained in:
A1300399510
2023-07-27 16:25:10 +08:00
parent a5e6ebc76f
commit 67c90001e0
5 changed files with 51 additions and 16 deletions

View File

@@ -177,13 +177,15 @@
import { ref, toRefs, watchEffect, reactive, defineProps, nextTick } from 'vue';
import { useStore } from 'vuex';
import store from '../../store/index';
import { useRouter } from 'vue-router';
import { useRoute, useRouter } from 'vue-router';
import choosingIdentity from '@/components/edit/choosingIdentity.vue'
const usestore = useStore();
const { wechat } = toRefs(usestore.state);
const router = useRouter()
const route = useRoute()
const props = defineProps({
count: {
type: Number,
@@ -237,6 +239,9 @@ let pitchValue = ref({
keyword: "",
})
if (route.query['companyid']) pitchValue.value['companyid'] = route.query['companyid']
// 是否点击里 清除金额按钮 因为输入金额后再点击清除按钮是会先请求有金额的列表
let clearingAmountState = false
// 点击清除金额
@@ -260,23 +265,12 @@ const rentInput = () => clearingAmountState = false
// 点击历史搜索和热门推荐
const handleKeyword = value => {
// pitchValue.value['keyword'] = value
// console.log(pitchValue.value['keyword'], "pitchValue.value['keyword']");
// return
// if (!value) pitchValue.value['keyword']
// console.log(value, "value");
// return
console.log("pitchValue.value['keyword']", pitchValue.value['keyword']);
router.push(`/seachPage?keyword=${value}`)
if (historyArr.value.indexOf(value) == -1 && value) {
historyArr.value.unshift(value)
storingHistory()
}
// seachList()
}
//搜索数据