Commit b67f6cf00eb15756a1f7298a8d42ae27fc86740c
1 parent
d27a09be
模板名称
Showing
1 changed file
with
11 additions
and
2 deletions
pages/template/index.js
... | ... | @@ -58,15 +58,21 @@ Page({ |
58 | 58 | wx.setNavigationBarTitle({ |
59 | 59 | title: getApp().globalData.config.store_name, |
60 | 60 | }); |
61 | + // th.setData({ | |
62 | + // nav_title: getApp().globalData.config.store_name | |
63 | + // }) | |
61 | 64 | th.setData({ |
62 | - nav_title: getApp().globalData.config.store_name | |
65 | + nav_title: th.data.share_title | |
63 | 66 | }) |
64 | 67 | } else { |
65 | 68 | wx.setNavigationBarTitle({ |
66 | 69 | title: getApp().globalData.setting.appName, |
67 | 70 | }); |
71 | + // th.setData({ | |
72 | + // nav_title: getApp().globalData.setting.appName, | |
73 | + // }) | |
68 | 74 | th.setData({ |
69 | - nav_title: getApp().globalData.setting.appName, | |
75 | + nav_title: th.data.share_title | |
70 | 76 | }) |
71 | 77 | }; |
72 | 78 | }); |
... | ... | @@ -124,6 +130,9 @@ Page({ |
124 | 130 | wx.setNavigationBarTitle({ |
125 | 131 | title: temp_data.page_title, |
126 | 132 | }); |
133 | + th.setData({ | |
134 | + nav_title: temp_data.page_title, | |
135 | + }) | |
127 | 136 | var t_arr = JSON.parse(temp_data.json_str); |
128 | 137 | //增加判断是否是满屏 |
129 | 138 | let is_full_screen_navigation = false | ... | ... |