<!--pages/shareTimeLine/shareTimeLine.wxml-->
<!-- <wxs src="../../utils/tools.wxs" module="tools" /> -->
<view class="searchResult-page">
  <guide title="查号码"></guide>
  <view class="userInfo_box">
    <image class="avatar" src="/assets/images/searchResult/a-ziyuan106@2x.png"></image>
    <view>
      <view class="username"><text>13612345678</text>
        <image class="icon_noCertificate" src="/assets/images/searchResult/Certificate.png"></image>
      </view>
      <view class="checkInfo">已有256889人次查看，共获得1425次评价</view>
      <view class="btn_switch" bindtap="showDialogSwitchAccount">
        <image class="icon_switch" src="/assets/images/my/icon_switch.png"></image>切换号码
      </view>
    </view>
  </view>
  <view class="layout_f">
    <view class="scoreLayout">
      <view style="display: flex;align-items: center;justify-content: center;">
        <view class="score" wx:if="{{consumer.totalSize>0}}">{{tools.toFix(consumer.totalAverage)}}</view>
        <star score="{{consumer.totalAverage}}" starType="cStars" size="34rpx" />
      </view>
      <view class="commentText" wx:if="{{consumer.totalSize>0}}">其中实名认证用户<text>{{consumer.realNameSize}}</text>次，实名认证用户平均评价<text>{{tools.toFix(consumer.realNameAverage)}}</text></view>
      <view class="noComment" wx:else>暂无评价</view>
      <view style="display: flex;justify-content: center;">
        <btn wx:if="{{!consumer.totalSize>0}}" type="primary" plain fontSize="24rpx" width="207rpx" height="51rpx" bindtap="handleRecords" data-size="{{consumer.totalSize}}">
          邀请好友评价
          <image class="icon_arrow_right" src="/assets/images/searchResult/icon_arrow_right.png"></image>
        </btn>
        <btn wx:else type="primary" plain fontSize="24rpx" width="207rpx" height="51rpx" bindtap="handleRecords" data-size="{{consumer.totalSize}}">查看详情记录
          <image class="icon_arrow_right" src="/assets/images/searchResult/icon_arrow_right.png" />
        </btn>
      </view>
    </view>
    <view class="container">
      <tagList consumer="{{consumer}}" bind:showTagList="handleRecords" />
      <view class="reportLayout">
        <image src="/assets/images/searchResult/icon_report.png" class="icon_report_cover"></image>
        <view style="flex:1">

          <view class="title">全国人力资源信息数据验证平台个人信息报告</view>
          <view class="flex spaceBetween">
            <btn wx:if="{{consumer.electronicCertificateId===null}}" fontSize="24rpx" width="137rpx" height="51rpx" plain bindtap="dialogAddReportShow">去添加<image class="icon_arrow_right" src="/assets/images/searchResult/icon_arrow_right.png"></image>
            </btn>
            <btn wx:else fontSize="24rpx" width="168rpx" height="51rpx" plain bindtap="goReports" data-id="{{consumer.electronicCertificateId}}">查看/修改<image class="icon_arrow_right" src="/assets/images/searchResult/icon_arrow_right.png"></image>
            </btn>
            <view>
              <image class="icon_question" src="/assets/images/my/icon_question.png"></image>
              <text class="questionText" bindtap="dialogInviteShow">这是什么？</text>
            </view>
          </view>
        </view>
      </view>
      <view class="btns_fixed_bottom" style="display: flex;justify-content: space-between;">
        <btn fontSize="30rpx" width="330rpx" height="88rpx" plain bindtap="handleClear">清空所有评价数据</btn>
        <btn fontSize="30rpx" width="330rpx" height="88rpx" bindtap="handleShare" style="margin-left: 28rpx;" bindtap="showDialogShare">邀请好友评价</btn>
      </view>
    </view>
  </view>

  <confirm-box id="shadow2" title="" message="该功能为付费功能，费用1元。清空后所有的分数和印象标签将清零，是否继续？" confirmText="继续" cancelShow="true" cancelText="取消" bind:close="back" bind:confirm="goPay" />
  <view class="shareMenu" wx:if="{{active}}">
    <image class="shareLine" src="/assets/images/shareTimeLine/line.png"></image>
    <image class="text" src="https://chrivc.obs.cn-north-4.myhuaweicloud.com/c471c851856645439ff099485eeb300d:text.png"></image>
  </view>
  <shadow position="center" wx:if="{{true}}">
    <view class="shareLayout">
      <view class="shareBox">

        <image class="avatar" src="/assets/images/searchResult/a-ziyuan106@2x.png"></image>
        <view class="contentText">“邀请您到【与评™】上对我做出印象评价，国家平台隐私保护，完全匿名”</view>
        <star score="0" starType="cStars" size="40rpx" />
        <image class="sharePic" src="https://chrivc.obs.cn-north-4.myhuaweicloud.com/4b02ae3ccca446df82aa7ba1d7fa591e:sharePic.png"></image>
        <view style="display: flex;justify-content: center;margin-top: 39rpx;margin-bottom: 10rpx;">
          <btn type="white" width="256rpx" height="72rpx" fontSize="26rpx" style="margin-right: 26rpx;" bindtap="goBack">关闭</btn>
          <btn width="256rpx" height="72rpx" fontSize="26rpx" bindtap="goIndex">前往评价</btn>
        </view>
      </view>
    </view>
  </shadow>
</view>