riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
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
<view class="page">
  <t-loading
    wx:if="{{pageLoading}}"
    theme="circular"
    size="40rpx"
    text="加载中..."
    loading
    t-class="fy-loading"
    t-class-indicator="fy-loading-indicator"
    t-class-text="fy-loading-text"
  >
  </t-loading>
  <view class="page-header">
    <view class="title-white-1">测评趋势</view>
    <view class="line-chart-card">
      <picker
        bindchange="bindYearChange"
        data-type="planYear"
        value="{{planYear}}"
        mode="date"
        fields="year"
        end="{{maxYear}}"
      >
        <view class="line-chart-card__picker">
          {{planYear}}
          <t-icon name="chevron-down" size="24" />
        </view>
      </picker>
      <ec-canvas
        id="mychart-dom-line"
        canvas-id="mychart-line"
        ec="{{ ec }}"
      ></ec-canvas>
    </view>
  </view>
  <view class="page-container">
    <view class="title-primary-1">历史测评</view>
 
    <block wx:if="{{historys.length > 0}}">
      <view
        wx:for="{{historys}}"
        wx:key="index"
        wx:for-index="index"
        class="flex-h"
        style="align-items: flex-start"
      >
        <view class="history_icon">
          <view class="history_icon_1">
            <view></view>
          </view>
          <view class="history_icon_2"></view>
        </view>
        <view style="flex: 1">
          <view class="history_time">{{item.time}}</view>
          <view class="h-cell">
            <view class="h-line_1">
              <view class="flex-h">
                <view class="h-score" style="background-color: {{item.color}};">
                  {{item.score}}
                </view>
                <view class="h-rank">
                  <view>风险排名:{{item.rank}}</view>
                  <view>风险等级:{{item.legalIndex}}</view>
                </view>
              </view>
              <view
                class="h-btn"
                bindtap="navToAssessmentDetail"
                data-index="{{index}}"
                >去看看</view
              >
            </view>
            <view class="h-tag">{{item.updateTime}}</view>
          </view>
        </view>
      </view>
    </block>
    <t-empty-page wx:else description="未有自评记录" />
  </view>
  <view class="page-footer"></view>
</view>