|
@@ -20,51 +20,54 @@ Component({
|
|
|
bottomNavHeight: 0, // 底部导航栏高度
|
|
|
contentHeight: 0, // 可用内容高度
|
|
|
contentpadding: 0, //顶部padding高度
|
|
|
+ navheight:0,
|
|
|
//选择
|
|
|
rows: [{
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/3l5p1v041343137.png?imageView2/1/w/200/h/200',
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241225/r5j1uc041211788.png',
|
|
|
text: '签到打卡',
|
|
|
url: '../../pages/home/signin/index'
|
|
|
},
|
|
|
{
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/v6p4fm041343296.png?imageView2/1/w/200/h/200',
|
|
|
- text: '排行榜',
|
|
|
- url: '../../pages/home/ranking/index'
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241225/n1pin1040819673.png',
|
|
|
+ text: '实时步行',
|
|
|
+ url: '../../pages/home/sport/sport-home/index',
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/mcu488041343362.png?imageView2/1/w/200/h/200',
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241225/9vfr1l040831635.png',
|
|
|
text: '转发分享',
|
|
|
url: '../../pages/home/share/index'
|
|
|
|
|
|
},
|
|
|
{
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/pqln61041343428.png?imageView2/1/w/200/h/200',
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241225/it1rna040843179.png',
|
|
|
text: '我的勋章',
|
|
|
url: '../../pages/home/medal/index'
|
|
|
},
|
|
|
{
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/9crt85041343498.png?imageView2/1/w/200/h/200',
|
|
|
- text: '步行',
|
|
|
- url: '../../pages/home/sport/sport-home/index',
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/71svpg041343669.png?imageView2/1/w/200/h/200',
|
|
|
- text: '跑步',
|
|
|
- url: '../../pages/home/sport/sport-home/index',
|
|
|
- active: 1
|
|
|
- },
|
|
|
- {
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/uk13u1041343733.png?imageView2/1/w/200/h/200',
|
|
|
+ image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241225/r5193r040853498.png',
|
|
|
text: '我的统计',
|
|
|
url: '../../pages/home/statistics/index'
|
|
|
},
|
|
|
- {
|
|
|
- image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241104/k1q4no034958681.png?imageView2/1/w/200/h/200',
|
|
|
- text: '积分',
|
|
|
- url: '../../pages/home/integral/index'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/v6p4fm041343296.png?imageView2/1/w/200/h/200',
|
|
|
+ // text: '排行榜',
|
|
|
+ // url: '../../pages/home/ranking/index'
|
|
|
+ // },
|
|
|
+
|
|
|
+
|
|
|
+ // {
|
|
|
+ // image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/71svpg041343669.png?imageView2/1/w/200/h/200',
|
|
|
+ // text: '跑步',
|
|
|
+ // url: '../../pages/home/sport/sport-home/index',
|
|
|
+ // active: 1
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241104/k1q4no034958681.png?imageView2/1/w/200/h/200',
|
|
|
+ // text: '积分',
|
|
|
+ // url: '../../pages/home/integral/index'
|
|
|
+ // },
|
|
|
],
|
|
|
target: 0,
|
|
|
sharList: [],
|
|
@@ -88,13 +91,15 @@ Component({
|
|
|
|
|
|
const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
|
|
|
const contentHeight = (screenHeight - bottomNavHeight - 50 - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
|
|
|
+ const navheight = (statusBarHeight+customHeight) * 750 / systemInfo.windowWidth;
|
|
|
this.setData({
|
|
|
statusBarHeight,
|
|
|
- screenHeight,
|
|
|
+ screenHeight:(screenHeight-50-bottomNavHeight) * 750 / systemInfo.windowWidth,
|
|
|
customHeight,
|
|
|
bottomNavHeight,
|
|
|
contentHeight,
|
|
|
- contentpadding
|
|
|
+ contentpadding,
|
|
|
+ navheight,
|
|
|
});
|
|
|
console.log('123', contentpadding);
|
|
|
this.getWeRunData()
|
|
@@ -206,7 +211,8 @@ Component({
|
|
|
},
|
|
|
success: (ops) => { // 使用箭头函数
|
|
|
console.log(ops);
|
|
|
- const address = ops.data.result.formatted_address;
|
|
|
+ // const address = ops.data.result.formatted_address;//详细地址
|
|
|
+ const address = ops.data.result.addressComponent.city;//市
|
|
|
this.setData({
|
|
|
address: address,
|
|
|
});
|
|
@@ -285,7 +291,7 @@ Component({
|
|
|
// }
|
|
|
// });
|
|
|
// });
|
|
|
- const steps = 323456
|
|
|
+ const steps = 33456
|
|
|
return steps
|
|
|
},
|
|
|
//更新今日步数
|