| 123456789101112131415161718192021222324252627282930 |
- <!--为发布者-收到的提问页面-->
- <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="#009195">未回答</checkbox>
- </view>
- <view>
- <checkbox class="checkbox" value="1" checked color="#009195">已回答</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">{{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="btn">
- <view class="save-btn primary-background-color white-text-color" data-id="{{item._id}}"
- data-answer="{{item.answer}}" bindtap="saveQuestion">保存</view>
- <view wx:if="{{top == false}}" class="top-btn primary-background-color white-text-color" bindtap="top">置顶提问</view>
- <view wx:if="{{top == true}}" class="top-btn third-background-color white-text-color" bindtap="top">取消置顶
- </view>
- </view>
- <icon style="position: absolute; top: 20rpx; right: 20rpx;" type="cancel" size="20" data-id="{{item._id}}"
- catchtap="removeQuestion"></icon>
- </view>
- </view>
|