refactor(merch detail): extract search placeholder to lang config
extract the hardcoded search input placeholder into internationalization language config, unify the text with the existing common lang entry
This commit is contained in:
@@ -2439,6 +2439,7 @@ export const lang = {
|
|||||||
grounding: "下架",
|
grounding: "下架",
|
||||||
listing: "上架",
|
listing: "上架",
|
||||||
consultNow: "立即咨询",
|
consultNow: "立即咨询",
|
||||||
|
searchGoodsPlaceholder: "请输入您要搜索的商品",
|
||||||
sameDay: "当日达",
|
sameDay: "当日达",
|
||||||
nextDay: "次日达",
|
nextDay: "次日达",
|
||||||
dayAfter: "隔日达",
|
dayAfter: "隔日达",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<view class="search-wrap uni-flex uni-row" style="margin-bottom: 20rpx;">
|
<view class="search-wrap uni-flex uni-row" style="margin-bottom: 20rpx;">
|
||||||
<view class="flex-item input-wrap">
|
<view class="flex-item input-wrap">
|
||||||
<input class="uni-input" maxlength="50" v-model="keyword" @confirm="search()" placeholder="请输入您要搜索的商品" />
|
<input class="uni-input" maxlength="50" v-model="keyword" @confirm="search()" :placeholder="$lang('merch.searchGoodsPlaceholder')" />
|
||||||
<text class="iconfont icon-sousuo3" @click.stop="search()"></text>
|
<text class="iconfont icon-sousuo3" @click.stop="search()"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="iconfont" :class="{ 'icon-apps': isList, 'icon-list': !isList }" @click="changeListStyle()"></view>
|
<view class="iconfont" :class="{ 'icon-apps': isList, 'icon-list': !isList }" @click="changeListStyle()"></view>
|
||||||
|
|||||||
Reference in New Issue
Block a user