File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
views/mall/promotion/kefu/components/member Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- import { toNumber } from 'lodash-es'
1
+ import { toNumber } from 'lodash-es'
2
2
3
3
/**
4
4
*
Original file line number Diff line number Diff line change @@ -134,28 +134,25 @@ const handleScroll = debounce(() => {
134
134
}
135
135
}, 200 )
136
136
137
- /* 用户钱包相关信息 */
137
+ /** 查询用户钱包信息 */
138
138
const WALLET_INIT_DATA = {
139
139
balance: 0 ,
140
140
totalExpense: 0 ,
141
141
totalRecharge: 0
142
142
} as WalletApi .WalletVO // 钱包初始化数据
143
143
const wallet = ref <WalletApi .WalletVO >(WALLET_INIT_DATA ) // 钱包信息
144
-
145
- /** 查询用户钱包信息 */
146
144
const getUserWallet = async () => {
147
145
if (! conversation .value .userId ) {
148
146
wallet .value = WALLET_INIT_DATA
149
147
return
150
148
}
151
- const params = { userId: conversation .value . userId }
152
- wallet . value = (await WalletApi .getWallet (params )) || WALLET_INIT_DATA
149
+ wallet .value =
150
+ (await WalletApi .getWallet ({ userId: conversation . value . userId } )) || WALLET_INIT_DATA
153
151
}
154
152
153
+ /** 获得用户 */
155
154
const loading = ref (true ) // 加载中
156
155
const user = ref <UserApi .UserVO >({} as UserApi .UserVO )
157
-
158
- /** 获得用户 */
159
156
const getUserData = async () => {
160
157
loading .value = true
161
158
try {
You can’t perform that action at this time.
0 commit comments