This commit is contained in:
2024-05-07 11:33:48 +07:00
parent 615e36647a
commit 7b96c6d976
3 changed files with 67 additions and 32 deletions

16
assets/script/main.js Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
var AdminFunction = (function () {
function add_product_to_category(id) {
$('#status_' + id).html('<span class= "loading loading-bars loading-sm" ></span ><span class="ml-[3px]">Đang xử lý..</span>');
setTimeout(function () {
$('#status_' + id).html('');
}, 1000)
}
return {
add_product_to_category: add_product_to_category
}
})();

View File

@@ -1,16 +1,19 @@
<div class="bg-white m-[16px_0_16px_16px] p-[20px_16px] rounded-[15px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] leading-[20px]">
<div
class="bg-white m-[16px_0_16px_16px] p-[20px_16px] rounded-[15px] shadow-[0px_1px_1px_0px_rgba(0,0,0,0.10)] leading-[20px]">
<p class="leading-[30px] text-[24px] font-bold m-[0_0_12px]"> Danh sách mặc cả giá </p>
<div class="flex flex-wrap mb-[20px] leading-[36px]">
<a href="" style="background: #0041E8;color: #fff;" class="text-[#919699] font-[500] p-[0_20px] mr-[2px] bg-[#F6F6F6] rounded-[4px_4px_0_0] hover:bg-[#0041E8] hover:text-[#fff]">
<a href="" style="background: #0041E8;color: #fff;"
class="text-[#919699] font-[500] p-[0_20px] mr-[2px] bg-[#F6F6F6] rounded-[4px_4px_0_0] hover:bg-[#0041E8] hover:text-[#fff]">
Chưa xử lý
</a>
<a href="" class="text-[#919699] font-[500] p-[0_20px] mr-[2px] bg-[#F6F6F6] rounded-[4px_4px_0_0] hover:bg-[#0041E8] hover:text-[#fff]">
<a href=""
class="text-[#919699] font-[500] p-[0_20px] mr-[2px] bg-[#F6F6F6] rounded-[4px_4px_0_0] hover:bg-[#0041E8] hover:text-[#fff]">
Thành công
</a>
<a href="" class="text-[#919699] font-[500] p-[0_20px] mr-[2px] bg-[#F6F6F6] rounded-[4px_4px_0_0] hover:bg-[#0041E8] hover:text-[#fff]">
<a href=""
class="text-[#919699] font-[500] p-[0_20px] mr-[2px] bg-[#F6F6F6] rounded-[4px_4px_0_0] hover:bg-[#0041E8] hover:text-[#fff]">
Hủy bỏ
</a>
</div>
@@ -51,11 +54,19 @@
<td>
<div id="status_1">
<span class="text-[#6DC580] border-[#6DC580] bg-[#F0F9F2] rounded-[50px] border inline-block leading-[20px] text-[12px] font-[500] p-[0_8px] m-[0_7px_0px_0]"> Thành công </span>
<span class="text-[#0041E8] border-[#0041E8] bg-[#F7F5FF] rounded-[50px] border inline-block leading-[20px] text-[12px] font-[500] p-[0_8px] m-[0_7px_0px_0]"> Chưa xử lý </span>
<span class="text-[#E00000] border-[#E00000] bg-[#F9F2F2] rounded-[50px] border inline-block leading-[20px] text-[12px] font-[500] p-[0_8px] m-[0_7px_0px_0]"> Hủy bỏ </span>
<span
class="text-[#6DC580] border-[#6DC580] bg-[#F0F9F2] rounded-[50px] border inline-block leading-[20px] text-[12px] font-[500] p-[0_8px] m-[0_7px_0px_0]">
Thành công </span>
<span
class="text-[#0041E8] border-[#0041E8] bg-[#F7F5FF] rounded-[50px] border inline-block leading-[20px] text-[12px] font-[500] p-[0_8px] m-[0_7px_0px_0]">
Chưa xử lý </span>
<span
class="text-[#E00000] border-[#E00000] bg-[#F9F2F2] rounded-[50px] border inline-block leading-[20px] text-[12px] font-[500] p-[0_8px] m-[0_7px_0px_0]">
Hủy bỏ </span>
<a href="javascript:edit_order_status(1)" title="Chỉnh sửa" class="icons inline-block w-[18px_!important] h-[18px_!important] bg-[transparent_!important] border-[transparent_!important] rounded-[0_!important]" style="background-position: -113px -88px;vertical-align: sub;"></a>
<a href="javascript:edit_order_status(1)" title="Chỉnh sửa"
class="icons inline-block w-[18px_!important] h-[18px_!important] bg-[transparent_!important] border-[transparent_!important] rounded-[0_!important]"
style="background-position: -113px -88px;vertical-align: sub;"></a>
</div>
<p class="mt-[7px]"> Lúc 28-02-2015, 12:40 pm </p>

View File

@@ -12,25 +12,33 @@
</p>
<div class="list-category">
<label class="style-checkbox mb-[10px]">
<div class="mb-[10px] flex items-center">
<label class="style-checkbox">
Màn hình máy tính
<input type="checkbox" name="new" checked>
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[10px]">
Màn hình máy tính
<input type="checkbox" name="new">
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[10px]">
Màn hình máy tính
<input type="checkbox" name="new">
<span class="checkmark"></span>
</label>
<label class="style-checkbox mb-[10px]">
Màn hình máy tính
<input type="checkbox" name="new">
<input type="checkbox" id="cate_1" onclick="AdminFunction.add_product_to_category(1)">
<span class="checkmark"></span>
</label>
<div id="status_1" class="text-[13px] ml-[5px] flex items-center">
</div>
</div>
<div class="mb-[10px] flex items-center">
<label class="style-checkbox">
Màn hình máy tính
<input type="checkbox" id="cate_1" onclick="AdminFunction.add_product_to_category(2)">
<span class="checkmark"></span>
</label>
<div id="status_2" class="text-[13px] ml-[5px] flex items-center">
</div>
</div>
<div class="mb-[10px] flex items-center">
<label class="style-checkbox">
Màn hình máy tính
<input type="checkbox" id="cate_1" onclick="AdminFunction.add_product_to_category(3)">
<span class="checkmark"></span>
</label>
<div id="status_3" class="text-[13px] ml-[5px] flex items-center">
</div>
</div>
</div>
</div>