130 lines
2.2 KiB
Vue
130 lines
2.2 KiB
Vue
<template>
|
|
<view class="page-content">
|
|
<view style="z-index: 10000;position: sticky;" :style="'top:0px'">
|
|
<view class="top-bar">
|
|
<nut-button type="primary" block @click="navigateTo('/pages/index/orderAdd')">
|
|
新增商品订单
|
|
</nut-button>
|
|
</view>
|
|
</view>
|
|
<nut-grid :column-num="2" square>
|
|
<nut-grid-item v-for="(room, index) in rooms" :key="index">
|
|
<view class="grid-item-content">
|
|
<view class="room-name">{{room.name}}</view>
|
|
<view class="room-footer">
|
|
<view class="room-id">尾号: 111111</view>
|
|
<view class="remark">备注: 这是一段北湖这是一段北湖这是一段北...</view>
|
|
</view>
|
|
<view class="buttons">
|
|
<nut-button type="primary">预约</nut-button>
|
|
<nut-button type="success">开台</nut-button>
|
|
</view>
|
|
</view>
|
|
</nut-grid-item>
|
|
</nut-grid>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {
|
|
ref,
|
|
reactive,
|
|
onMounted,
|
|
computed
|
|
} from 'vue'
|
|
|
|
import {
|
|
onLoad,
|
|
onShow,
|
|
} from '@dcloudio/uni-app'
|
|
|
|
import {
|
|
navigateTo,
|
|
} from '@/utils/helper'
|
|
|
|
|
|
|
|
|
|
// 房间列表
|
|
const rooms = [{
|
|
name: '房间名称 1'
|
|
},
|
|
{
|
|
name: '房间名称 2'
|
|
},
|
|
{
|
|
name: '房间名称 3'
|
|
},
|
|
{
|
|
name: '房间名称 4'
|
|
},
|
|
{
|
|
name: '房间名称 5'
|
|
},
|
|
{
|
|
name: '房间名称 6'
|
|
},
|
|
{
|
|
name: '房间名称 7'
|
|
},
|
|
{
|
|
name: '房间名称 8'
|
|
},
|
|
{
|
|
name: '房间名称 9'
|
|
}
|
|
];
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.page-content {
|
|
min-height: 100vh;
|
|
background-color: #f2f3f5;
|
|
|
|
}
|
|
|
|
.top-bar {
|
|
background: #fff;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 20rpx 60rpx;
|
|
|
|
}
|
|
|
|
.grid-item-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.room-name {
|
|
font-size: 32rpx;
|
|
// margin-bottom: 20rpx;
|
|
}
|
|
|
|
.room-footer {
|
|
margin: 20rpx 0;
|
|
color: #666;
|
|
.room-id {
|
|
font-size: 26rpx;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.remark {
|
|
font-size: 24rpx;
|
|
padding: 10rpx;
|
|
text-align: center;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.buttons {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
}
|
|
</style> |