From b67f6cf00eb15756a1f7298a8d42ae27fc86740c Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Mon, 22 Apr 2024 14:26:33 +0800 Subject: [PATCH] 模板名称 --- pages/template/index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/template/index.js b/pages/template/index.js index 3904a01..28253c6 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -58,15 +58,21 @@ Page({ wx.setNavigationBarTitle({ title: getApp().globalData.config.store_name, }); + // th.setData({ + // nav_title: getApp().globalData.config.store_name + // }) th.setData({ - nav_title: getApp().globalData.config.store_name + nav_title: th.data.share_title }) } else { wx.setNavigationBarTitle({ title: getApp().globalData.setting.appName, }); + // th.setData({ + // nav_title: getApp().globalData.setting.appName, + // }) th.setData({ - nav_title: getApp().globalData.setting.appName, + nav_title: th.data.share_title }) }; }); @@ -124,6 +130,9 @@ Page({ wx.setNavigationBarTitle({ title: temp_data.page_title, }); + th.setData({ + nav_title: temp_data.page_title, + }) var t_arr = JSON.parse(temp_data.json_str); //增加判断是否是满屏 let is_full_screen_navigation = false -- libgit2 0.21.4