riku
2023-02-24 5d8e52e398bff7bc8f83e8f5b8a387175b958c98
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<import src="/template/nodata.wxml"></import>
 
<view>
  <block wx:if="{{results.length > 0}}">
    <view wx:for="{{results}}" wx:key="index" data-index="{{index}}" data-type="{{item.typeId}}" bindtap="gotoDetail">
      <block wx:if="{{item.typeId == 1}}">
        <view class="fyui-box  fyui-box__text">
          <view class="fyui-box__hd">
            {{item.name}}
          </view>
          <view class="fyui-box__bd">
            <view class="fyui-box__content tag">
              <view>文件类别:{{item.fileType}}</view>
              <view>生效时间:{{item.effectiveDate}}</view>
              <view wx:if="{{item.referenceNumber}}">文号:{{item.referenceNumber}}</view>
              <view>相关行业 -> {{item.fileIndustry}}</view>
            </view>
            <view class="fyui-box__content des">{{item.des}}</view>
          </view>
          <view class="fyui-box__ft">
            <text class="keyword">关键词:</text>
            <view class="keyword-item">
              <text wx:for="{{item.keywords}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text>
            </view>
          </view>
        </view>
      </block>
 
      <block wx:elif="{{item.typeId == 2}}">
        <view class="fyui-box  fyui-box__text">
          <view class="fyui-box__hd">
            <rich-text nodes="{{item.des}}" class="fyui-box__content des subtitle"></rich-text>
          </view>
          <view class="fyui-box__bd">
            <!-- <view class="fyui-box__content tag">相关行业 -> {{item.fileIndustry}}</view> -->
            <text class="tag2">所属章节:{{item.chapterName}} {{item.name ? ' ' + item.name : ''}}</text>
            <text class="tag2">所属文件:《{{item.fileName}}》</text>
            <text class="tag2" wx:if="{{item.referenceNumber}}">所属文号:{{item.referenceNumber}}</text>
          </view>
          <view class="fyui-box__ft_2">
            <text class="tag3 {{item.effective? '' : 'tag3_disable'}}">{{item.effective ? '生效中':'已失效' }}</text>
            <text class="tag3 {{item.relatedItems? '' : 'tag3_disable'}}">{{item.relatedItems ? '关联条目' + item.relatedItems + '个 >':'无关联条目' }}</text>
            <text class="tag3 {{item.relatedCases? '' : 'tag3_disable'}}">{{item.relatedCases ? '关联案例' + item.relatedCases + '个 >':'无关联案例' }}</text>
          </view>
        </view>
      </block>
 
      <block wx:elif="{{item.typeId == 3}}">
        <view class="fyui-box fyui-box__text">
          <view class="fyui-box__hd">
            <text class="fyui-box__content des subtitle">{{item.name}}</text>
          </view>
          <view class="fyui-box__bd">
            <view class="case-bd">
              <rich-text class="tag2 des" nodes="{{item.des}}"></rich-text>
              <image wx:if="{{item.imgUrl}}" src="{{item.imgUrl}}" mode="aspectFill"></image>
            </view>
          </view>
          <view class="fyui-box__ft">
            <text>案发地址:{{item.provinceName + item.cityName}}</text>
            <text>案发时间:{{item.occurDate}}</text>
          </view>
          <view class="fyui-box__ft_2" wx:if="{{item.punish || item.illegal || item.shotSpot || item.supervise || item.detained || item.minor}}">
            <view style="white-space: nowrap;">涉及:</view>
            <view class="case-tag-group">
              <view class="case-tag" wx:if="{{item.punish}}">
                <image src="/res/icons/cq_punish.png"></image>
                <text>行政处罚</text>
              </view>
              <view class="case-tag" wx:if="{{item.detained}}">
                <image src="/res/icons/cq_detained.png"></image>
                <text>行政拘留</text>
              </view>
              <view class="case-tag" wx:if="{{item.illegal}}">
                <image src="/res/icons/cq_illegal.png"></image>
                <text>刑事责任</text>
              </view>
              <view class="case-tag" wx:if="{{item.shotSpot}}">
                <image src="/res/icons/cq_shotspot.png"></image>
                <text>环保热点</text>
              </view>
              <view class="case-tag" wx:if="{{item.supervise}}">
                <image src="/res/icons/cq_supervise.png"></image>
                <text>督察要点</text>
              </view>
              <view class="case-tag" wx:if="{{item.minor}}">
                <image src="/res/icons/cq_minor.png"></image>
                <text>轻微违法</text>
              </view>
            </view>
          </view>
        </view>
      </block>
 
      <block wx:elif="{{item.typeId == 4}}">
        <view class="fyui-box  fyui-box__text">
          <view class="fyui-box__hd">
            <view class="qa-title">
              <image class="icon" src="/res/icons/qa.png"></image>
              <text class="fyui-box__content des subtitle">{{item.name}}?</text>
            </view>
          </view>
          <view class="fyui-box__bd">
            <!-- <view class="answer">
              <image class="user-avator" src="/res/icons/con_qa.png"></image>
              <view class="user-name">环保智能助手</view>
            </view> -->
            <view>
              <!-- <view class="tag2">答:</view> -->
              <rich-text class="tag2 des" nodes="{{item.des}}"></rich-text>
            </view>
          </view>
          <!-- <view class="fyui-box__ft">
            <text>提问时间:{{item.time}}</text>
            <text>回复时间:{{item.time}}</text>
          </view> -->
          <view class="fyui-box__ft_2" wx:if="{{item.punish || item.illegal || item.shotSpot || item.supervise}}">
            <view style="white-space: nowrap;">涉及:</view>
            <view class="case-tag-group">
              <view class="case-tag" wx:if="{{item.punish}}">
                <image src="/res/icons/cq_punish.png"></image>
                <text>行政处罚</text>
              </view>
              <view class="case-tag" wx:if="{{item.illegal}}">
                <image src="/res/icons/cq_illegal.png"></image>
                <text>刑事责任</text>
              </view>
              <view class="case-tag" wx:if="{{item.shotSpot}}">
                <image src="/res/icons/cq_shotspot.png"></image>
                <text>环保热点</text>
              </view>
              <view class="case-tag" wx:if="{{item.supervise}}">
                <image src="/res/icons/cq_supervise.png"></image>
                <text>督察要点</text>
              </view>
            </view>
          </view>
        </view>
      </block>
    </view>
  </block>
  <mp-loadingstatus scrollable="{{scrollable}}" loading="{{loading}}" needLoadMore="{{needLoadMore}}" nodata="{{results.length == 0}}" bindgotoMore="gotoMore"></mp-loadingstatus>
</view>