12.4 概念模块功能完善
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const request_api = require("../../request/api.js");
|
||||
const utils_util = require("../../utils/util.js");
|
||||
const utils_posthog = require("../../utils/posthog.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const echarts = require("../../uni_modules/lime-echart/static/echarts.min.js");
|
||||
const _sfc_main = {
|
||||
@@ -200,7 +199,6 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
this.monthDateList = monthDateList;
|
||||
utils_posthog.posthog.capture("首页");
|
||||
},
|
||||
onReady() {
|
||||
common_vendor.index.createSelectorQuery().select("#topCategory").boundingClientRect((rect) => {
|
||||
@@ -346,14 +344,16 @@ const _sfc_main = {
|
||||
if (this.selectMonthIndex > 0) {
|
||||
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);
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -363,14 +363,16 @@ const _sfc_main = {
|
||||
if (this.selectMonthIndex < this.monthDateList.length - 1) {
|
||||
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);
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -838,7 +840,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
y: $data.isRefreshing,
|
||||
z: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
A: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
B: common_assets._imports_13$1,
|
||||
B: common_assets._imports_14,
|
||||
C: common_vendor.f($data.sortList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
@@ -848,7 +850,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
}),
|
||||
D: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
E: common_vendor.sr("sortPopup", "eb4215a0-0"),
|
||||
E: common_vendor.sr("sortPopup", "9dfd58d8-0"),
|
||||
F: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent",
|
||||
@@ -992,7 +994,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_vendor.t(fitem.level3_sector),
|
||||
b: $data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex
|
||||
}, $data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex ? {
|
||||
c: common_assets._imports_14
|
||||
c: common_assets._imports_14$1
|
||||
} : {}, {
|
||||
d: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex ? "select" : "")),
|
||||
e: common_vendor.o(($event) => $options.clickIndustryForthCategoryItem(sindex, tindex, findex), findex),
|
||||
@@ -1022,7 +1024,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
ar: common_vendor.o(($event) => $options.clickCancel()),
|
||||
as: common_vendor.o(($event) => $options.clickCertain()),
|
||||
at: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
|
||||
av: common_vendor.sr("screenPopup", "eb4215a0-1"),
|
||||
av: common_vendor.sr("screenPopup", "9dfd58d8-1"),
|
||||
aw: common_vendor.p({
|
||||
type: "top"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user