|
|
@ -45,13 +45,13 @@ |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="firstCate" class="shop-goods"> |
|
|
|
<view v-if="firstCate" class="shop-goods"> |
|
|
|
<view v-if="goodsCate.filter(v => v.category_id === firstCate)[0].children.length > 0" class="second-cate"> |
|
|
|
<!-- <view v-if="goodsCate.filter(v => v.category_id === firstCate)[0].children.length > 0" class="second-cate"> |
|
|
|
<scroll-view class="second-cate-tabs" scroll-x> |
|
|
|
<scroll-view class="second-cate-tabs" scroll-x> |
|
|
|
<view v-for="(item, index) in goodsCate.filter(v => v.category_id === firstCate)[0].children" :key="index" class="cate-item" :class="{active: secondCate === item.category_id}" @click="secondCate = item.category_id"> |
|
|
|
<view v-for="(item, index) in goodsCate.filter(v => v.category_id === firstCate)[0].children" :key="index" class="cate-item" :class="{active: secondCate === item.category_id}" @click="secondCate = item.category_id"> |
|
|
|
{{ item.name }} |
|
|
|
{{ item.name }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="goods-content"> |
|
|
|
<view class="goods-content"> |
|
|
|
<view class="first-cate"> |
|
|
|
<view class="first-cate"> |
|
|
|
<scroll-view class="first-cate-tabs" scroll-y> |
|
|
|
<scroll-view class="first-cate-tabs" scroll-y> |
|
|
@ -238,7 +238,7 @@ |
|
|
|
getGoodsTypeList() { |
|
|
|
getGoodsTypeList() { |
|
|
|
const that = this; |
|
|
|
const that = this; |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
cstegory.listmerchant({ |
|
|
|
cstegory.getShopCategory({ |
|
|
|
merchantId: this.id |
|
|
|
merchantId: this.id |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
.then(res => { |
|
|
@ -460,7 +460,7 @@ |
|
|
|
margin-top: 30rpx; |
|
|
|
margin-top: 30rpx; |
|
|
|
background: #F0F4F3; |
|
|
|
background: #F0F4F3; |
|
|
|
border-radius: 20rpx 20rpx 0 0; |
|
|
|
border-radius: 20rpx 20rpx 0 0; |
|
|
|
padding-top: 24rpx; |
|
|
|
// padding-top: 24rpx; |
|
|
|
.second-cate { |
|
|
|
.second-cate { |
|
|
|
padding: 0 24rpx; |
|
|
|
padding: 0 24rpx; |
|
|
|
margin-bottom: 24rpx; |
|
|
|
margin-bottom: 24rpx; |
|
|
|