gjy 3 tahun lalu
induk
melakukan
22eb1ce06f
3 mengubah file dengan 73 tambahan dan 16 penghapusan
  1. 13 14
      pages.json
  2. 53 2
      pages/grain_pulse/home.vue
  3. 7 0
      pages/sale/information.vue

+ 13 - 14
pages.json

@@ -22,12 +22,12 @@
 				"selectedIconPath": "static/img/jiaoyi_check.png",
 				"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",
 				"iconPath": "static/img/wuliu.png",
@@ -43,6 +43,13 @@
 		]
 	},
 	"pages": [{
+			"path": "pages/sale/information",
+			"style": {
+				"enablePullDownRefresh": true,
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},{
 			"path": "pages/index/index",
 			"style": {
 				"navigationBarTitleText": "启动页",
@@ -51,14 +58,6 @@
 				}
 			}
 		},
-		{
-			"path": "pages/sale/information",
-			"style": {
-				"enablePullDownRefresh": true,
-				"navigationBarTitleText": "",
-				"navigationStyle": "custom"
-			}
-		},
 		{
 			"path": "pages/sale/plant",
 			"style": {

+ 53 - 2
pages/grain_pulse/home.vue

@@ -34,7 +34,22 @@
 					</view>
 				</view>
 			</view>
-			
+			<view class='list-type'>
+				<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 :class='status==0?"Semibold active":"Regular"' class="typeitem">饲料厂</view>
+				<view :class='status==0?"Semibold active":"Regular"' class="typeitem">饲料厂</view>
+			</view>
+			<view class="listitem">
+				<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>
+				</view>
+			</view>
 		</view>
 	</view>
 </template>
@@ -46,7 +61,7 @@
         },
 		data() {
 			return {
-				guidePages:true
+				status:0
 			}
 		},
 		onLoad(){
@@ -135,10 +150,46 @@
 		margin-bottom:10px;
 		width:205.5px;
 		font-size:12px;
+		padding:3px 0;
 	}
 	.headportrait{
 		width:22.5px;height:22.5px;
 		margin-right:8.5px;
 	}
 	/* 圈友说--》 */
+	/* 《--类型 */
+	.list-type{
+		background: linear-gradient(180deg, #F5F6FA 0%, #FFFFFF 100%);
+		width:100%;
+		padding-top:5px;
+		height:49px;
+	}
+	.typeitem{
+		margin:10px;
+		position:relative;
+		display:inline-block;
+		padding-top:8px;
+		padding-bottom:5px;
+	}
+	.typeitem.active{
+		font-size:16px;
+	}
+	.typeitem.active:after{
+		content:'';
+		display:block;
+		position:absolute;
+		height:3px;
+		bottom:0;
+		background:#22C572;
+		width:50%;
+		left:50%;
+		transform: translateX(-50%);
+	}
+	/* 类型--》 */
+	/* 《--数据 */
+	.listitem-left{
+		width:98.5px;
+		height:96.5px;
+	}
+	/* 数据--》 */
 </style>

+ 7 - 0
pages/sale/information.vue

@@ -209,6 +209,13 @@
 			})
 		},
 		onLoad(options) {
+			const value = uni.getStorageSync('launchFlag');
+			if (value) {
+			} else {
+				uni.navigateTo({
+					url: '/pages/index/index'
+				});
+			}
 			var that = this
 			uni.getSystemInfo({
 				success: function(res) {