ASR/miniprogram/pages/list/plan/plan.wxml
Saturneric 73fc37e472 Add.
2020-09-01 00:55:41 +08:00

83 lines
4.8 KiB
Plaintext

<!--index.wxml-->
<mp-toptips msg="{{error}}" type="error" show="{{error}}"></mp-toptips>
<i-row>
<i-panel title="基本信息">
<i-cell bindtap="modalinput1" title="任务描述" value="{{description}} "></i-cell>
<modal hidden="{{hiddenmodalput1}}" title="请输入修改内容" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
<i-input title='计划的描述' bindblur="bindDescriptionBlur" maxlength="32" auto-focus/>
</modal>
<i-cell bindtap="modalinput2" title="截止时间" value="{{year[y]}}-{{month[m]}}-{{day[d]}} {{hour[h]}}:{{mniute[mn]}}"></i-cell>
<modal hidden="{{hiddenmodalput2}}" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
<view class="center-view">
<picker bindchange="bindYearBlur" value="{{y}}" range="{{year}}">
<view class="weui-input">[ {{year[y]}} ] 年 </view>
</picker>
<picker bindchange="bindMonthBlur" value="{{m}}" range="{{month}}">
<view class="weui-input">[ {{month[m]}} ] 月</view>
</picker>
<picker bindchange="bindDayBlur" value="{{d}}" range="{{day}}">
<view class="weui-input">[ {{day[d]}} ] 日</view>
</picker>
<picker bindchange="bindHourBlur" value="{{h}}" range="{{hour}}">
<view class="weui-input">[ {{hour[h]}} ] 时</view>
</picker>
<picker bindchange="bindMniuteBlur" value="{{mn}}" range="{{mniute}}">
<view class="weui-input">[ {{mniute[mn]}} ] 分</view>
</picker>
</view>
</modal>
<i-cell bindtap="modalinput4" title="单次时间(小时)" value="{{singleMin}} 小时"></i-cell>
<i-cell bindtap="modalinput4" title="计划次数(次)" value="{{dd}} 次"></i-cell>
<modal hidden="{{hiddenmodalput4}}" title="请输入修改内容" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
<i-input title="单次时间" type="number" placeholder="1.5" maxlength="32" bind:blur="bindSingleMinBlur" autofocus/>
<i-input title="计划次数" type="number" placeholder="12" maxlength="32" bind:blur="bindDurationBlur" />
</modal>
<i-cell bindtap="modalinput5" title="最短间隔时间" value="{{mutexPeriod}} 天"></i-cell>
<modal hidden="{{hiddenmodalput5}}" title="请输入修改内容" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
<i-input title="两次最短间隔时间(天)" type="number" placeholder="1.5" maxlength="32" bind:blur="bindMutexPeriodBlur" autofocus/>
</modal>
</i-panel>
<i-panel title="偏好信息">
<i-grid bindtap="modalinput3">
<i-grid-item>
<i-grid-icon>
<view wx:if="{{importantDegree == 0}}">
<i-icon type="flag_fill" size="32" color="#ed3f14"/>
</view>
<view wx:elif="{{importantDegree == 1}}">
<i-icon type="flag_fill" size="32" color="#19be6b"/>
</view>
<view wx:elif="{{importantDegree == 2}}">
<i-icon type="flag" size="32"/>
</view>
</i-grid-icon>
<i-grid-label>{{importance[importantDegree]}}</i-grid-label>
</i-grid-item>
<i-grid-item>
<i-grid-icon>
<i-icon type="time_fill" size="32"/>
</i-grid-icon>
<i-grid-label>{{preference[pref_index]}}</i-grid-label>
</i-grid-item>
</i-grid>
<modal hidden="{{hiddenmodalput3}}" title="请输入修改内容" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
<i-cell title="重要程度">
<picker bindchange="bindImptChange" value="{{importantDegree}}" range="{{importance}}">
<view class="weui-input">{{importance[importantDegree]}}</view>
</picker>
</i-cell>
<i-cell title="偏好时间">
<picker bindchange="bindPrefChange" value="{{pref_index}}" range="{{preference}}">
<view class="weui-input">{{preference[pref_index]}}</view>
</picker>
</i-cell>
</modal>
</i-panel>
</i-row>
<view wx:if="{{changed==true}}">
<i-button bind:click="surebutton" type="success">确认修改</i-button>
</view>
<i-button bind:click="deletebutton" type="error">删除</i-button>