修复已知问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user