Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3b49f7de
authored
Nov 10, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能完善】商城: 完善相关注释
parent
18c7693e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
src/utils/index.ts
+1
-1
src/views/mall/promotion/kefu/components/member/MemberInfo.vue
+4
-7
No files found.
src/utils/index.ts
View file @
3b49f7de
import
{
toNumber
}
from
'lodash-es'
import
{
toNumber
}
from
'lodash-es'
/**
/**
*
*
...
...
src/views/mall/promotion/kefu/components/member/MemberInfo.vue
View file @
3b49f7de
...
@@ -134,28 +134,25 @@ const handleScroll = debounce(() => {
...
@@ -134,28 +134,25 @@ const handleScroll = debounce(() => {
}
}
},
200
)
},
200
)
/*
用户钱包相关
信息 */
/*
* 查询用户钱包
信息 */
const
WALLET_INIT_DATA
=
{
const
WALLET_INIT_DATA
=
{
balance
:
0
,
balance
:
0
,
totalExpense
:
0
,
totalExpense
:
0
,
totalRecharge
:
0
totalRecharge
:
0
}
as
WalletApi
.
WalletVO
// 钱包初始化数据
}
as
WalletApi
.
WalletVO
// 钱包初始化数据
const
wallet
=
ref
<
WalletApi
.
WalletVO
>
(
WALLET_INIT_DATA
)
// 钱包信息
const
wallet
=
ref
<
WalletApi
.
WalletVO
>
(
WALLET_INIT_DATA
)
// 钱包信息
/** 查询用户钱包信息 */
const
getUserWallet
=
async
()
=>
{
const
getUserWallet
=
async
()
=>
{
if
(
!
conversation
.
value
.
userId
)
{
if
(
!
conversation
.
value
.
userId
)
{
wallet
.
value
=
WALLET_INIT_DATA
wallet
.
value
=
WALLET_INIT_DATA
return
return
}
}
const
params
=
{
userId
:
conversation
.
value
.
userId
}
wallet
.
value
=
wallet
.
value
=
(
await
WalletApi
.
getWallet
(
params
))
||
WALLET_INIT_DATA
(
await
WalletApi
.
getWallet
({
userId
:
conversation
.
value
.
userId
}
))
||
WALLET_INIT_DATA
}
}
/** 获得用户 */
const
loading
=
ref
(
true
)
// 加载中
const
loading
=
ref
(
true
)
// 加载中
const
user
=
ref
<
UserApi
.
UserVO
>
({}
as
UserApi
.
UserVO
)
const
user
=
ref
<
UserApi
.
UserVO
>
({}
as
UserApi
.
UserVO
)
/** 获得用户 */
const
getUserData
=
async
()
=>
{
const
getUserData
=
async
()
=>
{
loading
.
value
=
true
loading
.
value
=
true
try
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment