初始上传
This commit is contained in:
49
app/shop/view/upload/oss.html
Executable file
49
app/shop/view/upload/oss.html
Executable file
@@ -0,0 +1,49 @@
|
||||
<!-- 列表 -->
|
||||
<table id="oss_list" lay-filter="oss_list"></table>
|
||||
|
||||
<!-- 操作 -->
|
||||
<script type="text/html" id="operation">
|
||||
<div class="table-btn">
|
||||
<a class="layui-btn" href="{{ns.href(d.edit_url)}}">配置</a>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="desc">
|
||||
<div class="over-hide-second">{{d.desc}}</div>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var table = new Table({
|
||||
elem: '#oss_list',
|
||||
url: ns.url("shop/upload/oss"),
|
||||
page: false,
|
||||
parseData: function(data) {
|
||||
return {
|
||||
"code": data.code,
|
||||
"msg": data.message,
|
||||
"data": data.data
|
||||
};
|
||||
},
|
||||
cols: [
|
||||
[
|
||||
{
|
||||
field: 'sms_type_name',
|
||||
title: '云上传',
|
||||
width: '20%',
|
||||
unresize: 'false'
|
||||
}, {
|
||||
field: 'desc',
|
||||
title: '描述',
|
||||
width: '60%',
|
||||
templet: "#desc",
|
||||
unresize: 'false'
|
||||
}, {
|
||||
title: '操作',
|
||||
toolbar: '#operation',
|
||||
unresize: 'false',
|
||||
align:'right'
|
||||
}
|
||||
]
|
||||
],
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user