fix:修复【C端】商品列表,搜索框没有展示返回按钮且没有居中。

This commit is contained in:
wangsongsole 2022-11-04 09:50:15 +08:00
parent e81070ae13
commit b6eadf67ba
1 changed files with 3 additions and 6 deletions

View File

@ -43,7 +43,7 @@
background:(viewConfig.search.iswitch==='1'?(viewConfig.search.bgColor):'none'), background:(viewConfig.search.iswitch==='1'?(viewConfig.search.bgColor):'none'),
position:'fixed' position:'fixed'
}"> }">
<img class="backpresty" @click="backHandler" v-if="goodsShow&&!isKey" <img class="backpresty" @click="backHandler"
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png"
alt=""> alt="">
<div class="search-box" v-if="viewConfig.search.iswitch==='1'" @click="searchFn"> <div class="search-box" v-if="viewConfig.search.iswitch==='1'" @click="searchFn">
@ -332,10 +332,7 @@
}, },
backHandler () { backHandler () {
let backUrl = window.history.length; window.location.replace(localStorage.getItem('entryLink'))
if (window.history.length) {
history.go(-backUrl + 1);
}
}, },
// 单条弹框 // 单条弹框
@ -393,7 +390,7 @@
similar = goodsList.filter(iten => { //goodshow为去重后的数据 similar = goodsList.filter(iten => { //goodshow为去重后的数据
return iten.product_id == it; return iten.product_id == it;
}); });
let flag = [1, 2, 6, 8, 7, 5, 4,22, 11, 3, 10, 20, 21]; //显示的avarivble规则 let flag = [1, 2, 6, 8, 7, 5, 4, 22, 11, 3, 10, 20, 21]; //显示的avarivble规则
let minIndex = 7; let minIndex = 7;
similar.forEach(item => { similar.forEach(item => {
let flagIndex = flag.indexOf(item.available); let flagIndex = flag.indexOf(item.available);