tearoom/page_shanghu/adddating.vue
2024-12-20 09:02:40 +08:00

161 lines
3.0 KiB
Vue

<template>
<view class="page">
<u-navbar title="新建大厅" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
title-size='36' height='40' id="navbar">
</u-navbar>
<view class="box">
<view class="name">
<view class="lt">
名称
</view>
<view class="rt">
<input type="text" placeholder="请输入房间名称"/> <image src="https://api.ccttiot.com/smartmeter/img/static/uCta8cp7uXd1lGjZS6sc" mode=""></image>
</view>
</view>
<view class="name" style="border: none;">
<view class="lt">
类型
</view>
<view class="rt" @click="show = true">
{{leixing}} <image src="https://api.ccttiot.com/smartmeter/img/static/uCta8cp7uXd1lGjZS6sc" mode=""></image>
</view>
</view>
</view>
<u-select v-model="show" :list="list" @confirm="confirm"></u-select>
<view class="anniu">
<view class="xinjian" @click="btndt">
取消
</view>
<view class="queren" @click="btnmd">
确认新建
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
leixing:'请选择类型',
show:false,
list:[
{
value: '2',
label: '棋牌'
},
{
value: '1',
label: '茶室'
},
{
value: '3',
label: '台球'
},
],
type:'',
}
},
onLoad() {
},
methods: {
// 确认选择类型
confirm(e){
this.type = e[0].value
this.leixing =e[0].label
},
// 点击确定新建大厅
btnmd(){
},
// 点击取消
btndt(){
uni.navigateBack()
}
}
}
</script>
<style lang="scss">
page {
background: #F6F6F6;
}
.anniu{
width: 750rpx;
height: 152rpx;
background: #FFFFFF;
box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.3);
border-radius: 0rpx 0rpx 0rpx 0rpx;
position: fixed;
left: 0;
bottom: 0;
display: flex;
justify-content: space-between;
padding: 0 36rpx;
box-sizing: border-box;
padding-top: 24rpx;
.queren{
width: 314rpx;
height: 104rpx;
background: #48893B;
text-align: center;
line-height: 104rpx;
font-weight: 600;
font-size: 36rpx;
color: #FFFFFF;
border-radius: 20rpx;
}
.xinjian{
width: 314rpx;
height: 104rpx;
border: 2rpx solid #48893B;
border-radius: 20rpx;
text-align: center;
line-height: 104rpx;
font-weight: 600;
font-size: 36rpx;
color: #48893B;
}
}
.box{
width: 680rpx;
max-height: 228rpx;
background: #FFFFFF;
margin: auto;
margin-top: 22rpx;
border-radius: 20rpx;
.name{
display: flex;
justify-content: space-between;
align-items: center;
width: 618rpx;
margin: auto;
height: 110rpx;
border-bottom: 1px solid #D8D8D8;
.lt{
font-size: 32rpx;
color: #3D3D3D;
}
.rt{
display: flex;
align-items: center;
input{
text-align: right;
}
image{
width: 14rpx;
height: 42rpx;
margin-left: 10rpx;
}
}
}
}
</style>