mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 10:59:47 +08:00
地图加载优化
This commit is contained in:
parent
4351638be8
commit
ee082c9b5f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user