在开发过程 中发现,input作为原生组件无法隐藏,用hidden={{!show}} 替换wx:if={{show}}即可
<view hidden="{{!changeQ}}" catchtouchmove="stopmove">
<view class='toast-box'>
<view class='toastbg'></view>
<view class='showToast'>
<view class='toast-title'>
<text>修改第{{quest0.id+1}}个问题</text>
<text>{{quest0.type==1?"单选":"多选"}}</text>
<!-- <checkbox-group bindchange="checkboxChange">
<checkbox value="2">多选</checkbox>
</checkbox-group> -->
</view>
<view class='toast-main'>
<view class="inputbox">
<text class="input-title">问题:</text>
<input class='toast-input' focus="false" bindinput='getUserInput' value="{{changeQ?quest0.question:' '}}" data-quest="quest" auto-focus="false"></input>
</view>