chain_store_edit.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <form id="form" action="{:url('store/chainStoreEdit')}">
  2. <input type="hidden" name="id" value="{$info.id}"/>
  3. <input type="hidden" name="store_id" value="{$store_id}"/>
  4. <table class="formtable">
  5. <tr><th>付款编码:</th><td>
  6. <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])}"/>
  7. <span class="gray">12位数字(6位邮编+6位随机编号)</span>
  8. </td></tr>
  9. <tr><th>门店名称:</th><td><input class="input w400" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
  10. <tr><th>门店地址:</th><td>
  11. <input class="input w350" datatype="*" type="text" name="address" value="{$info.address}" />
  12. <button type="button" class="button button-green lib"><i class="iconfont icon-address_icon"></i>读取经纬</button>
  13. </td></tr>
  14. <tr><th>经纬度:</th><td>
  15. <input readonly="true" autocomplete="off" class="input w100 readonly" datatype="*" type="text" name="longitude" value="{$info.longitude}" />
  16. <input readonly="true" autocomplete="off" class="input w100 readonly" datatype="*" type="text" name="latitude" value="{$info.latitude}" />
  17. <span class="gray"><i class="iconfont icon-address_icon"></i>地址请包含<span class="red">省市地区</span>完整地址,方便位置定位判断</span>
  18. </td></tr><tr><th>门店电话:</th><td><input class="input" datatype="*" type="text" name="telphone" value="{$info.telphone}" /></td></tr>
  19. <tr>
  20. <th></th>
  21. <td>
  22. <input type="submit" value="确定" class="button button-blue submit" />
  23. <input type="reset" value="重置" class="button button-blank"/>
  24. </td>
  25. </tr>
  26. </table>
  27. </form>
  28. <script type="text/javascript">
  29. Do('base','layer','form',function(){
  30. $('#form').isForm();
  31. $(".lib").click(function () {
  32. var val = $("input[name='address']").val();
  33. if(val == "" || val == null || val == undefined){
  34. parent.layer.alert('好店地址必须填写');
  35. }else{
  36. $(this).popup({'url':'{:url("allwin/store/baidu")}?address='+val,area: ['60%','550px']});
  37. }
  38. });
  39. })
  40. function setPoint(point){
  41. $("input[name='longitude']").val(point.lng);
  42. $("input[name='latitude']").val(point.lat);
  43. }
  44. </script>