同步首页分类栏ui

This commit is contained in:
2026-05-19 17:45:27 +08:00
parent 00a859c551
commit b5ab00ab12
13 changed files with 2956 additions and 266 deletions

View File

@@ -5,9 +5,11 @@
<script>
export default {
onLoad(options) {
const qs = options ? Object.keys(options).map(k => `${k}=${encodeURIComponent(options[k])}`).join('&') : '';
const url = '/pages/main/category' + (qs ? `?${qs}` : '');
uni.navigateTo({ url });
const categoryId = options && options.categoryId ? String(options.categoryId) : '';
if (categoryId !== '') {
uni.setStorageSync('selectedCategory', categoryId);
}
uni.switchTab({ url: '/pages/main/index' });
}
}
</script>