riku
2026-03-05 9465dc404f7e7cd56100e4859ee0946a3fef7b09
pages/home/home.wxml
@@ -1,10 +1,10 @@
<!--pages/home/home.wxml-->
<view class="page">
  <cp-notice msg="提高测评得分小技巧来了,快点学习哦" />
  <!-- <cp-notice msg="提高测评得分小技巧来了,快点学习哦" /> -->
  <view class="page__hd">
    <view class="page__title">{{userRealName}}</view>
    <view class="page__desc">下次测评时间{{nextEvaluationTime}}</view>
    <view class="top-card" bindtap="goto" data-index="0">
    <!-- <view class="page__desc">下次测评时间{{nextEvaluationTime}}</view> -->
    <!-- <view class="top-card" bindtap="goto" data-index="0">
      <view class="top-card__time">{{historyPoint.time}}</view>
      <view class="top-card__score">{{historyPoint.score}}分 ></view>
      <view class="top-card__items">
@@ -21,21 +21,111 @@
          <text>{{historyPoint.illegalIndex}}</text>
        </view>
      </view>
    </view> -->
    <view class="flex-h" style="margin-top: 4px">
      <view class="flex-h_block">
        <view class="top-card" bindtap="goto" data-index="0">
          <view>
            <view style="font-size: 24rpx" class="top-card__time"
              >{{historyPoint.time}}</view
            >
            <view class="top-card__score"
              ><text class="top-card__num">{{historyPoint.score}}</text>分</view
            >
            <view class="top-card__time">自测智评得分 ></view>
          </view>
          <view class="top-card__items">
            <!-- <view class="top-card__item">
              <view>守法排名</view>
              <text>{{historyPoint.rank}}</text>
            </view> -->
            <view class="top-card__item">
              <view>守法指数</view>
              <text>{{historyPoint.legalIndex}}</text>
            </view>
            <!-- <view class="top-card__item">
              <view>违法指数</view>
              <text>{{historyPoint.illegalIndex}}</text>
            </view> -->
          </view>
          <image src="{{icon3}}" mode="aspectFit"></image>
        </view>
      </view>
      <view class="flex-h_block">
        <view class="top-card top-card_2" bindtap="goto" data-index="5">
          <view class="flex-h">
            <view>
              <view class="top-card__score"
                ><text class="top-card__num">{{monthInfo.percent}}</text>%</view
              >
              <view class="top-card__time">台账完成率 ></view>
            </view>
            <view>
              <view class="top-card__score"
                ><text class="top-card__num">{{monthInfo.percent2}}</text
                >%</view
              >
              <view class="top-card__time">自巡查 ></view>
            </view>
          </view>
          <image src="/res/icons/wm_ledger.png" mode="aspectFit"></image>
        </view>
        <view class="top-card top-card_3" bindtap="goto" data-index="6">
          <view>
            <view class="top-card__score"
              >{{promsieInfo.leftDays > 0 ? '剩余' : '失效'}}
              <text class="top-card__num"
                >{{promsieInfo.leftDays > 0 ? promsieInfo.leftDays : 0 -
                promsieInfo.leftDays}}</text
              >天
            </view>
            <view class="top-card__time">承诺倒计时 ></view>
          </view>
          <image src="/res/icons/wm_commitment.png" mode="aspectFit"></image>
        </view>
      </view>
    </view>
  </view>
  <view class="page__bd">
  <view class="page__bd" style="padding-top: 8px">
    <view class="schedule-wrap">
      <view style="margin-top: 4px">
        <c-supervision-card></c-supervision-card>
      </view>
      <view style="margin-top: 4px">
        <c-schedule-today></c-schedule-today>
      </view>
      <c-schedule
        ledgerCompleted="{{ledgerCompleted}}"
        assessmentCompleted="{{assessmentCompleted}}"
      ></c-schedule>
      <view style="margin-top: 4px">
        <c-practical-operation></c-practical-operation>
      </view>
    </view>
    <view class="fyui-panel" bindtap="goto" data-index="1">
      <view class="fyui-cell fyui-cell_select title">
        <view class="fyui-cell__hd">
          <image src="/res/icons/warn.png" class="icon" />
        </view>
        <view class="fyui-cell__bd">智能工作提醒</view>
        <view class="fyui-cell__ft">查看更多</view>
        <view class="fyui-cell__ft" wx:if="{{unReadNoiceCount > 0}}"
          ><view class="{{unReadNoiceCount > 0 ? 'notice-not-read-text' : ''}}"
            >{{unReadNoiceCount }}</view
          ></view
        >
      </view>
      <view wx:for="{{notices}}" wx:key="index" data-index="index" wx:item="item">
      <view
        wx:for="{{notices}}"
        wx:key="index"
        data-index="index"
        wx:item="item"
      >
        <view class="fyui-cell">
          <view class="fyui-cell__hd">
            <image src="/res/icons/tab_1_select.png" class="icon" />
            <view
              class="{{item.isRead ? 'notice-read' : 'notice-not-read'}}"
            ></view>
          </view>
          <view class="fyui-cell__bd notice">{{item.notice}}</view>
          <view class="fyui-cell__ft">{{item.time}}</view>
@@ -43,21 +133,20 @@
      </view>
    </view>
    <view class="flex-h" style="padding: 8px 10px;">
    <view class="flex-h" style="padding: 8px 10px 0 10px">
      <view class="image-btn" bindtap="goto" data-index="2">
        <image src="../../res/icons/btn_bg_2.png" class="" />
        <image src="{{icon2}}" class="" />
        <text class="image-btn_title">智能在线咨询</text>
        <text class="image-btn_abstract">在线智能咨询服务</text>
        <view class="image-btn_goto"></view>
      </view>
      <view class="image-btn" bindtap="goto" data-index="3">
        <image src="../../res/icons/btn_bg_1.png" class="" />
        <image src="{{icon1}}" class="" />
        <text class="image-btn_title">在线守法学习</text>
        <text class="image-btn_abstract">实时在线学习服务</text>
        <view class="image-btn_goto"></view>
      </view>
    </view>
    <view class="fyui-panel">
      <view class="fyui-cell fyui-cell_select title">
        <view class="fyui-cell__hd">
@@ -66,24 +155,39 @@
        <view class="fyui-cell__bd">守法动态</view>
        <view class="fyui-cell__ft">查看更多</view>
      </view>
      <view wx:for="{{dynamic}}" wx:key="index" data-index="index" wx:item="item">
        <view class="fyui-box"  bindtap="goto" data-index="4" data-url="{{item.url}}" data-filetype="{{item.fileType}}">
      <view
        wx:for="{{dynamic}}"
        wx:key="index"
        data-index="index"
        wx:item="item"
      >
        <view
          class="fyui-box"
          bindtap="goto"
          data-index="4"
          data-url="{{item.url}}"
          data-filetype="{{item.fileType}}"
        >
          <view class="fyui-box__bd">
            <view class="fyui-box__content">{{item.title}}</view>
            <view class="fyui-box__tag">
              <view>{{item.time}}</view>
              <view class="flex-h">
                <image src="/res/icons/view.png" class="icon"></image>{{item.views}}
                <image src="/res/icons/view.png" class="image-16"></image
                >{{item.views}}
              </view>
            </view>
          </view>
          <view class="fyui-box__hd">
            <image src="{{item.pic}}" class="" />
            <image
              src="{{item.pic}}"
              class="fyui-box__hd_image"
              mode="aspectFill"
            />
          </view>
        </view>
      </view>
    </view>
  </view>
  <view class="page__ft"></view>
</view>
</view>