修改信用额度

This commit is contained in:
2025-11-29 20:22:24 +08:00
parent 4c0221cb22
commit 152e11cc7c
9 changed files with 322 additions and 48 deletions

View File

@@ -33,8 +33,13 @@ const emit = defineEmits<{
function handleClick(item: Category) {
emit('click', item)
// 跳转到分类页面
uni.navigateTo({
url: `/pages/sort/index?categoryId=${item.id}`,
// 注意:因为分类页面是 tabBar 页面,需要使用 switchTab 而不是 navigateTo
uni.switchTab({
url: `/pages/sort/index`,
success: () => {
// 跳转成功后,通过全局事件通知分类页面选中指定分类
uni.$emit('selectCategory', item.id)
}
})
}
</script>