Skip to content

Commit 3b49f7d

Browse files
committed
【功能完善】商城: 完善相关注释
1 parent 18c7693 commit 3b49f7d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {toNumber} from 'lodash-es'
1+
import { toNumber } from 'lodash-es'
22

33
/**
44
*

src/views/mall/promotion/kefu/components/member/MemberInfo.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,28 +134,25 @@ const handleScroll = debounce(() => {
134134
}
135135
}, 200)
136136
137-
/* 用户钱包相关信息 */
137+
/** 查询用户钱包信息 */
138138
const WALLET_INIT_DATA = {
139139
balance: 0,
140140
totalExpense: 0,
141141
totalRecharge: 0
142142
} as WalletApi.WalletVO // 钱包初始化数据
143143
const wallet = ref<WalletApi.WalletVO>(WALLET_INIT_DATA) // 钱包信息
144-
145-
/** 查询用户钱包信息 */
146144
const getUserWallet = async () => {
147145
if (!conversation.value.userId) {
148146
wallet.value = WALLET_INIT_DATA
149147
return
150148
}
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
153151
}
154152
153+
/** 获得用户 */
155154
const loading = ref(true) // 加载中
156155
const user = ref<UserApi.UserVO>({} as UserApi.UserVO)
157-
158-
/** 获得用户 */
159156
const getUserData = async () => {
160157
loading.value = true
161158
try {

0 commit comments

Comments
 (0)