完善账单详情

This commit is contained in:
wangxiaowei
2025-12-20 23:34:11 +08:00
parent a2f1023de8
commit bbaba61b51
5 changed files with 129 additions and 19 deletions

View File

@ -89,6 +89,7 @@
import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js"
import { useUserStore } from '@/store'
import { getUserInfo, getUserMoneyLog } from '@/api/user'
import { router } from '@/utils/tools'
const OSS = inject('OSS')
const userStore = useUserStore()
@ -156,18 +157,25 @@
* 去充值
*/
handleToRecharge: () => {
uni.navigateTo({
url: '/bundle/wallet/recharge'
})
router.navigateTo('/bundle/wallet/recharge')
},
/**
* 跳转对应账单详情
*/
handleToBillDetail: (id: number) => {
uni.navigateTo({
url: `/bundle/wallet/bill?id=${id}`
})
handleToBillDetail: (item: any) => {
switch (item.change_type) {
case 1: // 包间预定
case 2: // 包间续订
case 3: // 套餐购买
case 4: // 开通会员
router.navigateTo(`/bundle/wallet/bill?id=${item.id}`)
break
case 5: // 退款
case 6: // 充值
router.navigateTo(`/bundle/wallet/pay-bill?id=${item.id}`)
break
}
}
}
</script>