调整日期组件
This commit is contained in:
@@ -10,8 +10,8 @@ import router from '../router'
|
|||||||
|
|
||||||
// 基础配置
|
// 基础配置
|
||||||
const config = {
|
const config = {
|
||||||
// apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
||||||
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
|
// apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
|
||||||
timeout : 60000
|
timeout : 60000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name" : "抖火",
|
"name" : "抖火",
|
||||||
"appid" : "__UNI__C305C03",
|
"appid" : "__UNI__C305C03",
|
||||||
"description" : "纵有疾风起,人生不言弃",
|
"description" : "纵有疾风起,人生不言弃",
|
||||||
"versionName" : "1.3.7",
|
"versionName" : "1.3.9",
|
||||||
"versionCode" : 103,
|
"versionCode" : 103,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
|||||||
@@ -248,7 +248,8 @@
|
|||||||
let year = moment().get('year')
|
let year = moment().get('year')
|
||||||
let month = moment().get('month') + 1
|
let month = moment().get('month') + 1
|
||||||
let today = moment().get('date')
|
let today = moment().get('date')
|
||||||
let start = moment([year, month, today]).month(-(num - 2)).format('YYYY-MM-DD')
|
|
||||||
|
let start = moment().subtract(num, 'month').format('YYYY-MM-DD')
|
||||||
let ymdArr = start.split('-')
|
let ymdArr = start.split('-')
|
||||||
|
|
||||||
let { months, days } = this.getNewYM(ymdArr[0], ymdArr[1])
|
let { months, days } = this.getNewYM(ymdArr[0], ymdArr[1])
|
||||||
|
|||||||
Reference in New Issue
Block a user