riku
2022-10-21 0f2fdf16f47bd2d1d8fee86449c3a5095ccc8c23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!--pages/m_consult/consultdetailqa/consultdetailqa.wxml-->
<view class="page">
  <view class="page__hd">
    <view class="fyui-box  fyui-box__text">
      <view class="fyui-box__hd">
        <view>{{question.cqContent}}</view>
      </view>
      <view class="fyui-box__bd">
        <view class="q-tag" bindtap="openDialog">
          <block wx:for="{{questionTag}}" wx:key="index">
            <image src="{{item.icon}}"></image>
          </block>
          <!-- <image wx:if="{{question.cqIsPunish}}" src="/res/icons/cq_punish.png"></image>
          <image wx:if="{{question.cqIsIllegal}}" src="/res/icons/cq_illegal.png"></image>
          <image wx:if="{{question.cqIsSupervise}}" src="/res/icons/cq_supervise.png"></image>
          <image wx:if="{{question.cqIsShotspot}}" src="/res/icons/cq_shotspot.png"></image> -->
        </view>
      </view>
      <view class="fyui-box__ft" style="flex-direction: column;">
        <view>共{{answers.length}}条回答</view>
        <view class="q-link-group">
          <view wx:if="{{question.cqIsAssociated}}" class="q-link">
            <image src="/res/icons/link_1.png"></image>
            相关条目
          </view>
        </view>
      </view>
    </view>
  </view>
  <view class="page__bd">
    <block wx:for="{{answers}}" wx:for-index="index" wx:key="index">
      <view class="fyui-box  fyui-box__text">
        <view class="fyui-box__hd">
          <image class="user-avator" src="/res/icons/con_qa.png"></image>
          <view>
            <view class="user-name">环保智能助手</view>
            <view class="user-tag">环保智能助手</view>
          </view>
        </view>
        <view class="fyui-box__bd">
          <!-- <view class="fyui-box__content tag">相关行业 -> {{item.fileIndustry}}</view> -->
          <rich-text nodes="{{item.saContent}}" class=""></rich-text>
        </view>
        <view class="a-tag-group">
          <view class="a-tag">
            <image class="image-16" src="/res/icons/favourite.png"></image>156
          </view>
          <view class="a-tag">
            <image class="image-16" src="/res/icons/like.png"></image>156
          </view>
        </view>
      </view>
      <view wx:if="{{index < answers.length - 1}}" class="next-answer"></view>
      <view wx:else class="next-answer">——到底了——</view>
    </block>
  </view>
  <view class="page__ft">
    <mp-loading duration="{{900}}" type="dot-gray" show="{{showloading}}" animated="{{true}}"></mp-loading>
  </view>
 
  <mp-actionSheet bindactiontap="btnClick" show="{{showDialog}}" actions="{{groups}}" showCancel="{{false}}">
    <view slot="{{'actionSlot' + '1'}}" class="custom-action">
      <image class="custom-action__bg" src="/res/icons/bg_star.png"></image>
      <block wx:for="{{questionTag}}" wx:key="index">
        <view class="custom-action__tag" style="{{questionTag.length == 1 ? 'flex: 1;' : ''}}">
          <image src="{{item.icon}}"></image>
          <view>{{item.name}}</view>
        </view>
      </block>
    </view>
  </mp-actionSheet>
</view>