This commit is contained in:
2019-12-19 15:27:30 +08:00
parent fc42af178c
commit 79afb38a63
6 changed files with 25 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ Component({
* 组件的属性列表
*/
properties: {
shospname: String,
shopname: String,
shopdesc: String,
price: Number,
pic: String

View File

@@ -1,7 +1,7 @@
<view class="shoppingitem">
<view class="select"></view>
<view class="pic">
<image></image>
<image src="{{pic}}"></image>
</view>
<view class="shopinfo">
<view class="shopname">{{shopname}}</view>

View File

@@ -35,13 +35,21 @@
font-size: 26rpx;
font-weight: bold;
margin-bottom: 18rpx;
margin-top: 35rpx;
margin-top: 20rpx;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.shopdesc {
color: #666666;
font-size: 22rpx;
margin-bottom: 39rpx;
margin-bottom: 20rpx;
}
.price {