| | |
| | | |
| | | <div> |
| | | <div class="category">活动名称:</div> |
| | | <div class="category-value"> |
| | | <div class="category-value search-activity"> |
| | | <input |
| | | type="text" |
| | | placeholder="请输入…" |
| | |
| | | class="category-input" |
| | | @input="inputChange" |
| | | /> |
| | | <div |
| | | class="clear" |
| | | v-show="isShowActivityClearBtn" |
| | | @click="clearActivitySearchValue" |
| | | title="清空" |
| | | > |
| | | <img src="../../../public/img/icon/clear.png" alt /> |
| | | </div> |
| | | <button class="category-button el-icon-search" @click="searchClick"></button> |
| | | </div> |
| | | </div> |
| | |
| | | video6: false, |
| | | video7: false, |
| | | video8: false, |
| | | } |
| | | }, |
| | | isShowActivityClearBtn: false, |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | |
| | | inputChange (e) { |
| | | console.log(e) |
| | | if (this.searchActivity == '') { |
| | | this.isShowActivityClearBtn = false |
| | | } else { |
| | | this.isShowActivityClearBtn = true |
| | | } |
| | | }, |
| | | |
| | | // 点击搜索 |
| | |
| | | this.searchExtensivelyChange() |
| | | }, |
| | | |
| | | clearActivitySearchValue () { |
| | | this.searchActivity = '' |
| | | this.inputChange() |
| | | this.searchClick() |
| | | }, |
| | | |
| | | getRegionList (positionNewStr) { |
| | | getRegionList(1, 15, positionNewStr).then(res => { |
| | | console.log(11, res.data.data.list) |
| | |
| | | .category-value { |
| | | flex: 1; |
| | | } |
| | | .search-activity { |
| | | position: relative; |
| | | .clear { |
| | | position: absolute; |
| | | top: 0; |
| | | right: 70px; |
| | | cursor: pointer; |
| | | |
| | | img { |
| | | width: 12px; |
| | | height: 12px; |
| | | margin-top: 8px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | input { |
| | | width: 209px; |