Zhangbw il y a 3 mois
Parent
commit
8e8ca1e4d8

+ 3 - 0
dist/dev/mp-weixin/app.js

@@ -21,6 +21,9 @@ const _sfc_main = {
   },
   onShow: function() {
     console.log("App Show");
+    common_vendor.index.setNavigationBarTitle({
+      title: "量化交易大师"
+    });
   },
   onHide: function() {
     console.log("App Hide");

+ 1 - 0
dist/dev/mp-weixin/pages/index/index.js

@@ -22,6 +22,7 @@ const _sfc_main = {
     common_vendor.onShow(() => {
       isLoggedIn.value = utils_auth.isLoggedIn();
       console.log("[首页] 登录状态:", isLoggedIn.value);
+      common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
     });
     const handleSearchClick = async () => {
       console.log("=== 点击搜索按钮 ===");

+ 1 - 0
dist/dev/mp-weixin/pages/index/index.json

@@ -1,3 +1,4 @@
 {
+  "navigationBarTitleText": "量化交易大师",
   "usingComponents": {}
 }

+ 1 - 0
dist/dev/mp-weixin/pages/mine/mine.js

@@ -18,6 +18,7 @@ const _sfc_main = {
     });
     common_vendor.onShow(() => {
       loadUserInfo();
+      common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
     });
     const loadUserInfo = async () => {
       isLoggedIn.value = utils_auth.isLoggedIn();

+ 1 - 0
dist/dev/mp-weixin/pages/mine/mine.json

@@ -1,3 +1,4 @@
 {
+  "navigationBarTitleText": "量化交易大师",
   "usingComponents": {}
 }

+ 1 - 0
dist/dev/mp-weixin/pages/pool/pool.js

@@ -132,6 +132,7 @@ const _sfc_main = {
       checkLogin();
       checkPurchaseStatus();
       getUserPoints();
+      common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
     });
     return (_ctx, _cache) => {
       return common_vendor.e({

+ 1 - 0
dist/dev/mp-weixin/pages/pool/pool.json

@@ -1,3 +1,4 @@
 {
+  "navigationBarTitleText": "量化交易大师",
   "usingComponents": {}
 }

+ 3 - 0
dist/dev/mp-weixin/pages/profile/edit.js

@@ -16,6 +16,9 @@ const _sfc_main = {
     console.log("[编辑资料] 页面加载");
     this.loadUserInfo();
   },
+  onShow() {
+    common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
+  },
   methods: {
     /**
      * 加载用户信息

+ 1 - 0
dist/dev/mp-weixin/pages/profile/edit.json

@@ -1,3 +1,4 @@
 {
+  "navigationBarTitleText": "量化交易大师",
   "usingComponents": {}
 }

+ 1 - 0
dist/dev/mp-weixin/pages/rank/rank.js

@@ -79,6 +79,7 @@ const _sfc_main = {
     });
     common_vendor.onShow(() => {
       checkLoginAndLoadData();
+      common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
     });
     return (_ctx, _cache) => {
       return common_vendor.e({

+ 1 - 0
dist/dev/mp-weixin/pages/rank/rank.json

@@ -1,3 +1,4 @@
 {
+  "navigationBarTitleText": "量化交易大师",
   "usingComponents": {}
 }

+ 1 - 0
dist/dev/mp-weixin/pages/strong/strong.js

@@ -160,6 +160,7 @@ const _sfc_main = {
     });
     common_vendor.onShow(() => {
       checkLogin();
+      common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
     });
     return (_ctx, _cache) => {
       return common_vendor.e({

+ 1 - 0
dist/dev/mp-weixin/pages/strong/strong.json

@@ -1,3 +1,4 @@
 {
+  "navigationBarTitleText": "量化交易大师",
   "usingComponents": {}
 }

+ 4 - 0
src/App.vue

@@ -8,6 +8,10 @@ export default {
   },
   onShow: function() {
     console.log('App Show')
+    // 确保导航栏标题正确显示
+    uni.setNavigationBarTitle({
+      title: '量化交易大师'
+    })
   },
   onHide: function() {
     console.log('App Hide')

+ 18 - 6
src/pages.json

@@ -2,7 +2,9 @@
   "pages": [
     {
       "path": "pages/index/index",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "量化交易大师"
+      }
     },
     {
       "path": "pages/login/login",
@@ -12,23 +14,33 @@
     },
     {
       "path": "pages/pool/pool",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "量化交易大师"
+      }
     },
     {
       "path": "pages/strong/strong",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "量化交易大师"
+      }
     },
     {
       "path": "pages/rank/rank",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "量化交易大师"
+      }
     },
     {
       "path": "pages/mine/mine",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "量化交易大师"
+      }
     },
     {
       "path": "pages/profile/edit",
-      "style": {}
+      "style": {
+        "navigationBarTitleText": "量化交易大师"
+      }
     },
     {
       "path": "pages/transaction/transaction",

+ 2 - 0
src/pages/index/index.vue

@@ -157,6 +157,8 @@ onMounted(() => {
 onShow(() => {
   isLoggedIn.value = checkLoginStatus()
   console.log('[首页] 登录状态:', isLoggedIn.value)
+  // 设置导航栏标题
+  uni.setNavigationBarTitle({ title: '量化交易大师' })
 })
 
 /**

+ 2 - 0
src/pages/mine/mine.vue

@@ -96,6 +96,8 @@ onMounted(() => {
  */
 onShow(() => {
   loadUserInfo()
+  // 设置导航栏标题
+  uni.setNavigationBarTitle({ title: '量化交易大师' })
 })
 
 /**

+ 2 - 0
src/pages/pool/pool.vue

@@ -338,6 +338,8 @@ onShow(() => {
   checkLogin()
   checkPurchaseStatus()
   getUserPoints()
+  // 设置导航栏标题
+  uni.setNavigationBarTitle({ title: '量化交易大师' })
 })
 </script>
 

+ 5 - 0
src/pages/profile/edit.vue

@@ -60,6 +60,11 @@ export default {
     this.loadUserInfo()
   },
 
+  onShow() {
+    // 设置导航栏标题
+    uni.setNavigationBarTitle({ title: '量化交易大师' })
+  },
+
   methods: {
     /**
      * 加载用户信息

+ 2 - 0
src/pages/rank/rank.vue

@@ -188,6 +188,8 @@ onMounted(() => {
 // 页面显示时重新检查登录状态
 onShow(() => {
   checkLoginAndLoadData()
+  // 设置导航栏标题
+  uni.setNavigationBarTitle({ title: '量化交易大师' })
 })
 </script>
 

+ 2 - 0
src/pages/strong/strong.vue

@@ -402,6 +402,8 @@ onLoad(() => {
 onShow(() => {
   // 页面显示时检查登录状态(从登录页返回时会触发)
   checkLogin()
+  // 设置导航栏标题
+  uni.setNavigationBarTitle({ title: '量化交易大师' })
 })
 </script>