This commit is contained in:
1692762430 2024-02-27 08:47:32 +08:00
parent 4f35ab7f12
commit c70540e9a6
5 changed files with 107 additions and 7 deletions

View File

@ -1,3 +1,5 @@
{ {
"usingComponents": {} "usingComponents": {
"van-field": "@vant/weapp/field/index"
}
} }

View File

@ -5,7 +5,8 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
value: '',
discountShow:false
}, },
/** /**
@ -52,6 +53,10 @@ Page({
onPullDownRefresh() { onPullDownRefresh() {
}, },
onChange(event) {
// event.detail 为当前输入的值
console.log(event.detail);
},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数

View File

@ -1,3 +1,8 @@
{ {
"usingComponents": {} "usingComponents": {
} "van-field": "@vant/weapp/field/index",
"van-picker": "@vant/weapp/picker/index",
"van-popup": "@vant/weapp/popup/index"
}
}

View File

@ -1,2 +1,69 @@
<!--pages/meeting/visitorIinvitation/visitorIinvitation.wxml--> <view class="container">
<text>pages/meeting/visitorIinvitation/visitorIinvitation.wxml</text> <view class="titleView">
<view class="title">请填写访客信息</view>
</view>
<view class="inputView">
<van-cell-group>
<van-field
label="被访人姓名"
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="被访人电话"
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="被访单位"
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="访客姓名"
required
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="手机号码"
required
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="身份证号"
required
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="到访时间"
required
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="离开时间"
required
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
<van-field
label="来访事由"
required
model:value="{{ value }}"
placeholder="请输入"
border="{{ true }}"
input-align="right" />
</van-cell-group>
</view>
</view>

View File

@ -1 +1,22 @@
/* pages/meeting/visitorIinvitation/visitorIinvitation.wxss */ /* pages/meeting/visitorIinvitation/visitorIinvitation.wxss */
.container{
width: 100%;
position: absolute;
height: 100vh;
background-color: #f6f6f6;
}
.titleView {
border-left: 8rpx solid #2A6FFF;
display: flex;
align-items: center;
margin: 40rpx 30rpx 0;
}
.titleView .title{
margin-left: 10rpx;
font-size: 26rpx;
font-weight: 400;
color: #666666;
}
.inputView{
margin-top: 20rpx;
}