添加组件及页面

This commit is contained in:
zhengw
2026-01-21 17:05:30 +08:00
parent a89e69c381
commit 7ff1a911dd
54 changed files with 1078 additions and 1009 deletions

View File

@@ -16,9 +16,9 @@ Component({
},
lifetimes: {
attached() {
setTimeout(() => {
this.getSlotHeight();
}, 100);
// setTimeout(() => {
// this.getSlotHeight();
// }, 100);
},
},
@@ -27,7 +27,7 @@ Component({
*/
data: {
showMore: false,
showMoreBar: false,
showMoreBar: true,
},
/**
* 组件的方法列表
@@ -38,7 +38,7 @@ Component({
const query = wx.createSelectorQuery().in(this);
// 2. 查询插槽容器节点
query
.select("#contentSlot")
.select('#contentSlot')
.boundingClientRect((rect) => {
if (rect) {
const height = rect.height; // 获取节点高度单位px
@@ -54,7 +54,7 @@ Component({
.exec(); // 执行查询
},
click(e: any) {
this.triggerEvent("tap", e);
this.triggerEvent('tap', e);
},
showMoreTap() {
this.setData({