初始上传
This commit is contained in:
63
app/shop/view/config/pay.html
Executable file
63
app/shop/view/config/pay.html
Executable file
@@ -0,0 +1,63 @@
|
||||
<!-- 列表 -->
|
||||
<table id="pay_list" lay-filter="pay_list"></table>
|
||||
|
||||
<!-- 支付方式 -->
|
||||
<script type="text/html" id="payment">
|
||||
<div class="table-title">
|
||||
<div class="title-pic">
|
||||
<img layer-src src="{{ns.img(d.logo.split(',')[0])}}"/>
|
||||
</div>
|
||||
<div class="title-content">
|
||||
{{d.pay_type_name}}
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<!-- 操作 -->
|
||||
<script type="text/html" id="operation">
|
||||
<div class="table-btn">
|
||||
<a class="layui-btn" lay-event="edit" href="{{ns.href(d.shop_url)}}">配置</a>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var table = new Table({
|
||||
elem: '#pay_list',
|
||||
url: ns.url("shop/config/pay"),
|
||||
page: false,
|
||||
parseData: function(data) { //res 即为原始返回的数据
|
||||
return {
|
||||
"code": data.code,
|
||||
"msg": data.message,
|
||||
"data": data.data,
|
||||
};
|
||||
},
|
||||
cols: [
|
||||
[{
|
||||
field: 'pay_type_name',
|
||||
title: '支付方式名称',
|
||||
width: '30%',
|
||||
unresize: 'false',
|
||||
templet: '#payment'
|
||||
}, {
|
||||
field: 'desc',
|
||||
title: '支付方式描述',
|
||||
width: '45%',
|
||||
unresize: 'false'
|
||||
},{
|
||||
field: 'status',
|
||||
title: '支付状态',
|
||||
width: '15%',
|
||||
unresize: 'false',
|
||||
templet: function (data){
|
||||
return data.pay_status == 1 ? '开启' : '关闭';
|
||||
}
|
||||
}, {
|
||||
title: '操作',
|
||||
toolbar: '#operation',
|
||||
unresize: 'false',
|
||||
align:'right'
|
||||
}]
|
||||
],
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user