|
|
|
@ -56,16 +56,17 @@ |
|
|
|
}>() |
|
|
|
const instance = getCurrentInstance(); |
|
|
|
const menuScrollIntoView = ref(""); |
|
|
|
const curCateId = ref(6905); |
|
|
|
const cateScrollTop = ref(0); |
|
|
|
// 计算高度状态 |
|
|
|
const sizeCalcState = ref(false); |
|
|
|
const goods = ref<ICateItem[]>([]); |
|
|
|
const curCateId = ref(0); |
|
|
|
|
|
|
|
watch( |
|
|
|
() => props.scrollList, |
|
|
|
newVal => { |
|
|
|
goods.value = newVal; |
|
|
|
curCateId.value = goods.value[0]?.id |
|
|
|
nextTick(() => { |
|
|
|
if (newVal && newVal.length > 0) { |
|
|
|
calcSize(); |
|
|
|
@ -223,8 +224,8 @@ |
|
|
|
color: #3D3D3D; |
|
|
|
} |
|
|
|
.changeicon { |
|
|
|
width: 12rpx; |
|
|
|
height: 32rpx; |
|
|
|
width: 20rpx; |
|
|
|
height: 40rpx; |
|
|
|
border-radius: 0rpx 32rpx 32rpx 0rpx; |
|
|
|
/* 蓝色渐变 */ |
|
|
|
background: linear-gradient(0deg, #007FFF 0%, #99CCFF 100%); |
|
|
|
|