update icon,fixed menu, modal category, modal brand
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
|
||||
// Hàm để cập nhật trạng thái hiển thị menu và localStorage
|
||||
function capNhatTrangThaiMenu(hideMenuBig) {
|
||||
|
||||
if(hideMenuBig === false){
|
||||
|
||||
if (hideMenuBig === false) {
|
||||
$('#js-admin-content-container').addClass('show-large-menu')
|
||||
} else {
|
||||
$('#js-admin-content-container').removeClass('show-large-menu')
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
{% include javascript/global %}
|
||||
|
||||
{% if global.module == 'home' %}
|
||||
{% include javascript/homepage %}
|
||||
{% include javascript/homepage %}
|
||||
|
||||
{% elsif global.module == 'product' %}
|
||||
{% include javascript/product_form %}
|
||||
|
||||
{% if global.view == 'home' %}
|
||||
{% include javascript/product_list %}
|
||||
{% endif %}
|
||||
|
||||
{% include javascript/product_form %}
|
||||
|
||||
{% endif %}
|
||||
69
template/javascript/product_list.html
Normal file
69
template/javascript/product_list.html
Normal file
@@ -0,0 +1,69 @@
|
||||
<script>
|
||||
function _get_list_category() {
|
||||
return {
|
||||
"list_category": [
|
||||
{
|
||||
'id': 1,
|
||||
'title': 'Màn hình máy tính',
|
||||
'url': '/?category=9&opt=product&parent=1',
|
||||
'parentId': 0,
|
||||
'isParent': 1,
|
||||
'children': [
|
||||
{
|
||||
'id': 10,
|
||||
'title': 'Màn hình theo khoảng giá',
|
||||
'url': '/?category=148&opt=product',
|
||||
'parentId': 1,
|
||||
'isParent': 0,
|
||||
'totalProduct': 0,
|
||||
'children': []
|
||||
},
|
||||
{
|
||||
'id': 11,
|
||||
'title': 'Màn Hình Theo Kích Thước',
|
||||
'url': '/?category=54&opt=product&parent=1',
|
||||
'parentId': 1,
|
||||
'isParent': 0,
|
||||
'totalProduct': 0,
|
||||
'children': [
|
||||
{
|
||||
'id': 148,
|
||||
'title': '17 inch - 21.5 inch',
|
||||
'url': '/?category=148&opt=product',
|
||||
'parentId': 11,
|
||||
'isParent': 0,
|
||||
'totalProduct': 5,
|
||||
},
|
||||
{
|
||||
'id': 66,
|
||||
'title': '22 inch - 24 inch',
|
||||
'url': '?category=66&opt=product',
|
||||
'parentId': 11,
|
||||
'isParent': 0,
|
||||
'totalProduct': 41,
|
||||
},
|
||||
{
|
||||
'id': 67,
|
||||
'title': '25 inch - 27 inch',
|
||||
'url': '/?category=67&opt=product',
|
||||
'parentId': 11,
|
||||
'isParent': 0,
|
||||
'totalProduct': 42,
|
||||
},
|
||||
{
|
||||
'id': 68,
|
||||
'title': '28 inch - 32 inch',
|
||||
'url': '/?category=68&opt=product',
|
||||
'parentId': 11,
|
||||
'isParent': 0,
|
||||
'totalProduct': 11,
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user