| | |
| | | <el-dropdown trigger="click" @command="handleCommand" style="margin-right: .3rem;"> |
| | | <view @click="iconClick(2)" class="s2 ss1 "></view> |
| | | <el-dropdown-menu v-if="isCommand" slot="dropdown"> |
| | | <el-dropdown-item command="1" icon="el-icon-plus">修改密码</el-dropdown-item> |
| | | <el-dropdown-item command="2" icon="el-icon-circle-plus">退出登录</el-dropdown-item> |
| | | <el-dropdown-item command="1" >修改密码</el-dropdown-item> |
| | | <el-dropdown-item command="2" >退出登录</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <view @click="iconClick(item+2)" v-for="item in 1" :key="item" :class="'s'+(item+2)" |
| | |
| | | // 搜索 |
| | | onSearch(val) { |
| | | uni.navigateTo({ |
| | | url: '/pages/knowledgeBase/knowledgeBase?name=' + val.text |
| | | url: '/pages/knowledgeBase/knowledgeBase?keyword=' + val.text |
| | | }) |
| | | }, |
| | | // 搜索 |
| | | // 切换搜索框的展开和收起状态 |
| | | toggleSearch() { |
| | | console.log('sdf'); |
| | | // console.log('撒旦范德萨发生的',this.searchInput); |
| | | this.isExpanded = !this.isExpanded; |
| | | this.$nextTick(() => { |
| | | if (this.searchInput.trim() !== '') { |
| | | uni.navigateTo({ |
| | | url: '/pages/knowledgeBase/knowledgeBase?name=' + this.searchInput |
| | | url: '/pages/knowledgeBase/knowledgeBase?keyword=' + this.searchInput |
| | | }) |
| | | // console.log('搜索', this.searchInput); |
| | | } else { |
| | | console.log('不搜索'); |
| | | } |
| | | |
| | | this.searchInput = ''; |
| | | console.log(this.isExpanded); |
| | | }) |
| | | }, |
| | | // 列表项跳转 |