fixed goods list

This commit is contained in:
LittleBoy 2022-11-28 08:44:26 +08:00
parent e989ab295b
commit 529ae0539c
4 changed files with 65 additions and 10 deletions

View File

@ -1,5 +1,6 @@
{ {
"usingComponents": {}, "usingComponents": {},
"navigationBarBackgroundColor": "#F96352", "navigationBarBackgroundColor": "#ceb17f",
"navigationBarTitleText": "积分商城" "navigationBarTitleText": "积分商城",
"navigationBarTextStyle": "white"
} }

View File

@ -6,14 +6,18 @@ image {
height: 100%; height: 100%;
} }
.displex-flex {
display: flex;
}
.box-border-radius { .box-border-radius {
border-radius: 10px; border-radius: 10px;
overflow: hidden; overflow: hidden;
} }
.content-bg { .content-bg {
background: linear-gradient(to bottom, #F96352, #fff); background: linear-gradient(to bottom, #ceb17f, #fff);
height: 120px; height: 140px;
width: 100%; width: 100%;
left: 0; left: 0;
top: 0; top: 0;
@ -99,12 +103,59 @@ image {
height: 32px; height: 32px;
overflow: hidden; overflow: hidden;
} }
.price{
.price {
color: #f00; color: #f00;
margin-top: 5px; margin-top: 5px;
} }
} }
.displex-flex { .normal-list {
display: flex; .goods-item {
.displex-flex;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
.image {
min-width: 80px;
height: 80px;
margin-right: 15px;
}
.title {
line-height: 20px;
height: 40px;
overflow: hidden;
font-size: 14px;
}
.goods-action {
margin-top: 10px;
.displex-flex;
justify-content: space-between;
}
.price {
color: red;
font-size: 16px;
line-height: 30px;
}
.actions {
button {
height: 30px;
border-radius: 30px;
font-size: 13px;
background-color: red;
color: white;
width: 100px;
padding: 0;
line-height: 30px;
}
}
} }

View File

@ -53,15 +53,16 @@
</view> </view>
<view class="panel"> <view class="panel">
<view class="panel-body"> <view class="panel-body">
<view class="goods-list"> <view class="goods-list normal-list">
<view wx:for="{{goodsItems}}" wx:key="id" class="goods-item"> <view wx:for="{{goodsItems}}" wx:key="id" class="goods-item">
<view class="image"> <view class="image">
<image src="{{item.cover}}"></image> <image src="{{item.cover}}"></image>
</view> </view>
<view>
<view class="title"> <view class="title">
<text>{{item.title}}</text> <text>{{item.title}}</text>
</view> </view>
<view class="displex-flex"> <view class="goods-action">
<view class="price"> <view class="price">
<text>{{item.price}}积分</text> <text>{{item.price}}积分</text>
</view> </view>
@ -69,6 +70,7 @@
<button>立即兑换</button> <button>立即兑换</button>
</view> </view>
</view> </view>
</view>
</view> </view>
</view> </view>
</view> </view>

View File

@ -16,7 +16,8 @@
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
} },
"minified": true
}, },
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},