This commit is contained in:
bb_pan 2025-06-13 10:49:06 +08:00
parent 29872f2e4e
commit 08755ed857
2 changed files with 9 additions and 1 deletions

View File

@ -118,6 +118,7 @@ const getUserInfoByUserName = async () => {
const res = await getUserInfoByUserNameApi({ userName })
idCard.value = res.data.idCard
console.log('🚀 ~ getUserInfoByUserName ~ idCard.value:', idCard.value)
uni.setStorageSync('idCard', idCard.value)
} catch (error) {
console.log('🚀 ~ getUserInfoByUserName ~ error:', error)
}

View File

@ -238,7 +238,14 @@ const getDetailsById = async () => {
//
const getTeamList = async () => {
try {
const res = await getBmTeamList({ isAll: 0 })
const params = {
isAll: 0,
}
if (!opts.value.isOut) {
params.idCard = uni.getStorageSync('idCard')
}
console.log('🚀 ~ getTeamList ~ params:', params)
const res = await getBmTeamList(params)
// teamRange.value = res.data
if (res.data.length > 0) {
teamRange.value = res.data.map((item) => {