|
@@ -17,18 +17,50 @@ Component({
|
|
customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
|
|
customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
|
|
bottomNavHeight: 0, // 底部导航栏高度
|
|
bottomNavHeight: 0, // 底部导航栏高度
|
|
contentHeight: 0, // 可用内容高度
|
|
contentHeight: 0, // 可用内容高度
|
|
- contentpadding:0,//顶部padding高度
|
|
|
|
|
|
+ contentpadding: 0, //顶部padding高度
|
|
//选择
|
|
//选择
|
|
- rows:[
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/3l5p1v041343137.png?imageView2/1/w/200/h/200',text:'签到打卡'},
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/v6p4fm041343296.png?imageView2/1/w/200/h/200',text:'排行榜'},
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/mcu488041343362.png?imageView2/1/w/200/h/200',text:'转发分享'},
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/pqln61041343428.png?imageView2/1/w/200/h/200',text:'我的勋章'},
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/9crt85041343498.png?imageView2/1/w/200/h/200',text:'步行'},
|
|
|
|
-
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/71svpg041343669.png?imageView2/1/w/200/h/200',text:'跑步'},
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/uk13u1041343733.png?imageView2/1/w/200/h/200',text:'我的统计'},
|
|
|
|
- {image:'https://file-cloud.fmode.cn/qpFbRRSZrO/20241104/k1q4no034958681.png?imageView2/1/w/200/h/200',text:'积分'},
|
|
|
|
|
|
+ rows: [{
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/3l5p1v041343137.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '签到打卡',
|
|
|
|
+ url: '../../pages/home/signin/index'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/v6p4fm041343296.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '排行榜',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/mcu488041343362.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '转发分享',
|
|
|
|
+ url: ''
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/pqln61041343428.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '我的勋章',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/9crt85041343498.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '步行',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/71svpg041343669.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '跑步',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/uk13u1041343733.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '我的统计',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241104/k1q4no034958681.png?imageView2/1/w/200/h/200',
|
|
|
|
+ text: '积分',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
lifetimes: {
|
|
lifetimes: {
|
|
@@ -47,7 +79,7 @@ Component({
|
|
const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
|
|
const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
|
|
|
|
|
|
const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
|
|
const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
|
|
- const contentHeight = (screenHeight - bottomNavHeight-50 - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
|
|
|
|
|
|
+ const contentHeight = (screenHeight - bottomNavHeight - 50 - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
|
|
this.setData({
|
|
this.setData({
|
|
statusBarHeight,
|
|
statusBarHeight,
|
|
screenHeight,
|
|
screenHeight,
|
|
@@ -56,7 +88,7 @@ Component({
|
|
contentHeight,
|
|
contentHeight,
|
|
contentpadding
|
|
contentpadding
|
|
});
|
|
});
|
|
- console.log('123',contentpadding);
|
|
|
|
|
|
+ console.log('123', contentpadding);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
|
|
@@ -64,6 +96,12 @@ Component({
|
|
* 组件的方法列表
|
|
* 组件的方法列表
|
|
*/
|
|
*/
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ //跳转
|
|
|
|
+ gourl(e) {
|
|
|
|
+ const url = e.currentTarget.dataset.url
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `${url}` // 目标页面的路径
|
|
|
|
+ });
|
|
|
|
+ },
|
|
}
|
|
}
|
|
})
|
|
})
|