|
@@ -10,8 +10,8 @@
|
|
|
</route>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { ref } from 'vue'
|
|
|
import { clockIn, todayDetail } from '@/api/mine'
|
|
|
+import { t } from '@/locale'
|
|
|
import { toPage } from '@/utils/page'
|
|
|
import { toast } from '@/utils/toast'
|
|
|
|
|
@@ -19,26 +19,26 @@ defineOptions({
|
|
|
name: 'MissionCenter', // 任务中心
|
|
|
})
|
|
|
|
|
|
-const dailyMission = [
|
|
|
+const dailyMission = ref<any>([
|
|
|
{
|
|
|
- name: 'Invite Friends Earn Cash',
|
|
|
- description: 'Unlimited rewards',
|
|
|
+ name: t('missionCenter.dailyMission.inviteFriends.name'),
|
|
|
+ description: t('missionCenter.dailyMission.inviteFriends.description'),
|
|
|
icon: '/static/icons/invite-friends.png',
|
|
|
url: '/pages/referEarn/referEarn',
|
|
|
},
|
|
|
{
|
|
|
- name: 'Open Group Buy',
|
|
|
- description: 'Win group opening rewards',
|
|
|
+ name: t('missionCenter.dailyMission.openGroupBuy.name'),
|
|
|
+ description: t('missionCenter.dailyMission.openGroupBuy.description'),
|
|
|
icon: '/static/icons/open-group-buy.png',
|
|
|
url: '/pages/bestSellers/bestSellers',
|
|
|
},
|
|
|
{
|
|
|
- name: 'Join Group Buy',
|
|
|
- description: 'Win group opening rewards',
|
|
|
+ name: t('missionCenter.dailyMission.joinGroupBuy.name'),
|
|
|
+ description: t('missionCenter.dailyMission.joinGroupBuy.description'),
|
|
|
icon: '/static/icons/join-group-buy.png',
|
|
|
url: '/pages/bestSellers/bestSellers',
|
|
|
},
|
|
|
-]
|
|
|
+])
|
|
|
// 今日是否已签到
|
|
|
const hasSignedToday = ref(true)
|
|
|
|