12.12 页面风格改版,增加事件详情相关概念网页跳转,增加绑定手机号功能
This commit is contained in:
581
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
581
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
@@ -13,13 +13,27 @@ const _sfc_main = {
|
||||
windowWidth: common_vendor.inject("windowWidth"),
|
||||
contentTop: "",
|
||||
listTop: "",
|
||||
sortListTop: "",
|
||||
screenCategoryList: [
|
||||
{
|
||||
icon: "/static/icon/home/timeScreen.png",
|
||||
title: "时间筛选"
|
||||
},
|
||||
{
|
||||
icon: "/static/icon/home/industryScreen.png",
|
||||
title: "行业筛选"
|
||||
},
|
||||
{
|
||||
icon: "/static/icon/home/eventLevel.png",
|
||||
title: "事件等级"
|
||||
},
|
||||
{
|
||||
icon: "/static/icon/home/sort.png",
|
||||
title: "最新排序"
|
||||
}
|
||||
],
|
||||
isRefreshing: false,
|
||||
keywords: "",
|
||||
//关键词
|
||||
sortList: [],
|
||||
selectSortKey: "",
|
||||
//选中排序key
|
||||
timeCategoryList: [],
|
||||
selectTimeCategory: 0,
|
||||
stockCategoryList: [],
|
||||
@@ -29,23 +43,32 @@ const _sfc_main = {
|
||||
topScrollLeft: 0,
|
||||
selectSecondCategory: 0,
|
||||
secondScrollLeft: 0,
|
||||
screenCategoryList: ["日期范围", "行业分类", "重要性"],
|
||||
selectYearMonth: "",
|
||||
//选择的年月日
|
||||
startDate: "",
|
||||
selectScreenCategory: 0,
|
||||
//0时间筛选1行业筛选2事件等级3最新排序
|
||||
quickTimeList: ["最新", "盘中", "午盘", "早盘", "今日全天", "昨日", "近一周", "近一月"],
|
||||
selectQuickTimeIndex: -1,
|
||||
startDateStr: "",
|
||||
//选择开始日期
|
||||
startTimeStamp: "",
|
||||
//开始日期时间戳
|
||||
endDate: "",
|
||||
endDateStr: "",
|
||||
//选择结束日期
|
||||
endTimeStamp: "",
|
||||
//结束日期时间戳
|
||||
weekList: ["一", "二", "三", "四", "五", "六", "日"],
|
||||
monthDateList: [],
|
||||
selectMonthIndex: 0,
|
||||
//选中月份下标
|
||||
selectMonth: "",
|
||||
//选中年月
|
||||
yearList: [],
|
||||
//年份列表
|
||||
monthList: [],
|
||||
//月份列表
|
||||
dayList: [],
|
||||
//日列表
|
||||
hourList: [],
|
||||
//时列表
|
||||
minuteList: [],
|
||||
//分列表
|
||||
selectDateRangeIndex: -1,
|
||||
//0开始时间1结束时间
|
||||
startDateValue: [0, 0, 0, 0, 0],
|
||||
endDateValue: [0, 0, 0, 0, 0],
|
||||
industryCategoryList: [],
|
||||
//行业分类数组
|
||||
industryKeywords: "",
|
||||
@@ -60,11 +83,13 @@ const _sfc_main = {
|
||||
//选中行业三级分类
|
||||
selectIndustryForthCategory: -1,
|
||||
//选中行业四级分类
|
||||
selectScreenCategory: 0,
|
||||
importanceList: [],
|
||||
//重要性数组
|
||||
selectImportanceIndex: 0,
|
||||
//选择重要性下标
|
||||
//选择事件等级下标
|
||||
sortTypeList: [],
|
||||
selectSortKey: "",
|
||||
//选中排序key
|
||||
option: {
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
@@ -132,73 +157,14 @@ const _sfc_main = {
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.contentTop = this.navH + (74 + 20) / 750 * this.windowWidth;
|
||||
this.contentTop = this.navH + (70 + 74) / 750 * this.windowWidth;
|
||||
this.listTop = this.contentTop + (22 + 80 + 72) / 750 * this.windowWidth;
|
||||
this.sortListTop = this.navH + (22 + 80 + 80) / 750 * this.windowWidth;
|
||||
this.generateDateListData();
|
||||
Promise.all([this.getEventFilterListData(), this.getIndustryCategoryListData(), this.getStockCategoryListData()]).then((res) => {
|
||||
this.getEventListData();
|
||||
}).catch((error) => {
|
||||
});
|
||||
let currentDate = /* @__PURE__ */ new Date();
|
||||
let currentYear = currentDate.getFullYear();
|
||||
let currentMonth = currentDate.getMonth() + 1;
|
||||
let currentDay = currentDate.getDate();
|
||||
let monthDateList = [];
|
||||
this.selectMonthIndex = 20 * 12 + currentMonth - 1;
|
||||
this.selectMonth = currentYear + "-" + (currentMonth > 9 ? currentMonth : "0" + currentMonth);
|
||||
for (var i = currentYear - 20; i < currentYear + 20; i++) {
|
||||
for (var j = 0; j < 12; j++) {
|
||||
let date = new Date(i, j + 1, 0);
|
||||
let firstDayOfMonth = new Date(i, j + 1, 0);
|
||||
firstDayOfMonth.setDate(1);
|
||||
let currentMonthDay = date.getDate();
|
||||
let firstDayWeek = firstDayOfMonth.getDay() || 7;
|
||||
let daysOfMonth = [];
|
||||
for (var k = 1; k <= currentMonthDay; k++) {
|
||||
let newDate = new Date(i, j + 1, 0);
|
||||
newDate.setDate(k);
|
||||
let newMonth = newDate.getMonth() + 1;
|
||||
let newDay = newDate.getDate();
|
||||
let time = newDate.getTime();
|
||||
let date2 = i + "-" + (newMonth > 9 ? newMonth : "0" + newMonth) + "-" + (newDay > 9 ? newDay : "0" + newDay);
|
||||
daysOfMonth.push({ date: date2, year: i, month: newMonth, day: newDay, isToday: i == currentYear && newMonth == currentMonth && newDay == currentDay ? true : false, isCurrentMonth: true, timestamp: time });
|
||||
}
|
||||
for (var k = 0; k < firstDayWeek - 1; k++) {
|
||||
let year = i;
|
||||
let month = j;
|
||||
if (j < 1) {
|
||||
year = i - 1;
|
||||
month = 12;
|
||||
}
|
||||
let lastMonthDay = new Date(year, month, 0).getDate();
|
||||
let newDate = new Date(year, month - 1, lastMonthDay - k);
|
||||
let newMonth = newDate.getMonth() + 1;
|
||||
let newDay = newDate.getDate();
|
||||
let time = newDate.getTime();
|
||||
let date2 = year + "-" + (newMonth > 9 ? newMonth : "0" + newMonth) + "-" + (newDay > 9 ? newDay : "0" + newDay);
|
||||
daysOfMonth.unshift({ date: date2, year, month: newMonth, day: newDay, isToday: false, isCurrentMonth: false, timestamp: time });
|
||||
}
|
||||
let nextMonthFirstDay = new Date(i, j + 1, 1);
|
||||
let lastDayOfMonth = new Date(nextMonthFirstDay - 24 * 60 * 60 * 1e3);
|
||||
let lastDayWeek = lastDayOfMonth.getDay() || 7;
|
||||
for (var k = 1; k < 8 - lastDayWeek; k++) {
|
||||
let year = i;
|
||||
let month = j;
|
||||
if (month > 11) {
|
||||
month = 0;
|
||||
year++;
|
||||
}
|
||||
let newDate = new Date(year, month + 1, k);
|
||||
let newMonth = newDate.getMonth() + 1;
|
||||
let newDay = newDate.getDate();
|
||||
let time = newDate.getTime();
|
||||
let date2 = year + "-" + (newMonth > 9 ? newMonth : "0" + newMonth) + "-" + (newDay > 9 ? newDay : "0" + newDay);
|
||||
daysOfMonth.push({ date: date2, year, month: newMonth, day: newDay, isToday: false, isCurrentMonth: false, timestamp: time });
|
||||
}
|
||||
monthDateList.push(daysOfMonth);
|
||||
}
|
||||
}
|
||||
this.monthDateList = monthDateList;
|
||||
},
|
||||
onReady() {
|
||||
common_vendor.index.createSelectorQuery().select("#topCategory").boundingClientRect((rect) => {
|
||||
@@ -211,6 +177,39 @@ const _sfc_main = {
|
||||
}).exec();
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 生成日期数据
|
||||
*/
|
||||
generateDateListData() {
|
||||
let currentDate = /* @__PURE__ */ new Date();
|
||||
let year = currentDate.getFullYear();
|
||||
let month = currentDate.getMonth();
|
||||
let day = currentDate.getDate();
|
||||
let hour = currentDate.getHours();
|
||||
let minute = currentDate.getMinutes();
|
||||
let date = new Date(year, month + 1, 0);
|
||||
let monthDays = date.getDate();
|
||||
for (var i = 2e3; i < 2060; i++) {
|
||||
this.yearList.push(i);
|
||||
}
|
||||
for (var i = 0; i < 12 * 60; i++) {
|
||||
this.monthList.push(i % 12 + 1);
|
||||
}
|
||||
for (var i = 0; i < monthDays * 60; i++) {
|
||||
this.dayList.push(i % monthDays + 1);
|
||||
}
|
||||
for (var i = 0; i < 24 * 60; i++) {
|
||||
this.hourList.push(i % 24);
|
||||
}
|
||||
for (var i = 0; i < 60 * 60; i++) {
|
||||
this.minuteList.push(i % 60);
|
||||
}
|
||||
let that = this;
|
||||
setTimeout(function() {
|
||||
that.startDateValue = [year - 2e3, month + 12 * 30, day - 1 + monthDays * 30, hour + 24 * 30, minute + 60 * 30];
|
||||
that.endDateValue = [year - 2e3, month + 12 * 30, day - 1 + monthDays * 30, hour + 24 * 30, minute + 60 * 30];
|
||||
}, 100);
|
||||
},
|
||||
/**
|
||||
* 下拉刷新
|
||||
*/
|
||||
@@ -257,18 +256,12 @@ const _sfc_main = {
|
||||
this.getHotEventListData();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击排序
|
||||
*/
|
||||
clickSort() {
|
||||
this.$refs["sortPopup"].open();
|
||||
},
|
||||
/**
|
||||
* 点击排序选项
|
||||
*/
|
||||
clickSortListItem(item) {
|
||||
this.selectSortKey = item.key;
|
||||
this.$refs["sortPopup"].close();
|
||||
this.$refs["screenPopup"].close();
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
@@ -277,7 +270,8 @@ const _sfc_main = {
|
||||
/**
|
||||
* 点击筛选
|
||||
*/
|
||||
clickScreenItem() {
|
||||
clickScreenItem(index) {
|
||||
this.selectScreenCategory = index;
|
||||
this.$refs["screenPopup"].open();
|
||||
},
|
||||
/**
|
||||
@@ -290,6 +284,29 @@ const _sfc_main = {
|
||||
* 点击筛选弹窗确定
|
||||
*/
|
||||
clickCertain() {
|
||||
if (this.selectScreenCategory == 0) {
|
||||
if (!this.startDateStr) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择开始时间",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!this.endDateStr) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择结束时间",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.endTimeStamp < this.startTimeStamp) {
|
||||
common_vendor.index.showToast({
|
||||
title: "开始时间不能晚于结束时间",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.clickCancel();
|
||||
this.clickSearch();
|
||||
},
|
||||
@@ -338,70 +355,74 @@ const _sfc_main = {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击上个月
|
||||
* 点击选择快捷时间
|
||||
*/
|
||||
clickPreMonth() {
|
||||
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 = year + "-" + (month > 9 ? month : "0" + month);
|
||||
clickQuickTimeItem(index) {
|
||||
this.selectDateRangeIndex = -1;
|
||||
if (this.selectQuickTimeIndex != index) {
|
||||
this.selectQuickTimeIndex = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击下个月
|
||||
* 点击选择开始时间或者结束时间
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickNextMonth() {
|
||||
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 = year + "-" + (month > 9 ? month : "0" + month);
|
||||
clickDateRangeItem(index) {
|
||||
this.selectQuickTimeIndex = -1;
|
||||
if (this.selectDateRangeIndex != index) {
|
||||
this.selectDateRangeIndex = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击选择开始日期和结束日期
|
||||
* @param {Object} item
|
||||
* 监听日期选择
|
||||
* @param {Object} e
|
||||
*/
|
||||
clickSelectDate(item) {
|
||||
if (this.startDate) {
|
||||
if (this.endDate) {
|
||||
this.startDate = item.date;
|
||||
this.startTimeStamp = item.timestamp;
|
||||
this.endDate = null;
|
||||
this.endTimeStamp = null;
|
||||
} else {
|
||||
let date1 = new Date(this.startDate);
|
||||
let date2 = new Date(item.date);
|
||||
if (date1 > date2) {
|
||||
this.endDate = this.startDate;
|
||||
this.endTimeStamp = this.startTimeStamp;
|
||||
this.startDate = item.date;
|
||||
this.startTimeStamp = item.timestamp;
|
||||
} else {
|
||||
this.endDate = item.date;
|
||||
this.endTimeStamp = item.timestamp;
|
||||
dateChange(e) {
|
||||
let value = e.detail.value;
|
||||
if (this.selectDateRangeIndex == 0) {
|
||||
if (value[1] != this.startDateValue[1]) {
|
||||
let year2 = value[0] + 2e3;
|
||||
let month2 = value[1] % 12;
|
||||
let date2 = new Date(year2, month2 + 1, 0);
|
||||
let monthDays2 = date2.getDate();
|
||||
this.dayList = [];
|
||||
for (var i = 0; i < monthDays2 * 60; i++) {
|
||||
this.dayList.push(i % monthDays2 + 1);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.startDate = item.date;
|
||||
this.startTimeStamp = item.timestamp;
|
||||
this.startDateValue = e.detail.value;
|
||||
let year = value[0] + 2e3;
|
||||
let month = value[1] % 12 + 1;
|
||||
let date = new Date(year, month, 0);
|
||||
let monthDays = date.getDate();
|
||||
let day = value[2] % monthDays + 1;
|
||||
let hour = value[3] % 24;
|
||||
let minute = value[4] % 60;
|
||||
this.startDateStr = year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day) + " " + (hour > 9 ? hour : "0" + hour) + ":" + (minute > 9 ? minute : "0" + minute);
|
||||
var startDateStr = this.startDateStr.replace(/-/g, "/") + ":00";
|
||||
this.startTimeStamp = new Date(startDateStr).getTime();
|
||||
} else if (this.selectDateRangeIndex == 1) {
|
||||
if (value[1] != this.endDateValue[1]) {
|
||||
let year2 = value[0] + 2e3;
|
||||
let month2 = value[1] % 12;
|
||||
let date2 = new Date(year2, month2 + 1, 0);
|
||||
let monthDays2 = date2.getDate();
|
||||
this.dayList = [];
|
||||
for (var i = 0; i < monthDays2 * 60; i++) {
|
||||
this.dayList.push(i % monthDays2 + 1);
|
||||
}
|
||||
}
|
||||
this.endDateValue = e.detail.value;
|
||||
let year = value[0] + 2e3;
|
||||
let month = value[1] % 12 + 1;
|
||||
let date = new Date(year, month, 0);
|
||||
let monthDays = date.getDate();
|
||||
let day = value[2] % monthDays + 1;
|
||||
let hour = value[3] % 24;
|
||||
let minute = value[4] % 60;
|
||||
this.endDateStr = year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day) + " " + (hour > 9 ? hour : "0" + hour) + ":" + (minute > 9 ? minute : "0" + minute);
|
||||
var endDateStr = this.endDateStr.replace(/-/g, "/") + ":00";
|
||||
this.endTimeStamp = new Date(endDateStr).getTime();
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -596,7 +617,7 @@ const _sfc_main = {
|
||||
item.icon = "/static/icon/home/yield.png";
|
||||
}
|
||||
}
|
||||
this.sortList = res.data.sort_options.splice(0, 3);
|
||||
this.sortTypeList = res.data.sort_options.slice(0, 3);
|
||||
this.importanceList = res.data.importance_options;
|
||||
this.importanceList.unshift({ desc: "全部", key: "all", name: "全部" });
|
||||
} else {
|
||||
@@ -660,11 +681,11 @@ const _sfc_main = {
|
||||
if (this.selectSecondCategory > 0) {
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory];
|
||||
}
|
||||
if (this.startDate) {
|
||||
param.start_date = this.startDate;
|
||||
if (this.startDateStr) {
|
||||
param.start_date = this.startDateStr;
|
||||
}
|
||||
if (this.endDate) {
|
||||
param.end_date = this.endDate;
|
||||
if (this.endDateStr) {
|
||||
param.end_date = this.endDateStr;
|
||||
}
|
||||
if (this.selectImportanceIndex > 0) {
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key;
|
||||
@@ -713,11 +734,11 @@ const _sfc_main = {
|
||||
if (this.selectSecondCategory > 0) {
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory];
|
||||
}
|
||||
if (this.startDate) {
|
||||
param.start_date = this.startDate;
|
||||
if (this.startDateStr) {
|
||||
param.start_date = this.startDateStr;
|
||||
}
|
||||
if (this.endDate) {
|
||||
param.end_date = this.endDate;
|
||||
if (this.endDateStr) {
|
||||
param.end_date = this.endDateStr;
|
||||
}
|
||||
if (this.selectImportanceIndex > 0) {
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key;
|
||||
@@ -742,22 +763,38 @@ const _sfc_main = {
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
_easycom_uni_popup2();
|
||||
(_easycom_navBar2 + _easycom_uni_popup2)();
|
||||
}
|
||||
const _easycom_navBar = () => "../../components/navBar/navBar.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_popup();
|
||||
(_easycom_navBar + _easycom_uni_popup)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.s("top:" + $data.menuTop + "px;line-height:" + $data.menuH + "px;"),
|
||||
b: common_vendor.p({
|
||||
leftText: "事件中心",
|
||||
hideNavBg: true,
|
||||
hideBack: true
|
||||
}),
|
||||
c: common_assets._imports_1,
|
||||
d: $data.keywords,
|
||||
e: common_vendor.o(($event) => $data.keywords = $event.detail.value),
|
||||
f: common_vendor.o(($event) => $options.clickSearch()),
|
||||
g: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
f: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.title),
|
||||
c: common_vendor.n("item flex " + (index == 2 ? "level" : "")),
|
||||
d: common_vendor.o(($event) => $options.clickScreenItem(index), index),
|
||||
e: index < $data.screenCategoryList.length - 1
|
||||
}, index < $data.screenCategoryList.length - 1 ? {} : {}, {
|
||||
f: index
|
||||
});
|
||||
}),
|
||||
g: common_assets._imports_3,
|
||||
h: common_vendor.f($data.timeCategoryList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
@@ -766,11 +803,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickTimeCategoryItem(index), index)
|
||||
};
|
||||
}),
|
||||
i: common_assets._imports_2$1,
|
||||
j: common_vendor.o(($event) => $options.clickSort()),
|
||||
k: common_assets._imports_3$1,
|
||||
l: common_vendor.o(($event) => $options.clickScreenItem()),
|
||||
m: common_vendor.f($data.stockCategoryList, (item, index, i0) => {
|
||||
i: common_vendor.f($data.stockCategoryList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.primary_sector),
|
||||
b: common_vendor.n("item relative " + ($data.selectTopCategory == index ? "select" : "")),
|
||||
@@ -778,21 +811,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickTopCategoryItem($event, index), index)
|
||||
};
|
||||
}),
|
||||
n: $data.topScrollLeft,
|
||||
o: $data.stockCategoryList.length > 0 && $data.stockCategoryList[$data.selectTopCategory].sub_sectors.length > 0
|
||||
}, $data.stockCategoryList.length > 0 && $data.stockCategoryList[$data.selectTopCategory].sub_sectors.length > 0 ? {
|
||||
p: common_vendor.f($data.stockCategoryList[$data.selectTopCategory].sub_sectors, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: common_vendor.n("item " + ($data.selectSecondCategory == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSecondCategoryItem($event, index), index)
|
||||
};
|
||||
}),
|
||||
q: $data.secondScrollLeft
|
||||
} : {}, {
|
||||
r: common_vendor.s("top:" + $data.contentTop + "px"),
|
||||
s: common_vendor.f($data.eventList, (item, index, i0) => {
|
||||
j: $data.topScrollLeft,
|
||||
k: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
l: common_vendor.f($data.eventList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.importance),
|
||||
b: common_vendor.n("level " + item.importance),
|
||||
@@ -804,7 +825,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.getRateUpOrDown(item.related_avg_chg) ? {
|
||||
h: common_assets._imports_1$1
|
||||
} : {
|
||||
i: common_assets._imports_2$2
|
||||
i: common_assets._imports_2$1
|
||||
}, {
|
||||
j: common_vendor.t($data.getRateStr(item.related_avg_chg)),
|
||||
k: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_avg_chg) ? "down" : "up")),
|
||||
@@ -812,7 +833,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.getRateUpOrDown(item.related_max_chg) ? {
|
||||
m: common_assets._imports_1$1
|
||||
} : {
|
||||
n: common_assets._imports_2$2
|
||||
n: common_assets._imports_2$1
|
||||
}, {
|
||||
o: common_vendor.t($data.getRateStr(item.related_max_chg)),
|
||||
p: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_max_chg) ? "down" : "up")),
|
||||
@@ -820,7 +841,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.getRateUpOrDown(item.related_week_chg) ? {
|
||||
r: common_assets._imports_1$1
|
||||
} : {
|
||||
s: common_assets._imports_2$2
|
||||
s: common_assets._imports_2$1
|
||||
}, {
|
||||
t: common_vendor.t($data.getRateStr(item.related_week_chg)),
|
||||
v: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_week_chg) ? "down" : "up")),
|
||||
@@ -833,84 +854,79 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
C: index
|
||||
});
|
||||
}),
|
||||
t: common_assets._imports_3,
|
||||
v: common_assets._imports_4,
|
||||
w: common_assets._imports_10,
|
||||
x: common_vendor.s("top:" + $data.listTop + "px"),
|
||||
y: $data.isRefreshing,
|
||||
z: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
A: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
B: common_assets._imports_14,
|
||||
C: common_vendor.f($data.sortList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSortListItem(item), index)
|
||||
};
|
||||
}),
|
||||
D: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
E: common_vendor.sr("sortPopup", "9dfd58d8-0"),
|
||||
F: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent",
|
||||
animation: false
|
||||
}),
|
||||
G: common_assets._imports_2,
|
||||
H: common_vendor.s("height:" + $data.menuH + "px;"),
|
||||
I: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
|
||||
m: common_assets._imports_3$1,
|
||||
n: common_assets._imports_4,
|
||||
o: common_assets._imports_10$1,
|
||||
p: common_vendor.s("top:" + $data.listTop + "px"),
|
||||
q: $data.isRefreshing,
|
||||
r: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
s: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
t: common_assets._imports_2,
|
||||
v: common_vendor.s("height:" + $data.menuH + "px;"),
|
||||
w: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item),
|
||||
b: $data.selectScreenCategory == index
|
||||
}, $data.selectScreenCategory == index ? {} : {}, {
|
||||
c: common_vendor.n("item relative " + ($data.selectScreenCategory == index ? "select" : "")),
|
||||
d: index,
|
||||
e: common_vendor.o(($event) => $options.clickScreenCategoryItem(index), index)
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.title),
|
||||
c: common_vendor.n("item flex " + (index == 2 ? "level" : "")),
|
||||
d: common_vendor.o(($event) => $options.clickScreenItem(index), index),
|
||||
e: index < $data.screenCategoryList.length - 1
|
||||
}, index < $data.screenCategoryList.length - 1 ? {} : {}, {
|
||||
f: index
|
||||
});
|
||||
}),
|
||||
J: $data.selectScreenCategory == 0
|
||||
}, $data.selectScreenCategory == 0 ? {
|
||||
K: common_vendor.t($data.startDate),
|
||||
L: common_vendor.t($data.endDate),
|
||||
M: common_assets._imports_5,
|
||||
N: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
O: common_vendor.t($data.selectMonth),
|
||||
P: common_assets._imports_6,
|
||||
Q: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
R: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
x: common_assets._imports_3,
|
||||
y: $data.selectScreenCategory == 0
|
||||
}, $data.selectScreenCategory == 0 ? common_vendor.e({
|
||||
z: common_assets._imports_9,
|
||||
A: $data.startDateStr
|
||||
}, $data.startDateStr ? {
|
||||
B: common_vendor.t($data.startDateStr)
|
||||
} : {}, {
|
||||
C: common_vendor.n("dateC start flexCenter flex1 " + ($data.selectDateRangeIndex == 0 ? "select" : "")),
|
||||
D: common_vendor.o(($event) => $options.clickDateRangeItem(0)),
|
||||
E: common_assets._imports_9,
|
||||
F: $data.endDateStr
|
||||
}, $data.endDateStr ? {
|
||||
G: common_vendor.t($data.endDateStr)
|
||||
} : {}, {
|
||||
H: common_vendor.n("dateC end flexCenter flex1 " + ($data.selectDateRangeIndex == 1 ? "select" : "")),
|
||||
I: common_vendor.o(($event) => $options.clickDateRangeItem(1)),
|
||||
J: common_vendor.f($data.yearList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
S: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.isToday
|
||||
}, item.isToday ? {
|
||||
b: common_vendor.t(item.day)
|
||||
} : common_vendor.e({
|
||||
c: item.date == $data.startDate || item.date == $data.endDate
|
||||
}, item.date == $data.startDate || item.date == $data.endDate ? {
|
||||
d: common_vendor.t(item.day)
|
||||
} : item.timestamp > $data.startTimeStamp && item.timestamp < $data.endTimeStamp ? {
|
||||
f: common_vendor.t(item.day)
|
||||
} : common_vendor.e({
|
||||
g: !item.isCurrentMonth
|
||||
}, !item.isCurrentMonth ? {
|
||||
h: common_vendor.t(item.day)
|
||||
} : {
|
||||
i: common_vendor.t(item.day)
|
||||
}), {
|
||||
e: item.timestamp > $data.startTimeStamp && item.timestamp < $data.endTimeStamp
|
||||
}), {
|
||||
j: index,
|
||||
k: common_vendor.o(($event) => $options.clickSelectDate(item), index)
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
T: $data.selectScreenCategory == 1
|
||||
K: common_vendor.f($data.monthList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
L: common_vendor.f($data.dayList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
M: common_vendor.f($data.hourList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
N: common_vendor.f($data.minuteList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
O: $data.selectDateRangeIndex == 0 ? $data.startDateValue : $data.endDateValue,
|
||||
P: common_vendor.o((...args) => $options.dateChange && $options.dateChange(...args))
|
||||
}) : {}, {
|
||||
Q: $data.selectScreenCategory == 1
|
||||
}, $data.selectScreenCategory == 1 ? common_vendor.e({
|
||||
U: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
|
||||
R: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.classification_name),
|
||||
b: common_vendor.n("item " + ($data.selectIndustryTopCategory == index ? "select" : "")),
|
||||
@@ -918,12 +934,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickIndustryTopCategoryItem(index), index)
|
||||
};
|
||||
}),
|
||||
V: common_assets._imports_1,
|
||||
W: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
|
||||
X: $data.industryKeywords,
|
||||
Y: $data.industryKeywords.length > 0
|
||||
S: common_assets._imports_10,
|
||||
T: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
|
||||
U: $data.industryKeywords,
|
||||
V: $data.industryKeywords.length > 0
|
||||
}, $data.industryKeywords.length > 0 ? {
|
||||
Z: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
W: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.f(item.hierarchy, (sitem, sindex, i1) => {
|
||||
return {
|
||||
@@ -952,28 +968,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : common_vendor.e({
|
||||
aa: $data.selectIndustrySecondCategory > -1
|
||||
X: $data.selectIndustrySecondCategory > -1
|
||||
}, $data.selectIndustrySecondCategory > -1 ? common_vendor.e({
|
||||
ab: $data.selectIndustrySecondCategory > -1
|
||||
Y: $data.selectIndustrySecondCategory > -1
|
||||
}, $data.selectIndustrySecondCategory > -1 ? {
|
||||
ac: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level1_sector),
|
||||
ad: common_assets._imports_13,
|
||||
ae: common_vendor.o(($event) => $options.deleteIndustrySecondCategoryItem())
|
||||
Z: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level1_sector),
|
||||
aa: common_assets._imports_11,
|
||||
ab: common_vendor.o(($event) => $options.deleteIndustrySecondCategoryItem())
|
||||
} : {}, {
|
||||
af: $data.selectIndustryThirdCategory > -1
|
||||
ac: $data.selectIndustryThirdCategory > -1
|
||||
}, $data.selectIndustryThirdCategory > -1 ? {
|
||||
ag: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level2_sector),
|
||||
ah: common_assets._imports_13,
|
||||
ai: common_vendor.o(($event) => $options.deleteIndustryThirdCategoryItem())
|
||||
ad: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level2_sector),
|
||||
ae: common_assets._imports_11,
|
||||
af: common_vendor.o(($event) => $options.deleteIndustryThirdCategoryItem())
|
||||
} : {}, {
|
||||
aj: $data.selectIndustryForthCategory > -1
|
||||
ag: $data.selectIndustryForthCategory > -1
|
||||
}, $data.selectIndustryForthCategory > -1 ? {
|
||||
ak: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level3_sectors[$data.selectIndustryForthCategory].level3_sector),
|
||||
al: common_assets._imports_13,
|
||||
am: common_vendor.o(($event) => $options.deleteIndustryForthCategoryItem())
|
||||
ah: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level3_sectors[$data.selectIndustryForthCategory].level3_sector),
|
||||
ai: common_assets._imports_11,
|
||||
aj: common_vendor.o(($event) => $options.deleteIndustryForthCategoryItem())
|
||||
} : {}) : {}, {
|
||||
an: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].classification_name),
|
||||
ao: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy, (sitem, sindex, i0) => {
|
||||
ak: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].classification_name),
|
||||
al: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy, (sitem, sindex, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($data.selectIndustrySecondCategory == sindex && sitem.isSpread ? "-" : "+"),
|
||||
b: common_vendor.t(sitem.level1_sector),
|
||||
@@ -994,7 +1010,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$1
|
||||
c: common_assets._imports_12
|
||||
} : {}, {
|
||||
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),
|
||||
@@ -1010,19 +1026,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
});
|
||||
})
|
||||
})) : {}, {
|
||||
ap: $data.selectScreenCategory == 2
|
||||
am: $data.selectScreenCategory == 2
|
||||
}, $data.selectScreenCategory == 2 ? {
|
||||
aq: common_vendor.f($data.importanceList, (item, index, i0) => {
|
||||
return {
|
||||
an: common_vendor.f($data.importanceList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.n("item " + ($data.selectImportanceIndex == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickImportanceItem(index), index)
|
||||
b: $data.selectImportanceIndex == index
|
||||
}, $data.selectImportanceIndex == index ? {
|
||||
c: common_assets._imports_13
|
||||
} : {}, {
|
||||
d: common_vendor.n("item flex " + ($data.selectImportanceIndex == index ? "select" : "")),
|
||||
e: index,
|
||||
f: common_vendor.o(($event) => $options.clickImportanceItem(index), index)
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
ao: $data.selectScreenCategory == 3
|
||||
}, $data.selectScreenCategory == 3 ? {
|
||||
ap: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
c: common_vendor.n("item flex " + ($data.selectSortKey == item.key ? "select" : "")),
|
||||
d: index,
|
||||
e: common_vendor.o(($event) => $options.clickSortListItem(item), index)
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
aq: $data.selectScreenCategory != 3
|
||||
}, $data.selectScreenCategory != 3 ? {
|
||||
ar: common_vendor.o(($event) => $options.clickCancel()),
|
||||
as: common_vendor.o(($event) => $options.clickCertain()),
|
||||
as: common_vendor.o(($event) => $options.clickCertain())
|
||||
} : {}, {
|
||||
at: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
|
||||
av: common_vendor.sr("screenPopup", "9dfd58d8-1"),
|
||||
aw: common_vendor.p({
|
||||
|
||||
Reference in New Issue
Block a user