|
@@ -12,14 +12,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
|
|
|
- <view wx:for="{{value[0]}}" wx:key="index" data-index="{{[0,index]}}" class="cu-form-group"
|
|
|
+ <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' ? 'switchFunc' : ''}}">
|
|
|
<!-- 没有输入意义的行 -->
|
|
|
<view wx:if="{{item.style}}" class="title">{{item.title}}</view>
|
|
|
<!-- 输入行 -->
|
|
|
<block wx:elif="{{item.type=='picker'}}">
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
- <picker class="picker" style="height:100rpx;line-height: 100rpx;" mode="date" value="{{item.value}}"
|
|
|
+ <picker 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}}
|
|
@@ -49,14 +50,15 @@
|
|
|
</view>
|
|
|
|
|
|
<!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
|
|
|
- <view wx:for="{{value[1]}}" wx:key="index" data-index="{{[1,index]}}" class="cu-form-group"
|
|
|
+ <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' ? 'switchFunc' : ''}}">
|
|
|
<!-- 没有输入意义的行 -->
|
|
|
<view wx:if="{{item.style}}" class="title">{{item.title}}</view>
|
|
|
<!-- 输入行 -->
|
|
|
<block wx:elif="{{item.type=='picker'}}">
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
- <picker class="picker" style="height:100rpx;line-height: 100rpx;" mode="date" value="{{item.value}}"
|
|
|
+ <picker 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}}
|
|
@@ -86,14 +88,15 @@
|
|
|
</view>
|
|
|
|
|
|
<!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
|
|
|
- <view wx:for="{{value[2]}}" wx:key="index" data-index="{{[2,index]}}" class="cu-form-group"
|
|
|
+ <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' ? 'switchFunc' : ''}}">
|
|
|
<!-- 没有输入意义的行 -->
|
|
|
<view wx:if="{{item.style}}" class="title">{{item.title}}</view>
|
|
|
<!-- 输入行 -->
|
|
|
<block wx:elif="{{item.type=='picker'}}">
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
- <picker class="picker" style="height:100rpx;line-height: 100rpx;" mode="date" value="{{item.value}}"
|
|
|
+ <picker 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}}
|
|
@@ -123,13 +126,14 @@
|
|
|
</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" bindtap="{{item.type=='switch' ? 'switchFunc' : ''}}">
|
|
|
+ class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
|
|
|
+ bindtap="{{item.type=='switch' ? 'switchFunc' : ''}}">
|
|
|
<!-- 没有输入意义的行 -->
|
|
|
<view wx:if="{{item.style}}" class="title">{{item.title}}</view>
|
|
|
<!-- 输入行 -->
|
|
|
<block wx:elif="{{item.type=='picker'}}">
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
- <picker class="picker" style="height:100rpx;line-height: 100rpx;" mode="date" value="{{item.value}}"
|
|
|
+ <picker 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}}
|
|
@@ -152,7 +156,7 @@
|
|
|
<!-- 功能栏 -->
|
|
|
<van-goods-action>
|
|
|
<van-goods-action-button type="warning" bind:click="saveFunc" text="保存" />
|
|
|
- <van-goods-action-button bind:click="submitFunc" text="提交" />
|
|
|
+ <van-goods-action-button loading="{{submitLock}}" bind:click="submitFunc" text="提交" />
|
|
|
</van-goods-action>
|
|
|
|
|
|
<!-- 单选 -->
|
|
@@ -165,11 +169,19 @@
|
|
|
<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}}</view>
|
|
|
- <radio value="{{index}}" class="round"></radio>
|
|
|
+ <radio value="{{index}}" checked="{{value[activeIndex[0]][activeIndex[1]]['value']===index}}"
|
|
|
+ class="round"></radio>
|
|
|
</label>
|
|
|
</view>
|
|
|
</view>
|
|
|
</radio-group>
|
|
|
</scroll-view>
|
|
|
</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>
|