|
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
<view class="left flex-center-x"> |
|
|
|
|
<i class="iconfont2 iconsousuo"></i> |
|
|
|
|
<input v-model.trim="search" confirm-type="search" @input="onSearch(search)" placeholder="搜索课程讲师" /> |
|
|
|
|
<i v-show="search" class="iconfont iconguanbi2" @click="search = ''"></i> |
|
|
|
|
<i v-show="search" class="iconfont iconguanbi2" @click.stop="search = '';onSearch(search)"></i> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="specialList.length" class="special-section"> |
|
|
|
@ -87,7 +87,7 @@ export default { |
|
|
|
|
onSearch: debounce(function () { |
|
|
|
|
this.page = 1; |
|
|
|
|
this.finished = false; |
|
|
|
|
this.specialList = false; |
|
|
|
|
this.specialList = []; |
|
|
|
|
this.getSpecialList(); |
|
|
|
|
}, 500), |
|
|
|
|
async getSpecialList() { |
|
|
|
@ -131,6 +131,14 @@ export default { |
|
|
|
|
margin: 0 auto; |
|
|
|
|
.left { |
|
|
|
|
background: #fff; |
|
|
|
|
padding-right: 100rpx; |
|
|
|
|
position: relative; |
|
|
|
|
.iconfont { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 50%; |
|
|
|
|
right: 31rpx; |
|
|
|
|
transform: translateY(-50%); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.search-page .special-section uni-navigator { |
|
|
|
|