添加商家图标

This commit is contained in:
wangxiaowei 2024-08-06 18:18:52 +08:00
parent ffd2916411
commit 1a8b8a4fbd

@ -37,6 +37,13 @@
</button> </button>
<table id="like-table-lists" lay-filter="like-table-lists"></table> <table id="like-table-lists" lay-filter="like-table-lists"></table>
<script type="text/html" id="shop-logo">
{{# if(d.shopLogo){ }}
<img src="{{d.shopLogo}}" alt="商家图标" style="width: 200px;height: 200px;object-fit: contain;"
class="image-show">
{{# } }}
</script>
<script type="text/html" id="businesslicense-operation"> <script type="text/html" id="businesslicense-operation">
{{# if(d.businessLicense){ }} {{# if(d.businessLicense){ }}
<img src="{{d.businessLicense}}" alt="营业执照" style="width: 200px;height: 200px;object-fit: contain;" <img src="{{d.businessLicense}}" alt="营业执照" style="width: 200px;height: 200px;object-fit: contain;"
@ -53,11 +60,11 @@
<script type="text/html" id="storeState-operation"> <script type="text/html" id="storeState-operation">
{{# if(d.store_state == 0){ }} {{# if(d.store_state == 0){ }}
待审核 待审核
{{# } else if(d.store_state == 1) { }} {{# } else if(d.store_state == 1) { }}
审核通过 审核通过
{{# } else if(d.store_state == 2) { }} {{# } else if(d.store_state == 2) { }}
审核失败 审核失败
{{# } }} {{# } }}
</script> </script>
@ -76,19 +83,15 @@
var form = layui.form; var form = layui.form;
like.tableLists("#like-table-lists", "{:url()}", [ like.tableLists("#like-table-lists", "{:url()}", [
{field: "lstore_id", width: 60, title: "ID"} {field: "lstore_id", width: 60, title: "ID"}
, { , {field: "shopName", width: 120, align: "center", title: "商家名称"}
field: "businessLicense", , {field: "shopLogo", width: 120, align: "center", title: "商家图标", templet: '#shop-logo'}
width: 120, , {field: "businessLicense", width: 120, align: "center", title: "营业执照", templet: '#businesslicense-operation'}
align: "center",
title: "营业执照",
toolbar: '#businesslicense-operation'
}
, {field: "crftNo1", width: 120, align: "center", title: "社会信用代码"} , {field: "crftNo1", width: 120, align: "center", title: "社会信用代码"}
, {field: "idCard", width: 120, align: "center", title: "手持身份证", toolbar: '#idcard-operation'} , {field: "idCard", width: 120, align: "center", title: "手持身份证", templet: '#idcard-operation'}
, {field: "name", width: 120, align: "center", title: "商户联系人"} , {field: "name", width: 120, align: "center", title: "商户联系人"}
, {field: "empowerPhone", width: 120, align: "center", title: "联系电话"} , {field: "empowerPhone", width: 120, align: "center", title: "联系电话"}
, {field: "address", width: 300, align: "center", title: "地理位置"} , {field: "address", width: 300, align: "center", title: "地理位置"}
, {field: "store_state", width: 150, align: "center", title: "审核状态", toolbar: '#storeState-operation'} , {field: "store_state", width: 150, align: "center", title: "审核状态", templet: '#storeState-operation'}
, {fixed: 'right', title: '操作', width: 280, align: 'center', toolbar: '#localstore-operation'} , {fixed: 'right', title: '操作', width: 280, align: 'center', toolbar: '#localstore-operation'}
]); ]);