搜索列表及商品列表筛选条件优化,及商品详情页处理服务报错原因和顶部颜色;
This commit is contained in:
@@ -13,17 +13,14 @@
|
||||
<view class="tabs-item" @click="onTabs">
|
||||
<span :class="marketType === ''?'':'activess'">{{searchType == 0 ? '价格' : '信用值'}}</span>
|
||||
<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" @click="onPv">
|
||||
<span :class="pvType === ''?'':'activess'">贡献值</span>
|
||||
<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 class="tabs-item" v-if="searchType == 0" @click="pageUrl">全部分类
|
||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
||||
</view>
|
||||
<view class="tabs-item" v-if="searchType == 1" @click="companyOpne">{{companyName}}
|
||||
<view class="tabs-item" @click="pageUrl">全部分类
|
||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -49,8 +46,8 @@
|
||||
return {
|
||||
nameVal: '',
|
||||
searchArr: [],
|
||||
marketType: 'asc', // 排序
|
||||
pvType:'asc',
|
||||
marketType: '', // 排序
|
||||
pvType:'',
|
||||
categoryArr: [], // 分类数组--企业
|
||||
companyId: '', // 分类数组--企业id
|
||||
companyName: '选择行业',
|
||||
@@ -114,12 +111,12 @@
|
||||
// 列表数据
|
||||
getList() {
|
||||
searchUrl('mall/goods', {
|
||||
page: this.goodsPage,
|
||||
order_by: this.marketType,
|
||||
pv:this.pvType,
|
||||
page: this.goodsPage,
|
||||
industry_id: this.companyId,
|
||||
name: this.nameVal,
|
||||
is_self:this.goodsType[this.goodsTypeIndex].id,
|
||||
pv:this.pvType
|
||||
}).then(res => {
|
||||
if (this.goodsPage === 1) {
|
||||
this.searchArr = []
|
||||
|
||||
Reference in New Issue
Block a user