|
@@ -43,13 +43,15 @@ Component({
|
|
|
{
|
|
|
image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/9crt85041343498.png?imageView2/1/w/200/h/200',
|
|
|
text: '步行',
|
|
|
- url: '../../pages/home/sport/sport-home/index'
|
|
|
+ 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'
|
|
|
+ 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',
|
|
@@ -99,9 +101,18 @@ Component({
|
|
|
//跳转
|
|
|
gourl(e) {
|
|
|
const url = e.currentTarget.dataset.url
|
|
|
- wx.navigateTo({
|
|
|
- url: `${url}` // 目标页面的路径
|
|
|
- });
|
|
|
+ const active = e.currentTarget.dataset.active
|
|
|
+ if(active){
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `${url}?id=`+active // 目标页面的路径
|
|
|
+ });
|
|
|
+ console.log(active);
|
|
|
+ }else{
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `${url}` // 目标页面的路径
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
})
|