Files
shop-platform/src/app/shop/view/config/pay.html
2025-10-29 15:32:26 +08:00

62 lines
1.1 KiB
HTML

<!-- 列表 -->
<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: '60%',
unresize: 'false'
}, {
title: '操作',
toolbar: '#operation',
unresize: 'false',
align:'right'
}]
],
});
</script>