个人中心
This commit is contained in:
10
pages/myself/notify/index.js
Normal file
10
pages/myself/notify/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
Page({
|
||||
data: {
|
||||
activeValues: [],
|
||||
},
|
||||
handleChange(e) {
|
||||
this.setData({
|
||||
activeValues: e.detail.value,
|
||||
});
|
||||
},
|
||||
});
|
||||
6
pages/myself/notify/index.json
Normal file
6
pages/myself/notify/index.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-collapse": "/components/collapse/collapse",
|
||||
"t-collapse-panel": "/components/collapse/collapse-panel"
|
||||
}
|
||||
}
|
||||
11
pages/myself/notify/index.wxml
Normal file
11
pages/myself/notify/index.wxml
Normal file
@@ -0,0 +1,11 @@
|
||||
<wxs module="_"> module.exports.contains = function(arr, target) { return arr.indexOf(target) > -1; } </wxs>
|
||||
<t-collapse value="{{activeValues}}" bind:change="handleChange">
|
||||
<t-collapse-panel
|
||||
header="今天任务到期了"
|
||||
header-right-content="{{_.contains(activeValues, 0) ? '收起' : '展开'}}"
|
||||
value="{{0}}"
|
||||
expandIcon
|
||||
>
|
||||
这个凑数的,到时候改成已读未读的消息
|
||||
</t-collapse-panel>
|
||||
</t-collapse>
|
||||
0
pages/myself/notify/index.wxss
Normal file
0
pages/myself/notify/index.wxss
Normal file
Reference in New Issue
Block a user