2.4 组件结构调整,调整会员权限判断
This commit is contained in:
@@ -618,7 +618,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: common_vendor.o(($event) => $data.keywords = $event.detail.value),
|
||||
g: common_vendor.o(($event) => $options.clickRank()),
|
||||
h: common_vendor.t($data.newestPriceDate),
|
||||
i: common_assets._imports_2$3,
|
||||
i: common_assets._imports_2$4,
|
||||
j: common_vendor.t($data.sortTypeStr),
|
||||
k: common_assets._imports_3,
|
||||
l: common_vendor.o(($event) => $options.clickSortType()),
|
||||
@@ -641,7 +641,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
h: common_vendor.n("stockNum " + ($data.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
|
||||
} : {}, {
|
||||
i: common_vendor.t(item.description),
|
||||
j: common_vendor.o(($event) => $options.clickConceptItem(item.concept), index),
|
||||
j: common_vendor.o(($event) => $options.clickConceptItem(item.concept), index)
|
||||
}, $data.memberInfo && $data.memberInfo.is_member && ($data.memberInfo.subscription_type == "pro" || $data.memberInfo.subscription_type == "max") ? {
|
||||
k: common_vendor.f(item.stocks.slice(0, 3), (sitem, sindex, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(sitem.name),
|
||||
@@ -649,23 +650,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
}),
|
||||
l: common_vendor.t(item.stock_count - 3),
|
||||
m: common_vendor.o(($event) => $options.clickStockMore(item), index),
|
||||
n: common_vendor.t(item.price_info ? item.price_info.trade_date : ""),
|
||||
o: common_vendor.o(($event) => $options.clickHistoricalTimeline(item), index),
|
||||
p: index
|
||||
m: common_vendor.o(($event) => $options.clickStockMore(item), index)
|
||||
} : {
|
||||
n: common_assets._imports_1$3,
|
||||
o: common_vendor.t(item.stock_count),
|
||||
p: common_vendor.o(($event) => $options.clickNotVip(), index)
|
||||
}, {
|
||||
q: common_vendor.t(item.price_info ? item.price_info.trade_date : ""),
|
||||
r: common_vendor.o(($event) => $options.clickHistoricalTimeline(item), index),
|
||||
s: index
|
||||
});
|
||||
}),
|
||||
r: common_assets._imports_1$3,
|
||||
s: common_vendor.s("top: " + $data.listTop + "px;"),
|
||||
t: $data.isRefreshing,
|
||||
v: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
w: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
x: common_assets._imports_8,
|
||||
y: common_vendor.o(($event) => $options.clickRankClose()),
|
||||
z: common_assets._imports_7$1,
|
||||
A: common_vendor.t($data.startDateStr),
|
||||
B: common_vendor.t($data.endDateStr),
|
||||
C: common_vendor.f($data.cycleList, (item, index, i0) => {
|
||||
r: $data.memberInfo && $data.memberInfo.is_member && ($data.memberInfo.subscription_type == "pro" || $data.memberInfo.subscription_type == "max"),
|
||||
s: common_assets._imports_1$2,
|
||||
t: common_vendor.s("top: " + $data.listTop + "px;"),
|
||||
v: $data.isRefreshing,
|
||||
w: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
x: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
y: common_assets._imports_6$1,
|
||||
z: common_vendor.o(($event) => $options.clickRankClose()),
|
||||
A: common_assets._imports_8,
|
||||
B: common_vendor.t($data.startDateStr),
|
||||
C: common_vendor.t($data.endDateStr),
|
||||
D: common_vendor.f($data.cycleList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: common_vendor.n("item " + ($data.selectCycleIndex == index ? "select" : "")),
|
||||
@@ -673,15 +680,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickRankCycleListItem(index), index)
|
||||
};
|
||||
}),
|
||||
D: $data.selectCycleIndex == 3
|
||||
E: $data.selectCycleIndex == 3
|
||||
}, $data.selectCycleIndex == 3 ? {
|
||||
E: common_vendor.t($data.selectStartDateStr),
|
||||
F: common_vendor.o(($event) => $options.clickCustomDateCycle(2)),
|
||||
G: common_vendor.t($data.selectEndDateStr),
|
||||
H: common_vendor.o(($event) => $options.clickCustomDateCycle(3)),
|
||||
I: common_vendor.o(($event) => $options.clickApply())
|
||||
F: common_vendor.t($data.selectStartDateStr),
|
||||
G: common_vendor.o(($event) => $options.clickCustomDateCycle(2)),
|
||||
H: common_vendor.t($data.selectEndDateStr),
|
||||
I: common_vendor.o(($event) => $options.clickCustomDateCycle(3)),
|
||||
J: common_vendor.o(($event) => $options.clickApply())
|
||||
} : {}, {
|
||||
J: common_vendor.f($data.rankTabList, (item, index, i0) => {
|
||||
K: common_vendor.f($data.rankTabList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: $data.selectTab == index
|
||||
}, $data.selectTab == index ? {
|
||||
@@ -695,19 +702,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.o(($event) => $options.clickRankTabItem(index), index)
|
||||
});
|
||||
}),
|
||||
K: common_vendor.f($data.rankList, (item, index, i0) => {
|
||||
L: common_vendor.f($data.rankList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: index == 0
|
||||
}, index == 0 ? {
|
||||
b: common_assets._imports_8$1
|
||||
b: common_assets._imports_9$1
|
||||
} : {}, {
|
||||
c: index == 1
|
||||
}, index == 1 ? {
|
||||
d: common_assets._imports_9$1
|
||||
d: common_assets._imports_10$1
|
||||
} : {}, {
|
||||
e: index == 2
|
||||
}, index == 2 ? {
|
||||
f: common_assets._imports_10$1
|
||||
f: common_assets._imports_11$2
|
||||
} : {}, {
|
||||
g: index > 2
|
||||
}, index > 2 ? {
|
||||
@@ -726,14 +733,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
} : {}) : common_vendor.e({
|
||||
o: $data.selectTab == 0 || $data.selectTab == 1
|
||||
}, $data.selectTab == 0 || $data.selectTab == 1 ? {
|
||||
p: common_assets._imports_11$2,
|
||||
p: common_assets._imports_12$2,
|
||||
q: common_vendor.t(item.news_count)
|
||||
} : {}, {
|
||||
r: common_assets._imports_12$2,
|
||||
r: common_assets._imports_13$1,
|
||||
s: common_vendor.t(item.news_count),
|
||||
t: $data.selectTab == 2
|
||||
}, $data.selectTab == 2 ? {
|
||||
v: common_assets._imports_13$1,
|
||||
v: common_assets._imports_14$1,
|
||||
w: common_vendor.t(item.report_count)
|
||||
} : {}), $data.selectTab == 0 ? {
|
||||
x: common_vendor.t(item.change_pct)
|
||||
@@ -749,21 +756,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
C: index
|
||||
});
|
||||
}),
|
||||
L: $data.selectTab == 3 || $data.selectTab == 4,
|
||||
M: common_vendor.n("icon " + ($data.selectTab == 4 ? "continuousRise" : "")),
|
||||
N: $data.rankTabList[$data.selectTab].selectIcon,
|
||||
O: $data.selectTab == 0,
|
||||
P: $data.selectTab == 1,
|
||||
Q: $data.selectTab == 2,
|
||||
R: $data.selectTab == 3,
|
||||
S: $data.selectTab == 4,
|
||||
T: common_vendor.sr("rankPopup", "634c6a80-1"),
|
||||
U: common_vendor.p({
|
||||
M: $data.selectTab == 3 || $data.selectTab == 4,
|
||||
N: common_vendor.n("icon " + ($data.selectTab == 4 ? "continuousRise" : "")),
|
||||
O: $data.rankTabList[$data.selectTab].selectIcon,
|
||||
P: $data.selectTab == 0,
|
||||
Q: $data.selectTab == 1,
|
||||
R: $data.selectTab == 2,
|
||||
S: $data.selectTab == 3,
|
||||
T: $data.selectTab == 4,
|
||||
U: common_vendor.sr("rankPopup", "634c6a80-1"),
|
||||
V: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
V: common_assets._imports_12$1,
|
||||
W: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
W: common_assets._imports_12$1,
|
||||
X: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
@@ -771,29 +778,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickSortListItem(item), index)
|
||||
};
|
||||
}),
|
||||
X: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
Y: common_vendor.sr("sortTypePopup", "634c6a80-2"),
|
||||
Z: common_vendor.p({
|
||||
Y: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
Z: common_vendor.sr("sortTypePopup", "634c6a80-2"),
|
||||
aa: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent",
|
||||
animation: false
|
||||
}),
|
||||
aa: common_vendor.o(($event) => $options.clickCancel()),
|
||||
ab: common_vendor.o(($event) => $options.clickConfirm()),
|
||||
ac: common_assets._imports_0$1,
|
||||
ad: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
ae: common_vendor.t($data.selectMonth),
|
||||
af: common_vendor.o(() => {
|
||||
ab: common_vendor.o(($event) => $options.clickCancel()),
|
||||
ac: common_vendor.o(($event) => $options.clickConfirm()),
|
||||
ad: common_assets._imports_0$1,
|
||||
ae: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
af: common_vendor.t($data.selectMonth),
|
||||
ag: common_vendor.o(() => {
|
||||
}),
|
||||
ag: common_assets._imports_1$2,
|
||||
ah: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
ai: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
ah: common_assets._imports_2$3,
|
||||
ai: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
aj: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
aj: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
ak: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.date == $data.selectDateStr
|
||||
}, item.date == $data.selectDateStr ? {
|
||||
@@ -809,29 +816,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
|
||||
});
|
||||
}),
|
||||
ak: common_vendor.f($data.quickTimeList, (item, index, i0) => {
|
||||
al: common_vendor.f($data.quickTimeList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index,
|
||||
c: common_vendor.o(($event) => $options.clickQuickTimeItem(index), index)
|
||||
};
|
||||
}),
|
||||
al: common_vendor.sr("transactionDatePopup", "634c6a80-3"),
|
||||
am: common_vendor.p({
|
||||
am: common_vendor.sr("transactionDatePopup", "634c6a80-3"),
|
||||
an: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
an: common_assets._imports_13,
|
||||
ao: common_assets._imports_14,
|
||||
ap: common_assets._imports_15,
|
||||
ao: common_assets._imports_13,
|
||||
ap: common_assets._imports_14,
|
||||
aq: common_assets._imports_15,
|
||||
ar: common_assets._imports_16,
|
||||
ar: common_assets._imports_15,
|
||||
as: common_assets._imports_16,
|
||||
at: common_assets._imports_16,
|
||||
av: common_vendor.o(($event) => $options.clickLater()),
|
||||
aw: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
|
||||
ax: common_vendor.sr("vipPopup", "634c6a80-4"),
|
||||
ay: common_vendor.p({
|
||||
av: common_assets._imports_16,
|
||||
aw: common_vendor.o(($event) => $options.clickLater()),
|
||||
ax: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
|
||||
ay: common_vendor.sr("vipPopup", "634c6a80-4"),
|
||||
az: common_vendor.p({
|
||||
type: "center"
|
||||
})
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -319,7 +319,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
g: common_vendor.t($data.selectMonth),
|
||||
h: common_vendor.o((...args) => $options.monthChange && $options.monthChange(...args)),
|
||||
i: common_assets._imports_1$2,
|
||||
i: common_assets._imports_2$3,
|
||||
j: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
k: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
|
||||
@@ -250,6 +250,15 @@ const _sfc_main = {
|
||||
this.selectDateStr = monthAgoYear + "-" + (monthAgoMonth > 9 ? monthAgoMonth : "0" + monthAgoMonth) + "-" + (monthAgoDay > 9 ? monthAgoDay : "0" + monthAgoDay);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击股票名称查看个股详情
|
||||
* @param {Object} code
|
||||
*/
|
||||
clickStockName(code) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pagesStock/stockCenterDetails/stockCenterDetails?code=" + code
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取概念相关个股数据
|
||||
*/
|
||||
@@ -265,7 +274,6 @@ const _sfc_main = {
|
||||
return item.code;
|
||||
return "";
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:383", codes);
|
||||
request_api.conceptOtherDetails(this.conceptId, {
|
||||
days: 1,
|
||||
codes,
|
||||
@@ -277,10 +285,10 @@ const _sfc_main = {
|
||||
}
|
||||
return item;
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:397", "===============");
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:398", this.stockList);
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:406", "===============");
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:407", this.stockList);
|
||||
}).catch((error) => {
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:400", "=-=-=-=-=-=-=-=-=");
|
||||
common_vendor.index.__f__("log", "at pages/concept/hotStock/hotStock.vue:409", "=-=-=-=-=-=-=-=-=");
|
||||
});
|
||||
}).catch((error) => {
|
||||
});
|
||||
@@ -305,29 +313,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: common_vendor.t($data.conceptName),
|
||||
d: common_assets._imports_1$9,
|
||||
d: common_assets._imports_1$8,
|
||||
e: common_vendor.o(($event) => $options.clickDateScreen()),
|
||||
f: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
g: common_vendor.f($data.stockList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.t(item.code),
|
||||
c: item.change_percent
|
||||
c: common_vendor.o(($event) => $options.clickStockName(item.code), index),
|
||||
d: item.change_percent
|
||||
}, item.change_percent ? {
|
||||
d: common_vendor.t(item.change_percent >= 0 ? "+" + item.change_percent : item.change_percent)
|
||||
e: common_vendor.t(item.change_percent >= 0 ? "+" + item.change_percent : item.change_percent)
|
||||
} : {}, {
|
||||
e: item.isExpand
|
||||
f: item.isExpand
|
||||
}, item.isExpand ? {
|
||||
f: common_assets._imports_2$7
|
||||
g: common_assets._imports_2$8
|
||||
} : {
|
||||
g: common_assets._imports_3$6
|
||||
h: common_assets._imports_3$6
|
||||
}, {
|
||||
h: common_vendor.o(($event) => $options.clickExpandOrRetract(index), index),
|
||||
i: item.isExpand
|
||||
i: common_vendor.o(($event) => $options.clickExpandOrRetract(index), index),
|
||||
j: item.isExpand
|
||||
}, item.isExpand ? {
|
||||
j: common_vendor.t(item.reason)
|
||||
k: common_vendor.t(item.reason)
|
||||
} : {}, {
|
||||
k: index
|
||||
l: index
|
||||
});
|
||||
}),
|
||||
h: common_vendor.s("top:" + $data.listTop + "px;"),
|
||||
@@ -337,7 +346,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
l: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
m: common_vendor.t($data.selectMonth),
|
||||
n: common_vendor.o((...args) => $options.monthChange && $options.monthChange(...args)),
|
||||
o: common_assets._imports_1$2,
|
||||
o: common_assets._imports_2$3,
|
||||
p: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
q: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="0dffb7e7-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="titleScreenC fixed flex" style="{{f}}"><view class="title flex1">{{c}} - 相关个股</view><view class="screenC flex" bindtap="{{e}}"><view>时间筛选</view><image class="arrow" src="{{d}}" mode="widthFix"></image></view></view><scroll-view scroll-y class="stockList fixed" style="{{h}}"><view class="list"><view wx:for="{{g}}" wx:for-item="item" wx:key="k" class="item"><view class="stockInfoC flex" bindtap="{{item.h}}"><view class="titleCodeC"><view class="title">{{item.a}}</view><view class="code">{{item.b}}</view></view><view wx:if="{{item.c}}" class="chg flex1">{{item.d}}%</view><view wx:else class="chg flex1">-</view><view class="reasonProjectC flex"><view>REASON/项目</view><image wx:if="{{item.e}}" class="arrow expand" src="{{item.f}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.g}}" mode="widthFix"></image></view></view><view wx:if="{{item.i}}" class="reasonProjectContentC"><view class="reasonC"><text class="title">REASON:</text><text>{{item.j}}</text></view><view class="projectC"><text class="title">项目:</text><text>已进入芥末味夏威夷果仁/黑金蒜香茉莉翡翠豆两款产品</text></view></view></view></view></scroll-view><uni-popup wx:if="{{v}}" class="r" u-s="{{['d']}}" u-r="datePopup" u-i="0dffb7e7-1" bind:__l="__l" u-p="{{v}}"><view class="datePopup"><view class="btnTitleC flex"><view class="btn cancel" bindtap="{{i}}">取消</view><view class="title flex1">交易日期</view><view class="btn confirm" bindtap="{{j}}">确认</view></view><view class="yearMonthC flex"><view class="btn" bindtap="{{l}}"><image class="icon" src="{{k}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{n}}"><view>{{m}}</view></picker></view><view class="btn" bindtap="{{p}}"><image class="icon" src="{{o}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{q}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{r}}" wx:for-item="item" wx:key="f" class="item flexColumnCenter" bindtap="{{item.g}}"><block wx:if="{{item.a}}"><view class="date select">{{item.b}}</view></block><block wx:else><block wx:if="{{item.c}}"><view class="date notCurrentMonth">{{item.d}}</view></block><block wx:else><view class="date">{{item.e}}</view></block></block></view></view><view class="quickTimeC flexCenter"><view wx:for="{{s}}" wx:for-item="item" wx:key="b" class="item" bindtap="{{item.c}}">{{item.a}}</view></view></view></uni-popup></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="0dffb7e7-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="titleScreenC fixed flex" style="{{f}}"><view class="title flex1">{{c}} - 相关个股</view><view class="screenC flex" bindtap="{{e}}"><view>时间筛选</view><image class="arrow" src="{{d}}" mode="widthFix"></image></view></view><scroll-view scroll-y class="stockList fixed" style="{{h}}"><view class="list"><view wx:for="{{g}}" wx:for-item="item" wx:key="l" class="item"><view class="stockInfoC flex" bindtap="{{item.i}}"><view class="titleCodeC" catchtap="{{item.c}}"><view class="title">{{item.a}}</view><view class="code">{{item.b}}</view></view><view wx:if="{{item.d}}" class="chg flex1">{{item.e}}%</view><view wx:else class="chg flex1">-</view><view class="reasonProjectC flex"><view>REASON</view><image wx:if="{{item.f}}" class="arrow expand" src="{{item.g}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.h}}" mode="widthFix"></image></view></view><view wx:if="{{item.j}}" class="reasonProjectContentC"><view class="reasonC"><text class="title">REASON:</text><text>{{item.k}}</text></view></view></view></view></scroll-view><uni-popup wx:if="{{v}}" class="r" u-s="{{['d']}}" u-r="datePopup" u-i="0dffb7e7-1" bind:__l="__l" u-p="{{v}}"><view class="datePopup"><view class="btnTitleC flex"><view class="btn cancel" bindtap="{{i}}">取消</view><view class="title flex1">交易日期</view><view class="btn confirm" bindtap="{{j}}">确认</view></view><view class="yearMonthC flex"><view class="btn" bindtap="{{l}}"><image class="icon" src="{{k}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{n}}"><view>{{m}}</view></picker></view><view class="btn" bindtap="{{p}}"><image class="icon" src="{{o}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{q}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{r}}" wx:for-item="item" wx:key="f" class="item flexColumnCenter" bindtap="{{item.g}}"><block wx:if="{{item.a}}"><view class="date select">{{item.b}}</view></block><block wx:else><block wx:if="{{item.c}}"><view class="date notCurrentMonth">{{item.d}}</view></block><block wx:else><view class="date">{{item.e}}</view></block></block></view></view><view class="quickTimeC flexCenter"><view wx:for="{{s}}" wx:for-item="item" wx:key="b" class="item" bindtap="{{item.c}}">{{item.a}}</view></view></view></uni-popup></view>
|
||||
@@ -11,6 +11,17 @@ const _sfc_main = {
|
||||
filteredData: [],
|
||||
currentDate: "",
|
||||
// 最终要赋值的日期
|
||||
searchResultTop: "",
|
||||
//搜索结果
|
||||
contentTop: "",
|
||||
keywords: "",
|
||||
//搜索关键字
|
||||
searchShow: false,
|
||||
//是否展示搜索结果
|
||||
searchResultList: [],
|
||||
//搜索结果
|
||||
selectSearchStockInfo: null,
|
||||
//选中的搜索股票信息
|
||||
topLists: [
|
||||
{
|
||||
title: "超大盘股",
|
||||
@@ -30,10 +41,57 @@ const _sfc_main = {
|
||||
},
|
||||
onLoad(e) {
|
||||
this.currentDate = e.currentDate;
|
||||
this.searchResultTop = this.navH + (20 + 70) / 750 * common_vendor.inject("windowWidth");
|
||||
this.contentTop = this.navH + (20 + 70 + 25) / 750 * common_vendor.inject("windowWidth");
|
||||
this.marketHeatmap();
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 点击搜索
|
||||
*/
|
||||
clickSearch() {
|
||||
if (this.keywords) {
|
||||
this.getSearchStockInfoListData();
|
||||
} else
|
||||
this.selectSearchStockInfo = null;
|
||||
},
|
||||
/**
|
||||
* 点击搜索结果背景
|
||||
*/
|
||||
clickSearchResultBg() {
|
||||
this.searchShow = false;
|
||||
},
|
||||
/**
|
||||
* 点击搜索结果列表项
|
||||
*/
|
||||
clickSearchResultListItem(item) {
|
||||
this.selectSearchStockInfo = item;
|
||||
this.searchShow = false;
|
||||
this.getStockBasicInfoData();
|
||||
},
|
||||
/**
|
||||
* 根据输入内容获取搜索列表项
|
||||
*/
|
||||
getSearchStockInfoListData() {
|
||||
let param = { q: this.keywords, limit: 10 };
|
||||
request_api.searchStockInfo(param).then((res) => {
|
||||
this.searchResultList = res.data;
|
||||
this.searchShow = this.searchResultList.length > 0;
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取股票基本信息
|
||||
*/
|
||||
getStockBasicInfoData() {
|
||||
let code = this.stockCode;
|
||||
if (this.selectSearchStockInfo) {
|
||||
code = this.selectSearchStockInfo.stock_code;
|
||||
}
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pagesStock/stockCenterDetails/stockCenterDetails?code=" + code
|
||||
});
|
||||
},
|
||||
handleTypeClick(index) {
|
||||
this.list2Index = index;
|
||||
this.marketHeatmap();
|
||||
@@ -66,9 +124,11 @@ const _sfc_main = {
|
||||
},
|
||||
marketHeatmap() {
|
||||
let param = {
|
||||
limit: 500,
|
||||
date: this.currentDate
|
||||
limit: 500
|
||||
};
|
||||
if (this.currentDate && this.currentDate !== "undefined" && this.currentDate.trim() !== "") {
|
||||
param.date = this.currentDate;
|
||||
}
|
||||
request_api.marketHeatmap(param).then((res) => {
|
||||
this.allStockData = res.data || [];
|
||||
this.filterStockByMarketCap();
|
||||
@@ -113,18 +173,30 @@ if (!Math) {
|
||||
_easycom_navBar();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: "详情",
|
||||
hideNavBg: true
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: common_assets._imports_1,
|
||||
d: common_vendor.o(($event) => _ctx.clickSearch()),
|
||||
e: _ctx.keywords,
|
||||
f: common_vendor.o(($event) => _ctx.keywords = $event.detail.value),
|
||||
g: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
h: common_vendor.f($data.topLists, (item, index, i0) => {
|
||||
d: common_vendor.o([($event) => $data.keywords = $event.detail.value, ($event) => $options.clickSearch()]),
|
||||
e: $data.keywords,
|
||||
f: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
g: $data.searchShow
|
||||
}, $data.searchShow ? {
|
||||
h: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.stock_code),
|
||||
b: common_vendor.t(item.stock_name),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSearchResultListItem(item), index)
|
||||
};
|
||||
}),
|
||||
i: common_vendor.s("top:" + $data.searchResultTop + "px;"),
|
||||
j: common_vendor.o(($event) => $options.clickSearchResultBg())
|
||||
} : {}, {
|
||||
k: common_vendor.f($data.topLists, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: $data.list2Index == index ? "#BB8520" : "#070707",
|
||||
@@ -135,13 +207,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: $data.list2Index == index ? "1rpx solid #F2C369" : "none"
|
||||
};
|
||||
}),
|
||||
i: common_vendor.f(["股票名称", "涨跌幅", "市值", "成交额", "行业"], (item, index, i0) => {
|
||||
l: common_vendor.f(["股票名称", "涨跌幅", "市值", "成交额", "行业"], (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
j: common_vendor.f($data.filteredData, (obj, j, i0) => {
|
||||
m: common_vendor.f($data.filteredData, (obj, j, i0) => {
|
||||
return {
|
||||
a: common_vendor.f($options.getTableItem(obj), (item, index, i1) => {
|
||||
return common_vendor.e({
|
||||
@@ -158,8 +230,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
c: j % 2 == 0 ? "#fff" : "#FAFAFC"
|
||||
};
|
||||
}),
|
||||
k: common_vendor.s("top:" + $data.contentTop + "px;")
|
||||
};
|
||||
n: common_vendor.s("top:" + $data.contentTop + "px;")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="1d94e03e-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="searchC fixed flex" style="{{g}}"><image class="icon" src="{{c}}" mode="widthFix"></image><input class="flex1" type="text" placeholder="输入股票代码或名称" placeholder-style="color:#eeeeee" confirm-type="search" bindconfirm="{{d}}" value="{{e}}" bindinput="{{f}}"/></view><scroll-view scroll-y class="stockDetailsC fixed" style="{{k}}"><view><view style="display:grid;grid-template-columns:repeat(3, 1fr);gap:16rpx;margin:0 20rpx"><view wx:for="{{h}}" wx:for-item="item" wx:key="f" bindtap="{{item.e}}" style="{{'padding:12rpx' + ';' + ('border-bottom:' + item.g)}}"><view style="{{'font-size:24rpx;color:#070707;font-weight:bold;text-align:center' + ';' + ('color:' + item.b)}}">{{item.a}}</view><view style="{{'font-size:20rpx;font-weight:400;text-align:center' + ';' + ('color:' + item.d)}}">{{item.c}}</view></view></view><view style="height:1rpx;margin:0 20rpx;background-color:#E7E7E7"></view><view style="display:grid;grid-template-columns:repeat(5, 1fr);gap:10rpx;background-color:#FAFAFC;line-height:60rpx;margin:0 20rpx;margin-top:20rpx"><view wx:for="{{i}}" wx:for-item="item" wx:key="b" style="color:#666666;font-size:20rpx;font-weight:500;text-align:center">{{item.a}}</view></view><view wx:for="{{j}}" wx:for-item="obj" bindtap="{{obj.b}}" style="{{'display:grid;grid-template-columns:repeat(5, 1fr);gap:10rpx;min-height:60rpx;margin:0 20rpx' + ';' + ('background-color:' + obj.c)}}"><view wx:for="{{obj.a}}" wx:for-item="item" wx:key="d" style="{{'padding:10rpx 0;color:#666666;font-size:20rpx;font-weight:500;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column' + ';' + ('color:' + item.e)}}"><view>{{item.a}}</view><view wx:if="{{item.b}}" style="color:#666666;font-size:20rpx;font-weight:500">{{item.c}}</view></view></view><view style="height:25rpx"></view></view></scroll-view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="1d94e03e-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="searchC fixed flex" style="{{f}}"><image class="icon" src="{{c}}" mode="widthFix"></image><input class="flex1" type="text" placeholder="输入股票代码或名称" placeholder-style="color:#eeeeee" confirm-type="search" bindinput="{{d}}" value="{{e}}"/></view><view wx:if="{{g}}" class="searchResultList fixed" style="{{i}}" bindtap="{{j}}"><view class="list"><view wx:for="{{h}}" wx:for-item="item" wx:key="c" class="item" catchtap="{{item.d}}">{{item.a}} {{item.b}}</view></view></view><scroll-view scroll-y class="stockDetailsC fixed" style="{{n}}"><view><view style="display:grid;grid-template-columns:repeat(3, 1fr);gap:16rpx;margin:0 20rpx"><view wx:for="{{k}}" wx:for-item="item" wx:key="f" bindtap="{{item.e}}" style="{{'padding:12rpx' + ';' + ('border-bottom:' + item.g)}}"><view style="{{'font-size:24rpx;color:#070707;font-weight:bold;text-align:center' + ';' + ('color:' + item.b)}}">{{item.a}}</view><view style="{{'font-size:20rpx;font-weight:400;text-align:center' + ';' + ('color:' + item.d)}}">{{item.c}}</view></view></view><view style="height:1rpx;margin:0 20rpx;background-color:#E7E7E7"></view><view style="display:grid;grid-template-columns:repeat(5, 1fr);gap:10rpx;background-color:#FAFAFC;line-height:60rpx;margin:0 20rpx;margin-top:20rpx"><view wx:for="{{l}}" wx:for-item="item" wx:key="b" style="color:#666666;font-size:20rpx;font-weight:500;text-align:center">{{item.a}}</view></view><view wx:for="{{m}}" wx:for-item="obj" bindtap="{{obj.b}}" style="{{'display:grid;grid-template-columns:repeat(5, 1fr);gap:10rpx;min-height:60rpx;margin:0 20rpx' + ';' + ('background-color:' + obj.c)}}"><view wx:for="{{obj.a}}" wx:for-item="item" wx:key="d" style="{{'padding:10rpx 0;color:#666666;font-size:20rpx;font-weight:500;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column' + ';' + ('color:' + item.e)}}"><view>{{item.a}}</view><view wx:if="{{item.b}}" style="color:#666666;font-size:20rpx;font-weight:500">{{item.c}}</view></view></view><view style="height:25rpx"></view></view></scroll-view></view>
|
||||
@@ -34,3 +34,22 @@ page {
|
||||
background-color: white;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.searchResultList {
|
||||
background-color: #00000080;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0 25rpx;
|
||||
z-index: 20;
|
||||
}
|
||||
.searchResultList .list {
|
||||
background-color: white;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.searchResultList .list .item {
|
||||
padding: 0 42rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
@@ -137,12 +137,26 @@ const _sfc_main = {
|
||||
formattedAvg: 0,
|
||||
upCount: 0,
|
||||
downCount: 0,
|
||||
limit_up_ratio: 0
|
||||
limit_up_ratio: 0,
|
||||
searchResultTop: "",
|
||||
//搜索结果
|
||||
contentTop: "",
|
||||
keywords: "",
|
||||
//搜索关键字
|
||||
searchShow: false,
|
||||
//是否展示搜索结果
|
||||
searchResultList: [],
|
||||
//搜索结果
|
||||
selectSearchStockInfo: null,
|
||||
//选中的搜索股票信息
|
||||
isShowTime: false
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.activeIndex = e.index;
|
||||
this.searchResultTop = this.navH + (20 + 70) / 750 * common_vendor.inject("windowWidth");
|
||||
this.contentTop = this.navH + (20 + 70 + 25) / 750 * common_vendor.inject("windowWidth");
|
||||
this.conceptsDailyTop();
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const year = now.getFullYear();
|
||||
const month = (now.getMonth() + 1).toString().padStart(2, "0");
|
||||
@@ -150,11 +164,76 @@ const _sfc_main = {
|
||||
this.currentDate = `${year}-${month}-${day}`;
|
||||
},
|
||||
onShow() {
|
||||
this.isShowTime = false;
|
||||
this.marketHeatmap();
|
||||
this.marketStatistics();
|
||||
this.marketHotspotListOverview();
|
||||
},
|
||||
methods: {
|
||||
truncateText(text, length) {
|
||||
if (!text)
|
||||
return "";
|
||||
return text.length > length ? text.substring(0, length) + "..." : text;
|
||||
},
|
||||
/**
|
||||
* 点击搜索
|
||||
*/
|
||||
clickSearch() {
|
||||
if (this.keywords) {
|
||||
this.getSearchStockInfoListData();
|
||||
} else
|
||||
this.selectSearchStockInfo = null;
|
||||
},
|
||||
/**
|
||||
* 点击搜索结果背景
|
||||
*/
|
||||
clickSearchResultBg() {
|
||||
this.searchShow = false;
|
||||
},
|
||||
/**
|
||||
* 点击搜索结果列表项
|
||||
*/
|
||||
clickSearchResultListItem(item) {
|
||||
this.selectSearchStockInfo = item;
|
||||
this.searchShow = false;
|
||||
this.getStockBasicInfoData();
|
||||
},
|
||||
/**
|
||||
* 根据输入内容获取搜索列表项
|
||||
*/
|
||||
getSearchStockInfoListData() {
|
||||
let param = { q: this.keywords, limit: 10 };
|
||||
request_api.searchStockInfo(param).then((res) => {
|
||||
this.searchResultList = res.data;
|
||||
this.searchShow = this.searchResultList.length > 0;
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取股票基本信息
|
||||
*/
|
||||
getStockBasicInfoData() {
|
||||
let code = this.stockCode;
|
||||
if (this.selectSearchStockInfo) {
|
||||
code = this.selectSearchStockInfo.stock_code;
|
||||
}
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pagesStock/stockCenterDetails/stockCenterDetails?code=" + code
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取股票当前市场价格信息
|
||||
*/
|
||||
getQuoteDetailsData() {
|
||||
let code = this.stockCode;
|
||||
if (this.selectSearchStockInfo) {
|
||||
code = this.selectSearchStockInfo.stock_code;
|
||||
}
|
||||
quoteDetailsInfo(code).then((res) => {
|
||||
this.quoteDetailsInfo = res.data;
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
formatAlpha(value) {
|
||||
if (value === null || value === void 0 || isNaN(Number(value))) {
|
||||
return "0.0";
|
||||
@@ -209,8 +288,10 @@ const _sfc_main = {
|
||||
let param = {
|
||||
limit: 500
|
||||
};
|
||||
if (currentDate && currentDate !== "undefined" && currentDate.trim() !== "") {
|
||||
param.date = currentDate;
|
||||
if (this.isShowTime) {
|
||||
if (currentDate && currentDate !== "undefined" && currentDate.trim() !== "") {
|
||||
param.date = currentDate;
|
||||
}
|
||||
}
|
||||
request_api.marketHeatmap(param).then((res) => {
|
||||
this.topLists[2].value = res.statistics.rising_count + "/" + res.statistics.falling_count;
|
||||
@@ -332,9 +413,15 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
moreAction() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/geGuCenter/detail?currentDate=" + this.currentDate
|
||||
});
|
||||
if (this.isShowTime) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/geGuCenter/detail?currentDate=" + this.currentDate
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/geGuCenter/detail"
|
||||
});
|
||||
}
|
||||
},
|
||||
allAction(index) {
|
||||
if (index == 1) {
|
||||
@@ -354,7 +441,7 @@ const _sfc_main = {
|
||||
},
|
||||
handleDateChange(date) {
|
||||
this.selectedDate = date;
|
||||
common_vendor.index.__f__("log", "at pages/geGuCenter/geGuCenter.vue:719", "选中的日期:", date);
|
||||
common_vendor.index.__f__("log", "at pages/geGuCenter/geGuCenter.vue:828", "选中的日期:", date);
|
||||
},
|
||||
confirmAction(index) {
|
||||
if (index == 1) {
|
||||
@@ -362,7 +449,7 @@ const _sfc_main = {
|
||||
} else if (index == 2) {
|
||||
if (this.selectedDate) {
|
||||
this.currentDate = this.selectedDate;
|
||||
common_vendor.index.__f__("log", "at pages/geGuCenter/geGuCenter.vue:728", "最终确认的日期:", this.currentDate);
|
||||
common_vendor.index.__f__("log", "at pages/geGuCenter/geGuCenter.vue:837", "最终确认的日期:", this.currentDate);
|
||||
} else {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const year = now.getFullYear();
|
||||
@@ -370,6 +457,7 @@ const _sfc_main = {
|
||||
const day = now.getDate().toString().padStart(2, "0");
|
||||
this.currentDate = `${year}-${month}-${day}`;
|
||||
}
|
||||
this.isShowTime = true;
|
||||
this.marketHeatmap(this.currentDate);
|
||||
this.marketStatistics();
|
||||
this.marketHotspotListOverview();
|
||||
@@ -381,7 +469,7 @@ const _sfc_main = {
|
||||
this.formattedAvg = item.formattedAvg, this.upCount = item.upCount, this.downCount = item.downCount, this.limit_up_ratio = item.limit_up_ratio, this.conceptStocksDetails(item.concept_id);
|
||||
},
|
||||
conceptStocksDetails(concept_id) {
|
||||
common_vendor.index.__f__("log", "at pages/geGuCenter/geGuCenter.vue:754", "concept_id", concept_id);
|
||||
common_vendor.index.__f__("log", "at pages/geGuCenter/geGuCenter.vue:864", "concept_id", concept_id);
|
||||
request_api.conceptStocks(concept_id, {}).then((res) => {
|
||||
if (res.data && res.data.stocks) {
|
||||
let rawData = res.data.stocks;
|
||||
@@ -391,7 +479,7 @@ const _sfc_main = {
|
||||
return bValue - aValue;
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.__f__("warn", "at pages/geGuCenter/geGuCenter.vue:773", "接口返回数据格式异常", res);
|
||||
common_vendor.index.__f__("warn", "at pages/geGuCenter/geGuCenter.vue:883", "接口返回数据格式异常", res);
|
||||
}
|
||||
}).catch((error) => {
|
||||
});
|
||||
@@ -428,7 +516,7 @@ if (!Math) {
|
||||
(_easycom_navBar + _easycom_uni_popup + _easycom_LCCalendar2)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: "个股中心",
|
||||
hideNavBg: true,
|
||||
@@ -436,11 +524,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: common_assets._imports_1,
|
||||
d: common_vendor.o(($event) => _ctx.clickSearch()),
|
||||
e: _ctx.keywords,
|
||||
f: common_vendor.o(($event) => _ctx.keywords = $event.detail.value),
|
||||
g: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
h: common_vendor.f($data.topLists, (item, index, i0) => {
|
||||
d: common_vendor.o([($event) => $data.keywords = $event.detail.value, ($event) => $options.clickSearch()]),
|
||||
e: $data.keywords,
|
||||
f: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
g: $data.searchShow
|
||||
}, $data.searchShow ? {
|
||||
h: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.stock_code),
|
||||
b: common_vendor.t(item.stock_name),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSearchResultListItem(item), index)
|
||||
};
|
||||
}),
|
||||
i: common_vendor.s("top:" + $data.searchResultTop + "px;"),
|
||||
j: common_vendor.o(($event) => $options.clickSearchResultBg())
|
||||
} : {}, {
|
||||
k: common_vendor.f($data.topLists, (item, index, i0) => {
|
||||
return {
|
||||
a: item.backIcon,
|
||||
b: common_vendor.t(item.title),
|
||||
@@ -449,7 +549,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: index
|
||||
};
|
||||
}),
|
||||
i: common_vendor.f($data.topLists2, (item, index, i0) => {
|
||||
l: common_vendor.f($data.topLists2, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: $data.list2Index == index ? "#BB8520" : "#070707",
|
||||
@@ -461,13 +561,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
h: `1rpx solid ${$data.list2Index == index ? "#F2C369" : "#D2D2D2"}`
|
||||
};
|
||||
}),
|
||||
j: common_vendor.f(["股票名称", "涨跌幅", "市值", "成交额", "行业"], (item, index, i0) => {
|
||||
m: common_vendor.f(["股票名称", "涨跌幅", "市值", "成交额", "行业"], (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
k: common_vendor.f($data.filteredData, (obj, j, i0) => {
|
||||
n: common_vendor.f($data.filteredData, (obj, j, i0) => {
|
||||
return {
|
||||
a: common_vendor.f($options.getTableItem(obj), (item, index, i1) => {
|
||||
return common_vendor.e({
|
||||
@@ -484,20 +584,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
c: j % 2 == 0 ? "#fff" : "#FAFAFC"
|
||||
};
|
||||
}),
|
||||
l: common_assets._imports_1$2,
|
||||
m: common_vendor.o((...args) => $options.moreAction && $options.moreAction(...args)),
|
||||
n: common_assets._imports_3$7,
|
||||
o: common_assets._imports_4$1,
|
||||
p: common_vendor.o(($event) => $options.allAction(1)),
|
||||
q: common_vendor.t($data.currentDate),
|
||||
r: common_assets._imports_4$1,
|
||||
s: common_vendor.o(($event) => $options.allAction(2)),
|
||||
t: common_assets._imports_3$7,
|
||||
v: common_vendor.f($data.marketAlertsList, (item, index, i0) => {
|
||||
o: common_assets._imports_2$3,
|
||||
p: common_vendor.o((...args) => $options.moreAction && $options.moreAction(...args)),
|
||||
q: common_assets._imports_3$7,
|
||||
r: common_vendor.t($data.currentDate),
|
||||
s: common_assets._imports_4$1,
|
||||
t: common_vendor.o(($event) => $options.allAction(2)),
|
||||
v: common_assets._imports_3$7,
|
||||
w: common_vendor.f($data.marketAlertsList, (item, index, i0) => {
|
||||
var _a, _b, _c, _d;
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.time),
|
||||
b: common_vendor.t(item.concept_name),
|
||||
b: common_vendor.t($options.truncateText(item.concept_name, 5)),
|
||||
c: ((_a = $data.alertTypeConfig[item.alert_type]) == null ? void 0 : _a.filter) || "",
|
||||
d: common_vendor.t(((_b = $data.alertTypeConfig[item.alert_type]) == null ? void 0 : _b.text) || "异动"),
|
||||
e: ((_c = $data.alertTypeConfig[item.alert_type]) == null ? void 0 : _c.color) || "#FF7A45",
|
||||
@@ -517,40 +615,40 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
q: common_vendor.o(($event) => $options.bkydAction(item), index)
|
||||
});
|
||||
}),
|
||||
w: common_assets._imports_5$3,
|
||||
x: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
y: common_vendor.o(($event) => $options.closeAction(1)),
|
||||
z: common_vendor.o(($event) => $options.confirmAction(1)),
|
||||
A: common_vendor.f($data.typeList, (item, index, i0) => {
|
||||
x: common_assets._imports_5$3,
|
||||
y: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
z: common_vendor.o(($event) => $options.closeAction(1)),
|
||||
A: common_vendor.o(($event) => $options.confirmAction(1)),
|
||||
B: common_vendor.f($data.typeList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.backIcon,
|
||||
b: common_vendor.t(item.title),
|
||||
c: index
|
||||
};
|
||||
}),
|
||||
B: common_vendor.sr("typePopup", "c7f5c964-1"),
|
||||
C: common_vendor.p({
|
||||
C: common_vendor.sr("typePopup", "c7f5c964-1"),
|
||||
D: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
D: common_vendor.o(($event) => $options.closeAction(2)),
|
||||
E: common_vendor.o(($event) => $options.confirmAction(2)),
|
||||
F: common_vendor.o($options.handleDateChange),
|
||||
G: common_vendor.sr("datePopup", "c7f5c964-2"),
|
||||
H: common_vendor.p({
|
||||
E: common_vendor.o(($event) => $options.closeAction(2)),
|
||||
F: common_vendor.o(($event) => $options.confirmAction(2)),
|
||||
G: common_vendor.o($options.handleDateChange),
|
||||
H: common_vendor.sr("datePopup", "c7f5c964-2"),
|
||||
I: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
I: common_assets._imports_8,
|
||||
J: common_vendor.o(($event) => $options.closeAction(3)),
|
||||
K: common_vendor.t($data.formattedAvg),
|
||||
L: Number($data.formattedAvg) > 0 ? "#EC3440" : "#01AB5D",
|
||||
M: common_vendor.t($data.upCount),
|
||||
N: $data.upCount > 0 ? "#EC3440" : "#888888",
|
||||
O: common_vendor.t($data.downCount),
|
||||
P: $data.downCount > 0 ? "#01AB5D" : "#888888",
|
||||
Q: common_vendor.t($options.formatLimitUpRatio($data.limit_up_ratio, 0)),
|
||||
R: common_vendor.f($data.conceptStocksList, (item, index, i0) => {
|
||||
J: common_assets._imports_6$1,
|
||||
K: common_vendor.o(($event) => $options.closeAction(3)),
|
||||
L: common_vendor.t($data.formattedAvg),
|
||||
M: Number($data.formattedAvg) > 0 ? "#EC3440" : "#01AB5D",
|
||||
N: common_vendor.t($data.upCount),
|
||||
O: $data.upCount > 0 ? "#EC3440" : "#888888",
|
||||
P: common_vendor.t($data.downCount),
|
||||
Q: $data.downCount > 0 ? "#01AB5D" : "#888888",
|
||||
R: common_vendor.t($options.formatLimitUpRatio($data.limit_up_ratio, 0)),
|
||||
S: common_vendor.f($data.conceptStocksList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.t(item.code),
|
||||
@@ -560,12 +658,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: index % 2 == 0 ? "#fff" : "#FAFAFC"
|
||||
};
|
||||
}),
|
||||
S: common_vendor.sr("detailPopup", "c7f5c964-4"),
|
||||
T: common_vendor.p({
|
||||
T: common_vendor.sr("detailPopup", "c7f5c964-4"),
|
||||
U: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -41,3 +41,22 @@ page {
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
.searchResultList {
|
||||
background-color: #00000080;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0 25rpx;
|
||||
z-index: 20;
|
||||
}
|
||||
.searchResultList .list {
|
||||
background-color: white;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.searchResultList .list .item {
|
||||
padding: 0 42rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
@@ -114,6 +114,9 @@ const _sfc_main = {
|
||||
this.getEventCommentListData();
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getMemberStatusData();
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 复制标题
|
||||
@@ -194,6 +197,18 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击股票名称查看个股详情
|
||||
* @param {Object} code
|
||||
*/
|
||||
clickStockName(code) {
|
||||
if (code.indexOf(".") > -1) {
|
||||
code = code.split(".")[0];
|
||||
}
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pagesStock/stockCenterDetails/stockCenterDetails?code=" + code
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 点击查看股票详情
|
||||
*/
|
||||
@@ -421,6 +436,25 @@ const _sfc_main = {
|
||||
this.commentList = res.data.posts;
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取会员状态
|
||||
*/
|
||||
getMemberStatusData() {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
if (!token) {
|
||||
return;
|
||||
}
|
||||
request_api.membershipStatus().then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.memberInfo = res.data;
|
||||
} else
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -475,18 +509,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t(item.stock_name),
|
||||
b: common_vendor.t(item.stock_code),
|
||||
c: common_vendor.sr("chartRef" + index, "6e1a61f1-1-" + i0, {
|
||||
c: common_vendor.o(($event) => $options.clickStockName(item.stock_code), index),
|
||||
d: common_vendor.sr("chartRef" + index, "6e1a61f1-1-" + i0, {
|
||||
"f": 1
|
||||
}),
|
||||
d: "chartRef" + index,
|
||||
e: "6e1a61f1-1-" + i0,
|
||||
f: common_vendor.t(item.trade_data ? item.trade_data.open_price : ""),
|
||||
g: common_vendor.t(item.trade_data ? item.trade_data.latest_price : ""),
|
||||
h: common_vendor.t(item.trade_data ? item.trade_data.change_pct : ""),
|
||||
i: common_vendor.n("chg flex1 " + ($data.getRateUpOrDown(item.trade_data ? item.trade_data.change_pct : "") ? "down" : "up")),
|
||||
j: common_vendor.t(item.relation_desc),
|
||||
k: index,
|
||||
l: common_vendor.o(($event) => $options.clickStockItem(item.stock_code), index)
|
||||
e: "chartRef" + index,
|
||||
f: "6e1a61f1-1-" + i0,
|
||||
g: common_vendor.t(item.trade_data ? item.trade_data.open_price : ""),
|
||||
h: common_vendor.t(item.trade_data ? item.trade_data.latest_price : ""),
|
||||
i: common_vendor.t(item.trade_data ? item.trade_data.change_pct : ""),
|
||||
j: common_vendor.n("chg flex1 " + ($data.getRateUpOrDown(item.trade_data ? item.trade_data.change_pct : "") ? "down" : "up")),
|
||||
k: common_vendor.t(item.relation_desc),
|
||||
l: index,
|
||||
m: common_vendor.o(($event) => $options.clickStockItem(item.stock_code), index)
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
@@ -506,7 +541,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.n("stockNum " + ($data.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
|
||||
} : {}, {
|
||||
h: common_vendor.t(item.description)
|
||||
}, $data.memberInfo && $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro" ? {
|
||||
}, $data.memberInfo && $data.memberInfo.is_member && ($data.memberInfo.subscription_type == "pro" || $data.memberInfo.subscription_type == "max") ? {
|
||||
i: common_vendor.f(item.stocks.slice(0, 3), (sitem, sindex, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(sitem.name),
|
||||
@@ -516,7 +551,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
j: common_vendor.t(item.stock_count - 3),
|
||||
k: common_vendor.o(($event) => $options.clickStockMore(item), index)
|
||||
} : {
|
||||
l: common_assets._imports_1$6,
|
||||
l: common_assets._imports_1$3,
|
||||
m: common_vendor.t(item.stock_count),
|
||||
n: common_vendor.o(($event) => $options.clickNotVip(), index)
|
||||
}, {
|
||||
@@ -526,8 +561,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
r: common_vendor.o(($event) => $options.clickConceptItem(item.concept), index)
|
||||
});
|
||||
}),
|
||||
p: $data.memberInfo && $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro",
|
||||
q: common_assets._imports_1$3
|
||||
p: $data.memberInfo && $data.memberInfo.is_member && ($data.memberInfo.subscription_type == "pro" || $data.memberInfo.subscription_type == "max"),
|
||||
q: common_assets._imports_1$2
|
||||
} : {}, {
|
||||
r: $data.selectCategory == 2
|
||||
}, $data.selectCategory == 2 ? {
|
||||
@@ -569,13 +604,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}) : {}, {
|
||||
C: $data.eventDetails
|
||||
}, $data.eventDetails ? {
|
||||
D: common_assets._imports_8$2,
|
||||
D: common_assets._imports_8$1,
|
||||
E: common_vendor.t($data.eventDetails.view_count),
|
||||
F: common_assets._imports_9$2,
|
||||
G: common_vendor.t($data.eventDetails.follower_count),
|
||||
H: common_vendor.o(($event) => $options.clickFollow())
|
||||
} : {}, {
|
||||
I: common_assets._imports_8,
|
||||
I: common_assets._imports_6$1,
|
||||
J: common_vendor.o(($event) => $options.closeCommentPopup()),
|
||||
K: common_vendor.f($data.commentList, (item, index, i0) => {
|
||||
return {
|
||||
@@ -602,7 +637,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
["mask-background-color"]: "transparent",
|
||||
animation: false
|
||||
}),
|
||||
S: common_assets._imports_8,
|
||||
S: common_assets._imports_6$1,
|
||||
T: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
|
||||
U: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -54,9 +54,7 @@ const _sfc_main = {
|
||||
data: [],
|
||||
boundaryGap: false,
|
||||
axisLine: { onZero: false },
|
||||
splitLine: { show: false },
|
||||
min: "dataMin",
|
||||
max: ""
|
||||
splitLine: { show: false }
|
||||
},
|
||||
yAxis: {
|
||||
scale: true,
|
||||
@@ -64,20 +62,6 @@ const _sfc_main = {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
dataZoom: [
|
||||
{
|
||||
type: "inside",
|
||||
start: 50,
|
||||
end: 100
|
||||
},
|
||||
{
|
||||
show: true,
|
||||
type: "slider",
|
||||
top: "90%",
|
||||
start: 50,
|
||||
end: 100
|
||||
}
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: "日K",
|
||||
@@ -118,7 +102,8 @@ const _sfc_main = {
|
||||
type: "category",
|
||||
scale: true,
|
||||
axisLabel: {
|
||||
customValues: ["09:30", "10:00", "10:30", "11:00", "11:30", "13:00", "13:30", "14:00", "14:30", "15:00"]
|
||||
customValues: ["09:30", "10:00", "10:30", "11:00", "11:30", "13:00", "13:30", "14:00", "14:30", "15:00"],
|
||||
fontSize: 9
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
@@ -173,7 +158,7 @@ const _sfc_main = {
|
||||
methods: {
|
||||
async init() {
|
||||
const chart = await this.$refs.chartRef.init(echarts);
|
||||
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:238", chart);
|
||||
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:223", chart);
|
||||
if (this.selectCategory == 0) {
|
||||
chart.setOption(this.option1);
|
||||
} else
|
||||
|
||||
@@ -193,7 +193,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
n: index
|
||||
});
|
||||
}),
|
||||
o: common_assets._imports_1$3
|
||||
o: common_assets._imports_1$2
|
||||
} : {}, {
|
||||
p: common_vendor.s("top:" + $data.contentTop + "px;")
|
||||
}) : {});
|
||||
|
||||
@@ -155,10 +155,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
b: common_vendor.s("margin-top:" + $data.contentTop + "px;"),
|
||||
c: common_assets._imports_0$2,
|
||||
d: common_assets._imports_1$8,
|
||||
d: common_assets._imports_1$7,
|
||||
e: $data.mobile,
|
||||
f: common_vendor.o(($event) => $data.mobile = $event.detail.value),
|
||||
g: common_assets._imports_2$6,
|
||||
g: common_assets._imports_2$7,
|
||||
h: $data.code,
|
||||
i: common_vendor.o(($event) => $data.code = $event.detail.value),
|
||||
j: common_vendor.t($data.getCode ? $data.countdown > 0 ? $data.countdown + "s" : "重新获取验证码" : "获取验证码"),
|
||||
|
||||
@@ -173,7 +173,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
i: common_vendor.t($data.mobile),
|
||||
j: common_vendor.o((...args) => $options.getPhoneNumData && $options.getPhoneNumData(...args)),
|
||||
k: common_vendor.t($data.sex),
|
||||
l: common_assets._imports_2$5,
|
||||
l: common_assets._imports_2$6,
|
||||
m: $data.sexList,
|
||||
n: common_vendor.o((...args) => $options.sexChange && $options.sexChange(...args)),
|
||||
o: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
|
||||
20
unpackage/dist/dev/mp-weixin/pages/mine/mine.js
vendored
20
unpackage/dist/dev/mp-weixin/pages/mine/mine.js
vendored
@@ -178,12 +178,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
q: common_vendor.t($data.userInfo.statistics.likes_count),
|
||||
r: common_vendor.o(($event) => $options.clickNumItem(2))
|
||||
} : {}, {
|
||||
s: $data.memberInfo && !$data.memberInfo.is_member
|
||||
}, $data.memberInfo && !$data.memberInfo.is_member ? {
|
||||
t: common_assets._imports_2$4,
|
||||
v: common_vendor.o(($event) => $options.clickVip())
|
||||
s: common_assets._imports_2$5,
|
||||
t: $data.memberInfo && $data.memberInfo.is_member
|
||||
}, $data.memberInfo && $data.memberInfo.is_member ? {
|
||||
v: common_vendor.t($data.memberInfo.subscription_type),
|
||||
w: common_vendor.t($data.memberInfo.member_expire_date)
|
||||
} : {}, {
|
||||
w: common_vendor.f($data.menuList, (item, index, i0) => {
|
||||
x: common_vendor.o(($event) => $options.clickVip()),
|
||||
y: common_vendor.f($data.menuList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.title),
|
||||
@@ -191,10 +193,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickMenuItem(item.url, index), index)
|
||||
};
|
||||
}),
|
||||
x: common_assets._imports_3$2,
|
||||
y: common_assets._imports_4$3,
|
||||
z: common_vendor.sr("popup", "dd5840e4-0"),
|
||||
A: common_vendor.p({
|
||||
z: common_assets._imports_3$2,
|
||||
A: common_assets._imports_4$3,
|
||||
B: common_vendor.sr("popup", "dd5840e4-0"),
|
||||
C: common_vendor.p({
|
||||
type: "center"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view wx:if="{{s}}" class="vipC relative" bindtap="{{v}}"><image class="icon" src="{{t}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{w}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{x}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{A}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{A}}"><view class="popup"><image class="icon" src="{{y}}" mode="widthFix" show-menu-by-longpress></image><view class="title">企业二维码</view></view></uni-popup></view>
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view class="vipC relative" bindtap="{{x}}"><image class="icon" src="{{s}}" mode="widthFix"></image><view wx:if="{{t}}" class="absolute tips">{{v}}会员,有效期至{{w}}</view><view wx:else class="absolute tips">成为会员,可以获取更多价值资讯</view></view><view class="menuList relative"><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{z}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{C}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{C}}"><view class="popup"><image class="icon" src="{{A}}" mode="widthFix" show-menu-by-longpress></image><view class="title">企业二维码</view></view></uni-popup></view>
|
||||
@@ -60,6 +60,14 @@ page {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.vipC .tips {
|
||||
top: 0;
|
||||
left: 80rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
line-height: 90rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.menuList {
|
||||
background-color: white;
|
||||
margin: 0 25rpx;
|
||||
|
||||
@@ -87,7 +87,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: index
|
||||
};
|
||||
}),
|
||||
d: common_assets._imports_1$7,
|
||||
d: common_assets._imports_1$6,
|
||||
e: common_vendor.s("top:" + $data.navH + "px;")
|
||||
};
|
||||
}
|
||||
|
||||
101
unpackage/dist/dev/mp-weixin/pages/ztfx/ztfx.js
vendored
101
unpackage/dist/dev/mp-weixin/pages/ztfx/ztfx.js
vendored
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const request_http = require("../../request/http.js");
|
||||
const request_api = require("../../request/api.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const echarts = require("../../uni_modules/lime-echart/static/echarts.min.js");
|
||||
const WordCloud = () => "../../components/WordCloud/WordCloud2.js";
|
||||
@@ -162,8 +161,12 @@ const _sfc_main = {
|
||||
}
|
||||
// ≤20%
|
||||
],
|
||||
// bkTypes: [
|
||||
// '板块关联图',
|
||||
// '板块分布',
|
||||
// '热门概念词云'
|
||||
// ],
|
||||
bkTypes: [
|
||||
"板块关联图",
|
||||
"板块分布",
|
||||
"热门概念词云"
|
||||
],
|
||||
@@ -240,8 +243,6 @@ const _sfc_main = {
|
||||
this.contentTop = this.navH + 20 / 750 * common_vendor.inject("windowWidth");
|
||||
},
|
||||
onReady() {
|
||||
this.fetchData();
|
||||
this.initGraphChart();
|
||||
},
|
||||
methods: {
|
||||
getHeatColor(value, max) {
|
||||
@@ -256,24 +257,29 @@ const _sfc_main = {
|
||||
this.activeType = index;
|
||||
switch (index) {
|
||||
case 0:
|
||||
this.$refs.graphChartRef && this.initGraphChart();
|
||||
this.$refs.chartRef && this.initPieChart();
|
||||
break;
|
||||
case 1:
|
||||
this.$refs.chartRef && this.initPieChart();
|
||||
this.initWordCloud();
|
||||
break;
|
||||
case 2:
|
||||
this.initWordCloud();
|
||||
break;
|
||||
}
|
||||
},
|
||||
getPreviousDayDate(dateStr) {
|
||||
getPreviousDayDate() {
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
const currentYear = now.getFullYear();
|
||||
const currentMonth = String(now.getMonth() + 1).padStart(2, "0");
|
||||
const currentDay = String(now.getDate()).padStart(2, "0");
|
||||
const dateStr = `${currentYear}-${currentMonth}-${currentDay}`;
|
||||
if (!/^\d{4}-\d{2}-\d{2}$/.test(dateStr)) {
|
||||
common_vendor.index.__f__("error", "at pages/ztfx/ztfx.vue:483", "日期格式错误,请传入 YYYY-MM-DD 格式的日期");
|
||||
common_vendor.index.__f__("error", "at pages/ztfx/ztfx.vue:505", "日期格式错误,请传入 YYYY-MM-DD 格式的日期");
|
||||
return "";
|
||||
}
|
||||
const [year, month, day] = dateStr.split("-").map(Number);
|
||||
const date = new Date(year, month - 1, day);
|
||||
date.setDate(date.getDate() - 2);
|
||||
date.setDate(date.getDate() - 1);
|
||||
const prevYear = date.getFullYear();
|
||||
const prevMonth = String(date.getMonth() + 1).padStart(2, "0");
|
||||
const prevDay = String(date.getDate()).padStart(2, "0");
|
||||
@@ -285,10 +291,10 @@ const _sfc_main = {
|
||||
async fetchData() {
|
||||
try {
|
||||
const timestamp = (/* @__PURE__ */ new Date()).getTime();
|
||||
const formattedDate = this.getPreviousDayDate(this.selectedFullDate);
|
||||
const formattedDate = this.selectedFullDate;
|
||||
const baseURL = request_http.getBaseURL1();
|
||||
const requestUrl = `${baseURL}/data/zt/daily/${formattedDate}.json?t=${timestamp}`;
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:515", "请求URL:", requestUrl);
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:538", "请求URL:", requestUrl);
|
||||
const res = await common_vendor.index.request({
|
||||
url: requestUrl,
|
||||
method: "GET"
|
||||
@@ -326,7 +332,7 @@ const _sfc_main = {
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/ztfx/ztfx.vue:562", "请求异常:", error);
|
||||
common_vendor.index.__f__("error", "at pages/ztfx/ztfx.vue:585", "请求异常:", error);
|
||||
common_vendor.index.showToast({
|
||||
title: "网络异常",
|
||||
icon: "none"
|
||||
@@ -376,18 +382,18 @@ const _sfc_main = {
|
||||
];
|
||||
if (this.$refs.chartRef) {
|
||||
const Piechart = await this.$refs.chartRef.init(echarts);
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:623", "Piechart实例创建成功", Piechart);
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:646", "Piechart实例创建成功", Piechart);
|
||||
Piechart.setOption(this.pieOption);
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/ztfx/ztfx.vue:627", "饼图初始化失败:", error);
|
||||
common_vendor.index.__f__("error", "at pages/ztfx/ztfx.vue:650", "饼图初始化失败:", error);
|
||||
}
|
||||
},
|
||||
// 初始化词云
|
||||
initWordCloud() {
|
||||
if (this.originData.word_freq_data && Array.isArray(this.originData.word_freq_data)) {
|
||||
this.wordData = this.originData.word_freq_data;
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:636", "词云数据赋值完成", this.wordData);
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:659", "词云数据赋值完成", this.wordData);
|
||||
} else {
|
||||
this.wordData = [{
|
||||
name: "脑机",
|
||||
@@ -400,12 +406,12 @@ const _sfc_main = {
|
||||
},
|
||||
handleDateChange(data) {
|
||||
var _a, _b, _c, _d;
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:654", "从日历组件接收的参数:", {
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:677", "从日历组件接收的参数:", {
|
||||
currentZtCount: (_a = data.item) == null ? void 0 : _a.zt_count,
|
||||
prevZtCount: (_b = data.prevItem) == null ? void 0 : _b.zt_count
|
||||
});
|
||||
this.selectedYearMonth = data.yearMonth;
|
||||
this.selectedFullDate = data.fullDate;
|
||||
this.selectedFullDate = data.fullDate ? data.fullDate.replace(/-/g, "") : "";
|
||||
this.selectedItem = data.item;
|
||||
if (data.fullDate) {
|
||||
const [year, month, day] = data.fullDate.split("-").map(Number);
|
||||
@@ -417,20 +423,35 @@ const _sfc_main = {
|
||||
const prevZtCount = ((_d = data.prevItem) == null ? void 0 : _d.zt_count) ?? 0;
|
||||
const changeValue = ztCount === 0 || prevZtCount === 0 ? 0 : ztCount - prevZtCount;
|
||||
this.tabTypes[1].change = changeValue;
|
||||
if (this.selectedFullDate) {
|
||||
const today = /* @__PURE__ */ new Date();
|
||||
const todayYear = today.getFullYear();
|
||||
const todayMonth = String(today.getMonth() + 1).padStart(2, "0");
|
||||
const todayDay = String(today.getDate()).padStart(2, "0");
|
||||
const todayFormatted = `${todayYear}${todayMonth}${todayDay}`;
|
||||
if (this.selectedFullDate === todayFormatted) {
|
||||
const selectedDate = new Date(
|
||||
parseInt(this.selectedFullDate.substring(0, 4)),
|
||||
// 年
|
||||
parseInt(this.selectedFullDate.substring(4, 6)) - 1,
|
||||
// 月(月份从0开始)
|
||||
parseInt(this.selectedFullDate.substring(6, 8))
|
||||
// 日
|
||||
);
|
||||
selectedDate.setDate(selectedDate.getDate() - 1);
|
||||
const prevYear = selectedDate.getFullYear();
|
||||
const prevMonth = String(selectedDate.getMonth() + 1).padStart(2, "0");
|
||||
const prevDay = String(selectedDate.getDate()).padStart(2, "0");
|
||||
const prevDateFormatted = `${prevYear}${prevMonth}${prevDay}`;
|
||||
this.selectedFullDate = prevDateFormatted;
|
||||
common_vendor.index.__f__("log", "at pages/ztfx/ztfx.vue:735", `选中日期为当天(${todayFormatted}),已自动调整为前一天:`, prevDateFormatted);
|
||||
}
|
||||
}
|
||||
this.fetchData();
|
||||
},
|
||||
analyseHighStocks() {
|
||||
const formatDate = this.getPreviousDayDate(this.selectedFullDate);
|
||||
let param = {
|
||||
date: formatDate
|
||||
};
|
||||
request_api.analyseHighStocks(param).then((res) => {
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
bkydAction(index) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pagesStock/stockCenterDetails/bkydmx?index=${index}`
|
||||
url: `/pagesStock/stockCenterDetails/bkydmx?index=${index}&data=${this.selectedFullDate}`
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -457,8 +478,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
hideBack: true
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: common_assets._imports_1$10,
|
||||
d: common_assets._imports_2$8,
|
||||
c: common_assets._imports_1$9,
|
||||
d: common_assets._imports_2$9,
|
||||
e: common_vendor.f($data.tabTypes, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.data),
|
||||
@@ -492,8 +513,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.t(item.count),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.bkydAction(index), index),
|
||||
e: item.bgColor
|
||||
d: item.bgColor
|
||||
};
|
||||
}),
|
||||
k: common_vendor.f($data.bkTypes, (item, index, i0) => {
|
||||
@@ -505,26 +525,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: $data.activeType == index ? "#FFFAF1" : "#FFF"
|
||||
};
|
||||
}),
|
||||
l: common_vendor.sr("graphChartRef", "06b829a4-2"),
|
||||
l: common_vendor.sr("chartRef", "06b829a4-2"),
|
||||
m: $data.activeType === 0,
|
||||
n: common_vendor.sr("chartRef", "06b829a4-3"),
|
||||
o: $data.activeType === 1,
|
||||
p: $data.activeType === 2,
|
||||
q: common_vendor.p({
|
||||
n: $data.activeType === 1,
|
||||
o: common_vendor.p({
|
||||
wordData: $data.wordData,
|
||||
width: 330,
|
||||
height: 330
|
||||
}),
|
||||
r: common_assets._imports_3$8,
|
||||
s: common_vendor.f(10, (item, index, i0) => {
|
||||
return {
|
||||
a: index
|
||||
};
|
||||
}),
|
||||
t: common_assets._imports_1$11,
|
||||
v: common_assets._imports_5$4,
|
||||
w: common_assets._imports_5$4,
|
||||
x: common_vendor.s("top:" + $data.contentTop + "px;")
|
||||
p: common_vendor.s("top:" + $data.contentTop + "px;")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user