diff --git a/application/admin/controller/Useraddress.php b/application/admin/controller/Useraddress.php index 1e7d474ed..7d52e35e4 100644 --- a/application/admin/controller/Useraddress.php +++ b/application/admin/controller/Useraddress.php @@ -70,6 +70,9 @@ class UserAddress extends Common ]; $ret = UserAddressService::UserAddressAdminList($data_params); + // 加载百度地图api + $this->assign('is_load_baidu_map_api', 1); + // 基础参数赋值 $this->assign('params', $this->data_request); $this->assign('page_html', $page->GetPageHtml()); diff --git a/application/admin/controller/Warehouse.php b/application/admin/controller/Warehouse.php index b9ccff7ee..f717e33ff 100644 --- a/application/admin/controller/Warehouse.php +++ b/application/admin/controller/Warehouse.php @@ -58,10 +58,13 @@ class Warehouse extends Common 'where' => $this->form_where, ]; $ret = WarehouseService::WarehouseList($data_params); + $this->assign('data_list', $ret['data']); + + // 加载百度地图api + $this->assign('is_load_baidu_map_api', 1); // 基础参数赋值 $this->assign('params', $this->data_request); - $this->assign('data_list', $ret['data']); return $this->fetch(); } diff --git a/application/admin/form/Useraddress.php b/application/admin/form/Useraddress.php index 73222f914..25a15a90a 100644 --- a/application/admin/form/Useraddress.php +++ b/application/admin/form/Useraddress.php @@ -46,7 +46,6 @@ class UserAddress 'is_delete' => 1, 'delete_url' => MyUrl('admin/useraddress/delete'), 'delete_key' => 'ids', - 'detail_title' => '基础信息', ], // 表单配置 'form' => [ diff --git a/application/admin/form/Warehouse.php b/application/admin/form/Warehouse.php index 043bf9909..a25419ea3 100644 --- a/application/admin/form/Warehouse.php +++ b/application/admin/form/Warehouse.php @@ -50,7 +50,6 @@ class Warehouse 'is_delete' => 1, 'delete_url' => MyUrl('admin/warehouse/delete'), 'delete_key' => 'ids', - 'detail_title' => '基础信息', ], // 表单配置 'form' => [ diff --git a/application/admin/view/default/useraddress/detail.html b/application/admin/view/default/useraddress/detail.html index 2edc34102..06eeee457 100644 --- a/application/admin/view/default/useraddress/detail.html +++ b/application/admin/view/default/useraddress/detail.html @@ -1,31 +1,2 @@ -{{extend name="public/module/detail" /}} - - -{{block name="detail_data"}} - - {__block__} - - -
经度 {{$module_data.lng}}
+经度:{{$module_data.lng}}
{{/if}} {{if !empty($module_data['lat'])}} -纬度 {{$module_data.lat}}
+纬度:{{$module_data.lat}}
+{{/if}} +{{if !empty($module_data['lng']) and !empty($module_data['lat'])}} +经度 {{$module_data.lng}}
+经度:{{$module_data.lng}}
{{/if}} {{if !empty($module_data['lat'])}} -纬度 {{$module_data.lat}}
+纬度:{{$module_data.lat}}
+{{/if}} +{{if !empty($module_data['lng']) and !empty($module_data['lat'])}} +