marketting

This commit is contained in:
2024-03-09 11:54:26 +07:00
parent 8679b320e1
commit 10b1b7da6e
40 changed files with 3595 additions and 514 deletions

View File

@@ -21,12 +21,12 @@
<span>Thêm deal mới</span>
</a>
<a href="" class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] m-[0_16px_0_0] group hover:bg-[#0041E8] hover:text-[#fff]">
<a href="/admin/deal/upload-deal-excel" class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] m-[0_16px_0_0] group hover:bg-[#0041E8] hover:text-[#fff]">
<span class="border-[1px] border-[#0041E8] h-[13px] w-[13px] leading-[10.2px] text-center rounded-[50%] mr-1 group-hover:border-[#fff]">+</span>
<span>Thêm deal excel</span>
</a>
<a href="" class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] group hover:bg-[#0041E8] hover:text-[#fff]">
<a href="javascript:void(0)" class="inline-flex items-center whitespace-nowrap border border-[#0041E8] rounded-[4px] bg-[#F5F7FF] text-[#0041E8] p-[0_12px] group hover:bg-[#0041E8] hover:text-[#fff]">
<i class="fas fa-file-download m-[0_4px_0_0]"></i>
<span>Tải file excel</span>
</a>
@@ -37,7 +37,9 @@
<table>
<thead>
<tr>
<td width="40"> <input type="checkbox" class="scale-[1.5]"/> </td>
<td width="40">
<input type="checkbox" class="scale-[1.5] js-checkbox-all" onclick="CheckList.setAllChecked.call(this)"/>
</td>
<td width="40"> STT </td>
<td width="80"> Ảnh </td>
<td> Sản phẩm (Tổng số: 1.742) </td>
@@ -132,4 +134,21 @@
<a href="">4</a>
<a href="" class="paging-next"><i class="fas fa-chevron-right"></i></a>
</div>
</div>
</div>
<script src="{{ 'checkbox.js' | asset_url }}"></script>
<script>
const CheckList = Checkbox(delete_deal);
function delete_deal(id, must_confirm){
if(must_confirm && !confirm("Bạn chắc chắn muốn xóa ?")) {
return ;
}
$.post(ACTION_URL, { action : "delete-deal", id : id }, function(data) {
$("#row_"+id).fadeOut();
});
}
</script>