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.

333 lines
6.8 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="head">
<view class="con">
<view class="title"> 自助餐厅不支持外卖 </view>
<view class="step-list">
<view class="step-item select">
<image src="../../static/icon4.png"></image>
<view class="value">选择餐厅</view>
</view>
<view class="step-item">
<image src="../../static/icon5.png"></image>
<view> 选择菜品 </view>
</view>
<view class="step-item">
<image src="../../static/icon6.png"></image>
<view>等待取餐码</view>
</view>
<view class="step-item">
<image src="../../static/icon7.png"></image>
<view>到店取餐</view>
</view>
</view>
</view>
<view class="top">
<view class="content">
<view class="left">
<view class="text">苏州</view>
<u-icon name="arrow-down"></u-icon>
</view>
<view class="right">
<u-input v-model="adderss" placeholder="请输入关键字搜索" type="text" :border="false" />
</view>
</view>
<view class="tab">
<view class="box select"> 附近餐厅 <span class="num">0</span>
</view>
<view class="box"> 收藏的餐厅 <span class="num">0</span>
</view>
</view>
</view>
</view>
<view class="list">
<view class="list-item" @click="toMenu">
<view class="list-item-top">
<view class="list-item-top-left">
<text>华润金月湾餐厅</text>
<text class="online">营业中</text>
</view>
<view @click="changeStar">
<u-icon v-if="!hasStar" name="star" color="rgba(0,0,0,0.5)"></u-icon>
<u-icon v-else name="star-fill" color="#d90209"></u-icon>
</view>
</view>
<view class="list-item-address">
吴中区经济开发区啊回复你卢卡斯对妈妈说;溜达;杀了你啦没可能饭卡
</view>
<view class="list-item-distance">
<u-icon name="map" color="#d90209"></u-icon> <text>1.06km</text>
</view>
</view>
</view>
<view class="fixright">
<view class="fixright-top" @click="toOrder">
<image src="../../static/icon1-nor.png"></image>
<view>订单</view>
</view>
<view class="fixright-bottom">
<image src="../../static/icon3.png"></image>
<view>客服</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
adderss: '',
hasStar:false,
}
},
methods: {
changeStar(){
this.hasStar = !this.hasStar
},
toMenu(){
uni.navigateTo({
url:'/pages/restaurant/menu'
})
},
toOrder(){
uni.navigateTo({
url:'/pages/order/list'
})
}
}
}
</script>
<style lang="scss" scoped>
.container {
width: 100vw;
min-height: 100vh;
background: #f0f0f0;
font-family: Avenir, Helvetica, Arial, sans-serif;
.head {
// height: 450rpx;
.con {
border-radius: 0 0 50rpx 50rpx;
background: #fff;
overflow: hidden;
padding: 20rpx 30rpx;
padding-bottom: 40rpx;
.title {
width: 100%;
text-align: center;
font-size: 34rpx;
color: rgba(0, 0, 0, .9);
padding-bottom: 30rpx;
}
.step-list {
display: flex;
justify-content: space-between;
align-items: center;
.step-item {
color: rgba(0, 0, 0, .5);
font-size: 24rpx;
text-align: center;
position: relative;
width: 25%;
image {
width: 60rpx;
height: 60rpx;
margin-bottom: 10rpx;
}
.value {
color: rgba(0, 0, 0, .9);
}
}
.step-item::after {
content: '';
background: url(../../static/line.png) no-repeat top left;
width: 82rpx;
height: 16rpx;
display: block;
position: absolute;
top: 14rpx;
left: 75%;
background-size: 100% 100%;
}
.step-item:last-child::after {
display: none;
}
}
}
.top {
margin: 20rpx 20rpx;
.content {
position: relative;
padding: 10rpx 40rpx;
margin: 0 auto;
background-color: #fff;
border-radius: 40rpx;
display: flex;
justify-content: flex-start;
align-items: center;
border: 1px solid #e9e9e9;
.left {
font-size: 28rpx;
font-weight: 600;
color: rgba(0, 0, 0, .9);
display: flex;
align-items: center;
margin-right: 20rpx;
width: 100rpx;
.text {
margin-right: 10rpx;
}
}
.right {
width: calc(100% - 120rpx)
}
}
.tab {
margin-top: 40rpx;
display: flex;
align-items: center;
justify-content: space-between;
.box {
width: 50%;
font-size: 32rpx;
color: #000;
font-weight: 600;
display: flex;
justify-content: center;
align-items: center;
.num {
font-size: 20rpx;
margin-left: 15rpx;
padding: 5rpx 20rpx;
background: #000;
color: #fff;
text-align: center;
border-radius: 20rpx;
}
}
.select {
color: #d90209;
.num {
background: #d90209;
}
}
}
}
}
.list {
margin: 20rpx;
margin-top: 0;
&-item {
background-color: #fff;
margin-bottom: 10rpx;
border-radius: 20rpx;
box-shadow: 4rpx 4rpx 10rpx 0 rgba(0, 0, 0, .1);
padding:20rpx 40rpx;
padding-bottom:10rpx;
&>view{
margin-bottom:10rpx;
}
&-top {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 32rpx;
color: #000;
font-weight: 600;
&-left{
display: flex;
align-items: center;
}
.online{
color:#fff;
border-radius: 10rpx;
text-align: center;
font-size: 20rpx;
margin-left:10rpx;
background-color: #d90209;
display: inline-block;
padding:5rpx 10rpx;
}
}
&-address{
color: rgba(0, 0, 0, 0.5);
font-size:24rpx
}
&-distance{
font-size:24rpx;
text{
margin-left:20rpx;
}
}
}
}
.fixright{
position: fixed;
bottom:200rpx;
right:20rpx;
&>view{
font-size: 24rpx;
color:#fff;
border-radius: 100%;
width:100rpx;
height:100rpx;
background-color: #d90209;
text-align: center;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
box-shadow: 4rpx 4rpx 10rpx 0 rgba(0, 0, 0, .1);
}
image{
width:44rpx;
height:44rpx;
}
&-top{
view{
width:100%
}
}
&-bottom{
background-color: #fff!important;
color:#d90209!important;
margin-top:10rpx;
view{
width:100%
}
}
}
}
</style>