newPunch.wxml 5.6 KB
<!--pages/index/rank/rank.wxml-->
<view class="punch_detail">
  <view class="title_card">
    <van-cell-group>
      <van-field value="{{ form.biaoti }}" placeholder="请输入标题" border="{{ false }}" bind:change="onfieldChange" />
    </van-cell-group>
    <view class="grey_line"></view>
    <view class="box_card">
      <van-cell-group>
        <van-field value="{{ form.message }}" type="textarea" placeholder="请输入" autosize border="{{ false }}" />
      </van-cell-group>
    </view>
    <view class="tip_card">
      <view class="tip_item">
        <image class="pic" src="/img/answer/tp1.png" alt="" />
      </view>
      <view class="tip_item">
        <image class="pic" src="/img/answer/sp1.png" alt="" />
      </view>
      <view class="tip_item">
        <image class="pic" src="/img/answer/yp1.png" alt="" />
      </view>
    </view>
  </view>
  <view class="white_card">
    <view class="bold_font">需要提交数据</view>
    <view>
      <van-switch checked="{{ form.checked }}" size='20' bind:change="onChange" />
    </view>
  </view>
  <view class="grey_line"></view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="统计单位" is-link label="请选择统计单位" border="{{ false }}" bindtap="openUnitShow"/>
    </van-cell-group>
  </view>
  <view class="white_card">
    <view>允许补卡</view>
    <view>
      <van-switch checked="{{ form.checked }}" size='20' bind:change="onChange" />
    </view>
  </view>
  <view class="sm_grey_font">
    开启后,在打卡周期内,学生家长可对未打卡的任务进行补卡。
  </view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="开始时间" value='时间' is-link  border="{{ false }}" bindtap="openStartTimeShow"/>
    </van-cell-group>
  </view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="打卡周期" value='90天' is-link  border="{{ false }}" bindtap="openClockCycleShow"/>
    </van-cell-group>
  </view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="打卡频次" value='每天' is-link  border="{{ false }}" bindtap="openClockRateShow"/>
    </van-cell-group>
  </view>

  <view class="clearance"></view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="打卡提醒" value='18:00' is-link  border="{{ false }}" bindtap="openClockRemindShow"/>
    </van-cell-group>
  </view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="缺卡打卡提醒" value='缺卡三天及以上' is-link  border="{{ false }}" bindtap="openClockLackShow"/>
    </van-cell-group>
  </view>

  <view class="sm_grey_font">
    学生如缺卡达到一定条件,将会提醒家长
  </view>
  <view class="white_card_nopadding">
    <van-cell-group>
      <van-cell title="提交时必须包含" value='图片' is-link  border="{{ false }}" bindtap="openContainShow"/>
    </van-cell-group>
  </view>

  <view class="clearance"></view>
  <view class="btn">
    <van-button type="info" round block>创建打卡</van-button>
  </view>

    <!--统计单位-->
    <van-popup
        show="{{ unitShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeUnitShow"
    >
        <van-picker columns="{{ columnsUnit }}" bind:confirm="changeUnitShow" bind:cancel="closeUnitShow" show-toolbar title="统计单位"/>
    </van-popup>

    <!--开始时间-->
    <van-popup
        show="{{ startTimeShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeStartTimeShow"
    >
        <van-picker columns="{{ columnsStartTime }}" bind:confirm="changeStartTimeShow" bind:cancel="closeStartTimeShow" show-toolbar title="开始时间"/>
    </van-popup>

    <!--打卡周期-->
    <van-popup
        show="{{ clockCycleShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeClockCycleShow"
    >
        <van-picker columns="{{ columnsClockCycle }}" bind:confirm="changeClockCycleShow" bind:cancel="closeClockCycleShow" show-toolbar title="打卡周期"/>
    </van-popup>

    <!--打卡频次-->
    <van-popup
        show="{{ clockRateShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeClockRateShow"
    >
        <van-picker columns="{{ columnsClockRate }}" bind:confirm="changeClockRateShow" bind:cancel="closeClockRateShow" show-toolbar title="打卡频次"/>
    </van-popup>

    <!--打卡提醒-->
    <van-popup
        show="{{ clockRemindShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeClockRemindShow"
    >
        <van-picker columns="{{ columnsClockRemind }}" bind:confirm="changeClockRemindShow" bind:cancel="closeClockRemindShow" show-toolbar title="打卡提醒"/>
    </van-popup>

    <!--打卡缺卡提醒-->
    <van-popup
        show="{{ clockLackShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeClockLackShow"
    >
        <van-picker columns="{{ columnsClockLack }}" bind:confirm="changeClockLackShow" bind:cancel="closeClockLackShow" show-toolbar title="缺卡打卡提醒"/>
    </van-popup>

    <!-- 必须包含 -->
    <van-popup
        show="{{ containShow }}"
        position="bottom"
        custom-style="height: 40%;"
        round
        bind:close="closeContainShow"
    >
        <van-picker columns="{{ columnsContain }}" bind:confirm="changeContainShow" bind:cancel="closeContainShow" show-toolbar title="提交时必须包含"/>
    </van-popup>
</view>