This commit is contained in:
2020-01-02 18:21:37 +08:00
parent 2ca773a987
commit 00e1b237e1
23 changed files with 78 additions and 48 deletions

View File

@@ -4,7 +4,8 @@ Component({
title:String,
id:String,
price:String,
shopid:String
shopid:String,
shoppriceeur:String
},
data: {},
methods: {

View File

@@ -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>

View File

@@ -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;
}
}
}
}

View File

@@ -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>