应用名称优化

master
gongfuxiang 2022-08-13 22:00:44 +08:00
parent 5563def9d7
commit 5c1da90137
2 changed files with 35 additions and 5 deletions

38
App.vue
View File

@ -49,7 +49,7 @@
//
request_url: 'http://shopxo.com/',
// publicpublichttps://d1.shopxo.vip/public/
static_url: 'https://d1.shopxo.vip/',
static_url: 'http://shopxo.com/',
// default
system_type: 'default',
//
@ -1374,15 +1374,45 @@
}
}
return true;
},
// app
get_application_title() {
var value = null;
//
var type = this.application_client_type() || null;
if(type !== null) {
value = this.get_config('config.common_app_mini_'+type+'_title') || null;
}
//
if(value === null) {
value = this.get_config('config.home_site_name', this.data.application_title);
}
return value;
},
// app
get_application_describe() {
var value = null;
//
var type = this.application_client_type() || null;
if(type !== null) {
value = this.get_config('config.common_app_mini_'+type+'_describe') || null;
}
//
if(value === null) {
value = this.data.application_describe;
}
return value;
},
//
share_content_handle(data) {
//
var share_config = this.get_config('plugins_base.share.data') || {};
var result = {
title: data.title || share_config.title || this.data.application_title,
desc: data.desc || share_config.desc || this.data.application_describe,
title: data.title || share_config.title || this.get_application_title(),
desc: data.desc || share_config.desc || this.get_application_describe(),
path: data.path || this.data.tabbar_pages[0],
query: this.share_query_handle(data.query || ''),
img: data.img || share_config.pic || this.get_config('config.home_site_logo_square')

View File

@ -412,7 +412,7 @@
common_app_is_enable_answer: app.globalData.get_config('config.common_app_is_enable_answer'),
common_app_is_header_nav_fixed: app.globalData.get_config('config.common_app_is_header_nav_fixed'),
common_app_is_online_service: app.globalData.get_config('config.common_app_is_online_service'),
application_title: app.globalData.get_config('config.home_site_name', app.globalData.data.application_title)
application_title: app.globalData.get_application_title()
});
} else {
app.globalData.is_config(this, 'init_config');