搜索列表及商品列表筛选条件优化,及商品详情页处理服务报错原因和顶部颜色;

This commit is contained in:
2021-11-04 10:53:34 +08:00
parent f8aa690216
commit 9ee77c73fc
7 changed files with 4389 additions and 4364 deletions

View File

@@ -6,16 +6,16 @@
{{goodsType[goodsTypeIndex].name}}
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
</view>
<view class="tabs-item" :class="{'show': tabIndex == 0}" @click="onTabs" data-index="0">最新</view>
<view class="tabs-item" :class="{'show': tabIndex == 1}" @click="onTabs" data-index="1">
<!-- <view class="tabs-item" :class="{'show': tabIndex == 0}" @click="onTabs" data-index="0">最新</view> -->
<view class="tabs-item" :class="{'show': tabIndex == 1 && marketType !== ''}" @click="onTabs" data-index="1">
价格
<image class="icon" mode="widthFix"
:src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')" />
:src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png': marketType === ''? '@/static/icons/market_icon_null.png':'@/static/icons/market_icon_high.png')" />
</view>
<view class="tabs-item" :class="{'show': tabIndex == 2}" @click="onTabs" data-index="2">
<view class="tabs-item" :class="{'show': tabIndex == 2 && pvType !== ''}" @click="onTabs" data-index="2">
贡献值
<image class="icon" mode="widthFix"
:src="require(pvType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')" />
:src="require(pvType == 'asc' ? '@/static/icons/market_icon_low.png': pvType === ''? '@/static/icons/market_icon_null.png':'@/static/icons/market_icon_high.png')" />
</view>
</view>
<view class="lists">
@@ -37,14 +37,14 @@
data() {
return {
tabIndex: 0,
marketType: 'asc',
marketType: '',
goods: [],
page: 1,
has_more: true,
isBaoDan: false, // 是否是报单默认有id不是报单无id是报单
goodsType: [],
goodsTypeIndex: 0,
pvType:'asc'
pvType:''
};
},
onReachBottom() {
@@ -94,9 +94,19 @@
},
onTabs(e) {
let index = e.target.dataset.index
if (index == 0 && index == this.tabIndex) return
if (index == 1 && index == this.tabIndex) this.marketType = this.marketType == 'asc' ? 'desc' : 'asc'
if (index == 2 && index == this.tabIndex) this.pvType = this.pvType == 'asc' ? 'desc' : 'asc'
if (index == 0 ) {
this.marketType = ''
this.pvType = ''
return
}
if (index == 1 ) {
this.marketType = this.marketType == 'asc' ? 'desc' : 'asc'
this.pvType = ''
}
if (index == 2 ) {
this.pvType = this.pvType === 'asc'? 'desc' : 'asc'
this.marketType = ''
}
this.tabIndex = index
this.has_more = true