diff --git a/components/goods_list/goods_list.wxml b/components/goods_list/goods_list.wxml index ce32fa8..bcdb55c 100644 --- a/components/goods_list/goods_list.wxml +++ b/components/goods_list/goods_list.wxml @@ -8,7 +8,7 @@ - {{item.goods_name}} + {{item.goods_name}} diff --git a/components/goods_list/goods_list.wxss b/components/goods_list/goods_list.wxss index e3aea73..28e2283 100644 --- a/components/goods_list/goods_list.wxss +++ b/components/goods_list/goods_list.wxss @@ -37,19 +37,24 @@ color: #b9b9b9; -webkit-line-clamp: 2; } .goods_name{ - height: 62rpx; + height: 62rpx; margin-top: 6rpx; - line-height: 30rpx + line-height: 30rpx; + + } .hang { width: 100%; margin: auto; padding-left: 21rpx; } +.fs28{ + font-size: 28rpx; +} .hang .collect { width: 347rpx; - height: 571rpx; + height: 495rpx; border-radius: 25rpx; border: 1rpx solid rgb(214, 214, 214); overflow: hidden; @@ -67,7 +72,7 @@ color: #b9b9b9; } .collect .money { - margin-top: 60rpx; + margin-top: 30rpx; margin-bottom: 18rpx; line-height: 28rpx; align-items: baseline; diff --git a/pages/index/index/index.js b/pages/index/index/index.js index 8422c53..e1f498c 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -116,6 +116,7 @@ Page({ }).then(res => { if(res.data.data) { var gd_category = res.data.data.pageData; + th.setData({gd_category: gd_category}); } }) diff --git a/pages/index/index/index.wxml b/pages/index/index/index.wxml index e31b75f..ac3edfe 100644 --- a/pages/index/index/index.wxml +++ b/pages/index/index/index.wxml @@ -102,7 +102,7 @@ - {{item.name}} diff --git a/pages/index/index/index.wxss b/pages/index/index/index.wxss index f4a867f..bcda882 100644 --- a/pages/index/index/index.wxss +++ b/pages/index/index/index.wxss @@ -74,7 +74,7 @@ left: 10%; .slide-image{ width: 100%; - height: 380rpx; + height: 100%; display: inline-block; overflow: hidden; border-radius: 14rpx; @@ -338,7 +338,7 @@ line-height: 25rpx; width: 95%; margin: auto; border-radius: 10rpx; - +height: 380rpx; } .xc-hook{ width: 52rpx;