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

@@ -12,7 +12,8 @@ Component({
gid:Number,
num:Number,
select:Boolean,
index:Number
index:Number,
oprice:String
},
/**

View File

@@ -6,11 +6,14 @@
<view class="shopinfo">
<view class="shopname">{{shopname}}</view>
<view class="shopdesc">{{shopdesc}}</view>
<view class="price">${{price}}</view>
<view class="price">
<view>€{{oprice}}</view>
<view>${{price}}</view>
</view>
</view>
<view class="numberset">
<view class="reverse" bind:tap="rm">-</view>
<view class="num">{{num}}</view>
<view class="add" bind:tap="add">+</view>
</view>
</view>
</view>

View File

@@ -1,6 +1,6 @@
.shoppingitem {
width: 639rpx;
height: 186rpx;
/* height: 186rpx; */
display: flex;
justify-content: space-between;
}
@@ -59,8 +59,13 @@
font-size: 32rpx;
font-weight: bold;
text-decoration: underline;
display: flex;
align-items: center;
}
.price >view:last-child{
margin-left: 10rpx;
font-size: 20rpx;
}
.numberset {
width: 85rpx;
height: 186rpx;