mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
春节勋章
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
<u-overlay :show="signInShow">
|
||||
<view style="padding-top: 180upx;">
|
||||
<view style="margin-top: 180upx;width:586upx;margin: 0px auto;position: relative;text-align: center;">
|
||||
<img @click="signInShow=false" :src="`${context}/static/images/medal/medal2023.png`" style="width:586upx;height: 632upx;">
|
||||
<img @click="signInShow=false" :src="`${context}/static/images/medal/china2023.png`" style="width:586upx;height: 670upx;">
|
||||
<view style="padding-top: 20px;">
|
||||
<img @click="signInShow=false" :src="`${context}/static/images/close.png`">
|
||||
</view>
|
||||
@@ -180,7 +180,7 @@
|
||||
import {toScore} from '@/utils/tools.js'
|
||||
import apiBoeCourse from '@/api/boe/course.js'
|
||||
import apiUserGroup from "@/api/modules/usergroup.js";
|
||||
import apiYearMedal from '@/api/phase2/yearMedal.js'
|
||||
import apiOnceMedal from '@/api/phase2/onceMedal.js'
|
||||
import { mapGetters,mapActions} from 'vuex';
|
||||
export default {
|
||||
data(){
|
||||
@@ -262,13 +262,14 @@
|
||||
mounted() {
|
||||
//控制弹出窗口的代码
|
||||
let now = new Date() //当前时间
|
||||
let end = new Date('2023/01/15 00:00:00') //对比时间
|
||||
if(now.getTime() < end.getTime()){
|
||||
apiYearMedal.has2023().then(rs=>{
|
||||
let start=new Date('2023/01/20 00:00:00') //对比时间
|
||||
let end = new Date('2023/02/05 00:00:00') //对比时间
|
||||
if(now.getTime()>start.getTime() && now.getTime() < end.getTime()){
|
||||
apiOnceMedal.has('china2023').then(rs=>{
|
||||
if(rs.status==200){
|
||||
if(!rs.result){
|
||||
this.signInShow=true;
|
||||
apiYearMedal.save2023();
|
||||
apiOnceMedal.save('china2023');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -37,13 +37,21 @@
|
||||
</view>
|
||||
<view class="medal-list-index" v-if="year2023" >
|
||||
<view class="medal-img-index">
|
||||
<image style="width:136upx;height:152upx" src="/static/images/medal//medal20231.png" mode=""></image>
|
||||
<image style="width:136upx;height:152upx" src="/static/images/medal/medal20231.png" mode=""></image>
|
||||
<text class="img-name">元旦勋章 </text>
|
||||
<text class="img-level"></text>
|
||||
</view>
|
||||
|
||||
<view class="medal-name">元旦勋章 <text style="font-size: 24upx;color:#387DF7;margin-left: 6upx;"></text></view>
|
||||
</view>
|
||||
<view class="medal-list-index">
|
||||
<view class="medal-img-index">
|
||||
<image style="width:136upx;height:152upx" src="/static/images/medal/china2023m.png" mode=""></image>
|
||||
<text class="img-name">春节勋章 </text>
|
||||
<text class="img-level"></text>
|
||||
</view>
|
||||
<view class="medal-name">春节勋章 <text style="font-size: 24upx;color:#387DF7;margin-left: 6upx;"></text></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user