12.4 概念模块功能完善
This commit is contained in:
@@ -263,7 +263,6 @@
|
||||
import { filterOptions, eventList, homeData, industryCategoryList, loginByEmail, followEvent, stockCategoryList } from '@/request/api'
|
||||
import { getRateStr, getRateUpOrDown, getLocaleTime } from '@/utils/util.js'
|
||||
const echarts = require('../../uni_modules/lime-echart/static/echarts.min.js');
|
||||
import posthog from '@/utils/posthog.js';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -452,7 +451,6 @@
|
||||
}
|
||||
}
|
||||
this.monthDateList = monthDateList
|
||||
posthog.capture("首页")
|
||||
},
|
||||
onReady() {
|
||||
uni.createSelectorQuery().select('#topCategory').boundingClientRect(rect=>{
|
||||
@@ -630,15 +628,17 @@
|
||||
{
|
||||
this.selectMonthIndex --
|
||||
let monthList = this.monthDateList[this.selectMonthIndex]
|
||||
let year = ''
|
||||
let month = ''
|
||||
for (let item of monthList) {
|
||||
if(item.isCurrentMonth)
|
||||
{
|
||||
year = item.year
|
||||
month = item.month
|
||||
break
|
||||
}
|
||||
}
|
||||
this.selectMonth = this.monthDateList[this.selectMonthIndex][0].year+'-'+(month>9?month:('0'+month))
|
||||
this.selectMonth = year+'-'+(month>9?month:('0'+month))
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -650,15 +650,17 @@
|
||||
{
|
||||
this.selectMonthIndex ++
|
||||
let monthList = this.monthDateList[this.selectMonthIndex]
|
||||
let year = ''
|
||||
let month = ''
|
||||
for (let item of monthList) {
|
||||
if(item.isCurrentMonth)
|
||||
{
|
||||
year = item.year
|
||||
month = item.month
|
||||
break
|
||||
}
|
||||
}
|
||||
this.selectMonth = this.monthDateList[this.selectMonthIndex][0].year+'-'+(month>9?month:('0'+month))
|
||||
this.selectMonth = year+'-'+(month>9?month:('0'+month))
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user