地图加载优化

This commit is contained in:
devil_gong 2019-12-12 16:20:39 +08:00
parent 4351638be8
commit ee082c9b5f

View File

@ -87,8 +87,11 @@ class Site extends Common
$data = ConfigService::ConfigList();
$this->assign('data', $data);
// 自提点地址处理
if($nav_type == 'sitetype' && !empty($data['common_self_extraction_address']) && !empty($data['common_self_extraction_address']['value']))
// 自提点
if($nav_type == 'sitetype')
{
// 地址处理
if(!empty($data['common_self_extraction_address']) && !empty($data['common_self_extraction_address']['value']))
{
$address = ConfigService::SiteTypeExtractionAddressList($data['common_self_extraction_address']['value']);
$this->assign('sitetype_address_list', $address['data']);
@ -96,6 +99,7 @@ class Site extends Common
// 加载百度地图api
$this->assign('is_load_baidu_map_api', 1);
}
// 编辑器文件存放地址
$this->assign('editor_path_type', 'common');