提交 b17a76fe authored 作者: 龙菲's avatar 龙菲

修改搜索框为点击按钮后再搜索

上级 6a8b8d49
差异被折叠。
<template> <template>
<div class="content"> <div class="content">
<!-- 展览图片 --> <!-- 文物图片 -->
<div <div class="content-item display-detail_imgs" ref="imgs">
class=" <img
content-item class="animate__animated animate__fadeInDownBig"
display-detail_imgs v-if="CRDetail.imagesVo && CRDetail.imagesVo.length > 0"
id="faceImage"
animate__animated animate__fadeInDownBig :src="$getFullUrl(CRDetail.imagesVo[0].pressUrl)"
" />
ref="imgs"
v-if="CRDetail.faceImageUrl || CRDetail.imagesVo.length > 0"
>
<img <img
id="faceImage" id="faceImage"
:src=" v-else-if="CRDetail.faceImagePressUrl"
$getFullUrl( class="animate__animated animate__fadeInDownBig"
CRDetail.faceImagePressUrl || CRDetail.imagesVo[0].pressUrl :src="CRDetail.faceImagePressUrl"
)
"
/> />
</div> </div>
<div class="wrapper wow animate__animated animate__fadeInUpBig"> <div class="wrapper wow animate__animated animate__fadeInUpBig">
<div class="inner"> <div class="inner">
<!-- 展览基本信息 --> <!-- 展览基本信息 -->
...@@ -640,6 +636,7 @@ $blue: #2069c4; ...@@ -640,6 +636,7 @@ $blue: #2069c4;
background-color: #fff; background-color: #fff;
.info-container-left { .info-container-left {
min-height: 200px; min-height: 200px;
max-height: 400px;
margin-right: 50px; margin-right: 50px;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
......
...@@ -238,9 +238,9 @@ export default { ...@@ -238,9 +238,9 @@ export default {
this.onlyShow3d = value; this.onlyShow3d = value;
this.search(); this.search();
}, },
keyword(value) { // keyword(value) {
debounce(this.handleKeyWordChange(value), 1000); //500ms // debounce(this.handleKeyWordChange(value), 1000); //500ms
}, // },
}, },
methods: { methods: {
search() { search() {
......
<template> <template>
<div class="content"> <div class="content">
<!-- 展览图片 --> <!-- 展览图片 -->
<div <div class="content-item display-detail_imgs" ref="imgs">
class=" <img
content-item class="animate__animated animate__fadeInDownBig"
display-detail_imgs
animate__animated animate__fadeInDownBig
"
ref="imgs"
v-if="displayDetail.imagesVo && displayDetail.imagesVo.length > 0" v-if="displayDetail.imagesVo && displayDetail.imagesVo.length > 0"
> id="faceImage"
:src="$getFullUrl(displayDetail.imagesVo[0].pressUrl)"
/>
<img <img
id="faceImage" id="faceImage"
:src=" v-else-if="displayDetail.faceImagePressUrl"
$getFullUrl( class="animate__animated animate__fadeInDownBig"
displayDetail.faceImagePressUrl || :src="displayDetail.faceImagePressUrl"
displayDetail.imagesVo[0].pressUrl
)
"
/> />
</div> </div>
<div class="wrapper wow animate__animated animate__fadeInUpBig"> <div class="wrapper wow animate__animated animate__fadeInUpBig">
......
...@@ -206,11 +206,11 @@ export default { ...@@ -206,11 +206,11 @@ export default {
this.loadData(); this.loadData();
this.loadRegionTree(); this.loadRegionTree();
}, },
watch: { // watch: {
keyword(value) { // keyword(value) {
debounce(this.handleKeyWordChange(value), 1000); //500ms // debounce(this.handleKeyWordChange(value), 1000); //500ms
}, // },
}, // },
methods: { methods: {
search() { search() {
this.loadData(); this.loadData();
...@@ -256,10 +256,10 @@ export default { ...@@ -256,10 +256,10 @@ export default {
this.type = value; this.type = value;
this.loadData(); this.loadData();
}, },
handleKeyWordChange(value) { // handleKeyWordChange(value) {
this.keyword = value; // this.keyword = value;
this.loadData(); // this.loadData();
}, // },
handleRegionChange(value) { handleRegionChange(value) {
this.regionCode = value; this.regionCode = value;
......
...@@ -169,11 +169,11 @@ export default { ...@@ -169,11 +169,11 @@ export default {
this.loadData(); this.loadData();
this.loadRegionTree(); this.loadRegionTree();
}, },
watch: { // watch: {
keyword(value) { // keyword(value) {
debounce(this.handleKeyWordChange(value), 1000); //500ms // debounce(this.handleKeyWordChange(value), 1000); //500ms
}, // },
}, // },
methods: { methods: {
search() { search() {
this.loadData(); this.loadData();
......
...@@ -175,11 +175,11 @@ export default { ...@@ -175,11 +175,11 @@ export default {
this.loadData(); this.loadData();
this.loadRegionTree(); this.loadRegionTree();
}, },
watch: { // watch: {
keyword(value) { // keyword(value) {
debounce(this.handleKeyWordChange(value), 1000); //500ms // debounce(this.handleKeyWordChange(value), 1000); //500ms
}, // },
}, // },
methods: { methods: {
search() { search() {
this.loadData(); this.loadData();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论