营销:装修页面适配搜索框

This commit is contained in:
owen
2023-11-04 22:06:40 +08:00
parent 82bce400d7
commit e55218330c
4 changed files with 26 additions and 24 deletions
@@ -29,24 +29,23 @@
v-model="state.searchVal"
/>
<view class="keyword-link ss-flex">
<view v-for="(item, index) in data.keywords" :key="index">
<view v-for="(item, index) in data.hotKeywords" :key="index">
<view
class="ss-m-r-16"
:style="[{ color: item.color }]"
@tap.stop="sheep.$router.go('/pages/goods/list', { keyword: item.text })"
>{{ item.text }}</view
:style="[{ color: data.textColor }]"
@tap.stop="sheep.$router.go('/pages/goods/list', { keyword: item })"
>{{ item }}</view
>
</view>
</view>
<view v-if="data.keywords && data.keywords.length && navbar" class="ss-flex">
<view v-if="data.hotKeywords && data.hotKeywords.length && navbar" class="ss-flex">
<button
class="ss-reset-button keyword-btn"
v-for="(item, index) in data.keywords"
v-for="(item, index) in data.hotKeywords"
:key="index"
:style="[{ color: item.color, marginRight: '10rpx' }]"
:style="[{ color: data.textColor, marginRight: '10rpx' }]"
>
{{ item.text }}
{{ item }}
</button>
</view>
</view>