fix: 修正顶部导航栏扫一扫图标

pull/158/head
卢越 2025-07-28 14:07:51 +08:00
parent dda213fc9b
commit 030f7525f8
1 changed files with 12 additions and 7 deletions

View File

@ -12,11 +12,16 @@
]" ]"
:class="[{ 'border-content': navbar }]" :class="[{ 'border-content': navbar }]"
> >
<view class="ss-flex ss-col-center" <view
:class="[placeholderPosition === 'center' ? 'ss-row-center' : 'ss-row-left']" class="ss-flex ss-col-center"
v-if="navbar" style="width: 100%;" :class="[placeholderPosition === 'center' ? 'ss-row-center' : 'ss-row-left']"
v-if="navbar"
style="width: 100%"
> >
<view class="search-icon _icon-search" :style="{ color: fontColor, margin: '0 10rpx' }"></view> <view
class="search-icon _icon-search"
:style="{ color: fontColor, margin: '0 10rpx' }"
></view>
<view class="search-input ss-line-1" :style="{ color: fontColor }"> <view class="search-input ss-line-1" :style="{ color: fontColor }">
{{ placeholder }} {{ placeholder }}
</view> </view>
@ -24,10 +29,10 @@
<!-- 右侧扫一扫图标 --> <!-- 右侧扫一扫图标 -->
<view <view
v-if="showScan" v-if="showScan"
class="scan-icon _icon-add-round-o" class="scan-icon _icon-scan"
:style="{ color: fontColor }" :style="{ color: fontColor }"
@tap.stop="onScan" @tap.stop="onScan"
style="margin-left: auto;" style="margin-left: auto"
> >
</view> </view>
<uni-search-bar <uni-search-bar
@ -46,7 +51,7 @@
class="ss-m-r-16" class="ss-m-r-16"
:style="[{ color: data.textColor }]" :style="[{ color: data.textColor }]"
@tap.stop="sheep.$router.go('/pages/goods/list', { keyword: item })" @tap.stop="sheep.$router.go('/pages/goods/list', { keyword: item })"
>{{ item }} >{{ item }}
</view> </view>
</view> </view>
</view> </view>