浏览代码

工厂价格添加容重

wangchao 3 年之前
父节点
当前提交
a7a64959af
共有 2 个文件被更改,包括 31 次插入2 次删除
  1. 14 2
      pages/sale/information.vue
  2. 17 0
      pages/sale/plant.vue

+ 14 - 2
pages/sale/information.vue

@@ -31,8 +31,8 @@
 				<view class='title Medium'>工厂价格</view>
 				<view class='Regular' style='color:#B2B3BB;' @click='more("/pages/sale/plant")'>更多</view>
 			</view>
-			<swiper class="screen-swiper header-swiper" :autoplay="true" interval="6000" duration="500"
-				:circular="true" :acceleration="true" style="min-height: 700rpx;">
+			<swiper class="screen-swiper header-swiper" :autoplay="true" interval="6000" duration="500" :circular="true"
+				:acceleration="true" style="min-height: 700rpx;">
 				<swiper-item class="" v-for="(item1,index) in factoryPriceData.list" :key="index">
 					<view class=' guess-section-wrap-item clearfix' v-for='(item,index1) in item1' :key="index1">
 						<view class='factory'>{{item.factory}}</view>
@@ -48,6 +48,17 @@
 							<text v-if='item.comparePrice<0' class='yesterday down'>{{-item.comparePrice}}</text>
 							<text v-if='item.comparePrice==0' class='yesterday'>-</text>
 						</view>
+						<view style='color:#B2B3BB;' class='flex'>
+							<view class="port-number-style ">
+								<image style='width:11px;height:11px;' src='../../static/img/homepage/water@3x.png'>
+								</image>
+								<={{item.waterContent}} </view>
+									<view class="port-number-style">
+										<image style='width:11px;height:11px;'
+											src='../../static/img/homepage/unitweight@3x.png'></image>
+										>={{item.bulkDensity}}
+									</view>
+							</view>
 					</view>
 				</swiper-item>
 			</swiper>
@@ -1117,6 +1128,7 @@
 	.currectprice-text {
 		font-size: 24rpx;
 	}
+
 	.container {
 		margin: 20rpx !important;
 	}

+ 17 - 0
pages/sale/plant.vue

@@ -14,7 +14,21 @@
 						<view class='factory Medium'>{{item.factory}}</view>
 						<view class='wrap Regular'>{{item.city}} {{item.factoryType}}</view>
 					</view>
+					<view class="flex-item">
 					<view class='price NumberBold guess-item-item'>{{item.price}}</view>
+					<view class='wrap Regular'>
+						<text style='margin-right:5px;'>
+							<image style='width:11px;height:11px;'
+								src='../../static/img/homepage/water@3x.png'>
+							</image>
+							<={{item.waterContent}}</text>
+								<text>
+									<image style='width:11px;height:11px;'
+										src='../../static/img/homepage/unitweight@3x.png'></image>
+									>={{item.bulkDensity}}
+								</text>
+					</view>
+					</view>
 					<view class='positive NumberBold guess-item-item' v-if='item.comparePrice>0'>
 						<image class='up' src='../../static/img/homepage/shangsheng.png'>{{item.comparePrice}}
 						</image>
@@ -534,4 +548,7 @@
 		}
 
 	}
+	.flex-item{
+		text-align: center;
+	}
 </style>