Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/mobile

This commit is contained in:
dongruihua
2023-01-21 12:13:02 +08:00
2 changed files with 21 additions and 1 deletions

20
api/phase2/onceMedal.js Normal file
View File

@@ -0,0 +1,20 @@
/**文章模块的相关处理*/
// import ajax from '@/utils/xajax.js'
import config from '@/config/index.js'
import ajax from '../ajax'
const baseURL = config.statApiBaseUrl;
const has = function(type) {
return ajax.post(baseURL,'/xboe/m/stat/once/medal/has',{type});
}
const save = function(type) {
return ajax.post(baseURL,'/xboe/m/stat/once/medal/save',{type});
}
export default {
has,
save
}

View File

@@ -262,7 +262,7 @@
mounted() {
//控制弹出窗口的代码
let now = new Date() //当前时间
let start=new Date('2023/01/20 00:00:00') //对比时间
let start=new Date('2023/01/22 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=>{