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.

334 lines
6.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view class="container">
<view class="top">
<view class="top-img">
<image src='../../static/order5.png'></image>
</view>
<view>已取消</view>
<view class="top-btn">再次购买</view>
</view>
<view class="order-detail box-shadow">
<view class="name">餐品详情</view>
<view class="list">
<view class="order-single">
<image src="../../static/img.jpg"></image>
<view class="title-wrap">
<view class="title">两份香辣鸡翅(共4块)</view>
<view class="num">x3</view>
</view>
<view class="price">
<view>
<text></text>
11.9
</view>
<view class="original">25</view>
</view>
</view>
<view class="order-single">
<image src="../../static/img.jpg"></image>
<view class="title-wrap">
<view class="title">两份香辣鸡翅(共4块)</view>
<view class="num">x3</view>
</view>
<view class="price">
<view>
<text></text>
11.9
</view>
<view class="original">25</view>
</view>
</view>
</view>
<view class="sum">
<view>共3件</view>
<view>小计</view>
<view class="num">
<text></text>
33.7
</view>
</view>
</view>
<view class="order-info order-detail box-shadow">
<view class="name">订单信息</view>
<view class="order-info-item">
<view>取餐门店</view>
<view> 体育中心餐厅(三香路1511号)</view>
</view>
<view class="order-info-item">
<view>订单号</view>
<view>
20241217131133277339302
<text>复制</text>
</view>
</view>
<view class="order-info-item">
<view>就餐方式</view>
<view> 店内就餐 </view>
</view>
<view class="order-info-item">
<view>支付方式</view>
<view>微信支付</view>
</view>
<view class="order-info-item">
<view>联系方式</view>
<view>18914071203</view>
</view>
<view class="order-info-item">
<view>备注</view>
<view>暂无</view>
</view>
<view class="order-btn">
<view>
<image src="../../static/order6.png"></image>
<text>联系客服</text>
</view>
</view>
</view>
<view class="tips">
<view class="title">
<image src="../../static/order7.png"></image>
<text>友情提示</text>
</view>
<view class="">
1如遇到商品售罄将导致您无法取到所定食物系统将自动为您安排退款1个工作日内到账
</view>
<view>2如遇更多问题请及时联系在线客服处理</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
}
}
</script>
<style lang="scss" scoped>
.container {
width: 100vw;
height: 100vh;
background: #f0f0f0;
overflow: scroll;
font-family: Avenir, Helvetica, Arial, sans-serif;
.top {
padding: 30rpx;
padding-bottom: 40rpx;
background-color: #fff;
border-radius: 0 0 40rpx 40rpx;
box-shadow: 1rpx 1rpx 10rpx 0 rgba(0, 0, 0, .1);
text-align: center;
font-size: 34rpx;
color: rgba(0, 0, 0, .9);
&-img {
width: 180rpx;
height: 180rpx;
margin: 0 auto;
background: #f2f2f2;
border: 1rpx solid #d9d9d9;
border-radius: 180rpx;
position: relative;
margin-bottom: 30rpx;
image {
width: 66rpx;
height: 66rpx;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
&-btn {
margin-top: 60rpx;
background: #d90209;
text-align: center;
border-radius: 40rpx;
font-size: 24rpx;
color: #fff;
display: inline-block;
padding: 10rpx 20rpx;
}
}
.box-shadow {
box-shadow: 1rpx 1rpx 5rpx 0 rgba(0, 0, 0, .1);
background-color: #fff;
border-radius: 20rpx;
margin: 20rpx;
}
.order-detail {
.name {
font-weight: 600;
color: rgba(0, 0, 0, .9);
font-size: 30rpx;
padding: 20rpx;
padding-left: 30rpx;
border-bottom: 1rpx solid rgba(0, 0, 0, .15);
}
}
.list {
border-bottom: 1rpx solid rgba(0, 0, 0, .15);
.order-single {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
}
image {
width: 112rpx;
height: 82rpx;
}
.title-wrap {
display: flex;
align-items: center;
justify-content: space-between;
width: 60%;
}
.title {
color: #000;
font-size: 24rpx;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
width: 60%;
}
.num {
color: rgba(0, 0, 0, .5);
font-size: 26rpx;
width: 40%;
text-align: right;
}
.price {
font-size: 30rpx;
font-weight: 600;
text {
font-size: 24rpx;
margin-right: 5rpx;
}
}
.original {
text-align: right;
color: rgba(0, 0, 0, .3);
text-decoration: line-through;
font-size: 22rpx;
}
}
.sum {
font-size: 26rpx;
font-weight: 600;
display: flex;
justify-content: end;
align-items: center;
padding: 30rpx;
&>view {
margin-left: 20rpx;
}
.num {
margin-left: 0rpx;
font-size: 36rpx;
color: #d90209;
text {
font-size: 20rpx;
}
}
}
.order-info {
.name {
border-bottom: none;
}
.order-info-item {
display: flex;
align-items: center;
justify-content: space-between;
color: rgba(0, 0, 0, .9);
font-size: 28rpx;
padding: 30rpx;
padding-top: 0;
&>view:last-child {
color: rgba(0, 0, 0, .5);
text-align: right;
font-size: 26rpx;
text {
color: rgba(0, 0, 0, .9);
margin-left: 10rpx;
}
}
}
.order-btn {
display: flex;
align-items: center;
justify-content: end;
font-size: 26rpx;
&>view {
display: flex;
align-items: center;
justify-content: center;
border: 1rpx solid #313131;
border-radius: 40rpx;
color: rgba(0, 0, 0, .9);
padding: 10rpx 40rpx;
margin-bottom: 30rpx;
margin-right: 30rpx;
image {
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
}
}
}
.tips {
padding: 40rpx;
padding-top:20rpx;
font-size: 24rpx;
color: rgba(0, 0, 0, .5);
line-height: 1.5;
.title {
display: flex;
align-items: center;
color: rgba(0, 0, 0, .9);
margin-bottom: 10rpx;
image {
margin-right: 20rpx;
width: 30rpx;
height: 30rpx;
}
}
}
}
</style>