Browse Source

前端gjy

gjy 3 years ago
parent
commit
4c5247b023
1 changed files with 13 additions and 41 deletions
  1. 13 41
      pages/grain_pulse/search.vue

+ 13 - 41
pages/grain_pulse/search.vue

@@ -12,7 +12,7 @@
 				<input type="text" maxlength="20" :focus="true" v-model="searchKeyWord" @confirm="doSearch()"
 					@input='search' placeholder="请输入货名或标题" confirm-type="search"></input>
 			</view>
-			<view @click='doSearch()' class="Regular" style="width:4%;flex:1;">搜索</view>
+			<view @click='doSearch()' class="Regular" style="width:4%;flex:1;text-align:center;">搜索</view>
 			<u-icon @click='emptysearch' class="cuIcon" v-if='searchKeyWord.length>0' size="34" name="close-circle-fill" color="#D6D9E0"></u-icon>
 			<!-- <text @click='emptysearch' v-if='searchKeyWord.length>0' class='tip_text cuIcon-roundclosefill'></text> -->
 		</view>
@@ -37,53 +37,26 @@
 				<view class="introduce-section">
 					<view v-for="(item, index) in keywordList" :key="index" class="guess-item"
 						@click="navToDetailPage(item)">
-						<view class="price-box">
-							<view class="title Medium">{{item.title}}</view>		
-							<view class='flex justify-between align-item-center Regular'>
-								<view v-if='TabCur==0' class='address'>
-									{{item.receivePrivate}}{{item.receiveCity}}{{item.receiveArea}}{{item.receiveWarehouse}}
-								</view>
-								<view v-if='TabCur==1' class='address'>
-									{{item.sendPrivate}}{{item.sendCity}}{{item.sendArea}}{{item.sendWarehouse}}
-								</view>
-								<view class='price NumberBold' v-if='item.procurementPlanType=="期货"'>
-									<text class="number-style">{{item.basisPrice}}</text><text style='font-size:13px;color:#333333;'
-										class="Semibold">元/吨</text></view>
-								<view class='price NumberBold' v-if='item.procurementPlanType=="现货"'>
-									<text class="number-style">{{item.procurementPrice}}</text><text style='font-size:13px;color:#333;'
-										class="Semibold">元/吨</text></view>
-								<view class='price NumberBold' v-if='item.salePlanType=="期货"'><text class="number-style">+{{item.basisPrice}}</text><text
-										style='font-size:13px;color:#333333;' class="Semibold">元/吨</text></view>
-								<view class='price NumberBold' v-if='item.salePlanType=="现货"'><text class="number-style">{{item.salePrice}}</text><text
-										style='font-size:13px;color:#333;' class="Semibold">元/吨</text></view>
+						<view class="flex">
+							<image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
+							<view class="listitem-right">
+								<view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
+								<view class='Regular introduce'>我是企业介绍我是企业介绍我是企业介绍我是</view>
 							</view>
 						</view>
-				<view class='flex justify-between Regular'>
-					<view class="Regular">
-						<view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="现货"'>现货</view>
-						<view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="期货"'>期货</view>
-						<view class='tag1 tag-bule radius line-pink' v-if='item.salePlanType=="现货"'>现货</view>
-						<view class='tag1 tag-bule radius line-pink' v-if='item.salePlanType=="期货"'>期货</view>
-						<view class='tag1 tag-yellow radius line-green'>{{item.goodsName}}</view>
-						<view class='tag1 tag-red radius line-yellow' v-if="TabCur== 0">{{item.plannedPurchaseVolume}}吨
+						<view class="flex  align-item-center justify-between">
+							<view class='companylocation flex align-item-center Regular'>
+								<image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
+								辽宁省营口市鲅鱼圈区xx路108号
+							</view>
+							<view class='distance Regular'>50m</view>
 						</view>
-						<view class='tag1 tag-red radius line-yellow' v-if="TabCur== 1">{{item.plannedSaleVolume}}吨
+							
 						</view>
 					</view>
-					<view style='color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="期货" && TabCur== 0'>
-						今日基差</view>
-					<view style='color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="现货" && TabCur== 0'>
-						采购价格</view>
-					<view style='color:#878C9C;padding-top:5px;' v-if='item.salePlanType=="期货" && TabCur== 1'>今日基差
-					</view>
-					<view style='color:#878C9C;padding-top:5px;' v-if='item.salePlanType=="现货" && TabCur== 1'>销售价格
-					</view>
-				</view>
-					</view>
 					<view v-show="isLoadMore">
 						<uni-load-more :status="loadStatus"></uni-load-more>
 					</view>
-				</view>
 			</scroll-view>
 			<view style='height:80vh;' v-show="isShowKeywordList&&keywordList.length==0">
 				<view style='background:#fff;padding:0 15px;'>
@@ -727,7 +700,6 @@
 
 	.keyword-box .keyword-block .keyword-list-header {
 		width: 94%;
-		padding: 10upx 3%;
 		font-size: 27upx;
 		color: #333;
 		display: flex;