描述:修改

This commit is contained in:
SelfRidicule 2024-03-12 12:00:14 +08:00
parent 0fc58575e1
commit 9e6c438a02
6 changed files with 70 additions and 58 deletions

View File

@ -172,7 +172,7 @@ Page({
let dataList = res.data; let dataList = res.data;
dataList.map(item => { dataList.map(item => {
item.nowDate = item.nowDate.substring(0, 10); item.nowDate = item.nowDate.substring(0, 10);
item.reservations = item.reservations.map(record => { item.showroomRecords = item.showroomRecords.map(record => {
record.startTime = record.startTime.substring(11) record.startTime = record.startTime.substring(11)
record.endDate = record.endDate.substring(11) record.endDate = record.endDate.substring(11)
return record; return record;

View File

@ -6,7 +6,7 @@
<!-- 预约列表 --> <!-- 预约列表 -->
<view class="itemVIew" wx:for="{{dataList}}" wx:for-item="item" wx:key="*this"> <view class="itemVIew" wx:for="{{dataList}}" wx:for-item="item" wx:key="*this">
<view class="item">{{item.nowDate}}</view> <view class="item">{{item.nowDate}}</view>
<view class="itemTimeView" wx:for="{{item.reservations}}" wx:for-item="record" wx:key="*this"> <view class="itemTimeView" wx:for="{{item.showroomRecords}}" wx:for-item="record" wx:key="*this">
<view class="time">{{record.startTime}}~{{record.endDate}}</view> <view class="time">{{record.startTime}}~{{record.endDate}}</view>
<view class="status">已预约</view> <view class="status">已预约</view>
</view> </view>

View File

@ -38,7 +38,7 @@ Page({
endTime: null, endTime: null,
selectDay: null, selectDay: null,
selectCountTime: null, selectCountTime: null,
formData: {}
}, },
/** /**

View File

@ -4,7 +4,8 @@
"van-field": "@vant/weapp/field/index", "van-field": "@vant/weapp/field/index",
"van-dialog": "@vant/weapp/dialog/index", "van-dialog": "@vant/weapp/dialog/index",
"van-notify": "@vant/weapp/notify/index", "van-notify": "@vant/weapp/notify/index",
"van-checkbox": "@vant/weapp/checkbox/index" "van-checkbox": "@vant/weapp/checkbox/index",
"van-switch": "@vant/weapp/switch/index"
}, },
"navigationBarTitleText": "预约信息" "navigationBarTitleText": "预约信息"
} }

View File

@ -1,4 +1,4 @@
<view class="containerView"> <view class="containerView public">
<!-- 轮播图 --> <!-- 轮播图 -->
<view class="swiperView"> <view class="swiperView">
<view class="tag">展厅</view> <view class="tag">展厅</view>
@ -38,9 +38,45 @@
<!-- 填写信息 --> <!-- 填写信息 -->
<view class="fillMsgView"> <view class="fillMsgView">
<view class="itemView"> <view class="itemView">
<view class="label">会议主题</view> <view class="label must">展厅主题</view>
<view class="content"> <view class="content">
<van-field value="{{ title }}" placeholder="请输入会议主题" input-align="right" border="{{ false }}" bind:change="titleChange"/> <van-field value="{{ title }}" placeholder="请输入展厅主题" input-align="right" border="{{ false }}" bind:change="titleChange" />
</view>
</view>
<view class="itemView">
<view class="label must">来参观人员</view>
<view class="content">
<van-field value="{{ title }}" placeholder="请输入展厅主题" input-align="right" border="{{ false }}" bind:change="titleChange" />
</view>
</view>
<view class="itemView">
<view class="label must">参观目的</view>
<view class="content">
<van-field value="{{ title }}" placeholder="请选择参观目的" input-align="right" border="{{ false }}" readonly is-link arrow-direction="down" bind:change="titleChange" />
</view>
</view>
<view class="itemView">
<view class="label must">讲解需求</view>
<view class="content">
<van-switch checked="{{ checked }}" bind:change="onChange" size="50rpx"/>
</view>
</view>
<view class="itemView">
<view class="label must">是否需要会议室</view>
<view class="content">
<van-switch checked="{{ checked }}" bind:change="onChange" size="50rpx"/>
</view>
</view>
<view class="itemView">
<view class="label must">摄影需求</view>
<view class="content">
<van-switch checked="{{ checked }}" bind:change="onChange" size="50rpx"/>
</view>
</view>
<view class="itemView">
<view class="label">备注</view>
<view class="content">
<van-field value="{{ title }}" placeholder="请输入备注" input-align="right" border="{{ false }}" bind:change="titleChange" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -1,9 +1,5 @@
.containerView { .containerView.public {
height: 100vh; height: auto;
width: 100vw;
overflow: auto;
padding-bottom: 100rpx;
background: #ffffff;
} }
.swiperView { .swiperView {
@ -149,9 +145,21 @@
} }
.fillMsgView .itemView .label { .fillMsgView .itemView .label {
position: relative;
font-size: 28rpx; font-size: 28rpx;
} }
.fillMsgView .itemView .label.must::after {
display: block;
content: '*';
position: absolute;
left: 100%;
margin-left: 10rpx;
top: 6rpx;
color: red;
}
.fillMsgView .itemView .content { .fillMsgView .itemView .content {
flex: 1; flex: 1;
display: flex; display: flex;
@ -184,40 +192,7 @@
color: #76aef9; color: #76aef9;
} }
.amountView { .submitBtn {
display: flex; position: static;
justify-content: space-between; margin-left: 50%;
align-items: center;
padding: 0 38rpx;
} }
.amountView .priceView {
display: flex;
justify-content: flex-start;
align-items: center;
}
.amountView .priceView .title {
font-size: 32rpx;
}
.amountView .priceView .price {
color: red;
font-size: 34rpx;
}
.amountView .priceView .describe {
color: red;
font-size: 28rpx;
margin-left: 6rpx;
}
.amountView .caseBtn {
border-radius: 10rpx;
padding: 16rpx 60rpx;
color: white;
font-size: 30rpx;
background: #4e96f8;
}