个人中心

This commit is contained in:
limqhz
2022-12-13 16:53:09 +08:00
parent 0efe64d1bb
commit c0c88244c3
39 changed files with 763 additions and 60 deletions

View File

@@ -0,0 +1,11 @@
Page({
data: {
activeValues: [],
},
handleChange(e) {
console.log(this.data.activeValues)
this.setData({
activeValues: e.detail.value,
});
},
});

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"t-collapse": "/components/collapse/collapse",
"t-collapse-panel": "/components/collapse/collapse-panel"
}
}

View 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>

View File