feat: 上线前调整
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
import Avatar from '@/components/Avatar.vue'
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import { loginRoute } from '@/interceptors/route'
|
||||
import { downloadAppAPI, getSignInAPI } from '@/service'
|
||||
import { downloadAppAPI, getCommunityInviteFirstAPI, getSignInAPI } from '@/service'
|
||||
import { useUserStore } from '@/store/user'
|
||||
import { getImageUrl, showModal } from '@/utils'
|
||||
|
||||
@@ -174,8 +174,13 @@ const handleConvert = (type) => {
|
||||
}
|
||||
|
||||
const handleSignIn = async () => {
|
||||
await getSignInAPI()
|
||||
showModal('签到成功')
|
||||
// await getSignInAPI()
|
||||
const { data } = await getCommunityInviteFirstAPI()
|
||||
if (data.qiandaojiang) {
|
||||
showModal('签到成功,获得' + data.qiandaojiang + '积分')
|
||||
} else {
|
||||
showModal('签到成功')
|
||||
}
|
||||
userStore.loadUserInfo()
|
||||
}
|
||||
|
||||
|
||||
@@ -163,11 +163,10 @@ export const getCommunityMyInviteAPI = (data) =>
|
||||
})
|
||||
|
||||
// 领取奖励第一步
|
||||
export const getCommunityInviteFirstAPI = (data) =>
|
||||
export const getCommunityInviteFirstAPI = () =>
|
||||
http({
|
||||
url: '/api/user/rewardone',
|
||||
method: 'POST',
|
||||
data,
|
||||
})
|
||||
|
||||
// 领取救济金
|
||||
|
||||
Reference in New Issue
Block a user