个人消息
This commit is contained in:
12
pages/task/taskView/index.js
Normal file
12
pages/task/taskView/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
let taskId = '';
|
||||
Page({
|
||||
data: {
|
||||
alertText: '',
|
||||
completeText: '',
|
||||
repeatText: ''
|
||||
},
|
||||
onLoad: function (options) {
|
||||
taskId = options.id;
|
||||
}
|
||||
|
||||
});
|
||||
9
pages/task/taskView/index.json
Normal file
9
pages/task/taskView/index.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-date-time-picker": "/components/date-time-picker/date-time-picker",
|
||||
"t-picker": "/components/picker/picker",
|
||||
"t-picker-item": "/components/picker/picker-item",
|
||||
"t-switch": "/components/switch/switch",
|
||||
"t-button": "/components/button/button"
|
||||
}
|
||||
}
|
||||
29
pages/task/taskView/index.wxml
Normal file
29
pages/task/taskView/index.wxml
Normal file
@@ -0,0 +1,29 @@
|
||||
<t-input label="任务名" value="{{'任务的农安我i吗哇哦i对面'}}" disabled placeholder="请输入任务名称" maxlength="{{10}}" clearable />
|
||||
<t-cell
|
||||
title="完成日期"
|
||||
note="{{completeText || '年 月 日'}}"
|
||||
arrow
|
||||
data-mode="complete"
|
||||
bindtap="showPicker"
|
||||
t-class="pannel-item"
|
||||
t-class-note="{{completeText ? 'sub-text' : 'empty'}}"
|
||||
/>
|
||||
<t-cell
|
||||
title="提醒日期"
|
||||
note="{{alertText || '年 月 日'}}"
|
||||
arrow
|
||||
data-mode="alert"
|
||||
bindtap="showPicker"
|
||||
t-class="pannel-item"
|
||||
t-class-note="{{alertText ? 'sub-text' : 'empty'}}"
|
||||
/>
|
||||
<t-cell
|
||||
title="任务重复"
|
||||
note="{{repeatText || '选择重复周期'}}"
|
||||
arrow
|
||||
data-mode="repeat"
|
||||
bindtap="showPicker"
|
||||
t-class="pannel-item"
|
||||
t-class-note="{{repeatText ? 'sub-text' : 'empty'}}"
|
||||
/>
|
||||
<t-textarea label="备注" disabled placeholder="请输入任务备注..." value="我一定要努力" />
|
||||
17
pages/task/taskView/index.wxss
Normal file
17
pages/task/taskView/index.wxss
Normal file
@@ -0,0 +1,17 @@
|
||||
.pannel-item {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.pannel-item::after {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.sub-text {
|
||||
color: #000;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: #000;
|
||||
opacity: 0.32;
|
||||
}
|
||||
Reference in New Issue
Block a user