mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/mobile
This commit is contained in:
20
api/phase2/onceMedal.js
Normal file
20
api/phase2/onceMedal.js
Normal 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
|
||||||
|
}
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
//控制弹出窗口的代码
|
//控制弹出窗口的代码
|
||||||
let now = new Date() //当前时间
|
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') //对比时间
|
let end = new Date('2023/02/05 00:00:00') //对比时间
|
||||||
if(now.getTime()>start.getTime() && now.getTime() < end.getTime()){
|
if(now.getTime()>start.getTime() && now.getTime() < end.getTime()){
|
||||||
apiOnceMedal.has('china2023').then(rs=>{
|
apiOnceMedal.has('china2023').then(rs=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user