|
|
@@ -129,7 +129,8 @@
|
|
|
import { ref, computed, watch, onMounted } from "vue"
|
|
|
import { useRoute, useRouter } from "vue-router"
|
|
|
import { useStore } from "vuex"
|
|
|
-import { getPrizeList, getBonusPointRecord } from '@/api.js'
|
|
|
+import { getScore, getPrizeList, getBonusPointRecord } from '@/api.js'
|
|
|
+
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
const store = useStore()
|
|
|
@@ -139,6 +140,11 @@ const {
|
|
|
windowSizeWhenDesignForRef,
|
|
|
} = useSizeAdapt(390, 752)
|
|
|
|
|
|
+getScore().then((res) => {
|
|
|
+ store.commit('setScore', res.total)
|
|
|
+ store.commit('setIfScoreLimitReached', res.hasOver)
|
|
|
+})
|
|
|
+
|
|
|
const currentTabIdx = ref(0)
|
|
|
|
|
|
const prizeList = ref([])
|