You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
215 lines
4.0 KiB
215 lines
4.0 KiB
<template>
|
|
<view class="container">
|
|
<image src="../../static/img.jpg" mode="widthFix"></image>
|
|
<view class="name">
|
|
百事可乐(冰)
|
|
</view>
|
|
<view class="spec-group-box">
|
|
<view class="title">
|
|
可选餐品
|
|
</view>
|
|
<view class="list">
|
|
<div class="spec-group-name select"> 小杯百事可乐(冰) </div>
|
|
<div class="spec-group-name"> 中杯百事可乐(冰) </div>
|
|
<div class="spec-group-name"> 大杯百事可乐(冰) </div>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="btn">
|
|
<view class="btn-add">
|
|
<view class="icon-click">
|
|
<view>
|
|
<text></text>
|
|
</view>
|
|
<view class="count">1</view>
|
|
<view>+</view>
|
|
</view>
|
|
</view>
|
|
<view class="cart-box">
|
|
<view>
|
|
<view>
|
|
<image src="../../static/cart.png"></image>
|
|
<view>¥33.97</view>
|
|
<view class="discount">已省¥41.3元 </view>
|
|
</view>
|
|
<view class="order-check">
|
|
<view>加入购物车</view>
|
|
<view class="checkout">Add Cart</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.container {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: #fff;
|
|
overflow: scroll;
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
&>image {
|
|
width: 100%;
|
|
}
|
|
|
|
.name {
|
|
color: rgba(0, 0, 0, .9);
|
|
font-weight: 600;
|
|
margin: 10rpx 40rpx;
|
|
font-size: 40rpx;
|
|
padding: 20rpx 0;
|
|
border-top: 1rpx solid rgba(0, 0, 0, .9);
|
|
border-bottom: 1rpx solid rgba(0, 0, 0, .9);
|
|
}
|
|
|
|
.spec-group-box {
|
|
margin: 10rpx 40rpx;
|
|
|
|
.title {
|
|
color: rgba(0, 0, 0, .9);
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
margin: 30rpx 0;
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
|
|
.spec-group-name {
|
|
background-color: #fff;
|
|
color: rgba(0, 0, 0, .5);
|
|
border: 1rpx solid rgba(0, 0, 0, .5);
|
|
font-size: 26rpx;
|
|
padding: 10rpx;
|
|
border-radius: 10rpx;
|
|
margin: 10rpx;
|
|
}
|
|
|
|
.select {
|
|
background: #fdf0f0;
|
|
color: #d90209;
|
|
border: 1rpx solid #d90209;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.btn {
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 64rpx;
|
|
padding: 20rpx;
|
|
width: 100%;
|
|
|
|
&-add {
|
|
background: #fdf0f0;
|
|
border-radius: 40rpx 40rpx 0 0;
|
|
padding: 20rpx;
|
|
padding-bottom: 60rpx;
|
|
display: flex;
|
|
justify-content: end;
|
|
|
|
.icon-click {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
view {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
border-radius: 100%;
|
|
text-align: center;
|
|
line-height: 50rpx;
|
|
font-size: 36rpx;
|
|
background: #d90209;
|
|
color: #fff;
|
|
}
|
|
|
|
view:first-child {
|
|
background-color: #fff;
|
|
border: 1rpx solid rgba(0, 0, 0, .15);
|
|
line-height: 0;
|
|
|
|
text {
|
|
width: 25rpx;
|
|
height: 4rpx;
|
|
background-color: rgba(0, 0, 0, .15);
|
|
display: inline-block;
|
|
margin-top: 23rpx;
|
|
}
|
|
}
|
|
|
|
.count {
|
|
background-color: transparent;
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
margin: 0 5rpx;
|
|
// width: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.cart-box {
|
|
margin-top: -40rpx;
|
|
|
|
&>view {
|
|
padding: 5rpx 10rpx;
|
|
border-radius: 60rpx;
|
|
padding-right: 20rpx;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #d90209;
|
|
color: #fff;
|
|
font-size: 44rpx;
|
|
width: 100%;
|
|
|
|
image {
|
|
width: 104rpx;
|
|
height: 104rpx;
|
|
margin-right: 5rpx;
|
|
}
|
|
|
|
&>view:first-child {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
.discount {
|
|
font-size: 24rpx;
|
|
margin-left: 5rpx;
|
|
}
|
|
}
|
|
|
|
.order-check {
|
|
font-size: 36rpx;
|
|
text-align: center;
|
|
|
|
.checkout {
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |