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..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,