|
@ -33,7 +33,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="goods-container"> |
|
|
<view class="goods-container"> |
|
|
<view class="left-box no-scrollbar"> |
|
|
<view class="left-box no-scrollbar" v-if="typeChild.length>0"> |
|
|
<view :class="['left-type-item',i==typeChildIndex?'active':'']" |
|
|
<view :class="['left-type-item',i==typeChildIndex?'active':'']" |
|
|
v-for="(item,i) in typeChild" :key="i" @click="changeChildType(item,i)"> |
|
|
v-for="(item,i) in typeChild" :key="i" @click="changeChildType(item,i)"> |
|
|
<view class="name-item">{{item.name}}</view> |
|
|
<view class="name-item">{{item.name}}</view> |
|
@ -370,8 +370,9 @@ |
|
|
|
|
|
|
|
|
// 根据产品分类获取产品列表 |
|
|
// 根据产品分类获取产品列表 |
|
|
getList(){ |
|
|
getList(){ |
|
|
if (!this.typeChild[this.typeChildIndex] || !this.typeChild[this.typeChildIndex].id) { |
|
|
let tag_id = this.typeParam[this.typeIndex].id; |
|
|
return |
|
|
if (this.typeChild[this.typeChildIndex]&&this.typeChild[this.typeChildIndex].id) { |
|
|
|
|
|
tag_id = this.typeChild[this.typeChildIndex].id |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let param = {} |
|
|
let param = {} |
|
@ -380,7 +381,7 @@ |
|
|
if (this.search_type == 3) { param = {order: 'asc',sort:'price'} } |
|
|
if (this.search_type == 3) { param = {order: 'asc',sort:'price'} } |
|
|
if (this.search_type == 4) { param = {order: 'desc',sort:'price'} } |
|
|
if (this.search_type == 4) { param = {order: 'desc',sort:'price'} } |
|
|
this.Post({ |
|
|
this.Post({ |
|
|
tag_id: this.typeChild[this.typeChildIndex].id, |
|
|
tag_id: tag_id, |
|
|
offset: this.list.length, |
|
|
offset: this.list.length, |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
...param |
|
|
...param |
|
|