Commit efd4c9b7 by 胡悦

修改更换类目置顶

1 parent bfbb3a85
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<scroll-view <scroll-view
class="record-box" class="record-box"
scroll-y scroll-y
:scroll-top="scrollTop"
> >
<view class="list"> <view class="list">
<template v-if="list.length"> <template v-if="list.length">
...@@ -131,7 +132,8 @@ export default { ...@@ -131,7 +132,8 @@ export default {
label: '全部', label: '全部',
value: '全部' value: '全部'
}, },
] ],
scrollTop: 0
} }
}, },
props: { props: {
...@@ -205,6 +207,10 @@ export default { ...@@ -205,6 +207,10 @@ export default {
console.log(res) console.log(res)
this.list = res.list this.list = res.list
this.searchList = res.list this.searchList = res.list
this.scrollTop = 1
setTimeout(() => {
this.scrollTop = 0
}, 100);
}, },
async getCategory() { async getCategory() {
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!