|
|
@@ -38,7 +38,7 @@
|
|
|
</script>
|
|
|
<!-- 表单弹窗 -->
|
|
|
<script type="text/html" id="modelStore">
|
|
|
- <form id="modelStoreForm" lay-filter="modelStoreForm" class="layui-form model-form">
|
|
|
+ <form id="modelStoreForm" lay-filter="modelStoreForm" class="layui-form model-form" onsubmit="return false;">
|
|
|
<input name="id" type="hidden"/>
|
|
|
<input name="type" type="hidden" value="1"/>
|
|
|
<div class="layui-form-item">
|
|
|
@@ -146,14 +146,14 @@
|
|
|
cellMinWidth: 100,
|
|
|
cols: [[
|
|
|
{type: 'checkbox'},
|
|
|
- {field: 'name', title: '服务项目', width: 200},
|
|
|
+ {field: 'name', title: '摊点名称', width: 200},
|
|
|
{field: 'phone', title: '联系电话', width: 100},
|
|
|
{
|
|
|
field: 'cover_img', title: '展示图片', templet: function (d) {
|
|
|
return '<img src="' + (d.cover_img || '../../assets/images/placeholder-refund.png') + '" style="height: 100%;margin-right:2px" class="input-img-preview"/>'
|
|
|
}, width: 200
|
|
|
},
|
|
|
- {field: 'intro', title: '服务内容'},
|
|
|
+ {field: 'intro', title: '介绍内容'},
|
|
|
{field: 'location', title: '位置'},
|
|
|
{field: 'time_slot', title: '服务时间', width: 200},
|
|
|
{
|
|
|
@@ -212,7 +212,7 @@
|
|
|
id: 'LAY_StoreModel',
|
|
|
type: 1,
|
|
|
area: '620px', //宽高
|
|
|
- title: (data ? '修改' : '添加') + '技能服务',
|
|
|
+ title: (data ? '修改' : '添加') + '摊点',
|
|
|
content: $('#modelStore').html(),
|
|
|
success: function (layero, dIndex) {
|
|
|
$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
|
|
@@ -281,7 +281,9 @@
|
|
|
form.val('modelStoreForm', data);
|
|
|
// 表单提交事件
|
|
|
form.on('submit(modelSubmitSkill)', function (form) {
|
|
|
- console.log(form.field)
|
|
|
+ var coordinate = data && typeof(data.latitude) !='undefined' && data.latitude? data.latitude+','+data.longitude : '';
|
|
|
+ form.field.coordinate = form.field.coordinate? form.field.coordinate : coordinate
|
|
|
+ form.field.location = form.field.location? form.field.location : data.location
|
|
|
if (form.field.coordinate == "" || form.field.location == '') {
|
|
|
notice.msg("位置信息不能为空", {icon: 2});
|
|
|
return false;
|