remind.wxml 7.3 KB
<!--pages/remind/remind.wxml-->
<view class='banner_box'>
  <view class='head_img'>
    <image src='{{def.picurl}}'></image>
  </view>
  <view class='head_info_box'>
    <view class='user_name_box'>
      <view class='user_name'>{{def.name}}(联络人)</view>
      <!-- <picker class='user_type_box' value='{{type_index}}' range='{{user_type}}' range-key='level' bindchange='userType' data-id='{{user_type.id}}'>
        <text wx:if='{{type_index==-1}}'>请选择</text>
        <text wx:else>{{user_type[type_index].level}}{{def.leceltext}}</text>
        <text class='iconfont icon-xiala1'></text>
      </picker> -->
      <view class="user_type_box" bindtap='showLevel'>
        {{def.leveltext?def.leveltext:'选等级'}}
        <text class='iconfont icon-xiala1'></text>
      </view>
    </view>
    <view class='user_label_box'>
      <view class='user_balel_item' wx:for='{{label}}' wx:key>{{item.name}}</view>
    </view>
    <view class='user_info'>描述: {{def.text}}</view>
  </view>
</view>

<view class='content_box'>
  <view class='item_list'>
    <view>手机号 {{def.mobile}}</view>
    <button class='list_icon_box' bindtap='makePhoneCall'>
      <view class='iconfont icon-dianhua2'></view>
    </button>
  </view>
</view>

<view class='tab_content_box'>
  <view class='list_tab_box'>
    <!-- <view class="list_tab_item  {{currentTab==0?'tab_active':''}}" data-current="0" bindtap='tabCharge'>智能提醒</view> -->
    <view class="list_tab_item  {{currentTab==1?'tab_active':''}}" data-current="1" bindtap='tabCharge'>跟踪日志</view>
  </view>
  <!-- <block wx:if='{{currentTab==0}}'>
    <view class='list_content_box'>
      <view class='item_list'>
        <view class='list_title_box'>
          <view class='list_title_info'>跟踪提醒</view> -->
          <!-- <view class='list_info' bindtap='editInfo' data-family_id='{{warn.family_id}}'>
            <text>修改</text>
            <text class='iconfont icon-bianji'></text>
          </view> -->
        <!-- </view> -->
        <!-- <block wx:if='{{!edit_state}}'> -->
        <!-- <view class='list_info_box'> -->
        <!-- {{warn.warn_time!=''?'08:00':''}} -->
        <!-- <view class='list_info_item'>提醒时间:{{remind_times[index]}}</view>
            <view class='list_info_item'>跟踪时间:{{warn.text_time}}</view>
            <view class='list_info_item'>提醒内容:{{warn.text}}</view>
          </view> -->
        <!-- </block> -->
        <!-- <block wx:else> -->
        <!-- <view class='list_info_box'>
          <view class='list_info_item'>
            <view class='item_title'>提醒时间:</view>
            <picker value='{{index}}' range='{{remind_times}}' bindchange="{{edit_state&&vip_state?'remindTime':''}}"> -->
              <!-- {{remind_time!=''?'08:00':''}} -->
              <!-- <input placeholder='请选择' value="{{remind_times[index]}}" disabled='true'></input>
            </picker>
          </view>
          <view class='list_info_item' bindtap="{{edit_state&&vip_state?'translate':''}}">
            <view class='item_title'>跟踪时间:</view> -->
            <!-- <picker mode='date' value='{{follow_time}}' bindchange='followTime'> -->
            <!-- <input placeholder='请选择' value='{{follow_time}}' disabled='true'></input> -->
            <!-- </picker> -->
          <!-- </view>
          <view class='list_info_item'>
            <view class='item_title'>提醒内容:</view>
            <block wx:if='{{time_state}}'> -->
              <!-- <view class='list_textarea'> -->
              <!-- <textarea class='' placeholder='请输入' maxlength='50' value='{{place}}' bindinput='place' disabled='{{!edit_state|| !vip_state}}'></textarea> -->
              <!-- {{interval}} -->
              <!-- </view> -->
            <!-- </block>

          </view>
        </view> -->
        <!-- </block> -->
        <!-- <view class='list_bottom'>
          <view class='list_btn' bindtap="{{edit_state&&vip_state?'nullValue':'showInfo'}}">清空</view>
          <view class='list_btn list_active' bindtap="{{!vip_state?'showInfo':'finish'}}" data-family_id='{{def.family_id}}'>完成</view>
        </view>
      </view>
    </view>
  </block> -->
  <block wx:if='{{currentTab==1}}'>
    <view class='log_box'>
      <view class='log_line'></view>
      <view class="log_item_box" wx:for='{{log}}' wx:key=''>
        <view class='iconfont icon-guanbi' data-id='{{item.log_id}}' bindtap='delLog'></view>
        <view class='triangle'></view>
        <view class='log_point'></view>
        <view class='log_item'>
          <view>{{item.content}}</view>
          <view class='log_time'>{{item.create_time}}</view>
        </view>
      </view>
      <!-- bindtap="{{!vip_state?'showInfo':'addLogs'}}" -->
      <view class='add_btn_box' bindtap="addLogs" data-DefId='{{def.id}}'>
        <view class='iconfont icon-tianjia'></view>
        <view>添加日志</view>
      </view>
      <!-- <view class='add_btn_box'>
        <view class='' bindtap='addLogs' data-DefId='{{def.id}}'>
          <view class='iconfont icon-tianjia '></view>
          <view>添加日志</view>
        </view>
        <view class='' bindtap='delLogs' data-DefId='{{def.id}}'>
          <view class='iconfont icon-bianji '></view>
          <view>删除</view>
        </view>
      </view> -->
    </view>
  </block>
</view>

<view class='choose_view' wx:if='{{level_state}}' catchtap='cancleMask'>
  <view class='choose_itenbox'>
    <view class='choose_tiem ' wx:for='{{level}}' wx:for-index='index' wx:for-item='item' wx:key>
      <view class="iconbox {{def.leveltext==item.level?'iconactive':''}}" id='{{item.id}}' data-DefId='{{def.id}}' catchtap='setlevel' data-level='{{item.level}}'>
        <view class='iconfont icon-xuanzhong2'></view>
      </view>
      <view>{{item.text}}</view>
    </view>
  </view>
</view>

<!-- <button class="animation-button" bindtap="translate">选择时间</button> -->
<!-- <view class="infoText">{{year}}-{{month}}-{{day}} {{hour}}:{{minute}}:{{second}}</view> -->
<view class="animation-element-wrapper" animation="{{animation}}" style="visibility:{{show ? 'visible':'hidden'}}" catchtap="hiddenFloatView">
  <view class="animation-element" catchtap="nono">
    <text class="left-bt" catchtap="hiddenFloatView">取消</text>
    <text class="right-bt" catchtap="hiddenFloatView">确定</text>
    <view class="line"></view>
    <picker-view indicator-style="height: 50rpx;" value="{{value}}" bindchange="bindChange">
      <!--年-->
      <picker-view-column>
        <view wx:for="{{years}}" wx:key="">
          {{item}}
        </view>
      </picker-view-column>
      <!--月-->
      <picker-view-column>
        <view wx:for="{{months}}" wx:key="">
          {{item}}
        </view>
      </picker-view-column>
      <!--日-->
      <picker-view-column>
        <view wx:for="{{days}}" wx:key="">
          {{item}}
        </view>
      </picker-view-column>
      <!--时-->
      <picker-view-column>
        <view wx:for="{{hours}}" wx:key="">
          {{item}}
        </view>
      </picker-view-column>
      <!--分-->
      <picker-view-column>
        <view wx:for="{{minutes}}" wx:key="">
          {{item}}
        </view>
      </picker-view-column>
      <!--秒-->
      <!-- <picker-view-column>
        <view wx:for="{{seconds}}" wx:key="">
          {{item}}
        </view>
      </picker-view-column> -->
    </picker-view>
  </view>
</view>