mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-04 04:53:00 +08:00
仓库,用户地址管理坐标查看优化
This commit is contained in:
@ -1,31 +1,2 @@
|
||||
<!-- 继承公共的 form -->
|
||||
{{extend name="public/module/detail" /}}
|
||||
|
||||
<!-- 重写数据模块 -->
|
||||
{{block name="detail_data"}}
|
||||
<!-- 父级内容 -->
|
||||
{__block__}
|
||||
|
||||
<!-- 地图位置 -->
|
||||
<div class="am-panel am-panel-default">
|
||||
<div class="am-panel-hd">地图位置</div>
|
||||
<div class="am-panel-bd">
|
||||
{{if !empty($data['lng']) and !empty($data['lat'])}}
|
||||
<div id="map" data-level="17" class="am-margin-top-xs"></div>
|
||||
{{else /}}
|
||||
<div class="table-no"><i class="am-icon-warning"></i> 未配置</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/block}}
|
||||
|
||||
<!-- 底部内容重写 -->
|
||||
{{block name="form_page_bottom"}}
|
||||
<script type="text/javascript">
|
||||
$(function()
|
||||
{
|
||||
// 百度地图初始化
|
||||
MapInit({{if !empty($data['lng'])}}{{$data['lng']}}{{else /}}116.400244{{/if}},{{if !empty($data['lat'])}}{{$data['lat']}}{{else /}}39.92556{{/if}}, null, null, false);
|
||||
});
|
||||
</script>
|
||||
{{/block}}
|
||||
{{extend name="public/module/detail" /}}
|
||||
@ -1,7 +1,12 @@
|
||||
<!-- 经纬度 -->
|
||||
{{if !empty($module_data['lng'])}}
|
||||
<p><span class="am-badge am-radius">经度</span> {{$module_data.lng}}</p>
|
||||
<p><span>经度:</span>{{$module_data.lng}}</p>
|
||||
{{/if}}
|
||||
{{if !empty($module_data['lat'])}}
|
||||
<p class="am-margin-top-xs"><span class="am-badge am-radius">纬度</span> {{$module_data.lat}}</p>
|
||||
<p class="am-margin-top-xs"><span>纬度:</span>{{$module_data.lat}}</p>
|
||||
{{/if}}
|
||||
{{if !empty($module_data['lng']) and !empty($module_data['lat'])}}
|
||||
<div class="am-margin-top-xs">
|
||||
<button type="button" class="am-btn am-btn-success am-btn-xs am-radius am-icon-map-marker am-padding-xs submit-map-popup" data-lng="{{$module_data.lng}}" data-lat="{{$module_data.lat}}"> 查看位置</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
@ -1,31 +1,2 @@
|
||||
<!-- 继承公共的 form -->
|
||||
{{extend name="public/module/detail" /}}
|
||||
|
||||
<!-- 重写数据模块 -->
|
||||
{{block name="detail_data"}}
|
||||
<!-- 父级内容 -->
|
||||
{__block__}
|
||||
|
||||
<!-- 地图 -->
|
||||
<div class="am-panel am-panel-default">
|
||||
<div class="am-panel-hd">地图</div>
|
||||
<div class="am-panel-bd">
|
||||
{{if !empty($data['lng']) and !empty($data['lat'])}}
|
||||
<div id="map" data-level="17" class="am-margin-top-xs"></div>
|
||||
{{else /}}
|
||||
<div class="table-no"><i class="am-icon-warning"></i> 未配置</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/block}}
|
||||
|
||||
<!-- 底部内容重写 -->
|
||||
{{block name="form_page_bottom"}}
|
||||
<script type="text/javascript">
|
||||
$(function()
|
||||
{
|
||||
// 百度地图初始化
|
||||
MapInit({{if !empty($data['lng'])}}{{$data['lng']}}{{else /}}116.400244{{/if}},{{if !empty($data['lat'])}}{{$data['lat']}}{{else /}}39.92556{{/if}}, null, null, false);
|
||||
});
|
||||
</script>
|
||||
{{/block}}
|
||||
{{extend name="public/module/detail" /}}
|
||||
@ -1,7 +1,12 @@
|
||||
<!-- 经纬度 -->
|
||||
{{if !empty($module_data['lng'])}}
|
||||
<p><span class="am-badge am-radius">经度</span> {{$module_data.lng}}</p>
|
||||
<p><span>经度:</span>{{$module_data.lng}}</p>
|
||||
{{/if}}
|
||||
{{if !empty($module_data['lat'])}}
|
||||
<p class="am-margin-top-xs"><span class="am-badge am-radius">纬度</span> {{$module_data.lat}}</p>
|
||||
<p class="am-margin-top-xs"><span>纬度:</span>{{$module_data.lat}}</p>
|
||||
{{/if}}
|
||||
{{if !empty($module_data['lng']) and !empty($module_data['lat'])}}
|
||||
<div class="am-margin-top-xs">
|
||||
<button type="button" class="am-btn am-btn-success am-btn-xs am-radius am-icon-map-marker am-padding-xs submit-map-popup" data-lng="{{$module_data.lng}}" data-lat="{{$module_data.lat}}"> 查看位置</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user