<!--pages/faceDetectionDetails/faceDetectionDetails.wxml-->
<wxs src="../../utils/filter.wxs" module="filter" />
<view class="mine">
  <view class="tab">
    <view class="tab-left">
      <view class="tab-tips">{{userInfo.status_text}}</view>
      <view class="inspect-tips">{{userInfo.last_check_day==0?'上次检查：今天':'上次检查：'+userInfo.last_check_day+'天前'}}</view>
      <view class="user-info">
        <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220527/invite/user.png"></image>
        <text class="user-name">{{userInfo.nickname}}</text>
        <image class="info-sex" src="{{userInfo.sex==1?man:female}}"></image>
        <text class="user-sex">{{userInfo.sex==1?'男':'女'}}</text>
      </view>
    </view>
    <view class="tab-right">
      <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220527/invite/headPortrait.png"></image>
    </view>
  </view>
  <view class="content">
    <view class="content-view">
      <view class="title">
        <view class="title-left">改善方案</view>
        <view class="title-right" catchtap="ruleClick">推荐方案原则</view>
      </view>
      <view class="title-tips">{{userInfo.skin_name}}</view>
      <scroll-view class="table" scroll-x="true">
        <view class="week" wx:for="{{userInfo.scheme_list}}" data-item="{{item}}" data-index="{{index}}" wx:key="index" bindtap="changeWeek">
          <view class="week-text" style="{{nowTimesIndex==index?'color:#FA7D22FF':''}}">{{item.name}}</view>
          <view class="sign" wx:if="{{nowTimesIndex==index}}"></view>
        </view>
      </scroll-view>
      <view class="programme">
        <view class="programme-title">
          <view class="programme-tiele-left"></view>
          <view class="programme-tiele-right">{{userInfo.scheme_list[nowTimesIndex].time}}</view>
        </view>
        <view class="frequency">
          <view class="frequency-block" wx:for="{{userInfo.scheme_list[nowTimesIndex].list}}" wx:key="index">
            <view class="frequency-tab">
              <view class="frequency-left">
                <view class="times">{{item.name}}</view>
                <view class="frequency-tips">{{classify_name}}</view>
              </view>
              <view wx:if="{{item.status==1}}" class="repeat" data-item="{{item.list}}" bindtap="toMake">再来一单</view>
              <view wx:else class="make" data-item="{{item.list}}" bindtap="toMake">去预约</view>
            </view>
            <view class="project" wx:for="{{item.list}}" wx:for-item="value" wx:key="index">
              <view class="project-img">
                <image src="{{value.cover_url}}"></image>
              </view>
              <view class="project-content">
              <view class="content-title">{{filter.abbreviationEight(value.name)}}</view>
              <!-- <view class="content-tips"></view> -->
              <view class="product">{{value.product_name}}</view>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>