diff --git a/src/images/WechatIMG2.png b/src/images/WechatIMG2.png deleted file mode 100755 index f875193..0000000 Binary files a/src/images/WechatIMG2.png and /dev/null differ diff --git a/src/store/index.js b/src/store/index.js index 5a6d748..ff05927 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3,7 +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 +20,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 +51,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 +82,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 +113,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 +144,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,