guhongwei 2 tahun lalu
induk
melakukan
4954c80bae
2 mengubah file dengan 42 tambahan dan 2 penghapusan
  1. 0 1
      pages/home/index.vue
  2. 42 1
      pagesHome/market/sort.vue

+ 0 - 1
pages/home/index.vue

@@ -226,7 +226,6 @@
 		methods: {
 			// 公共跳转
 			toCommon(e) {
-				console.log(e);
 				uni.navigateTo({
 					url: `/${e}`
 				})

+ 42 - 1
pagesHome/market/sort.vue

@@ -11,7 +11,11 @@
 					</view>
 				</view>
 				<view class="two_2">
-					右侧商品
+					<view class="marketList" v-for="(tag,indexs) in marketList" :key="indexs">
+						<view class="title">
+							{{tag.name}}
+						</view>
+					</view>
 				</view>
 			</view>
 		</view>
@@ -22,6 +26,7 @@
 	export default {
 		data() {
 			return {
+				active: '0',
 				typeList: [ //商品分类
 					{
 						name: '休闲食品'
@@ -62,6 +67,15 @@
 					{
 						name: '植物饮食'
 					}
+				],
+				marketList: [ //产品列表
+					{
+						name: '坚果炒货'
+
+					},
+					{
+						name: '坚果炒货'
+					}
 				]
 			};
 		},
@@ -116,6 +130,33 @@
 			.two_2 {
 				width: 75vw;
 				border: 1px solid #0000ff;
+
+				// .marketList {
+				// 	.title {
+				// 		font-size: 16px;
+				// 		margin: 0 0 2vw 0;
+				// 	}
+
+				// 	.market {
+				// 		display: flex;
+				// 		flex-direction: row;
+				// 		justify-content: space-around;
+				// 		flex-wrap: wrap;
+
+				// 		.list {
+				// 			text-align: center;
+
+				// 			.image {
+				// 				width: 10vw;
+				// 				height: 10vw;
+				// 			}
+
+				// 			.name {
+				// 				font-size: 14px;
+				// 			}
+				// 		}
+				// 	}
+				// }
 			}
 
 		}