From 1e33dfc67ae830aa6951d598447af685c286c299 Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 21 Jan 2023 11:47:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B0=91=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/phase2/onceMedal.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 api/phase2/onceMedal.js diff --git a/api/phase2/onceMedal.js b/api/phase2/onceMedal.js new file mode 100644 index 0000000..487cbd3 --- /dev/null +++ b/api/phase2/onceMedal.js @@ -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 +} From bf65868a3dd8d8093d83dcd851f8f1dcdc968b3b Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 21 Jan 2023 11:49:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 7cc3a6e..49f3437 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -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=>{