|
|
@@ -17,13 +17,21 @@
|
|
|
</div>
|
|
|
<div class="product-store" v-if="activeType == 'product'">
|
|
|
<table v-if="commodities.content&&commodities.content.length > 0">
|
|
|
- <thead id="product-head" :class="{'active': isScrollOverTab}">
|
|
|
- <tr>
|
|
|
- <th style="width: 1.77rem;">型号/品牌</th>
|
|
|
- <th style="width: 1.75rem;">包装</th>
|
|
|
- <th style="width: 2.2rem;">价格梯度</th>
|
|
|
- <th style="width: 1.77rem;">交期(天)</th>
|
|
|
- </tr>
|
|
|
+ <thead id="product-head" >
|
|
|
+ <tr>
|
|
|
+ <th style="width: 1.77rem;">型号/品牌</th>
|
|
|
+ <th style="width: 1.75rem;">包装</th>
|
|
|
+ <th style="width: 2.2rem;">价格梯度</th>
|
|
|
+ <th style="width: 1.77rem;">交期(天)</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <thead class="active" v-show="isScrollOverTab">
|
|
|
+ <tr>
|
|
|
+ <th style="width: 1.77rem;">型号/品牌</th>
|
|
|
+ <th style="width: 1.75rem;">包装</th>
|
|
|
+ <th style="width: 2.2rem;">价格梯度</th>
|
|
|
+ <th style="width: 1.77rem;">交期(天)</th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<tbody id="product-body">
|
|
|
<tr v-for="commodity in searchLists" @click="goProductDetail(commodity.uuid)">
|
|
|
@@ -156,7 +164,7 @@
|
|
|
}
|
|
|
let tbodyObj = document.getElementById('product-body')
|
|
|
let theadObj = document.getElementById('product-head')
|
|
|
- this.isScrollOverTab = tbodyObj.getBoundingClientRect().top <= theadObj.getBoundingClientRect().height
|
|
|
+ this.isScrollOverTab = tbodyObj.getBoundingClientRect().top - theadObj.getBoundingClientRect().height - 5 <= theadObj.getBoundingClientRect().height
|
|
|
},
|
|
|
getMoreCom: function () {
|
|
|
if (!this.isSearchingMore) {
|