Quellcode durchsuchen

搜索框修改

hwb0 vor 3 Jahren
Ursprung
Commit
a4bb981096
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 2 2
      packageGoods/goods/list.vue
  2. 2 2
      pages/core/index.vue

+ 2 - 2
packageGoods/goods/list.vue

@@ -5,7 +5,7 @@
 		<view class="fixed-top">
 			<!-- 搜索 -->
 			<view class="fixed-top-search flex">
-				<u--input v-model="title" @blur="pageList()" placeholder="请输入商品名称" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
+				<u--input v-model="title" @confirm="pageList()" confirmType="search" placeholder="请输入商品名称" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
 			</view>
 			<!-- 选择 -->
 			<view class="fixed-top-choice flex">
@@ -42,7 +42,7 @@
 								<image src="../../static/public/goods_coin.png" mode=""></image>
 								<view class="num">×{{ item.exchangePrice }}</view>
 							</view>
-							<view class="content-coin__right" v-if="item.originPrice">原:{{ item.originPrice }}</view>
+							<view class="content-coin__right" v-if="item.originPrice">原盲豆:{{ item.originPrice }}</view>
 						</view>
 						<view class="content-price">¥{{ $numberFormat(item.value) }}</view>
 					</view>

+ 2 - 2
pages/core/index.vue

@@ -4,7 +4,7 @@
 		<u-navbar leftIconSize="0" :placeholder="true" bgColor="#ffffff">
 			<view class="u-nav-slot" slot="left">
 				<view class="u-nav-slot__input flex">
-					<u--input v-model="goodsTitle" @blur="toGoodsList()" placeholder="搜索商品" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
+					<u--input v-model="goodsTitle" @confirm="toGoodsList()" confirmType="search" placeholder="搜索商品" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
 					<!-- <view class="u-nav-slot__input__btn" @click="toGoodsList()">搜索</view> -->
 				</view>
 			</view>
@@ -87,7 +87,7 @@
 								<image src="../../static/public/goods_coin.png" mode=""></image>
 								<view class="num">×{{ item.exchangePrice }}</view>
 							</view>
-							<view class="content-coin__right" v-if="item.originPrice">原:{{ item.originPrice }}</view>
+							<view class="content-coin__right" v-if="item.originPrice">原盲豆:{{ item.originPrice }}</view>
 						</view>
 						<view class="content-price">¥{{ $numberFormat(item.value) }}</view>
 					</view>