11.26 修改K线图样式
This commit is contained in:
@@ -13,6 +13,7 @@ const _sfc_main = {
|
||||
contentTop: "",
|
||||
keywords: "",
|
||||
//搜索关键字
|
||||
isRefreshing: false,
|
||||
todayDate: "",
|
||||
//今日日期
|
||||
calendarDateList: [],
|
||||
@@ -129,9 +130,6 @@ const _sfc_main = {
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.reloadData();
|
||||
},
|
||||
computed: {
|
||||
circumference() {
|
||||
return Math.PI * 100;
|
||||
@@ -146,6 +144,10 @@ const _sfc_main = {
|
||||
} else
|
||||
this.getDataListData();
|
||||
},
|
||||
pullDownRefresh() {
|
||||
this.isRefreshing = true;
|
||||
this.reloadData();
|
||||
},
|
||||
loadMoreData() {
|
||||
if (!this.loadAll) {
|
||||
this.page++;
|
||||
@@ -290,7 +292,7 @@ const _sfc_main = {
|
||||
param.category = this.stockCategoryList[this.selectTopCategory].primary_sector;
|
||||
}
|
||||
request_api.calendarEventList(param).then((res) => {
|
||||
common_vendor.index.stopPullDownRefresh();
|
||||
this.isRefreshing = false;
|
||||
if (res.code == 200) {
|
||||
if (res.data.page == 1) {
|
||||
this.eventList = res.data.events;
|
||||
@@ -305,7 +307,7 @@ const _sfc_main = {
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
common_vendor.index.stopPullDownRefresh();
|
||||
this.isRefreshing = false;
|
||||
});
|
||||
},
|
||||
/**
|
||||
@@ -317,6 +319,7 @@ const _sfc_main = {
|
||||
param.category = this.stockCategoryList[this.selectTopCategory].primary_sector;
|
||||
}
|
||||
request_api.calendarDataList(param).then((res) => {
|
||||
this.isRefreshing = false;
|
||||
if (res.code == 200) {
|
||||
this.dataList = res.data.data_list;
|
||||
} else
|
||||
@@ -325,7 +328,7 @@ const _sfc_main = {
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
common_vendor.index.stopPullDownRefresh();
|
||||
this.isRefreshing = false;
|
||||
});
|
||||
},
|
||||
/**
|
||||
@@ -554,19 +557,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
})
|
||||
} : {}, {
|
||||
D: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
E: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
F: common_assets._imports_5,
|
||||
G: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
H: common_vendor.t($data.selectMonth),
|
||||
I: common_assets._imports_6,
|
||||
J: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
K: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
E: $data.isRefreshing,
|
||||
F: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
G: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
H: common_assets._imports_5,
|
||||
I: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
J: common_vendor.t($data.selectMonth),
|
||||
K: common_assets._imports_6,
|
||||
L: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
M: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
L: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
N: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.isToday || item.date == $data.selectDate
|
||||
}, item.isToday || item.date == $data.selectDate ? {
|
||||
@@ -582,9 +587,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
|
||||
});
|
||||
}),
|
||||
M: common_vendor.s("margin-top:" + $data.navH + "px;"),
|
||||
N: common_vendor.sr("popup", "3bfa752c-2"),
|
||||
O: common_vendor.p({
|
||||
O: common_vendor.s("margin-top:" + $data.navH + "px;"),
|
||||
P: common_vendor.sr("popup", "3bfa752c-2"),
|
||||
Q: common_vendor.p({
|
||||
type: "top"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true,
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"ua-markdown": "../../components/ua-markdown/ua-markdown",
|
||||
"zui-progress-circle": "../../uni_modules/zui-progress-circle/components/zui-progress-circle/zui-progress-circle",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user