Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除了一张图片 #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed src/images/WechatIMG2.png
Binary file not shown.
21 changes: 11 additions & 10 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down