Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-01 16:00:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1420412d999b4016bed7fc5b61295bd4e364df2
f1420412
1 parent
47b62d0e
fix moment时间格式化调整
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/pages/myCreateActivity/index.vue
src/pages/myCreateActivity/index.vue
View file @
f142041
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-1
0-31 19:20:15
* @LastEditTime: 2022-1
1-01 16:00:09
* @FilePath: /swx/src/pages/myCreateActivity/index.vue
* @Description: 创建的活动页面
-->
...
...
@@ -264,17 +264,17 @@ export default {
// '一个月之内', '三个月之内', '一年之内'
let yearMonthDay = '';
if (this.filter_time === '一个月之内') {
yearMonthDay = moment(this.server_time).subtract(1, 'month');
yearMonthDay = moment(this.server_time).subtract(1, 'month
s
');
this.defaultIndex = 1;
this.status_type = '一个月之内';
}
if (this.filter_time === '三个月之内') {
yearMonthDay = moment(this.server_time).subtract(3, 'month');
yearMonthDay = moment(this.server_time).subtract(3, 'month
s
');
this.defaultIndex = 2;
this.status_type = '三个月之内';
}
if (this.filter_time === '一年之内') {
yearMonthDay = moment(this.server_time).subtract(1, 'year');
yearMonthDay = moment(this.server_time).subtract(1, 'year
s
');
this.defaultIndex = 3;
this.status_type = '一年之内';
}
...
...
Please
register
or
login
to post a comment