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