Commit efd4c9b7 by 胡悦

修改更换类目置顶

1 parent bfbb3a85
......@@ -46,6 +46,7 @@
<scroll-view
class="record-box"
scroll-y
:scroll-top="scrollTop"
>
<view class="list">
<template v-if="list.length">
......@@ -131,7 +132,8 @@ export default {
label: '全部',
value: '全部'
},
]
],
scrollTop: 0
}
},
props: {
......@@ -205,6 +207,10 @@ export default {
console.log(res)
this.list = res.list
this.searchList = res.list
this.scrollTop = 1
setTimeout(() => {
this.scrollTop = 0
}, 100);
},
async getCategory() {
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!