riku
2022-10-28 b45a01a8bee4a9bff5f9c248ead301b8675d1099
pages/home/home.wxml
@@ -1,6 +1,6 @@
<!--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> -->
@@ -22,28 +22,59 @@
        </view>
      </view>
    </view> -->
    <view class="flex-h">
      <view class="top-card" bindtap="goto" data-index="0">
        <view class="top-card__score"><text class="top-card__num">{{historyPoint.score}}</text>分</view>
        <view class="top-card__time">自测智评得分 ></view>
        <view class="top-card__tag">点击查看本期自测智评情况</view>
        <image src="/res/icons/wm_assessment.png"></image>
    <view class="flex-h" style="margin-top: 4px;">
      <view class="flex-h_block">
        <view class="top-card" bindtap="goto" data-index="0">
          <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="/res/icons/wm_assessment.png" mode="aspectFit"></image>
        </view>
      </view>
      <view class="top-card" bindtap="goto" data-index="5">
        <view class="top-card__score"><text class="top-card__num">{{monthInfo.percent}}</text>%</view>
        <view class="top-card__time">台账完成率 ></view>
        <view class="top-card__tag">点击查看本期台账上传情况</view>
        <image src="/res/icons/wm_ledger.png"></image>
      </view>
      <view class="top-card" bindtap="goto" data-index="6">
        <view class="top-card__score">剩余<text class="top-card__num">{{promsieInfo.leftDays}}</text>天</view>
        <view class="top-card__time">承诺有效倒计时 ></view>
        <view class="top-card__tag">点击查看本期承诺完成情况</view>
        <image src="/res/icons/wm_commitment.png"></image>
      <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;">
    <c-schedule></c-schedule>
    <view class="fyui-panel" bindtap="goto" data-index="1">
      <view class="fyui-cell fyui-cell_select title">
        <view class="fyui-cell__hd">
@@ -63,21 +94,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="/res/icons/btn_bg_2.png" 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="/res/icons/btn_bg_1.png" 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">
@@ -93,12 +123,12 @@
            <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>