riku
2022-09-06 bf580d5477d65f5eefb70a8fb9a6b37eaf0ae9bb
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!--pages/module_consult/consulthome/consulthome.wxml-->
<view class="page">
  <view class="page__hd">
    <view class="search-bar" bindtap="gotoSearch">
      <mp-icon icon="search" size="15" color="black"></mp-icon>
      <text>{{searchTips}}</text>
    </view>
  </view>
  <view class="page__bd">
    <view class="flex-h">
      <view class="card" bindtap="goto" data-index="0">
        <image src="/res/icons/con_pro_bg.png" class="card-bg" mode="scaleToFill" />
        <view class="card-title">环保问题</view>
        <view class="card-abstract">常见企业问题</view>
        <image src="/res/icons/con_pro.png" mode="aspectFit" class="icon"></image>
      </view>
      <view class="divider"></view>
      <view class="card middle" bindtap="goto" data-index="1">
        <image src="/res/icons/con_lib_bg.png" class="card-bg" mode="scaleToFill" />
        <view class="card-title">环保知识库</view>
        <view class="card-abstract">生态环境法律法规</view>
        <image src="/res/icons/con_lib.png" mode="aspectFit" class="icon"></image>
      </view>
      <view class="divider"></view>
      <view class="card" bindtap="goto" data-index="2">
        <image src="/res/icons/con_qa_bg.png" class="card-bg" mode="scaleToFill" />
        <view class="card-title">智能咨询</view>
        <view class="card-abstract">环保智能助手</view>
        <image src="/res/icons/con_qa.png" mode="aspectFit" class="icon"></image>
      </view>
    </view>
 
 
    <switch-tab tabList="{{tabList}}" pageList="{{pageList}}">
      <view slot="slot{{i1}}" wx:for="{{pageList}}" wx:for-item="page" wx:key="i1" wx:for-index="i1">
        <block wx:if="{{page.length > 0}}">
 
          <block wx:if="{{i1 == 0 || i1 == 1}}">
            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoFile">
              <view class="fyui-box  fyui-box__text">
                <view class="fyui-box__hd">
                  {{item.mfName}}
                </view>
                <view class="fyui-box__bd">
                  <view class="fyui-box__content tag">
                    <view>文件类别:{{item.mfFileType}}</view>
                    <view>生效时间:{{item.mfEffectiveDate}}</view>
                    <view>文号:{{item.mfReferenceNumber}}</view>
                    <view>相关行业 -> {{item.mfFileIndustry}}</view>
                  </view>
                  <view class="fyui-box__content des">{{item.mfSummary}}</view>
                </view>
                <view class="fyui-box__ft">
                  <text class="keyword">关键词:</text>
                  <view class="keyword-item">
                    <text wx:for="{{item.mfKeywordLv1}}" wx:for-index="i" wx:for-item="word" wx:key="i">{{word}}</text>
                  </view>
                </view>
              </view>
            </view>
          </block>
 
          <block wx:elif="{{i1 == 2}}">
            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoItem">
              <view class="fyui-box  fyui-box__text">
                <view class="fyui-box__hd">
                  <rich-text nodes="{{item.miItemContent}}" 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.miChapterName}} {{item.miItemName ? ' ' + item.miItemName : ''}}</text>
                  <text class="tag2">所属文件:《{{item.mfName}}》</text>
                  <text class="tag2" wx:if="{{item.miReferenceNumber}}">所属文号:{{item.miReferenceNumber}}</text>
                </view>
                <view class="fyui-box__ft">
                  <!-- <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> -->
                  <!-- <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>
            </view>
          </block>
 
          <block wx:elif="{{i1 == 3}}">
            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoQA">
              <view class="fyui-box  fyui-box__text">
                <view class="fyui-box__hd">
                  <text class="fyui-box__content des subtitle">{{item.cqContent}}</text>
                </view>
                <view class="fyui-box__bd answer">
                  <!-- <view class="fyui-box__content tag">相关行业 -> {{item.fileIndustry}}</view> -->
                  <view class="tag2">答:</view>
                  <rich-text class="tag2 des" nodes="{{item.answer}}"></rich-text>
                </view>
                <view class="fyui-box__ft">
                  <text class="tag3">提问时间:{{item.cqCreateTime}}</text>
                  <text class="tag3">回复时间:{{item.cqCreateTime}}</text>
                  <!-- <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>
            </view>
          </block>
 
          <block wx:elif="{{i1 == 4}}">
            <view wx:for="{{page}}" wx:key="i2" wx:for-index="i2" data-index="{{i1}},{{i2}}" bindtap="gotoCase">
              <view class="fyui-box fyui-box__text">
                <view class="fyui-box__hd">
                  <text class="fyui-box__content des subtitle">{{item.ecTitle}}</text>
                </view>
                <view class="fyui-box__bd">
                  <view class="case-bd">
                    <rich-text class="tag2 des" nodes="{{item.ecSummary}}"></rich-text>
                    <image wx:if="{{item.ecAppendixUrl.length > 0}}" src="{{item.ecAppendixUrl[0]}}" mode="aspectFill"></image>
                  </view>
                </view>
                <view class="fyui-box__ft">
                  <text class="tag3">案发地址:{{item.ecProvinceName + item.ecCityName}}</text>
                  <text class="tag3">案发时间:{{item.ecOccurDate}}</text>
                </view>
                <view class="fyui-box__ft_2">
                  <view style="white-space: nowrap;">涉及:</view>
                  <view class="case-tag-group">
                    <view class="case-tag" wx:if="{{item.ecIsPunish}}">
                      <image src="/res/icons/cq_punish.png"></image>
                      <text>行政处罚</text>
                    </view>
                    <view class="case-tag" wx:if="{{item.ecIsDetained}}">
                      <image src="/res/icons/cq_detained.png"></image>
                      <text>行政拘留</text>
                    </view>
                    <view class="case-tag" wx:if="{{item.ecIsIllegal}}">
                      <image src="/res/icons/cq_illegal.png"></image>
                      <text>刑事责任</text>
                    </view>
                    <view class="case-tag" wx:if="{{item.ecIsShotspot}}">
                      <image src="/res/icons/cq_shotspot.png"></image>
                      <text>环保热点</text>
                    </view>
                    <view class="case-tag" wx:if="{{item.ecIsSupervise}}">
                      <image src="/res/icons/cq_supervise.png"></image>
                      <text>督察要点</text>
                    </view>
                    <view class="case-tag" wx:if="{{item.ecIsMinor}}">
                      <image src="/res/icons/cq_minor.png"></image>
                      <text>轻微违法</text>
                    </view>
                  </view>
                </view>
              </view>
            </view>
          </block>
        </block>
 
        <view wx:else class="page__ft">
          <mp-loading duration="{{900}}" type="dot-gray" show="{{true}}" animated="{{true}}"></mp-loading>
        </view>
      </view>
    </switch-tab>
 
 
    <!-- <view class="fyui-cell fyui-cell_select">
      <view class="fyui-cell__bd">热门</view>
      <view class="fyui-cell__ft">更多</view>
    </view> -->
 
  </view>
  <view class="page__ft">
 
  </view>
</view>