gjy 3 лет назад
Родитель
Сommit
6a9a33035a
2 измененных файлов с 76 добавлено и 9 удалено
  1. 27 6
      pages.json
  2. 49 3
      pages/grain_pulse/home.vue

+ 27 - 6
pages.json

@@ -22,12 +22,12 @@
 				"selectedIconPath": "static/img/jiaoyi_check.png",
 				"selectedIconPath": "static/img/jiaoyi_check.png",
 				"text": "交易"
 				"text": "交易"
 			},
 			},
-			// {
-			// 	"pagePath": "pages/grain_pulse/home",
-			// 	"iconPath": "static/img/liangmai.png",
-			// 	"selectedIconPath": "static/img/liangmai_check.png",
-			// 	"text": "粮脉"
-			// },
+			{
+				"pagePath": "pages/grain_pulse/home",
+				"iconPath": "static/img/liangmai.png",
+				"selectedIconPath": "static/img/liangmai_check.png",
+				"text": "粮脉"
+			},
 			{
 			{
 				"pagePath": "pages/tran/tran",
 				"pagePath": "pages/tran/tran",
 				"iconPath": "static/img/wuliu.png",
 				"iconPath": "static/img/wuliu.png",
@@ -65,6 +65,27 @@
 				"navigationBarTitleText": "工厂价格"
 				"navigationBarTitleText": "工厂价格"
 			}
 			}
 		},
 		},
+		{
+			"path": "pages/grain_pulse/friendcircle",
+			"style": {
+				"enablePullDownRefresh": true,
+				"navigationBarTitleText": "动态"
+			}
+		},
+		{
+			"path": "pages/grain_pulse/details",
+			"style": {
+				"enablePullDownRefresh": true,
+				"navigationBarTitleText": "详情"
+			}
+		},
+		{
+			"path": "pages/grain_pulse/jubao",
+			"style": {
+				"enablePullDownRefresh": true,
+				"navigationBarTitleText": "举报"
+			}
+		},
 		{
 		{
 			"path": "pages/sale/portprice",
 			"path": "pages/sale/portprice",
 			"style": {
 			"style": {

+ 49 - 3
pages/grain_pulse/home.vue

@@ -18,7 +18,7 @@
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
-		<view class="content">
+		<view class="content" @click='friendcircle'>
 			<view class="friendcircle">
 			<view class="friendcircle">
 				<view class='title flex align-item-center Medium'>
 				<view class='title flex align-item-center Medium'>
 					<image class='icon-friendcircle' src="../../static/img/liangmai/icon.png" mode=""></image>
 					<image class='icon-friendcircle' src="../../static/img/liangmai/icon.png" mode=""></image>
@@ -42,13 +42,21 @@
 				<view :class='status==0?"Semibold active":"Regular"' class="typeitem">饲料厂</view>
 				<view :class='status==0?"Semibold active":"Regular"' class="typeitem">饲料厂</view>
 				<view :class='status==0?"Semibold active":"Regular"' class="typeitem">饲料厂</view>
 				<view :class='status==0?"Semibold active":"Regular"' class="typeitem">饲料厂</view>
 			</view>
 			</view>
-			<view class="listitem">
+			<view @click='todetails' class="listitem">
 				<view class="flex">
 				<view class="flex">
 					<image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
 					<image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
 					<view class="listitem-right">
 					<view class="listitem-right">
 						<view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
 						<view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
+						<view class='Regular introduce'>我是企业介绍我是企业介绍我是企业介绍我是</view>
 					</view>
 					</view>
 				</view>
 				</view>
+				<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>
 			</view>
 		</view>
 		</view>
 	</view>
 	</view>
@@ -68,7 +76,17 @@
 			
 			
 		},
 		},
 		methods: {
 		methods: {
-
+			friendcircle(){
+				uni.navigateTo({
+					url:'/pages/grain_pulse/friendcircle'
+				})
+			},
+			todetails(){
+				console.log(111)
+				uni.navigateTo({
+					url:'/pages/grain_pulse/details'
+				})
+			}
 		}
 		}
 	}
 	}
 </script>
 </script>
@@ -163,6 +181,7 @@
 		width:100%;
 		width:100%;
 		padding-top:5px;
 		padding-top:5px;
 		height:49px;
 		height:49px;
+		overflow-x: scroll;
 	}
 	}
 	.typeitem{
 	.typeitem{
 		margin:10px;
 		margin:10px;
@@ -187,9 +206,36 @@
 	}
 	}
 	/* 类型--》 */
 	/* 类型--》 */
 	/* 《--数据 */
 	/* 《--数据 */
+	.listitem{
+		background:#fff;
+		margin:10px;
+		padding:15px 19px;
+	}
 	.listitem-left{
 	.listitem-left{
 		width:98.5px;
 		width:98.5px;
 		height:96.5px;
 		height:96.5px;
+		margin-right:8px;
+		border-radius:5px;
+	}
+	.companyname{
+		font-size:14px;
+		color:#333;
+	}
+	.introduce{
+		font-size:12px;
+		color:#676E80;
+	}
+	.companylocation{
+		color:#676E80;
+		background:#F5F6FA;
+		margin-top:8px;
+		padding:4px 10px;
+		border-radius:15px;
+	}
+	.distance{
+		color:#AFB3BF;
+		padding:4px;
+		margin-top:8px;
 	}
 	}
 	/* 数据--》 */
 	/* 数据--》 */
 </style>
 </style>