描述:预约详情

This commit is contained in:
SelfRidicule 2024-03-08 15:56:06 +08:00
parent 5b459c4c7f
commit 7631ccedcd
3 changed files with 155 additions and 74 deletions

View File

@ -10,6 +10,7 @@ Page({
*/
data: {
IMG_NAME: app.IMG_NAME,
detail: {},
value: '',
companyShow: false,
usernameShow: false,
@ -125,7 +126,7 @@ Page({
wx.setNavigationBarTitle({
title: options.title
})
console.log('options.goods_id', options.title)
console.log('options.goods_id', options)
companyRq({}).then(res => {
console.log('res', res)
if (res.code == 0) {

View File

@ -1,28 +1,65 @@
<view class="container">
<view class="titleView">
<view class="title">请填写访客信息</view>
<view class="containerView public">
<view class="headView">
<view class="leftLineTitle">预约信息</view>
</view>
<view class="inputView">
<van-cell-group>
<van-field label="被访单位" model:value="{{ value }}" is-link required readonly placeholder="请选择" border="{{ true }}" arrow-direction="down" input-align="right" bind:tap="getCompanyHandle" />
<van-field label="被访人姓名" model:value="{{ value }}" is-link required readonly placeholder="请选择" placeholder="请输入" arrow-direction="down" border="{{ true }}" input-align="right" bind:tap="getUsernameHandle" />
<van-field label="被访人电话" model:value="{{ value }}" placeholder="请输入" border="{{ true }}" input-align="right" />
<van-field label="访客姓名" model:value="{{ value }}" required placeholder="请输入" border="{{ true }}" input-align="right" />
<van-field label="手机号码" model:value="{{ value }}" required placeholder="请输入" border="{{ true }}" input-align="right" />
<van-field label="身份证类型" model:value="{{ value}}" is-link required readonly placeholder="请选择" arrow-direction="down" input-align="right" bind:tap="getCardTypeHandle" />
<van-field label="身份证号" model:value="{{ value }}" required placeholder="请输入" border="{{ true }}" input-align="right" />
<van-field label="到访时间" model:value="{{ value }}" is-link required readonly placeholder="请选择" border="{{ true }}" arrow-direction="down" input-align="right" bind:tap="getArriveHandle" />
<van-field label="离开时间" model:value="{{ value }}" is-link required readonly placeholder="请选择" border="{{ true }}" arrow-direction="down" input-align="right" bind:tap="getLeaveHandle" />
<van-field label="来访事由" required model:value="{{ value }}" placeholder="请输入" border="{{ true }}" input-align="right" />
<view class="contentView">
<view class="rowView">
<view class="label must">被访单位</view>
<van-field model:value="{{ }}" input-class="input" is-link readonly placeholder="请选择" arrow-direction="down" input-align="right" border="{{ false }}" bind:tap="getCompanyHandle" />
</view>
<view class="rowView">
<view class="label must">被访人姓名</view>
<van-field model:value="{{ value }}" input-class="input" is-link readonly placeholder="请选择" arrow-direction="down" border="{{ false }}" input-align="right" bind:tap="getUsernameHandle" />
</view>
<view class="rowView">
<view class="label must">被访人电话</view>
<van-field model:value="{{ value }}" input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
</view>
<view class="rowView">
<view class="label must">访客姓名</view>
<van-field model:value="{{ value }}" input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
</view>
<view class="rowView">
<view class="label must">手机号码</view>
<van-field model:value="{{ value }}" input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
</view>
<view class="rowView">
<view class="label must">身份证类型</view>
<van-field model:value="{{ value}}" input-class="input" is-link readonly placeholder="请选择" arrow-direction="down" input-align="right" bind:tap="getCardTypeHandle" />
</view>
<view class="rowView">
<view class="label must">身份证号</view>
<van-field model:value="{{ value }}" input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
</view>
<view class="rowView">
<view class="label must">到访时间</view>
<van-field model:value="{{ value }}" input-class="input" is-link readonly placeholder="请选择" border="{{ false }}" arrow-direction="down" input-align="right" bind:tap="getArriveHandle" />
</view>
<view class="rowView">
<view class="label must">离开时间</view>
<van-field model:value="{{ value }}" input-class="input" is-link readonly placeholder="请选择" border="{{ false }}" arrow-direction="down" input-align="right" bind:tap="getLeaveHandle" />
</view>
<view class="rowView">
<view class="label must">来访事由</view>
<van-field model:value="{{ value }}" input-class="input" placeholder="请输入" border="{{ false }}" input-align="right" />
</view>
<view class="rowView">
<view class="label must">访客照片</view>
<van-field style="visibility: hidden;" />
</view>
</view>
<!-- 上传图片 -->
<view class="uploadImgView">
<view style="margin-bottom: 20rpx;">访客照片</view>
<van-uploader file-list="{{ fileList }}" upload-text="点击上传照片" bind:after-read="afterRead" />
<view class="tipsView">提示:请保持五官清晰,以方便系统精准识</view>
</view>
</van-cell-group>
<view class="submitBtnView">
<van-button block type="info" bind:click="submitFormFn">提交</van-button>
</view>
<!-- 提交 -->
<view class="submitBtnView" bind:click="submitFormFn">提交</view>
<!-- 被访单位弹框 -->
<van-popup show="{{ companyShow }}" round position="bottom">
<van-picker show-toolbar title="被访单位" columns="{{ companyColumns }}" bind:confirm="confirmHandle" bind:cancel="cancelHandle" bind:change="changeHandler" />
@ -50,5 +87,4 @@
</van-popup>
<!-- 提交成功弹框 -->
<van-dialog title="提交成功" show="{{ submitSuccesShow }}" confirm-button-color="#4187f2" bind:confirm="submitDialogFn" />
</view>
</view>

View File

@ -1,38 +1,82 @@
/* pages/meeting/visitorIinvitation/visitorIinvitation.wxss */
.container{
width: 100%;
position: absolute;
height: 100vh;
background-color: #f6f6f6;
.containerView.public {
height: auto;
}
.titleView {
border-left: 8rpx solid #2A6FFF;
.headView {
padding: 30rpx 20rpx;
background: #f6f6f6;
}
.contentView {}
.contentView .rowView {
display: flex;
justify-content: space-between;
align-items: center;
margin: 40rpx 30rpx 0;
padding: 2rpx 0 2rpx 30rpx;
border-bottom: 1px solid rgb(126, 126, 126, 0.2);
}
.titleView .title{
.contentView .rowView:last-of-type {
border-bottom: none;
}
.contentView .rowView .label {
position: relative;
font-size: 30rpx;
color: #000000;
}
.contentView .rowView .label.must::after {
content: '*';
display: block;
position: absolute;
left: 100%;
top: 6rpx;
margin-left: 10rpx;
font-size: 26rpx;
font-weight: 400;
color: #666666;
color: red;
}
.inputView{
margin-top: 20rpx;
.input {
font-size: 30rpx;
}
.uploadImgView{
padding: 16px;
.uploadImgView {
padding: 0 40rpx;
background-color: #ffffff;
color: #646566;
font-size: 28rpx;
color: #646566;
}
.tipsView{
.uploadImgView .tipsView {
text-align: center;
padding-top: 60rpx;
margin-bottom: 100rpx;
}
.submitBtnView{
width: 96%;
margin:0 auto ;
padding-bottom: 100rpx;
.submitBtnView {
width: 600rpx;
padding: 20rpx;
background: #4e96f8;
color: white;
font-size: 30rpx;
text-align: center;
border-radius: 10rpx;
margin: 60rpx auto;
}
.submitBtn {
box-sizing: border-box;
position: fixed;
z-index: 10;
width: 600rpx;
left: 50%;
transform: translateX(-50%);
bottom: 120rpx;
border-radius: 10rpx;
padding: 20rpx;
background: #4e96f8;
color: white;
font-size: 30rpx;
text-align: center;
}