1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <form id="form" action="{:url('store/chainStoreEdit')}">
- <input type="hidden" name="id" value="{$info.id}"/>
- <input type="hidden" name="store_id" value="{$store_id}"/>
- <table class="formtable">
- <tr><th>付款编码:</th><td>
- <input class="input" type="text" name="code_id" value="{$info.code_id}" datatype="n6-18" ajaxurl="{:url('store/chainCodeid',['store_id' => $store_id,'chain_id'=> $info.id])}"/>
- <span class="gray">12位数字(6位邮编+6位随机编号)</span>
- </td></tr>
- <tr><th>门店名称:</th><td><input class="input w400" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
- <tr><th>门店地址:</th><td>
- <input class="input w350" datatype="*" type="text" name="address" value="{$info.address}" />
- <button type="button" class="button button-green lib"><i class="iconfont icon-address_icon"></i>读取经纬</button>
- </td></tr>
- <tr><th>经纬度:</th><td>
- <input readonly="true" autocomplete="off" class="input w100 readonly" datatype="*" type="text" name="longitude" value="{$info.longitude}" />
- <input readonly="true" autocomplete="off" class="input w100 readonly" datatype="*" type="text" name="latitude" value="{$info.latitude}" />
- <span class="gray"><i class="iconfont icon-address_icon"></i>地址请包含<span class="red">省市地区</span>完整地址,方便位置定位判断</span>
- </td></tr><tr><th>门店电话:</th><td><input class="input" datatype="*" type="text" name="telphone" value="{$info.telphone}" /></td></tr>
- <tr>
- <th></th>
- <td>
- <input type="submit" value="确定" class="button button-blue submit" />
- <input type="reset" value="重置" class="button button-blank"/>
- </td>
- </tr>
- </table>
- </form>
- <script type="text/javascript">
- Do('base','layer','form',function(){
- $('#form').isForm();
- $(".lib").click(function () {
- var val = $("input[name='address']").val();
- if(val == "" || val == null || val == undefined){
- parent.layer.alert('好店地址必须填写');
- }else{
- $(this).popup({'url':'{:url("allwin/store/baidu")}?address='+val,area: ['60%','550px']});
- }
- });
- })
- function setPoint(point){
- $("input[name='longitude']").val(point.lng);
- $("input[name='latitude']").val(point.lat);
- }
- </script>
|