html
<form class="page__bd" bindsubmit="formSubmit" bindreset="formReset">
<l-input label="标题" name='title' bind:linblur='title' rules="{ {titleRules}}" placeholder="请输入标题" />
<l-textarea name='dream' bind:linblur='dream' auto-focus="true" placeholder="说说你的想法吧..." />
<view wx:if="{ {id==3}}">
<!-- <l-image-picker name='img' count="9" bind:linchange="onChangeTap" bind:linremove="remove" /> -->
</view>
<view wx:else="{ {id!=3}}">
<l-image-picker name='img' count="9" bind:linchange="onChangeTap" bind:linremove="remove" />
</view>
<input type="text" hidden="true" name='type_id' value="{ {id}}" />
<view>
<l-button size="mini" bindtap="address">位置</l-button>
<input type="text" name='address' value="{ {address}}" />
</view>
<checkbox-group bindchange="checkboxChange" wx:for="{ {label}}" wx:key="id">
<checkbox value="{ {item.id}}">{ {item.title}}</checkbox>
</checkbox-group>
<view class="btn-area">
<button form-type="submit">Submit提交</button>
</view>
</form>
js
data:{
path:[],
url:'',
add