Current Path : /www/wwwroot/jsnz.xshop.geekdanceshop.com/app/shop/view/config/
Upload File :
Current File : /www/wwwroot/jsnz.xshop.geekdanceshop.com/app/shop/view/config/pay.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>
金穗农资
captcha