From f98729e35a7a2fe90cc94f82a35a7c1966cbd4fb Mon Sep 17 00:00:00 2001 From: anbohan Date: Tue, 12 Nov 2024 22:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E4=B8=80=E5=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/images/WechatIMG2.png | Bin 1745 -> 0 bytes src/store/index.js | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) delete mode 100755 src/images/WechatIMG2.png diff --git a/src/images/WechatIMG2.png b/src/images/WechatIMG2.png deleted file mode 100755 index f875193d4c89caad7ff767e66cae26fac276bf69..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1745 zcmc(fSya;p7REy$R8qheLXo8^ErcYcfDy3l6cSA!l8~hYi^Ygy*r9+dWlMr#RbmE0 zSdEY<{J{_wb!1Z`s02w_HKIjPDVr=h$OIRdOy`_=o9DUbp6~a4FZZ7Natld;hYXIwM7C|Cta{ z9;Y!ey``ro8Z@SDZG^MdmE3neV?>1AiAmQiwoWDoQb0R)+L`Y0$@L4QyM=H4Bj@)P z?zf`>u^#a5mf492?kDD1NyA}FcoGN%nZsj#q^3>1R$6I+_I?3s3+A!6oSPEBER|8r zv}^QMheRwkZ}JEDfEe}vK-X&}OLG<|cW=&;i7tX|-xRRO?-KuS6!m8O9JEUp?D$kC zWR=U~Xq zk3nuhWr^)4vNnDYKqPXrUy7pCBzg!gsz&>u|6+R;z3l@lCY-OEAn3yxYZd?fpR1-h zv2lFEIo1uWpPp|#+59+ob)kMu?@SIRd-X|oROt>uwZ3!)GkiRr(0;^|=Z=VQQzFuK#%214GqmJVR;-YpkZXbTdAp74>!~P_e~q|_ZjQyh zFj)y7kg3bR$7kH?oqx8m+Y@-jOWAYX zm$EpElg@>&T}Ub*Ew|eFc5=QHUyqi zz-WJLzR~hO(a^ZKM%+V^l)53QL9ZTD!WsDrXS0d3bNBBhQR^;tnLPTkffRnWO%9dlwca98cmxVPP1+{hKqUtm_L`yOx%3`Jc=1rL1HM?3}`I0&WP zK;4;22ku_-%GU(5NzMS`nZxqa`FclkHjTt`ZpmydAyiU>tR@C2gQMRhU-(P~Y0rpZ*&(lEABt*YWg^+3Gh`AowT4-p%-OZX$Gg{2hsnZu1)V?v; ovgLmD-1g@ES5MNj-~Mgfd)ol-iFMKC{`;5Wv4I$=?=kkj03k0(i2wiq diff --git a/src/store/index.js b/src/store/index.js index 5a6d748..58134fa 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3,6 +3,7 @@ import Vuex from 'vuex' import mutations from './mutations' import actions from './action' import ajax from '../config/ajax' +import moment from'moment' // 新增:引入moment.js库用时间格式转换 Vue.use(Vuex) @@ -20,8 +21,8 @@ const state = { "active_id": 1, "active_title": "欢乐星期五标题", "active_topic_phase": "第一周", - "active_start_time": "1479139200", - "active_end_time": "1482163200", + "active_start_time": "moment.unix(1479139200).format('YYYY-MM-DD HH:mm:ss')",// 修改:将时间戳转换为格式化后的时间 + "active_end_time": "moment.unix(1482163200).format('YYYY-MM-DD HH:mm:ss')", "topic_answer": [{ "topic_answer_id": 1, "topic_id": 20, @@ -51,8 +52,8 @@ const state = { "active_id": 1, "active_title": "欢乐星期五标题", "active_topic_phase": "第一周", - "active_start_time": "1479139200", - "active_end_time": "1482163200", + "active_start_time": "moment.unix(1479139200).format('YYYY-MM-DD HH:mm:ss')", + "active_end_time": "moment.unix(1482163200).format('YYYY-MM-DD HH:mm:ss')", "topic_answer": [{ "topic_answer_id": 5, "topic_id": 21, @@ -82,8 +83,8 @@ const state = { "active_id": 1, "active_title": "欢乐星期五标题", "active_topic_phase": "第一周", - "active_start_time": "1479139200", - "active_end_time": "1482163200", + "active_start_time": "moment.unix(1479139200).format('YYYY-MM-DD HH:mm:ss')", + "active_end_time": "moment.unix(1482163200).format('YYYY-MM-DD HH:mm:ss')", "topic_answer": [{ "topic_answer_id": 9, "topic_id": 21, @@ -113,8 +114,8 @@ const state = { "active_id": 1, "active_title": "欢乐星期五标题", "active_topic_phase": "第一周", - "active_start_time": "1479139200", - "active_end_time": "1482163200", + "active_start_time": "moment.unix(1479139200).format('YYYY-MM-DD HH:mm:ss')", + "active_end_time": "moment.unix(1482163200).format('YYYY-MM-DD HH:mm:ss')", "topic_answer": [{ "topic_answer_id": 13, "topic_id": 21, @@ -144,8 +145,8 @@ const state = { "active_id": 1, "active_title": "欢乐星期五标题", "active_topic_phase": "第一周", - "active_start_time": "1479139200", - "active_end_time": "1482163200", + "active_start_time": "moment.unix(1479139200).format('YYYY-MM-DD HH:mm:ss')", + "active_end_time": "moment.unix(1482163200).format('YYYY-MM-DD HH:mm:ss')", "topic_answer": [{ "topic_answer_id": 17, "topic_id": 21,