|
|
@@ -13,8 +13,16 @@
|
|
|
<div class="my-bonus-point-title">
|
|
|
我的积分
|
|
|
</div>
|
|
|
- <div class="my-bonus-point-value">
|
|
|
- {{ store.state.score }}
|
|
|
+ <div class="bonus-point-data">
|
|
|
+ <div class="my-bonus-point-value">
|
|
|
+ {{ store.state.score }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="scoreResetDate"
|
|
|
+ class="bonus-point-clear-date"
|
|
|
+ >
|
|
|
+ 积分将在 {{ scoreResetDate }} 清零
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="main-wrap">
|
|
|
<div class="tabbar">
|
|
|
@@ -185,6 +193,7 @@ import { ref, computed, watch, onMounted } from "vue"
|
|
|
import { useRoute, useRouter } from "vue-router"
|
|
|
import { useStore } from "vuex"
|
|
|
import { getScore, getPrizeList, getBonusPointRecord, checkCertificationStatus } from '@/api.js'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
@@ -200,6 +209,16 @@ getScore().then((res) => {
|
|
|
store.commit('setIfScoreLimitReached', res.hasOver)
|
|
|
})
|
|
|
|
|
|
+const scoreResetDate = computed(() => {
|
|
|
+ if (store.state.scoreResetDateMs) {
|
|
|
+ console.log(store.state.scoreResetDateMs)
|
|
|
+ return dayjs(store.state.scoreResetDateMs).format('YY年M月D日')
|
|
|
+ } else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
const currentTabIdx = ref(0)
|
|
|
|
|
|
/**
|
|
|
@@ -315,15 +334,27 @@ getBonusPointRecord().then((res) => {
|
|
|
color: #FFFFFF;
|
|
|
line-height: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
}
|
|
|
- >.my-bonus-point-value{
|
|
|
+ >.bonus-point-data{
|
|
|
position: absolute;
|
|
|
top: calc(80 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
left: calc(24 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
- font-size: calc(40 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
- font-family: Source Han Sans SC, Source Han Sans SC;
|
|
|
- font-weight: 800;
|
|
|
- color: #FFFFFF;
|
|
|
- line-height: calc(47 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-end;
|
|
|
+ >.my-bonus-point-value{
|
|
|
+ font-size: calc(40 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ font-family: Source Han Sans SC, Source Han Sans SC;
|
|
|
+ font-weight: 800;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: calc(47 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ }
|
|
|
+ >.bonus-point-clear-date{
|
|
|
+ margin-left: calc(10 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ font-size: calc(12 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ font-family: Source Han Sans SC, Source Han Sans SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: calc(30 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ }
|
|
|
}
|
|
|
>.main-wrap{
|
|
|
position: absolute;
|