This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
{if condition="!empty($child.products)"}
|
{if condition="!empty($child.products)"}
|
||||||
<div class="scroll-box">
|
<div class="scroll-box">
|
||||||
{volist name="$child.products" id="pro"}
|
{volist name="$child.products" id="pro"}
|
||||||
<div class="card" href="{:url('product/detail', ['id' => $pro.id])}">
|
<a class="card" href="{:url('product/detail', ['id' => $pro.id])}">
|
||||||
<div class="card-img">
|
<div class="card-img">
|
||||||
<img src="{$pro.cover_image}" alt="">
|
<img src="{$pro.cover_image}" alt="">
|
||||||
</div>
|
</div>
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
<div class="card-name">{$pro.name}</div>
|
<div class="card-name">{$pro.name}</div>
|
||||||
<div class="card-model">{$pro.spu}</div>
|
<div class="card-model">{$pro.spu}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
{/volist}
|
{/volist}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
|| el.parentElement.nextElementSibling
|
|| el.parentElement.nextElementSibling
|
||||||
if (box) box.scrollBy({ left: 150, behavior: 'smooth' })
|
if (box) box.scrollBy({ left: 150, behavior: 'smooth' })
|
||||||
}
|
}
|
||||||
|
const back = document.querySelector('.back')
|
||||||
// 左侧Tab切换
|
// 左侧Tab切换
|
||||||
const navItems = document.querySelectorAll('.nav-item')
|
const navItems = document.querySelectorAll('.nav-item')
|
||||||
const tabPanes = document.querySelectorAll('.tab-pane')
|
const tabPanes = document.querySelectorAll('.tab-pane')
|
||||||
@@ -113,5 +113,9 @@
|
|||||||
document.getElementById(target)?.classList.add('active')
|
document.getElementById(target)?.classList.add('active')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
back.addEventListener('click',()=>{
|
||||||
|
window.location.href = document.referrer;
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: sans-serif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
/* 所有菜单项统一用 div */
|
/* 所有菜单项统一用 div */
|
||||||
.menu-item {
|
.menu-item {
|
||||||
margin: 0 22px;
|
margin: 0 22px;
|
||||||
font-size: 15px;
|
font-size: 15px !important;
|
||||||
color: #333;
|
color: #333;
|
||||||
border-bottom: 1px solid #f5f5f5;
|
border-bottom: 1px solid #f5f5f5;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
.sub-item {
|
.sub-item {
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
font-size: 14px;
|
font-size: 14px !important;
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,13 +146,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sub-item-card-title {
|
.sub-item-card-title {
|
||||||
font-size: 16px;
|
font-size: 16px !important;
|
||||||
color: #1D1D1F;
|
color: #1D1D1F;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-item-card-name {
|
.sub-item-card-name {
|
||||||
font-size: 14px;
|
font-size: 14px !important;
|
||||||
color: #686A70;
|
color: #686A70;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
@@ -212,7 +212,7 @@
|
|||||||
.modal-item {
|
.modal-item {
|
||||||
width: calc(50% - 16px);
|
width: calc(50% - 16px);
|
||||||
|
|
||||||
font-size: 16px;
|
font-size: 16px !important;
|
||||||
color: #1D1D1F;
|
color: #1D1D1F;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
|
|
||||||
.modal-item-title {
|
.modal-item-title {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
font-size: 16px;
|
font-size: 16px !important;
|
||||||
color: #1D1D1F;
|
color: #1D1D1F;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lang-item {
|
.lang-item {
|
||||||
font-size: 16px;
|
font-size: 16px !important;
|
||||||
color: #1D1D1F;
|
color: #1D1D1F;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -311,7 +311,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
font-size: 14px;
|
font-size: 14px !important;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,12 +359,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-history-title {
|
.search-history-title {
|
||||||
font-size: 14px;
|
font-size: 14px !important;
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-history-clear {
|
.search-history-clear {
|
||||||
font-size: 12px;
|
font-size: 12px !important;
|
||||||
color: #999;
|
color: #999;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -397,7 +397,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-history-item span {
|
.search-history-item span {
|
||||||
font-size: 14px;
|
font-size: 14px !important;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -415,7 +415,7 @@
|
|||||||
.empty-history {
|
.empty-history {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 40px 0;
|
padding: 40px 0;
|
||||||
font-size: 14px;
|
font-size: 14px !important;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
.mobile-header-right {
|
.mobile-header-right {
|
||||||
|
|||||||
Reference in New Issue
Block a user