完成
This commit is contained in:
@@ -4,7 +4,8 @@ Component({
|
||||
title:String,
|
||||
id:String,
|
||||
price:String,
|
||||
shopid:String
|
||||
shopid:String,
|
||||
shoppriceeur:String
|
||||
},
|
||||
data: {},
|
||||
methods: {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<text class="towline">{{title}}</text>
|
||||
|
||||
<view>
|
||||
<view>${{price}}<text>(¥price)</text></view>
|
||||
<view>€{{shoppriceeur}}<text>(¥{{price}})</text></view>
|
||||
<view>加入购物车</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
.list {
|
||||
width: 623rpx;
|
||||
margin-top: 36rpx;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
margin-left: 32rpx;
|
||||
width: 623rpx;
|
||||
margin-top: 36rpx;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
margin-left: 32rpx;
|
||||
// margin-bottom: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
>text:last-child{
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
> text:last-child {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<view class="list">
|
||||
<view class="title"><text>热门商品</text><text>实时汇率:€1=¥{{huilv}}</text></view>
|
||||
<commodity wx:for="{{list}}" title="{{item.goods_name}}" price="{{item.shop_price}}" img="{{item.image}}" shopid="{{item.goods_id}}"></commodity>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="title">
|
||||
<text>热门商品</text>
|
||||
<text>实时汇率:€1=¥{{huilv}}</text>
|
||||
</view>
|
||||
<commodity wx:for="{{list}}" title="{{item.goods_name}}" price="{{item.shop_price}}" img="{{item.image}}" shopid="{{item.goods_id}}" shoppriceeur="{{item.shop_price_eur}}"></commodity>
|
||||
</view>
|
||||
Reference in New Issue
Block a user