diff --git a/common/utils.js b/common/utils.js index eebd48a..855766d 100644 --- a/common/utils.js +++ b/common/utils.js @@ -239,6 +239,16 @@ function getThisMonthDay(value){ return howDay } +// 输入时间拿到月份 +function getThisMonth(value){ + const date = new Date(value) + let y = date.getFullYear() + let m = date.getMonth()+1 + if (m<10){ + m = '0'+m + } + return `${y}${m}` +} // 视频播放 @@ -252,6 +262,7 @@ export default { netChange, cutDate, getThisMonthDay, + getThisMonth, fmoney, noDecimal, changeStringToDate, diff --git a/manifest.json b/manifest.json index 35d8ed7..40f8abe 100644 --- a/manifest.json +++ b/manifest.json @@ -66,6 +66,12 @@ "minified" : true, "postcss" : true }, + "plugins": { + "chooseLocation": { + "version": "1.0.10", + "provider": "wx76a9a06e5b4e693e" + } + }, "usingComponents" : true, "permission" : { "scope.userLocation" : { diff --git a/pages/commercialBI/businessPortrait.vue b/pages/commercialBI/businessPortrait.vue index 42e34d8..25f993d 100644 --- a/pages/commercialBI/businessPortrait.vue +++ b/pages/commercialBI/businessPortrait.vue @@ -1,31 +1,47 @@