邹能昇 2 months ago
parent
commit
899355e967

+ 1 - 1
nova-werun/pages/home/sport/sport-home/index.js

@@ -168,7 +168,7 @@ Page({
     //跳转
     gourl(e) {
         const url = e.currentTarget.dataset.url
-        if(this.data.active==0){
+        if(this.data.currentTab==0){
             const title='步行'
             wx.navigateTo({
                 url: `${url}?id=`+title // 目标页面的路径

+ 0 - 1
nova-werun/pages/home/sport/sport-home/index.less

@@ -41,7 +41,6 @@
         width: 100%;
         height: 80rpx;
         border-radius: 40rpx;
-        border: solid black 1px;
         display: flex;
         align-items: center;
         margin-top: 40rpx;

+ 1 - 1
nova-werun/pages/home/sport/sport-home/index.wxss

@@ -1 +1 @@
-.all{width:100vw;padding-left:40rpx;padding-right:40rpx;padding-top:20rpx;background:linear-gradient(to bottom, #4F9AF7, #FFFFFF)}.all .tab-bar{display:flex;justify-content:space-around}.all .tab-item{padding:10rpx 0;text-align:center;position:relative;color:black;font-size:32rpx}.all .tab-item.active{position:relative;color:#0178EE;font-size:32rpx;font-family:'NotoSans-Bold-5',sans-serif}.all .tab-item.active::after{content:"";width:64rpx;position:absolute;left:calc(50% - 32rpx);right:calc(50% - 32rpx);bottom:0;height:2rpx;background-color:#0178EE;border-radius:4rpx}.all .textbox{width:100%;height:80rpx;border-radius:40rpx;border:solid black 1px;display:flex;align-items:center;margin-top:40rpx;background-color:white}.all .textbox .text{font-size:30rpx;margin-left:20rpx}.all .textbox .number{font-size:32rpx;margin-left:auto;margin-right:20rpx}.all .mapbox{width:100%;height:1100rpx;border-radius:15rpx;position:relative;margin-top:30rpx;margin-bottom:40rpx}.all .mapbox .map{width:100%;height:100%;border-radius:15rpx;overflow:hidden}.all .mapbox .button{width:150rpx;height:150rpx;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:40rpx;background-color:#4F9AF7;color:white;position:absolute;left:38%;bottom:100rpx}
+.all{width:100vw;padding-left:40rpx;padding-right:40rpx;padding-top:20rpx;background:linear-gradient(to bottom, #4F9AF7, #FFFFFF)}.all .tab-bar{display:flex;justify-content:space-around}.all .tab-item{padding:10rpx 0;text-align:center;position:relative;color:black;font-size:32rpx}.all .tab-item.active{position:relative;color:#0178EE;font-size:32rpx;font-family:'NotoSans-Bold-5',sans-serif}.all .tab-item.active::after{content:"";width:64rpx;position:absolute;left:calc(50% - 32rpx);right:calc(50% - 32rpx);bottom:0;height:2rpx;background-color:#0178EE;border-radius:4rpx}.all .textbox{width:100%;height:80rpx;border-radius:40rpx;display:flex;align-items:center;margin-top:40rpx;background-color:white}.all .textbox .text{font-size:30rpx;margin-left:20rpx}.all .textbox .number{font-size:32rpx;margin-left:auto;margin-right:20rpx}.all .mapbox{width:100%;height:1100rpx;border-radius:15rpx;position:relative;margin-top:30rpx;margin-bottom:40rpx}.all .mapbox .map{width:100%;height:100%;border-radius:15rpx;overflow:hidden}.all .mapbox .button{width:150rpx;height:150rpx;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:40rpx;background-color:#4F9AF7;color:white;position:absolute;left:38%;bottom:100rpx}