修复已知问题

This commit is contained in:
bobobobo
2026-01-22 01:23:57 +08:00
parent 2b26bfed69
commit 5f2fab9335
18 changed files with 414 additions and 61 deletions

View File

@@ -4,6 +4,7 @@
import { navigateTo } from '@/utils/router'
import { useUI } from '@/utils/use-ui'
import { formatNumberWithWan } from '../../utils'
import { getUserPayPwd } from '@/api/my-index'
const bottomList = [
{
@@ -43,6 +44,23 @@
const { showDialog } = useUI()
const { userInfo, integralData } = useAuthUser()
/** 点击列表跳转 */
const onGo = async item => {
if (item.url === '/pages/my-index/wallet/index') {
const res = await getUserPayPwd()
if (res?.data) {
navigateTo(item.url)
} else {
const show = await showDialog('提示', '请先设置支付密码')
if (show) {
navigateTo('/pages/my-index/wallet/edit-password', { type: 0 })
}
}
} else {
navigateTo(item.url)
}
}
onLoad(() => {
// 获取用户信息
console.log(userInfo.value, '===获取用户信息')
@@ -99,7 +117,7 @@
v-for="(item, index) in bottomList"
:key="index"
class="item-box"
@click="item.url && navigateTo(item.url)"
@click="item.url && onGo(item)"
>
<view class="item-name">
<uni-icons