Commit 44528c49 by zhangxw

fix(venus-usedcar-quality): 选择销售顾问pad端回车无法搜索修改

1 parent 3d1872c7
Pipeline #198 for 44528c49 failed in 0 seconds
...@@ -114,11 +114,13 @@ function toggleSelect(o: OptionItem) { ...@@ -114,11 +114,13 @@ function toggleSelect(o: OptionItem) {
<van-field v-model="keywordInput" <van-field v-model="keywordInput"
class="cp-searchField" class="cp-searchField"
clearable clearable
enterkeyhint="search"
placeholder="" placeholder=""
type="search"
@blur="isFocused = false" @blur="isFocused = false"
@clear="onClear" @clear="onClear"
@focus="isFocused = true" @focus="isFocused = true"
@keyup.enter="onSearch" /> @keydown.enter="onSearch" />
<div v-if="!hasInput && !isFocused" class="cp-searchPlaceholder"> <div v-if="!hasInput && !isFocused" class="cp-searchPlaceholder">
<span class="cp-searchPlaceholderText">{{ isPad ? "请输入" : "搜索" }}</span> <span class="cp-searchPlaceholderText">{{ isPad ? "请输入" : "搜索" }}</span>
<van-icon class="cp-searchPlaceholderIcon" name="search" /> <van-icon class="cp-searchPlaceholderIcon" name="search" />
...@@ -143,12 +145,12 @@ function toggleSelect(o: OptionItem) { ...@@ -143,12 +145,12 @@ function toggleSelect(o: OptionItem) {
</div> </div>
</template> </template>
<template v-else> <template v-else>
<van-empty description="暂无数据" /> <van-empty description="暂无数据" image="https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png" />
</template> </template>
</div> </div>
<div v-else>
<div v-else class="cp-grid">
<template v-if="!isEmpty"> <template v-if="!isEmpty">
<div class="cp-grid">
<div v-for="o in filteredOptions" <div v-for="o in filteredOptions"
:key="o.sellerUserId" :key="o.sellerUserId"
class="cp-grid-item" class="cp-grid-item"
...@@ -160,11 +162,15 @@ function toggleSelect(o: OptionItem) { ...@@ -160,11 +162,15 @@ function toggleSelect(o: OptionItem) {
class="selected-icon" class="selected-icon"
src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/pad_selected.png"> src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/pad_selected.png">
</div> </div>
</div>
</template> </template>
<template v-else> <template v-else>
<van-empty description="暂无数据" /> <van-empty description="暂无数据"
image="https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png"
style="margin: 0 auto;" />
</template> </template>
</div> </div>
</div> </div>
<div class="cp-footer"> <div class="cp-footer">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!