@@ -156,7 +156,7 @@ var ArrayProto = Array.prototype,
156156 slice = ArrayProto . slice ,
157157 toString = ObjProto . toString ,
158158 hasOwnProperty = ObjProto . hasOwnProperty ,
159- LIB_VERSION = '1.14.15 ' ,
159+ LIB_VERSION = '1.14.16 ' ,
160160 LIB_NAME = 'MiniProgram' ;
161161
162162var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term' ;
@@ -1035,7 +1035,8 @@ _.getPageTitle = function(route) {
10351035 try {
10361036 if ( __wxConfig ) {
10371037 var wxConfig = __wxConfig ;
1038- var currentPageConfig = wxConfig . page [ route ] || wxConfig . page [ route + '.html' ] ;
1038+ var page_list = __wxConfig . page || { } ;
1039+ var currentPageConfig = page_list [ route ] || page_list [ route + '.html' ] ;
10391040 var globalConfigTitle = { } ,
10401041 pageConfigTitle = { } ;
10411042 if ( wxConfig . global && wxConfig . global . window && wxConfig . global . window . navigationBarTitleText ) {
@@ -1044,6 +1045,14 @@ _.getPageTitle = function(route) {
10441045 if ( currentPageConfig && currentPageConfig . window && currentPageConfig . window . navigationBarTitleText ) {
10451046 pageConfigTitle . titleVal = currentPageConfig . window . navigationBarTitleText
10461047 }
1048+
1049+ if ( ! pageConfigTitle . titleVal && __wxAppCode__ ) {
1050+ var page_config = __wxAppCode__ [ route + '.json' ] ;
1051+ if ( page_config && page_config [ 'navigationBarTitleText' ] ) {
1052+ pageConfigTitle . titleVal = page_config [ 'navigationBarTitleText' ] ;
1053+ }
1054+ }
1055+
10471056 _ . each ( globalTitle , function ( v , k ) {
10481057 if ( k === route ) {
10491058 return title = v ;
0 commit comments