- <!--为发布者-我收到的问题页面-->
- <view wx:if="{{questions.length == 0}}" class="title primary-text-color" style="text-align: center;">这里空空如也</view>
- <checkbox-group wx:if="{{questions.length != 0}}" class="checkbox-group" bindchange="updateFilter">
- <view><checkbox class="checkbox" value="0" checked color="#3F51B5">未回答</checkbox></view>
- <view><checkbox class="checkbox" value="1" checked color="#3F51B5">已回答</checkbox></view>
- </checkbox-group>
- <view wx:for="{{questions}}" wx:for-item="item" wx:for-index="index" wx:key="_id">
- <view wx:if="{{notAnswered && item.answer == '' || answered && item.answer != ''}}" class="card">
- <view class="title dark-primary-color-font">{{item.title}}</view>
- <view class="question primary-text-color">问:{{item.question}}</view>
- <textarea class="answer block-background-color" value="{{item.answer}}" placeholder="填写回答" data-index="{{index}}" bindinput="updateText"></textarea>
- <view class="save-btn default-primary-color white-text-color" data-id="{{item._id}}" data-answer="{{item.answer}}" bindtap="saveQuestion">保存</view>
- <icon style="position: absolute; top: 0; right: 0;" type="cancel" size="20" data-id="{{item._id}}" catchtap="removeQuestion"></icon>
- </view>
- </view>
|