From ba56cd7da8035c22933ea6bc9f35d00c2161eceb Mon Sep 17 00:00:00 2001 From: season Date: Thu, 17 Oct 2019 10:51:47 +0800 Subject: [PATCH] 商品列表组件 --- components/goods_list/goods_list.js | 5 +---- components/goods_list/goods_list.wxml | 10 +++------- components/goods_list/goods_list.wxss | 14 +++++--------- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/components/goods_list/goods_list.js b/components/goods_list/goods_list.js index 90a593c..810ad76 100644 --- a/components/goods_list/goods_list.js +++ b/components/goods_list/goods_list.js @@ -73,10 +73,7 @@ Component({ reset:function(){ curPage=1; }, - go_url:function(e){ - var url=e.currentTarget.dataset.url; - t.goto(url); - }, + }, diff --git a/components/goods_list/goods_list.wxml b/components/goods_list/goods_list.wxml index cad4791..1f8dfd5 100644 --- a/components/goods_list/goods_list.wxml +++ b/components/goods_list/goods_list.wxml @@ -3,17 +3,13 @@ - - - + - - {{item.goods_name}} - + {{item.goods_name}} @@ -28,7 +24,7 @@ - + diff --git a/components/goods_list/goods_list.wxss b/components/goods_list/goods_list.wxss index 0b42b70..28e2283 100644 --- a/components/goods_list/goods_list.wxss +++ b/components/goods_list/goods_list.wxss @@ -37,16 +37,17 @@ 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; } @@ -54,11 +55,6 @@ color: #b9b9b9; .hang .collect { width: 347rpx; height: 495rpx; -} - -.hang .collect { - width: 347rpx; - height: 571rpx; border-radius: 25rpx; border: 1rpx solid rgb(214, 214, 214); overflow: hidden; @@ -76,7 +72,7 @@ color: #b9b9b9; } .collect .money { - margin-top: 60rpx; + margin-top: 30rpx; margin-bottom: 18rpx; line-height: 28rpx; align-items: baseline; -- libgit2 0.21.4