index.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <view class="section" style="margin-bottom:{{Ios ? '118px' : '50px'}};">
  2. <view class="cu-bar bg-white solid-bottom">
  3. <view class="action">
  4. <text class="cuIcon-title text-orange "></text>
  5. <view>
  6. <view class="text-xl text-black"><text>车辆和贷款信息</text> <text class="text-red">(必填)</text></view>
  7. <view class="text-sm">机动车及与车辆相关的物理附属设备、服务、税费等 </view>
  8. </view>
  9. </view>
  10. </view>
  11. <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
  12. <view wx:for="{{value[0]}}" wx:key="index" class="item solid-bottom">
  13. <view data-index="{{[0,index]}}" class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
  14. bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
  15. <!-- 没有输入意义的行 -->
  16. <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
  17. <!-- 输入行 -->
  18. <block wx:elif="{{item.type=='picker'}}">
  19. <view class="title">{{item.title}}</view>
  20. <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
  21. value="{{item.value}}" data-index="{{[0,index]}}" start="1900-01-01" end="{{endDate}}"
  22. bindchange="DateChange">
  23. <view class="picker">
  24. {{item.value}}
  25. </view>
  26. </picker>
  27. </block>
  28. <block wx:else>
  29. <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
  30. <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[0,index]}}"
  31. data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
  32. value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
  33. style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
  34. disabled="{{item.disabled || item.type=='switch'}}"
  35. placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
  36. <!-- switch 特殊处理 -->
  37. <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
  38. </block>
  39. </view>
  40. <view wx:if="{{item.err}}" class="text-red bg-white text-center">{{item.err}}</view>
  41. <view wx:if="{{item.add && item.value}}" class="text-blue bg-white text-center">{{item.add}}圆</view>
  42. </view>
  43. <view class="cu-bar bg-white solid-bottom solid-top">
  44. <view class="action">
  45. <text class="cuIcon-title text-orange "></text>
  46. <view>
  47. <view class="text-xl text-black"><text>申请人基本信息</text> <text class="text-red">(必填)</text></view>
  48. </view>
  49. </view>
  50. </view>
  51. <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
  52. <view wx:for="{{value[1]}}" wx:key="index" class="item solid-bottom">
  53. <view data-index="{{[1,index]}}" class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
  54. bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
  55. <!-- 没有输入意义的行 -->
  56. <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
  57. <!-- 输入行 -->
  58. <block wx:elif="{{item.type=='picker'}}">
  59. <view class="title">{{item.title}}</view>
  60. <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
  61. value="{{item.value}}" data-index="{{[1,index]}}" start="1900-01-01" end="{{endDate}}"
  62. bindchange="DateChange">
  63. <view class="picker">
  64. {{item.value}}
  65. </view>
  66. </picker>
  67. </block>
  68. <block wx:else>
  69. <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
  70. <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[1,index]}}"
  71. data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
  72. value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
  73. style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
  74. disabled="{{item.disabled || item.type=='switch'}}"
  75. placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
  76. <!-- switch 特殊处理 -->
  77. <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
  78. </block>
  79. </view>
  80. <view wx:if="{{item.err}}" class="text-red bg-white text-center">{{item.err}}</view>
  81. <view wx:if="{{item.add && item.value}}" class="text-blue bg-white text-center">{{item.add}}圆</view>
  82. </view>
  83. <view class="cu-bar bg-white solid-bottom solid-top">
  84. <view class="action">
  85. <text class="cuIcon-title text-orange "></text>
  86. <view>
  87. <view class="text-xl text-black"><text>紧急联系人信息</text> <text class="text-red">(必填)</text></view>
  88. </view>
  89. </view>
  90. </view>
  91. <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
  92. <view wx:for="{{value[2]}}" wx:key="index" class="item solid-bottom">
  93. <view data-index="{{[2,index]}}" class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
  94. bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
  95. <!-- 没有输入意义的行 -->
  96. <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
  97. <!-- 输入行 -->
  98. <block wx:elif="{{item.type=='picker'}}">
  99. <view class="title">{{item.title}}</view>
  100. <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
  101. value="{{item.value}}" data-index="{{[2,index]}}" start="1900-01-01" end="{{endDate}}"
  102. bindchange="DateChange">
  103. <view class="picker">
  104. {{item.value}}
  105. </view>
  106. </picker>
  107. </block>
  108. <block wx:else>
  109. <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
  110. <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[2,index]}}"
  111. data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
  112. value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
  113. style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
  114. disabled="{{item.disabled || item.type=='switch'}}"
  115. placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
  116. <!-- switch 特殊处理 -->
  117. <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
  118. </block>
  119. </view>
  120. <view wx:if="{{item.err}}" class="text-red bg-white text-center">{{item.err}}</view>
  121. <view wx:if="{{item.add && item.value}}" class="text-blue bg-white text-center">{{item.add}}圆</view>
  122. </view>
  123. <view wx:if="{{value[2][6]['value']==1}}" class="cu-bar bg-white solid-bottom solid-top">
  124. <view class="action">
  125. <text class="cuIcon-title text-orange "></text>
  126. <view>
  127. <view class="text-xl text-black"><text>共同借款人信息</text> <text class="text-red">(必填)</text></view>
  128. </view>
  129. </view>
  130. </view>
  131. <!--form框类型奇特 特殊处理 除开发人员或者经验娴熟的人,其余不建议修改-->
  132. <view wx:if="{{value[2][6]['value']==1}}" wx:for="{{value[3]}}" wx:key="index" class="item solid-bottom">
  133. <view data-index="{{[3,index]}}" class="cu-form-group {{(item.for && item.norequire) ? 'hide' :'show'}}"
  134. bindtap="{{item.type=='switch' && !item.disabled ? 'switchFunc' : ''}}">
  135. <!-- 没有输入意义的行 -->
  136. <view wx:if="{{item.style}}" class="title">{{item.title}}</view>
  137. <!-- 输入行 -->
  138. <block wx:elif="{{item.type=='picker'}}">
  139. <view class="title">{{item.title}}</view>
  140. <picker disabled="{{item.disabled}}" class="picker" style="height:80rpx;line-height: 80rpx;" mode="date"
  141. value="{{item.value}}" data-index="{{[3,index]}}" start="1900-01-01" end="{{endDate}}"
  142. bindchange="DateChange">
  143. <view class="picker">
  144. {{item.value}}
  145. </view>
  146. </picker>
  147. </block>
  148. <block wx:else>
  149. <view class="title {{item.norequire ? 'text-blue' : ''}}" style="">{{item.title}}</view>
  150. <input class="{{item.type == 'switch' ? 'text-right' : ''}}" data-index="{{[3,index]}}"
  151. data-value="{{item.value}}" id="{{item.name}}" type="{{item._type ? item._type : 'text'}}"
  152. value="{{item.type == 'switch' ? switchs[item.name][item.index]['value'] : item.value}}" bindinput="inputFunc"
  153. style="z-index: 0;height: 60rpx;transform: translateY(-3rpx);"
  154. disabled="{{item.disabled || item.type=='switch'}}"
  155. placeholder="{{(item.disabled || item.type=='switch') ? '' : item._title ? '请输入' +item._title : '请输入' + item.title}}"></input>
  156. <!-- switch 特殊处理 -->
  157. <view wx:if="{{item.type=='switch'}}" class="cuIcon-right"></view>
  158. </block>
  159. </view>
  160. <view wx:if="{{item.err}}" class="text-red bg-white text-center">{{item.err}}</view>
  161. <view wx:if="{{item.add && item.value}}" class="text-blue bg-white text-center">{{item.add}}圆</view>
  162. </view>
  163. </view>
  164. <!-- 功能栏 -->
  165. <!-- 新增 -->
  166. <van-goods-action custom-class="goods-ios" wx:if="{{type=='add'}}">
  167. <van-goods-action-button loading="{{saveLock}}" type="warning" bind:click="saveFunc" text="保存草稿" />
  168. <van-goods-action-button loading="{{submitLock}}" bind:click="submitFunc" text="提交" />
  169. </van-goods-action>
  170. <!-- 草稿箱修改 -->
  171. <van-goods-action custom-class="goods-ios" wx:elif="{{type=='draftsupdate'}}">
  172. <van-goods-action-button loading="{{saveLock}}" type="warning" bind:click="draftsUpdateSaveFunc" text="保存草稿" />
  173. <van-goods-action-button loading="{{submitLock}}" bind:click="submitFunc" text="上报" />
  174. </van-goods-action>
  175. <!-- 已填报修改 -->
  176. <van-goods-action custom-class="goods-ios" wx:elif="{{type=='providedupdate'}}">
  177. <van-goods-action-button loading="{{submitLock}}" bind:click="UpdateSaveFunc" text="上报" />
  178. </van-goods-action>
  179. <!-- 单选 -->
  180. <view class="cu-modal {{switchB ?'show':''}}" bindtap="hideModal">
  181. <view class="cu-dialog" catchtap>
  182. <view class="bg-white padding solid-bottom">{{value[activeIndex[0]][activeIndex[1]]['title']}}</view>
  183. <scroll-view scroll-y style="max-height: 50vh;">
  184. <radio-group bindchange="changeFunc" class="block">
  185. <view class="cu-list menu text-left">
  186. <view class="cu-item" wx:for="{{switchs[active]}}" wx:key="index">
  187. <label class="flex justify-between align-center flex-sub">
  188. <view class="flex-sub">{{item.value}}</view>
  189. <radio value="{{[item.key,index]}}"
  190. checked="{{value[activeIndex[0]][activeIndex[1]]['value'] === item.key}}" class="round"></radio>
  191. </label>
  192. </view>
  193. </view>
  194. </radio-group>
  195. </scroll-view>
  196. </view>
  197. </view>
  198. <!-- 错误提示框 -->
  199. <van-dialog use-slot title="提示" show="{{ errorShow }}" confirmText="关闭" bind:confirm="errorConfirmFunc">
  200. <scroll-view scroll-y style="max-height:50vh;">
  201. <view wx:for="{{megs}}" wx:key="index" class="margin-sm">{{index+1}}、 {{item}}</view>
  202. </scroll-view>
  203. </van-dialog>
  204. <van-dialog id="van-dialog" />