|
...
|
...
|
@@ -4,13 +4,14 @@ |
|
|
|
<legend>{$title}</legend>
|
|
|
|
</fieldset>
|
|
|
|
<form class="layui-form layui-form-pane">
|
|
|
|
<table class="layui-table">
|
|
|
|
<table class="layui-table" id="list" lay-filter="list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th lay-data="{field:'id', width:80, sort: true}">ID</th>
|
|
|
|
<th lay-data="{field:'username', width:80, templet: '#usernameTpl'}">商家ID</th>
|
|
|
|
<th lay-data="{field:'sex', width:80, sort: true, templet: '#sexTpl'}">标题</th>
|
|
|
|
<th lay-data="{field:'city', width:80}">描述</th>
|
|
|
|
<th lay-data="">操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{if $seller_activity}
|
|
...
|
...
|
@@ -20,11 +21,12 @@ |
|
|
|
<th>{$vo.sid}</th>
|
|
|
|
<th>{$vo.title}</th>
|
|
|
|
<th>{$vo.desc}</th>
|
|
|
|
<th><a href="{:url('del_activity')}?aid={$vo.id}&sid={$vo.sid}" class="layui-btn layui-btn-xs">删除</a></th>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
{else}
|
|
|
|
<tr>
|
|
|
|
<th colspan="4" style="text-align:center">商家暂无活动</th>
|
|
|
|
<th colspan="5" style="text-align:center">商家暂无活动</th>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
</table>
|
|
...
|
...
|
@@ -55,8 +57,8 @@ |
|
|
|
</div>
|
|
|
|
{include file="common/foot"/}
|
|
|
|
<script>
|
|
|
|
layui.use('form', function () {
|
|
|
|
var form = layui.form, $ = layui.jquery;
|
|
|
|
layui.use(['form','table'], function () {
|
|
|
|
var form = layui.form, $ = layui.jquery,table = layui.table;
|
|
|
|
//根据菜品ID 修改对应菜品的GIF、视频url
|
|
|
|
form.on('submit(submit)', function (data) {
|
|
|
|
if(data.field.aid==0){
|
|
...
|
...
|
@@ -74,12 +76,5 @@ |
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
//单选按钮显示隐藏
|
|
|
|
form.on('select(aid)', function(data){
|
|
|
|
var dataval=$(data.elem).find("option:selected").attr("data-val");
|
|
|
|
$("#txt").show();
|
|
|
|
$("#txt").html(dataval);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|