调整日期组件

This commit is contained in:
唐明明
2023-03-31 22:18:54 +08:00
parent 59dc853cdf
commit 172206581d
3 changed files with 5 additions and 4 deletions

View File

@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置
const config = {
// apiUrl : 'https://douhuo.douhuofalv.com/api/',
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
apiUrl : 'https://douhuo.douhuofalv.com/api/',
// apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
timeout : 60000
}

View File

@@ -2,7 +2,7 @@
"name" : "抖火",
"appid" : "__UNI__C305C03",
"description" : "纵有疾风起,人生不言弃",
"versionName" : "1.3.7",
"versionName" : "1.3.9",
"versionCode" : 103,
"transformPx" : false,
/* 5+App */

View File

@@ -248,7 +248,8 @@
let year = moment().get('year')
let month = moment().get('month') + 1
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 { months, days } = this.getNewYM(ymdArr[0], ymdArr[1])