邹能昇 4 ماه پیش
والد
کامیت
c224d0273e
28فایلهای تغییر یافته به همراه507 افزوده شده و 7 حذف شده
  1. 6 1
      app.json
  2. 5 5
      nova-werun/components/home/index.js
  3. 90 0
      nova-werun/pages/home/integral/index.js
  4. 3 0
      nova-werun/pages/home/integral/index.json
  5. 1 0
      nova-werun/pages/home/integral/index.less
  6. 5 0
      nova-werun/pages/home/integral/index.wxml
  7. 0 0
      nova-werun/pages/home/integral/index.wxss
  8. 90 0
      nova-werun/pages/home/medal/index.js
  9. 3 0
      nova-werun/pages/home/medal/index.json
  10. 1 0
      nova-werun/pages/home/medal/index.less
  11. 5 0
      nova-werun/pages/home/medal/index.wxml
  12. 0 0
      nova-werun/pages/home/medal/index.wxss
  13. 1 1
      nova-werun/pages/home/signin/index.wxml
  14. 90 0
      nova-werun/pages/home/sport/sport-home/index.js
  15. 3 0
      nova-werun/pages/home/sport/sport-home/index.json
  16. 1 0
      nova-werun/pages/home/sport/sport-home/index.less
  17. 5 0
      nova-werun/pages/home/sport/sport-home/index.wxml
  18. 0 0
      nova-werun/pages/home/sport/sport-home/index.wxss
  19. 90 0
      nova-werun/pages/home/sport/sport-start/index.js
  20. 3 0
      nova-werun/pages/home/sport/sport-start/index.json
  21. 1 0
      nova-werun/pages/home/sport/sport-start/index.less
  22. 5 0
      nova-werun/pages/home/sport/sport-start/index.wxml
  23. 0 0
      nova-werun/pages/home/sport/sport-start/index.wxss
  24. 90 0
      nova-werun/pages/home/statistics/index.js
  25. 3 0
      nova-werun/pages/home/statistics/index.json
  26. 1 0
      nova-werun/pages/home/statistics/index.less
  27. 5 0
      nova-werun/pages/home/statistics/index.wxml
  28. 0 0
      nova-werun/pages/home/statistics/index.wxss

+ 6 - 1
app.json

@@ -13,7 +13,12 @@
                 "pages/circle/send-circle/index",
                 "pages/home/signin/index",
                 "pages/home/ranking/index",
-                "pages/home/share/index"
+                "pages/home/share/index",
+                "pages/home/medal/index",
+                "pages/home/sport/sport-home/index",
+                "pages/home/sport/sport-start/index",
+                "pages/home/statistics/index",
+                "pages/home/integral/index"
             ]
         },
         {

+ 5 - 5
nova-werun/components/home/index.js

@@ -38,28 +38,28 @@ Component({
             {
                 image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/pqln61041343428.png?imageView2/1/w/200/h/200',
                 text: '我的勋章',
-                url: ''
+                url: '../../pages/home/medal/index'
             },
             {
                 image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/9crt85041343498.png?imageView2/1/w/200/h/200',
                 text: '步行',
-                url: ''
+                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: ''
+                url: '../../pages/home/sport/sport-home/index'
             },
             {
                 image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/uk13u1041343733.png?imageView2/1/w/200/h/200',
                 text: '我的统计',
-                url: ''
+                url: '../../pages/home/statistics/index'
             },
             {
                 image: 'https://file-cloud.fmode.cn/qpFbRRSZrO/20241104/k1q4no034958681.png?imageView2/1/w/200/h/200',
                 text: '积分',
-                url: ''
+                url: '../../pages/home/integral/index'
             },
         ]
     },

+ 90 - 0
nova-werun/pages/home/integral/index.js

@@ -0,0 +1,90 @@
+// nova-werun/pages/home/integral/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        //屏幕高度
+        statusBarHeight: 0, // 状态栏高度
+        screenHeight: 0, // 屏幕高度
+        customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
+        bottomNavHeight: 0, // 底部导航栏高度
+        contentHeight: 0, // 可用内容高度
+        contentHeight2: 0,
+        contentpadding: 0, //顶部padding高度
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        // 计算
+        const systemInfo = wx.getSystemInfoSync();
+        const statusBarHeight = systemInfo.statusBarHeight || 0;
+        const screenHeight = systemInfo.screenHeight || 0;
+        const custom = wx.getMenuButtonBoundingClientRect();
+        const customHeight = custom.height + 10 + 2 || 0;
+        const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
+
+        const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
+        const contentHeight = (screenHeight - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
+        this.setData({
+            statusBarHeight,
+            screenHeight,
+            customHeight,
+            bottomNavHeight,
+            contentpadding,
+            contentHeight
+        });
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
nova-werun/pages/home/integral/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

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

@@ -0,0 +1 @@
+/* nova-werun/pages/home/integral/index.wxss */

+ 5 - 0
nova-werun/pages/home/integral/index.wxml

@@ -0,0 +1,5 @@
+<!--nova-werun/pages/home/integral/index.wxml-->
+<nav type="back" title="积分" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
+<view class="all" style="height: {{contentHeight}}rpx;">
+
+</view>

+ 0 - 0
nova-werun/pages/home/integral/index.wxss


+ 90 - 0
nova-werun/pages/home/medal/index.js

@@ -0,0 +1,90 @@
+// nova-werun/pages/home/medal/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        //屏幕高度
+        statusBarHeight: 0, // 状态栏高度
+        screenHeight: 0, // 屏幕高度
+        customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
+        bottomNavHeight: 0, // 底部导航栏高度
+        contentHeight: 0, // 可用内容高度
+        contentHeight2: 0,
+        contentpadding: 0, //顶部padding高度
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        // 计算
+        const systemInfo = wx.getSystemInfoSync();
+        const statusBarHeight = systemInfo.statusBarHeight || 0;
+        const screenHeight = systemInfo.screenHeight || 0;
+        const custom = wx.getMenuButtonBoundingClientRect();
+        const customHeight = custom.height + 10 + 2 || 0;
+        const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
+
+        const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
+        const contentHeight = (screenHeight - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
+        this.setData({
+            statusBarHeight,
+            screenHeight,
+            customHeight,
+            bottomNavHeight,
+            contentpadding,
+            contentHeight
+        });
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
nova-werun/pages/home/medal/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

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

@@ -0,0 +1 @@
+/* nova-werun/pages/home/medal/index.wxss */

+ 5 - 0
nova-werun/pages/home/medal/index.wxml

@@ -0,0 +1,5 @@
+<!--nova-werun/pages/home/medal/index.wxml-->
+<nav type="back" title="我的勋章" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
+<view class="all" style="height: {{contentHeight}}rpx;">
+
+</view>

+ 0 - 0
nova-werun/pages/home/medal/index.wxss


+ 1 - 1
nova-werun/pages/home/signin/index.wxml

@@ -2,7 +2,7 @@
 <nav type="back" title="打卡签到" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
 <view class="all" style="height: {{contentHeight}}rpx;">
         <view class="picture">
-            <image></image>
+            <image src="https://file-cloud.fmode.cn//tmp/sBX4tFxdGjkk1fea2c9db35cbd67b50b01dd3bae1592.png?imageView2/1/w/200/h/200"></image>
         </view>
         <view class="textbox">
             <view class="text">

+ 90 - 0
nova-werun/pages/home/sport/sport-home/index.js

@@ -0,0 +1,90 @@
+// nova-werun/pages/home/sport/sport-home/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        //屏幕高度
+        statusBarHeight: 0, // 状态栏高度
+        screenHeight: 0, // 屏幕高度
+        customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
+        bottomNavHeight: 0, // 底部导航栏高度
+        contentHeight: 0, // 可用内容高度
+        contentHeight2: 0,
+        contentpadding: 0, //顶部padding高度
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+                // 计算
+                const systemInfo = wx.getSystemInfoSync();
+                const statusBarHeight = systemInfo.statusBarHeight || 0;
+                const screenHeight = systemInfo.screenHeight || 0;
+                const custom = wx.getMenuButtonBoundingClientRect();
+                const customHeight = custom.height + 10 + 2 || 0;
+                const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
+        
+                const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
+                const contentHeight = (screenHeight - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
+                this.setData({
+                    statusBarHeight,
+                    screenHeight,
+                    customHeight,
+                    bottomNavHeight,
+                    contentpadding,
+                    contentHeight
+                });
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
nova-werun/pages/home/sport/sport-home/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

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

@@ -0,0 +1 @@
+/* nova-werun/pages/home/sport/sport-home/index.wxss */

+ 5 - 0
nova-werun/pages/home/sport/sport-home/index.wxml

@@ -0,0 +1,5 @@
+<!--nova-werun/pages/home/sport/sport-home/index.wxml-->
+<nav type="back" title="运动" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
+<view class="all" style="height: {{contentHeight}}rpx;">
+
+</view>

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


+ 90 - 0
nova-werun/pages/home/sport/sport-start/index.js

@@ -0,0 +1,90 @@
+// nova-werun/pages/home/sport/sport-start/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        //屏幕高度
+        statusBarHeight: 0, // 状态栏高度
+        screenHeight: 0, // 屏幕高度
+        customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
+        bottomNavHeight: 0, // 底部导航栏高度
+        contentHeight: 0, // 可用内容高度
+        contentHeight2: 0,
+        contentpadding: 0, //顶部padding高度
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+                // 计算
+                const systemInfo = wx.getSystemInfoSync();
+                const statusBarHeight = systemInfo.statusBarHeight || 0;
+                const screenHeight = systemInfo.screenHeight || 0;
+                const custom = wx.getMenuButtonBoundingClientRect();
+                const customHeight = custom.height + 10 + 2 || 0;
+                const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
+        
+                const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
+                const contentHeight = (screenHeight - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
+                this.setData({
+                    statusBarHeight,
+                    screenHeight,
+                    customHeight,
+                    bottomNavHeight,
+                    contentpadding,
+                    contentHeight
+                });
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
nova-werun/pages/home/sport/sport-start/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

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

@@ -0,0 +1 @@
+/* nova-werun/pages/home/sport/sport-start/index.wxss */

+ 5 - 0
nova-werun/pages/home/sport/sport-start/index.wxml

@@ -0,0 +1,5 @@
+<!--nova-werun/pages/home/sport/sport-start/index.wxml-->
+<nav type="back" title="跑步或走路" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
+<view class="all" style="height: {{contentHeight}}rpx;">
+
+</view>

+ 0 - 0
nova-werun/pages/home/sport/sport-start/index.wxss


+ 90 - 0
nova-werun/pages/home/statistics/index.js

@@ -0,0 +1,90 @@
+// nova-werun/pages/home/statistics/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+            //屏幕高度
+            statusBarHeight: 0, // 状态栏高度
+            screenHeight: 0, // 屏幕高度
+            customHeight: 0, // 自定义导航栏高度(如小程序右上角胶囊按钮)
+            bottomNavHeight: 0, // 底部导航栏高度
+            contentHeight: 0, // 可用内容高度
+            contentHeight2: 0,
+            contentpadding: 0, //顶部padding高度
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+                // 计算
+                const systemInfo = wx.getSystemInfoSync();
+                const statusBarHeight = systemInfo.statusBarHeight || 0;
+                const screenHeight = systemInfo.screenHeight || 0;
+                const custom = wx.getMenuButtonBoundingClientRect();
+                const customHeight = custom.height + 10 + 2 || 0;
+                const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
+        
+                const contentpadding = (statusBarHeight + customHeight) * 750 / systemInfo.windowWidth;
+                const contentHeight = (screenHeight - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
+                this.setData({
+                    statusBarHeight,
+                    screenHeight,
+                    customHeight,
+                    bottomNavHeight,
+                    contentpadding,
+                    contentHeight
+                });
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
nova-werun/pages/home/statistics/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

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

@@ -0,0 +1 @@
+/* nova-werun/pages/home/statistics/index.wxss */

+ 5 - 0
nova-werun/pages/home/statistics/index.wxml

@@ -0,0 +1,5 @@
+<!--nova-werun/pages/home/statistics/index.wxml-->
+<nav type="back" title="我的统计" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
+<view class="all" style="height: {{contentHeight}}rpx;">
+
+</view>

+ 0 - 0
nova-werun/pages/home/statistics/index.wxss