同一个页面下,进行视图切换或者点击事件,视图层数据加载出错
如下:
点击提交后:
源码:
//.js
//.wxml
<form class=“form” bindsubmit=“formSubmit” bindreset=“formReset”>
<view class=“ch-box”>
<text class="">请选择标签</text>
</view>
<checkbox-group bindchange=“checkboxChange” class=“check-box” name=“checkbox”>
<label class=“checkbox” wx:for="{{items}}" wx:key="*this">
<checkbox value="{{item.name}}" checked="{{item.checked}}"/>{{item.value}}
</label>
</checkbox-group>
<view class=“advice-box”>
<textarea class=“advice” bindblur=“bindTextAreaBlur” auto-height placeholder=“写下您的宝贵意见,我们将尽快改进,投诉问题将尽快解决” name=“textarea” />
</view>
<view class=“submit-btn”>
<button class=“btn” formType=“submit” type=“default” size="{{defaultSize}}" loading="{{loading}}" plain="{{plain}}"
disabled="{{disabled}}" hover-class=“other-button-hover”> 提交 </button>
</view>
</form>
诚心求教!