mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 22:29:36 +08:00
1
This commit is contained in:
parent
33fca3fd0a
commit
5b459c4c7f
@ -63,7 +63,7 @@
|
|||||||
"pages/meeting/reservationRecord/meetingRecord/meetingDetail/meetingDetail",
|
"pages/meeting/reservationRecord/meetingRecord/meetingDetail/meetingDetail",
|
||||||
"pages/meeting/invite/invite",
|
"pages/meeting/invite/invite",
|
||||||
"pages/meeting/visitorIinvitation/list/list",
|
"pages/meeting/visitorIinvitation/list/list",
|
||||||
"pages/meeting/visitorIinvitation/detail/detali",
|
"pages/meeting/visitorIinvitation/detail/detail",
|
||||||
"pages/meeting/visitorIinvitation/indexBar/indexBar"
|
"pages/meeting/visitorIinvitation/indexBar/indexBar"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
let app = getApp();
|
let app = getApp();
|
||||||
import {
|
import {
|
||||||
companyRq
|
companyRq
|
||||||
} from "../../../api/meeting/visitorIinvitation.js"
|
} from "../../../../api/meeting/visitorIinvitation.js"
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
@ -123,9 +123,9 @@ Page({
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// 页面初始化 options为页面跳转所带来的参数
|
// 页面初始化 options为页面跳转所带来的参数
|
||||||
wx.setNavigationBarTitle({
|
wx.setNavigationBarTitle({
|
||||||
title: options.name
|
title: options.title
|
||||||
})
|
})
|
||||||
console.log('options.goods_id', options.name)
|
console.log('options.goods_id', options.title)
|
||||||
companyRq({}).then(res => {
|
companyRq({}).then(res => {
|
||||||
console.log('res', res)
|
console.log('res', res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {
|
"navigationBarTitleText": "详情",
|
||||||
"van-field": "@vant/weapp/field/index",
|
"usingComponents": {
|
||||||
"van-picker": "@vant/weapp/picker/index",
|
"van-field": "@vant/weapp/field/index",
|
||||||
"van-popup": "@vant/weapp/popup/index",
|
"van-picker": "@vant/weapp/picker/index",
|
||||||
"van-uploader": "@vant/weapp/uploader/index",
|
"van-popup": "@vant/weapp/popup/index",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-uploader": "@vant/weapp/uploader/index",
|
||||||
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-dialog": "@vant/weapp/dialog/index",
|
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
|
||||||
"van-cell": "@vant/weapp/cell/index",
|
"van-dialog": "@vant/weapp/dialog/index",
|
||||||
"van-index-bar": "@vant/weapp/index-bar/index",
|
"van-cell": "@vant/weapp/cell/index",
|
||||||
"van-index-anchor": "@vant/weapp/index-anchor/index"
|
"van-index-bar": "@vant/weapp/index-bar/index",
|
||||||
}
|
"van-index-anchor": "@vant/weapp/index-anchor/index"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,34 +1,34 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="titleView">
|
<view class="titleView">
|
||||||
<view class="title">请填写访客信息</view>
|
<view class="title">请填写访客信息</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="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>
|
||||||
<!-- 被访单位弹框 -->
|
<view class="inputView">
|
||||||
<van-popup show="{{ companyShow }}" round position="bottom">
|
<van-cell-group>
|
||||||
<van-picker show-toolbar title="被访单位" columns="{{ companyColumns }}" bind:confirm="confirmHandle" bind:cancel="cancelHandle" bind:change="changeHandler"/>
|
<van-field label="被访单位" model:value="{{ value }}" is-link required readonly placeholder="请选择" border="{{ true }}" arrow-direction="down" input-align="right" bind:tap="getCompanyHandle" />
|
||||||
</van-popup>
|
<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-popup show="{{ usernameShow }}" round position="bottom" closeable custom-style="height: 100%;position:absolute" bind:close="onClose">
|
<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="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>
|
||||||
|
<!-- 被访单位弹框 -->
|
||||||
|
<van-popup show="{{ companyShow }}" round position="bottom">
|
||||||
|
<van-picker show-toolbar title="被访单位" columns="{{ companyColumns }}" bind:confirm="confirmHandle" bind:cancel="cancelHandle" bind:change="changeHandler" />
|
||||||
|
</van-popup>
|
||||||
|
<!-- 被访人姓名弹框 -->
|
||||||
|
<!-- <van-popup show="{{ usernameShow }}" round position="bottom" closeable custom-style="height: 100%;position:absolute" bind:close="onClose">
|
||||||
<van-index-bar index-list="{{ indexList }}" scroll-top="{{ scrollTop }}" z-index="2">
|
<van-index-bar index-list="{{ indexList }}" scroll-top="{{ scrollTop }}" z-index="2">
|
||||||
<van-index-anchor wx:for="{{customerList}}" wx:key="index" index="{{item.firstLetter}}" use-slot="{{true}}">
|
<van-index-anchor wx:for="{{customerList}}" wx:key="index" index="{{item.firstLetter}}" use-slot="{{true}}">
|
||||||
{{item.firstLetter}}
|
{{item.firstLetter}}
|
||||||
@ -36,19 +36,19 @@
|
|||||||
</van-index-anchor>
|
</van-index-anchor>
|
||||||
</van-index-bar>
|
</van-index-bar>
|
||||||
</van-popup> -->
|
</van-popup> -->
|
||||||
<!-- 身份证类型弹框 -->
|
<!-- 身份证类型弹框 -->
|
||||||
<van-popup show="{{ cardTypeShow }}" round position="bottom">
|
<van-popup show="{{ cardTypeShow }}" round position="bottom">
|
||||||
<van-picker show-toolbar title="身份证类型" columns="{{ columns }}" bind:confirm="confirmHandle" bind:cancel="cancelHandle" />
|
<van-picker show-toolbar title="身份证类型" columns="{{ columns }}" bind:confirm="confirmHandle" bind:cancel="cancelHandle" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<!-- 到访时间选择弹框 -->
|
<!-- 到访时间选择弹框 -->
|
||||||
<van-popup show="{{ arriveShow }}" round position="bottom">
|
<van-popup show="{{ arriveShow }}" round position="bottom">
|
||||||
<van-datetime-picker type="datetime" value="{{ currentDate }}" bind:input="onInput" bind:confirm="confirmHandle" bind:cancel="cancelHandle" />
|
<van-datetime-picker type="datetime" value="{{ currentDate }}" bind:input="onInput" bind:confirm="confirmHandle" bind:cancel="cancelHandle" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<!-- 离开时间弹框 -->
|
<!-- 离开时间弹框 -->
|
||||||
<van-popup show="{{ arriveShow }}" round position="bottom">
|
<van-popup show="{{ arriveShow }}" round position="bottom">
|
||||||
<van-datetime-picker type="datetime" value="{{ currentDate }}" bind:input="onInput" bind:confirm="confirmHandle" bind:cancel="cancelHandle" />
|
<van-datetime-picker type="datetime" value="{{ currentDate }}" bind:input="onInput" bind:confirm="confirmHandle" bind:cancel="cancelHandle" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<!-- 提交成功弹框 -->
|
<!-- 提交成功弹框 -->
|
||||||
<van-dialog title="提交成功" show="{{ submitSuccesShow }}" confirm-button-color="#4187f2" bind:confirm="submitDialogFn"/>
|
<van-dialog title="提交成功" show="{{ submitSuccesShow }}" confirm-button-color="#4187f2" bind:confirm="submitDialogFn" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
@ -1,66 +0,0 @@
|
|||||||
// pages/meeting/visitorIinvitation/detail/detali.js
|
|
||||||
Page({
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
|
||||||
*/
|
|
||||||
onReady() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面显示
|
|
||||||
*/
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
<!--pages/meeting/visitorIinvitation/detail/detali.wxml-->
|
|
||||||
<text>pages/meeting/visitorIinvitation/detail/detali.wxml</text>
|
|
@ -1 +0,0 @@
|
|||||||
/* pages/meeting/visitorIinvitation/detail/detali.wxss */
|
|
@ -61,6 +61,13 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 跳转-预约
|
||||||
|
goReservation() {
|
||||||
|
wx.navigateTo({
|
||||||
|
url: '/pages/meeting/visitorIinvitation/detail/detail?title=预约',
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
*/
|
*/
|
||||||
|
@ -27,8 +27,9 @@
|
|||||||
</van-tab>
|
</van-tab>
|
||||||
</van-tabs>
|
</van-tabs>
|
||||||
|
|
||||||
<view class="submitBtn">立即预约</view>
|
<view class="submitBtn" bind:tap="goReservation">立即预约</view>
|
||||||
|
|
||||||
|
<!-- 审核弹出框 -->
|
||||||
<van-dialog use-slot title="审核" show="{{ dialogShow }}" show-confirm-button="{{false}}" show-cancel-button="{{false}}" close-on-click-overlay>
|
<van-dialog use-slot title="审核" show="{{ dialogShow }}" show-confirm-button="{{false}}" show-cancel-button="{{false}}" close-on-click-overlay>
|
||||||
<van-field input-class="textarea" bind:input="dialogInput" value="{{ dialogContent }}" type="textarea" placeholder="请输入描述信息" />
|
<van-field input-class="textarea" bind:input="dialogInput" value="{{ dialogContent }}" type="textarea" placeholder="请输入描述信息" />
|
||||||
<view class="dialogBtnView">
|
<view class="dialogBtnView">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user