123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <view class="section">
- <view class="cu-bar bg-white solid-bottom">
- <view class="action">
- <text class="cuIcon-title text-orange "></text>
- <view>
- <view class="text-xl text-black"><text>车辆和贷款信息</text> <text class="text-red">(必填)</text></view>
- <view class="text-sm">机动车及与车辆相关的物理附属设备、服务、水费等 </view>
- </view>
- </view>
- </view>
- <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
- <view wx:for="{{value[0]}}" wx:key="index" data-index="{{[0,index]}}"
- class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
- bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
- <!-- 没有输入意义的行 -->
- <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
- <!-- 输入行 -->
- <block wx:elif="{{item.type=='picker'}}">
- <view class="title">{{item.title}}</view>
- <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
- value="{{item.value}}" data-index="{{[0,index]}}" start="1900-01-01" end="{{endDate}}" bindchange="DateChange">
- <view class="picker">
- {{item.value}}
- </view>
- </picker>
- </block>
- <block wx:else>
- <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
- <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[0,index]}}"
- data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
- value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
- style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
- disabled="{{item.disabled || item.type=='switch'}}"
- placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
- <!-- switch 特殊处理 -->
- <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
- </block>
- </view>
- <view class="cu-bar bg-white solid-bottom solid-top">
- <view class="action">
- <text class="cuIcon-title text-orange "></text>
- <view>
- <view class="text-xl text-black"><text>申请人基本信息</text> <text class="text-red">(必填)</text></view>
- </view>
- </view>
- </view>
- <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
- <view wx:for="{{value[1]}}" wx:key="index" data-index="{{[1,index]}}"
- class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
- bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
- <!-- 没有输入意义的行 -->
- <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
- <!-- 输入行 -->
- <block wx:elif="{{item.type=='picker'}}">
- <view class="title">{{item.title}}</view>
- <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
- value="{{item.value}}" data-index="{{[1,index]}}" start="1900-01-01" end="{{endDate}}" bindchange="DateChange">
- <view class="picker">
- {{item.value}}
- </view>
- </picker>
- </block>
- <block wx:else>
- <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
- <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[1,index]}}"
- data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
- value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
- style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
- disabled="{{item.disabled || item.type=='switch'}}"
- placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
- <!-- switch 特殊处理 -->
- <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
- </block>
- </view>
- <view class="cu-bar bg-white solid-bottom solid-top">
- <view class="action">
- <text class="cuIcon-title text-orange "></text>
- <view>
- <view class="text-xl text-black"><text>紧急联系人信息</text> <text class="text-red">(必填)</text></view>
- </view>
- </view>
- </view>
- <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
- <view wx:for="{{value[2]}}" wx:key="index" data-index="{{[2,index]}}"
- class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
- bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
- <!-- 没有输入意义的行 -->
- <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
- <!-- 输入行 -->
- <block wx:elif="{{item.type=='picker'}}">
- <view class="title">{{item.title}}</view>
- <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
- value="{{item.value}}" data-index="{{[2,index]}}" start="1900-01-01" end="{{endDate}}" bindchange="DateChange">
- <view class="picker">
- {{item.value}}
- </view>
- </picker>
- </block>
- <block wx:else>
- <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
- <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[2,index]}}"
- data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
- value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
- style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
- disabled="{{item.disabled || item.type=='switch'}}"
- placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
- <!-- switch 特殊处理 -->
- <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
- </block>
- </view>
- <view wx:if="{{value[2][6]['value']==1}}" class="cu-bar bg-white solid-bottom solid-top">
- <view class="action">
- <text class="cuIcon-title text-orange "></text>
- <view>
- <view class="text-xl text-black"><text>共同借款人信息</text> <text class="text-red">(必填)</text></view>
- </view>
- </view>
- </view>
- <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
- <view wx:if="{{value[2][6]['value']==1}}" wx:for="{{value[3]}}" wx:key="index" data-index="{{[3,index]}}"
- class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
- bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
- <!-- 没有输入意义的行 -->
- <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
- <!-- 输入行 -->
- <block wx:elif="{{item.type=='picker'}}">
- <view class="title">{{item.title}}</view>
- <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
- value="{{item.value}}" data-index="{{[3,index]}}" start="1900-01-01" end="{{endDate}}" bindchange="DateChange">
- <view class="picker">
- {{item.value}}
- </view>
- </picker>
- </block>
- <block wx:else>
- <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
- <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[3,index]}}"
- data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
- value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
- style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
- disabled="{{item.disabled || item.type=='switch'}}"
- placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
- <!-- switch 特殊处理 -->
- <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
- </block>
- </view>
- <!-- <view class="cu-bar bg-white solid-bottom solid-top">
- <view class="action">
- <text class="cuIcon-title text-orange "></text>
- <view>
- <view class="text-xl text-black"><text>借款人身份证</text> <text class="text-red">(必填)</text></view>
- </view>
- </view>
- </view> -->
- </view>
- <!-- 功能栏 -->
- <van-goods-action wx:if="{{btn}}">
- <van-goods-action-button loading="{{saveLock}}" type="warning" bind:click="saveFunc" text="保存" />
- <van-goods-action-button loading="{{submitLock}}" bind:click="submitFunc" text="提交" />
- </van-goods-action>
- <!-- 单选 -->
- <view class="cu-modal {{switchB ?'show':''}}" bindtap="hideModal">
- <view class="cu-dialog" catchtap>
- <view class="bg-white padding solid-bottom">{{value[activeIndex[0]][activeIndex[1]]['title']}}</view>
- <scroll-view scroll-y style="max-height: 50vh;">
- <radio-group bindchange="changeFunc" class="block">
- <view class="cu-list menu text-left">
- <view class="cu-item" wx:for="{{switchs[active]}}" wx:key="index">
- <label class="flex justify-between align-center flex-sub">
- <view class="flex-sub">{{item.value}}</view>
- <radio value="{{[item.key,index]}}"
- checked="{{value[activeIndex[0]][activeIndex[1]]['value'] === item.key}}" class="round"></radio>
- </label>
- </view>
- </view>
- </radio-group>
- </scroll-view>
- </view>
- </view>
- <!-- 错误提示框 -->
- <van-dialog use-slot title="提示" show="{{ errorShow }}" confirmText="关闭" bind:confirm="errorConfirmFunc">
- <scroll-view scroll-y style="max-height:50vh;">
- <view wx:for="{{megs}}" wx:key="index" class="margin-sm">{{index+1}}、 {{item}}</view>
- </scroll-view>
- </van-dialog>
- <van-dialog id="van-dialog" />
|