市北党建引领小程序初始化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

165 lines
7.5 KiB

<view class="active-apply" wx:if="{{type == 'edit' || type == ''}}">
<view class="apply-list" bindtap="toApplyList" wx:if="{{!type}}">
<image src="../../images/wodeshangbao.png" />
</view>
<view class="data-form">
<view class="data-form-item">
<view class="item-label item-label-title">基本信息</view>
</view>
<view class="data-form-item">
<text class="must">*</text>
<view class="item-label">姓名</view>
<view class="item-value">
<input type="text" placeholder-class="placeholder" placeholder="请输入姓名" value="{{name}}" bindinput="onInputValue" data-code="name" maxlength='20' />
</view>
</view>
<view class="data-form-item">
<text class="must">*</text>
<view class="item-label">手机号</view>
<view class="item-value">
<input type="number" placeholder-class="placeholder" placeholder="请输入手机号" value="{{phone}}" bindinput="onInputValue" data-code="phone" maxlength='11' />
</view>
</view>
<view class="data-form-item" style="margin-bottom:10rpx">
<text class="must">*</text>
<view class="item-label">身份证号</view>
<view class="item-value">
<input type="idcard" placeholder-class="placeholder" placeholder="请输入证件号" value="{{card}}" bindinput="onInputValue" data-code="card" maxlength='18' />
</view>
</view>
<view class="data-form-item">
<view class="item-label item-label-title">现居住地</view>
</view>
<view class="data-form-item">
<text class="must">*</text>
<view class="item-label">现居地</view>
<view class="item-value" bind:tap="onOpenNowAddress">
<view class="value-text {{nowAddress ? '' : 'placeholder'}}">{{nowAddress || '请选择'}}</view>
</view>
<view class="item-select" bind:tap="onOpenNowAddress">
<!-- <image src="../../images/right-sword.png" class="arrow" /> -->
</view>
<!-- defaultFieldNames='{{defaultFieldNames}}' bind:close="onCloseNowAddress" -->
<block wx:if="{{visibleNowAddress}}">
<wux-cascader visible="{{ visibleNowAddress }}" title="所在地区" controlled value="{{ nowAddressValue }}" options="{{ options1 }}" bind:change="onChangeAdress" bind:load="onLoadOptions" />
</block>
</view>
<view class="data-form-item" style="margin-bottom:10rpx">
<text class="must">*</text>
<view class="item-label">详情地址</view>
<view class="item-value">
<input type="text" placeholder-class="placeholder" placeholder="请输入地址" value="{{detailAddress}}" bindinput="onInputValue" data-code="detailAddress" />
</view>
</view>
<view class="data-form-item">
<view class="item-label item-label-title">行程信息</view>
</view>
<view class="data-form-item">
<text class="must">*</text>
<view class="item-label">来自地区</view>
<view class="item-value" bind:tap="onOpenComeFromAddress">
<view class="value-text {{comeFromAddress ? '' : 'placeholder'}}">
{{comeFromAddress || '请选择'}}
</view>
</view>
<block wx:if="{{visibleComeFromAddress}}">
<!-- bind:close="onCloseComeFromAddress" -->
<wux-cascader visible="{{ visibleComeFromAddress }}" controlled value="{{ comeFromAddressValue }}" options="{{ options1 }}" bind:change="onChangeComeFromAddress" bind:load="onLoadComeAddress" />
</block>
</view>
<view class="data-form-item">
<text class="must">*</text>
<view class="item-label" style="width:200rpx">来到本地时间</view>
<view class="item-value" bind:tap="onOpenLocalTime">
<view class="value-text {{localTime ? '' : 'placeholder'}}">{{localTime || '请选择'}}</view>
</view>
<block wx:if="{{visibleLocalTime}}">
<wux-date-picker visible="{{ visibleLocalTime }}" controlled mode="date" value="{{ localTimeValue }}" lang="zh_CN" data-name="localTimeValue" data-mode="date" data-label='localTime' data-visible='visibleLocalTime' bind:confirm="onConfirm" bind:cancel='onCancelTime'></wux-date-picker>
</block>
</view>
<view class="data-form-item">
<!-- <text class="must">*</text> -->
<view class="item-label">返回时间</view>
<view class="item-value" bind:tap="onOpenBackTime">
<view class="value-text {{backTime ? '' : 'placeholder'}}">{{backTime || '请选择'}}</view>
</view>
<block wx:if="{{visibleBackTime}}">
<wux-date-picker visible="{{ visibleBackTime }}" controlled mode="date" value="{{ backTimeValue }}" lang="zh_CN" data-name="backTimeValue" data-mode="date" data-label='backTime' data-visible='visibleBackTime' bind:confirm="onConfirm" bind:cancel='onCancelTime'></wux-date-picker>
</block>
</view>
<view class="data-form">
<view class="textarea-item">
<textarea class="textarea" placeholder-class="placeholder" placeholder="请输入备注信息" maxlength="100" value="{{actContent}}" bindinput="onInputValue" data-code="actContent" maxlength='200'></textarea>
</view>
</view>
</view>
<view class="data-form">
<view class="footer-item">
<view class="submit" bindtap="onSubmitApply" hover-class="hover-submit-btn" hover-stay-time="150">
提交
</view>
</view>
</view>
</view>
<view class="active-apply" wx:elif="{{type == 'look'}}">
<view class="data-form">
<view class="data-form-item">
<view class="item-label item-label-title">基本信息</view>
</view>
<view class="data-form-item">
<view class="item-label">姓名</view>
<view class="item-value">{{name}}</view>
</view>
<view class="data-form-item">
<view class="item-label">手机号</view>
<view class="item-value">{{phone}}</view>
</view>
<view class="data-form-item" style="margin-bottom:10rpx">
<view class="item-label">身份证号</view>
<view class="item-value">{{card}}</view>
</view>
</view>
<view class="data-form">
<view class="data-form-item">
<view class="item-label item-label-title">现居住地</view>
</view>
<view class="data-form-item">
<view class="item-label">现居地</view>
<view class="item-value">{{nowAddress}}</view>
</view>
<view class="data-form-item" style="margin-bottom:10rpx">
<view class="item-label">详细地址</view>
<view class="item-value">{{detailAddress}}</view>
</view>
</view>
<view class="data-form">
<view class="data-form-item">
<view class="item-label item-label-title">行程信息</view>
</view>
<view class="data-form-item">
<view class="item-label">来自地区</view>
<view class="item-value">{{comeFromAddress}}</view>
</view>
<view class="data-form-item">
<view class="item-label" style="width:200rpx">来到本地时间</view>
<view class="item-value">{{localTime}}</view>
</view>
<view class="data-form-item">
<view class="item-label">返回时间</view>
<view class="item-value">{{backTime? backTime:'暂无'}}</view>
</view>
</view>
<view class="data-form">
<view class="textarea-item">
<view class="item-label">备注</view>
<view class="textarea">{{actContent}}</view>
</view>
</view>
<!-- <view class="data-form" wx:if="{{type==='look'}}">
<view class="footer-item">
<view class="submit delete" bindtap="deleteTripById">删除</view>
<view class="submit confirm" bind:tap="confirmButton">确定</view>
</view>
</view> -->
</view>
<wux-actionsheet id="wux-actionsheet" />