riku
2022-09-06 bf580d5477d65f5eefb70a8fb9a6b37eaf0ae9bb
pages/module_consult/consultproblem/consultproblem.wxml
@@ -1,32 +1,38 @@
<!--pages/module_consult/consultproblem/consultproblem.wxml-->
<!--pages/module_consult/consulthome/consulthome.wxml-->
<import src="/template/nodata.wxml"></import>
<view class="page">
  <view class="page__hd">
    <view class="switch-tab {{selectedIndex == index ? 'switch-tab_selected' : ''}}" wx:for="{{problemTypes}}" wx:index="index" data-index="{{index}}" bindtap="selectProblemType">{{item}}</view>
    <text style="color: #57E4CB;">{{selected[0].name}} > {{selected[1].name}}</text>
    <view class="filter" bindtap="openChooseType">
      <image src="/res/icons/filter.png" class="image-16"></image>
      筛选
    </view>
  </view>
  <view class="page__bd">
    <block wx:for="{{problems[problemIndex]}}" wx:key="index">
      <view class="fyui-box  fyui-box__text">
    <block wx:if="{{!loading}}">
      <block wx:if="{{questions.length > 0}}">
        <block wx:for="{{questions}}" wx:key="index">
          <view class="fyui-box  fyui-box__text" bindtap="gotoQA" data-index="{{index}}">
        <view class="fyui-box__hd">
          Q. {{item.q}}
              <text class="fyui-box__content des subtitle">{{item.cqContent}}</text>
        </view>
        <view class="fyui-box__bd">
          <view class="fyui-box__content">{{item.a.length > 0 ? item.a[0].text : ''}}</view>
            <view class="fyui-box__bd answer">
              <view>答:</view>
              <rich-text class="des" nodes="{{item.answer}}"></rich-text>
        </view>
        <view class="fyui-box__ft">
          <view class="fyui-box__tag">
              <view class="flex-h">
                <image src="/res/icons/view.png" class="icon"></image>{{item.viewed}}
              </view>
              <view class="flex-h">
                <image src="/res/icons/like.png" class="icon"></image><view>{{item.like}}</view>
              <text class="tag3">提问时间:{{item.cqCreateTime}}</text>
              <text class="tag3">回复时间:{{item.cqCreateTime}}</text>
              </view>
            </view>
        </view>
      </view>
          <view wx:if="{{index == questions.length - 1}}" class="next-answer">——到底了——</view>
    </block>
      </block>
      <template wx:else is="nodataPage"></template>
    </block>
    <mp-loading duration="{{900}}" type="dot-gray" show="{{loading}}" animated="{{true}}"></mp-loading>
  </view>
  </view>
  <view class="page__ft">
  </view>
  <mp-sidebar show="{{showMenu}}" menus="{{menus}}" items="{{items}}" bindsubmit="chooseMenu"></mp-sidebar>
</view>