<template name='form'><view class='address-picker' style='padding:0 24rpx;'><view class='form-title text-more'>{{(item.form.name?item.form.name:"表单信息")}}</view><view class='form-list'><block wx:for='{{item.form.list}}' wx:for-item='form' wx:for-index='formId' wx:key='{{form.id}}'><view class='form-one flex-row'><view class='flex-grow-0 list-name {{(form.type == "text"?"flex-y-center":"")}} {{(form.required == 1?"required":"")}}'>{{form.name}}</view><block wx:if='{{form.type == "text"}}'><view class='flex-grow-1 flex-y-center'><input bindConfirm='formInput' bindInput='formInput' bindblur='formInput' data-form-id='{{formId}}' data-index='{{index}}' placeholder='{{form.tip}}' type='text' value='{{form.default}}'></input></view></block><block wx:if='{{form.type == "textarea"}}'><view class='flex-grow-1'><textarea autoHeight='true' bindConfirm='formInput' bindInput='formInput' bindblur='formInput' data-form-id='{{formId}}' data-index='{{index}}' placeholder='{{form.tip}}' style='width:auto;max-height:400rpx;height:auto' value='{{form.default}}'></textarea></view></block><block wx:if='{{form.type == "time"}}'><view class='flex-grow-1' style='justify-content:flex-end;text-align:right;'><picker bindchange='formInput' data-form-id='{{formId}}' data-index='{{index}}' end='23:59' mode='time' start='00:00' value='{{(form.default?form.default:"00:00")}}'><view>{{(form.default?form.default:"请选择")}}</view></picker></view><view class='flex-grow-0'><image class='right-jiantou' src='{{__wxapp_img.store.jiantou_r.url}}'></image></view></block><block wx:if='{{form.type == "date"}}'><view class='flex-grow-1' style='justify-content:flex-end;text-align:right;'><picker bindchange='formInput' data-form-id='{{formId}}' data-index='{{index}}' mode='date' start='{{time}}' value='{{(form.default?form.default:time)}}'><view>{{(form.default?form.default:"请选择")}}</view></picker></view><view class='flex-grow-0'><image class='right-jiantou' src='{{__wxapp_img.store.jiantou_r.url}}'></image></view></block><block wx:if='{{form.type == "radio"}}'><view class='flex-grow-1 flex-row' style='flex-wrap:wrap'><block wx:for='{{form.default_list}}' wx:for-item='v' wx:for-index='k' wx:key='{{v.id}}'><view bindtap='selectForm' class='default {{(v.is_selected == 1?"d-active":"")}}' data-form-id='{{formId}}' data-index='{{index}}' data-k='{{k}}'>{{v.name}}</view></block></view></block><block wx:if='{{form.type == "checkbox"}}'><view class='flex-grow-1 flex-row' style='flex-wrap:wrap'><block wx:for='{{form.default_list}}' wx:for-item='v' wx:for-index='k' wx:key='{{v.id}}'><view bindtap='selectForm' class='default {{(v.is_selected == 1?"d-active":"")}}' data-form-id='{{formId}}' data-index='{{index}}' data-k='{{k}}' style='border-radius:0'>{{v.name}}</view></block></view></block><block wx:if='{{form.type == "uploadImg"}}'><view bindtap='uploadImg' class='flex-grow-1 flex-y-center' data-form-id='{{formId}}' data-index='{{index}}'><block wx:if='{{form.default}}'><view style='text-align:right;width:100%;font-size:0'><image mode='aspectFit' src='{{form.default}}' style='width:88rpx;height:96rpx'></image></view></block><block wx:else><view style='text-align:right;width:100%;color:#c9c9c9;'><view>{{(form.tip?form.tip:"请选择图片")}}</view></view></block></view><view class='flex-grow-0 flex-y-center'><image src='{{__wxapp_img.balance.right.url}}' style='width:12rpx;height:18rpx;margin-left:18rpx;'></image></view></block></view></block></view></view></template>