|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="content_box"> |
|
|
|
|
<view class="content_box" :style="{'height':`calc(100% - ${statusBarHeight*2}rpx - 20rpx - 64rpx)`}"> |
|
|
|
|
<view style="display: flex;align-items: center;"> |
|
|
|
|
<view style="flex: 1;"> |
|
|
|
|
|
|
|
|
@ -26,10 +26,6 @@ |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</wyb-drop-down> |
|
|
|
|
<!-- <view @click="zhankai" class="zhankai"> |
|
|
|
|
<text>{{scroll?'展':"收"}}</text> |
|
|
|
|
<text>{{scroll?'开':"起"}}</text> |
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
<view class="u-flex u-col-center wrapper-box"> |
|
|
|
|
<view class="scroll-box" style="background-color: #F6F6F6;"> |
|
|
|
@ -47,7 +43,7 @@ |
|
|
|
|
</scroll-view> |
|
|
|
|
</view> |
|
|
|
|
<view style="height: 100%;width: 100%;"> |
|
|
|
|
<scroll-view scroll-y class="scroll-box" enable-back-to-top scroll-with-animation> |
|
|
|
|
<scroll-view scroll-y class="scroll-box" enable-back-to-top scroll-with-animation :lower-threshold="10" @scrolltolower="scrolltolowerHandle"> |
|
|
|
|
<view class="right" style="width: calc(100vw - 200rpx);" v-if="categoryData.length"> |
|
|
|
|
<!-- <image class="type-img" v-if="categoryData[listId].image" :src="categoryData[listId].image" lazy-load mode="aspectFill"></image> --> |
|
|
|
|
<!-- <view class="type-box u-flex u-col-center u-row-center"> |
|
|
|
@ -77,7 +73,7 @@ |
|
|
|
|
></shopro-empty> |
|
|
|
|
<view class="hack-tabbar"></view> |
|
|
|
|
</view> --> |
|
|
|
|
<goodsList :typeId="listId"></goodsList> |
|
|
|
|
<goodsList :typeId="listId" ref="goodList" :isBottom="isBottom" @isBottomHandle="isBottomHandle"></goodsList> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</scroll-view> |
|
|
|
@ -107,6 +103,7 @@ export default { |
|
|
|
|
statusBarHeight: 20,/* 状态栏高度 */ |
|
|
|
|
navBarHeight: 45,/* 导航栏高度 */ |
|
|
|
|
windowWidth: 375,/* 窗口宽度 */ |
|
|
|
|
isBottom:false |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: {}, |
|
|
|
@ -135,6 +132,13 @@ export default { |
|
|
|
|
// #endif |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
scrolltolowerHandle(){ |
|
|
|
|
console.log("tytyty") |
|
|
|
|
this.isBottom = true |
|
|
|
|
}, |
|
|
|
|
isBottomHandle(val){ |
|
|
|
|
this.isBottom = val |
|
|
|
|
}, |
|
|
|
|
showHandle(val){ |
|
|
|
|
console.log("yuyu",val) |
|
|
|
|
this.$emit('isDrop',val) |
|
|
|
@ -154,6 +158,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.$refs.goodList.listParams.page = 1 |
|
|
|
|
this.$refs.goodList.tempList = [] |
|
|
|
|
this.$refs.swiper.getjump(i,firstIndex,secondIndex) |
|
|
|
|
}, |
|
|
|
|
catagoryClick(i){ |
|
|
|
@ -162,6 +168,8 @@ export default { |
|
|
|
|
// }) |
|
|
|
|
// this.onType(index) |
|
|
|
|
console.log(i,"gygy") |
|
|
|
|
this.$refs.goodList.listParams.page = 1 |
|
|
|
|
this.$refs.goodList.tempList = [] |
|
|
|
|
this.selectedItem = i |
|
|
|
|
this.twoData = i.children |
|
|
|
|
if(this.twoData.length>0){ |
|
|
|
@ -189,6 +197,8 @@ export default { |
|
|
|
|
onType(item) { |
|
|
|
|
console.log(item) |
|
|
|
|
this.listId = item.id; |
|
|
|
|
this.$refs.goodList.listParams.page = 1; |
|
|
|
|
this.$refs.goodList.tempList = [] |
|
|
|
|
}, |
|
|
|
|
// 路由跳转 |
|
|
|
|
jump(path, parmas) { |
|
|
|
|