ccjgmwz 3 年之前
父节点
当前提交
242f3be232
共有 3 个文件被更改,包括 8 次插入6 次删除
  1. 4 1
      pageA/product/lookup.vue
  2. 4 4
      pages/tran/tran.vue
  3. 0 1
      websocket_sdk.js

+ 4 - 1
pageA/product/lookup.vue

@@ -4,7 +4,7 @@
 			<view style='background:#fff;display:flex;' class="cu-bar search">
 			<view style='flex:6;' class="search-form round" >
 				<text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
-				<input type="text" maxlength="20" v-model="searchKeyWord" @input='search' placeholder="请输入货名或标题" confirm-type="search"></input>
+				<input type="text" maxlength="20" v-model="searchKeyWord" @confirm="doSearch()" @input='search' placeholder="请输入货名或标题" confirm-type="search"></input>
 				
 			</view>
 			<view @click='doSearch()' style="width:4%;flex:1;">搜索</view>
@@ -183,6 +183,9 @@
 					this.loadOldKeyword()
 					this.loadHotKeyword()
 				}
+				else{
+					this.searchKeyWord = e.detail.value
+				}
 			},
 			blur(){
 				uni.hideKeyboard()

+ 4 - 4
pages/tran/tran.vue

@@ -15,12 +15,12 @@
 			<swiper-item class="tab-content" data-id="1">
 				<scroll-view class="list-scroll-content" scroll-y @scrolltolower="onReachBottomTmp">
 					<block v-if="TabCur==0">
-						<view class="cu-bar search">
+						<!-- <view class="cu-bar search">
 							<view class="search-form round" @click="naviageToPage('/pageA/product/search?TabCur=2')">
 								<text class="cuIcon-search"></text>
 								<input type="text" placeholder="搜索" confirm-type="search"></input>
 							</view>
-						</view>
+						</view> -->
 						<view class="guess-section">
 							<view 
 								v-for="(item , index) in tranInfo" :key="index"
@@ -57,12 +57,12 @@
 			<swiper-item class="tab-content" data-id="0">
 				<scroll-view class="list-scroll-content" scroll-y @scrolltolower="onReachBottomTmp">
 					<block v-if="TabCur==1">
-						<view class="cu-bar search">
+						<!-- <view class="cu-bar search">
 							<view class="search-form round" @click="naviageToPage('/pageA/product/search?TabCur=3')">
 								<text class="cuIcon-search"></text>
 								<input type="text" placeholder="搜索" confirm-type="search"></input>
 							</view>
-						</view>
+						</view> -->
 						<view class="guess-section">
 							<view 
 								v-for="(item, index) in carInfo" :key="index"

+ 0 - 1
websocket_sdk.js

@@ -291,7 +291,6 @@ export default class Websocket {
 			    },
 			    method: 'GET',
 			    success: (res) => {			
-					console.log("websocket myTips",res)
 					if (res.data.data) {
 			    		let name = 'myTip';
 			    		let value = res.data.data.myTip;