12.12 页面风格改版,增加事件详情相关概念网页跳转,增加绑定手机号功能

This commit is contained in:
尚政杰
2025-12-12 19:35:08 +08:00
parent 44842120da
commit 13c783a0ad
256 changed files with 4046 additions and 2986 deletions

View File

@@ -1,8 +1,8 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const utils_util = require("../../../utils/util.js");
const common_assets = require("../../../common/assets.js");
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const utils_util = require("../../utils/util.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
@@ -107,7 +107,9 @@ const _sfc_main = {
conceptList: [],
page: 1,
getRateUpOrDown: utils_util.getRateUpOrDown,
getChgRateStr: utils_util.getChgRateStr
getChgRateStr: utils_util.getChgRateStr,
memberInfo: null
//会员信息
};
},
onLoad() {
@@ -257,12 +259,10 @@ const _sfc_main = {
this.selectDateStr = this.selectStartDateStr;
this.selectMonth = this.selectStartMonth;
this.selectMonthIndex = this.selectStartMonthIndex;
common_vendor.index.__f__("log", "at pages/index/conceptCenter/conceptCenter.vue:511", this.selectStartMonthIndex, 333, this.selectStartDateStr);
} else {
this.selectDateStr = this.selectEndDateStr;
this.selectMonth = this.selectEndMonth;
this.selectMonthIndex = this.selectEndMonthIndex;
common_vendor.index.__f__("log", "at pages/index/conceptCenter/conceptCenter.vue:517", this.selectEndMonthIndex, 222, this.selectEndDateStr);
}
this.$refs["transactionDatePopup"].open();
},
@@ -279,6 +279,8 @@ const _sfc_main = {
});
return;
}
this.startDateStr = this.selectStartDateStr;
this.endDateStr = this.endDateStr;
this.getRankListData();
},
/**
@@ -462,7 +464,7 @@ const _sfc_main = {
*/
clickStockMore(item) {
common_vendor.index.navigateTo({
url: "/pages/index/hotStock/hotStock?id=" + item.concept_id
url: "/pages/concept/hotStock/hotStock?id=" + item.concept_id
});
},
/**
@@ -470,7 +472,7 @@ const _sfc_main = {
*/
clickHistoricalTimeline(item) {
common_vendor.index.navigateTo({
url: "/pages/index/historicalTimeline/historicalTimeline?id=" + item.concept_id
url: "/pages/concept/historicalTimeline/historicalTimeline?id=" + item.concept_id
});
},
/**
@@ -545,8 +547,8 @@ if (!Array) {
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_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";
const _easycom_navBar = () => "../../components/navBar/navBar.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_navBar + _easycom_uni_popup)();
}
@@ -556,18 +558,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
leftText: "概念中心",
hideNavBg: true
}),
b: common_assets._imports_0$2,
c: common_assets._imports_1$7,
b: common_assets._imports_0,
c: common_assets._imports_1,
d: common_vendor.o(($event) => $options.clickSearch()),
e: $data.keywords,
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$8,
j: common_assets._imports_3$6,
i: common_assets._imports_2$3,
j: common_assets._imports_3,
k: common_vendor.o(($event) => $options.clickSortType()),
l: common_assets._imports_4$6,
m: common_assets._imports_3$6,
l: common_assets._imports_4$3,
m: common_assets._imports_3,
n: common_vendor.o(($event) => $options.clickTransactionDate()),
o: common_vendor.s("top: " + $data.navH + "px;"),
p: common_vendor.f($data.conceptList, (item, index, i0) => {
@@ -583,7 +585,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: common_vendor.t(item.stock_count),
g: common_vendor.n("stockNum " + ($data.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
} : {}, {
h: common_vendor.t(item.description),
h: common_vendor.t(item.description)
}, $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro" ? {
i: common_vendor.f(item.stocks.slice(0, 3), (sitem, sindex, i1) => {
return {
a: common_vendor.t(sitem.stock_name),
@@ -591,20 +594,26 @@ 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_vendor.t(item.price_info ? item.price_info.trade_date : ""),
m: common_vendor.o(($event) => $options.clickHistoricalTimeline(item), index),
n: index
k: common_vendor.o(($event) => $options.clickStockMore(item), index)
} : {
l: common_assets._imports_1$3,
m: common_vendor.t(item.stock_count),
n: common_vendor.o(($event) => $options.clickNotVip(), index)
}, {
o: common_vendor.t(item.price_info ? item.price_info.trade_date : ""),
p: common_vendor.o(($event) => $options.clickHistoricalTimeline(item), index),
q: index
});
}),
q: common_assets._imports_5$4,
r: common_vendor.s("top: " + $data.listTop + "px;"),
s: common_assets._imports_6$1,
t: common_vendor.o(($event) => $options.clickRankClose()),
v: common_assets._imports_7,
w: common_vendor.t($data.startDateStr),
x: common_vendor.t($data.endDateStr),
y: common_vendor.f($data.cycleList, (item, index, i0) => {
q: $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro",
r: common_assets._imports_1$2,
s: common_vendor.s("top: " + $data.listTop + "px;"),
t: common_assets._imports_11$1,
v: common_vendor.o(($event) => $options.clickRankClose()),
w: common_assets._imports_8,
x: common_vendor.t($data.startDateStr),
y: common_vendor.t($data.endDateStr),
z: common_vendor.f($data.cycleList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.n("item " + ($data.selectCycleIndex == index ? "select" : "")),
@@ -612,15 +621,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickRankCycleListItem(index), index)
};
}),
z: $data.selectCycleIndex == 3
A: $data.selectCycleIndex == 3
}, $data.selectCycleIndex == 3 ? {
A: common_vendor.t($data.selectStartDateStr),
B: common_vendor.o(($event) => $options.clickCustomDateCycle(2)),
C: common_vendor.t($data.selectEndDateStr),
D: common_vendor.o(($event) => $options.clickCustomDateCycle(3)),
E: common_vendor.o(($event) => $options.clickApply())
B: common_vendor.t($data.selectStartDateStr),
C: common_vendor.o(($event) => $options.clickCustomDateCycle(2)),
D: common_vendor.t($data.selectEndDateStr),
E: common_vendor.o(($event) => $options.clickCustomDateCycle(3)),
F: common_vendor.o(($event) => $options.clickApply())
} : {}, {
F: common_vendor.f($data.rankTabList, (item, index, i0) => {
G: common_vendor.f($data.rankTabList, (item, index, i0) => {
return common_vendor.e({
a: $data.selectTab == index
}, $data.selectTab == index ? {
@@ -634,19 +643,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
g: common_vendor.o(($event) => $options.clickRankTabItem(index), index)
});
}),
G: common_vendor.f($data.rankList, (item, index, i0) => {
H: common_vendor.f($data.rankList, (item, index, i0) => {
return common_vendor.e({
a: index == 0
}, index == 0 ? {
b: common_assets._imports_8
b: common_assets._imports_9$1
} : {}, {
c: index == 1
}, index == 1 ? {
d: common_assets._imports_9
d: common_assets._imports_10$2
} : {}, {
e: index == 2
}, index == 2 ? {
f: common_assets._imports_10$1
f: common_assets._imports_11$2
} : {}, {
g: index > 2
}, index > 2 ? {
@@ -664,14 +673,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
} : {}) : common_vendor.e({
n: $data.selectTab == 0 || $data.selectTab == 1
}, $data.selectTab == 0 || $data.selectTab == 1 ? {
o: common_assets._imports_11,
o: common_assets._imports_12$1,
p: common_vendor.t(item.news_count)
} : {}, {
q: common_assets._imports_12$1,
q: common_assets._imports_13$2,
r: common_vendor.t(item.news_count),
s: $data.selectTab == 2
}, $data.selectTab == 2 ? {
t: common_assets._imports_13$1,
t: common_assets._imports_14$1,
v: common_vendor.t(item.report_count)
} : {}), $data.selectTab == 0 ? {
w: common_vendor.t(item.change_pct)
@@ -687,21 +696,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
B: index
});
}),
H: $data.selectTab == 3 || $data.selectTab == 4,
I: common_vendor.n("icon " + ($data.selectTab == 4 ? "continuousRise" : "")),
J: $data.rankTabList[$data.selectTab].selectIcon,
K: $data.selectTab == 0,
L: $data.selectTab == 1,
M: $data.selectTab == 2,
N: $data.selectTab == 3,
O: $data.selectTab == 4,
P: common_vendor.sr("rankPopup", "260dfc26-1"),
Q: common_vendor.p({
I: $data.selectTab == 3 || $data.selectTab == 4,
J: common_vendor.n("icon " + ($data.selectTab == 4 ? "continuousRise" : "")),
K: $data.rankTabList[$data.selectTab].selectIcon,
L: $data.selectTab == 0,
M: $data.selectTab == 1,
N: $data.selectTab == 2,
O: $data.selectTab == 3,
P: $data.selectTab == 4,
Q: common_vendor.sr("rankPopup", "634c6a80-1"),
R: common_vendor.p({
type: "bottom",
safeArea: false
}),
R: common_assets._imports_14,
S: common_vendor.f($data.sortTypeList, (item, index, i0) => {
S: common_assets._imports_13$1,
T: common_vendor.f($data.sortTypeList, (item, index, i0) => {
return {
a: item.icon,
b: common_vendor.t(item.name),
@@ -709,29 +718,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickSortListItem(item), index)
};
}),
T: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
U: common_vendor.sr("sortTypePopup", "260dfc26-2"),
V: common_vendor.p({
U: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
V: common_vendor.sr("sortTypePopup", "634c6a80-2"),
W: common_vendor.p({
type: "top",
["mask-background-color"]: "transparent",
animation: false
}),
W: common_vendor.o(($event) => $options.clickCancel()),
X: common_vendor.o(($event) => $options.clickConfirm()),
Y: common_assets._imports_4$5,
Z: common_vendor.o(($event) => $options.clickPreMonth()),
aa: common_vendor.t($data.selectMonth),
ab: common_vendor.o(() => {
X: common_vendor.o(($event) => $options.clickCancel()),
Y: common_vendor.o(($event) => $options.clickConfirm()),
Z: common_assets._imports_4$2,
aa: common_vendor.o(($event) => $options.clickPreMonth()),
ab: common_vendor.t($data.selectMonth),
ac: common_vendor.o(() => {
}),
ac: common_assets._imports_5$3,
ad: common_vendor.o(($event) => $options.clickNextMonth()),
ae: common_vendor.f($data.weekList, (item, index, i0) => {
ad: common_assets._imports_5$1,
ae: common_vendor.o(($event) => $options.clickNextMonth()),
af: common_vendor.f($data.weekList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
af: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
ag: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
return common_vendor.e({
a: item.date == $data.selectDateStr
}, item.date == $data.selectDateStr ? {
@@ -747,33 +756,33 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
});
}),
ag: common_vendor.f($data.quickTimeList, (item, index, i0) => {
ah: 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)
};
}),
ah: common_vendor.sr("transactionDatePopup", "260dfc26-3"),
ai: common_vendor.p({
ai: common_vendor.sr("transactionDatePopup", "634c6a80-3"),
aj: common_vendor.p({
type: "bottom",
safeArea: false
}),
aj: common_assets._imports_17,
ak: common_assets._imports_18,
al: common_assets._imports_19,
am: common_assets._imports_19,
an: common_assets._imports_20,
ao: common_assets._imports_20,
ap: common_assets._imports_20,
aq: common_vendor.o(($event) => $options.clickLater()),
ar: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
as: common_vendor.sr("vipPopup", "260dfc26-4"),
at: common_vendor.p({
ak: common_assets._imports_14,
al: common_assets._imports_15,
am: common_assets._imports_16,
an: common_assets._imports_16,
ao: common_assets._imports_17,
ap: common_assets._imports_17,
aq: common_assets._imports_17,
ar: common_vendor.o(($event) => $options.clickLater()),
as: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
at: common_vendor.sr("vipPopup", "634c6a80-4"),
av: common_vendor.p({
type: "center"
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/conceptCenter/conceptCenter.js.map
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/concept/concept.js.map

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../components/navBar/navBar",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -271,14 +271,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
leftText: "历史时间轴",
hideNavBg: true
}),
b: common_assets._imports_0$2,
b: common_assets._imports_0,
c: common_vendor.t($data.conceptName),
d: common_vendor.s("top: " + $data.navH + "px;"),
e: common_assets._imports_4$5,
e: common_assets._imports_4$2,
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_5$3,
i: common_assets._imports_5$1,
j: common_vendor.o(($event) => $options.clickNextMonth()),
k: common_vendor.f($data.weekList, (item, index, i0) => {
return {
@@ -318,7 +318,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.chgStockData && $data.chgStockData.avg_change_pct ? common_vendor.e({
o: $data.getRateUpOrDown($data.chgStockData.avg_change_pct)
}, $data.getRateUpOrDown($data.chgStockData.avg_change_pct) ? {
p: common_assets._imports_3$7
p: common_assets._imports_3$6
} : {
q: common_assets._imports_4$7
}, {
@@ -326,7 +326,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
s: common_vendor.n("chg " + ($data.getRateUpOrDown($data.chgStockData.avg_change_pct) ? "down" : "up")),
t: common_vendor.t($data.chgStockData.stock_count)
}) : {}, {
v: common_assets._imports_5$5,
v: common_assets._imports_5$4,
w: common_vendor.t($data.newsList.length),
x: common_vendor.t($data.reportList.length),
y: common_vendor.f($data.newsList, (item, index, i0) => {
@@ -347,4 +347,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/historicalTimeline/historicalTimeline.js.map
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/concept/historicalTimeline/historicalTimeline.js.map

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="1881f0d1-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="timelineTitle fixed" style="{{d}}">{{c}}- 历史时间轴</view><view class="dateStatisticsC fixed" style="{{A}}"><view class="dateC"><view class="yearMonthC flex"><view class="btn" bindtap="{{f}}"><image class="icon" src="{{e}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{h}}">{{g}}</picker></view><view class="btn" bindtap="{{j}}"><image class="icon" src="{{i}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{l}}" wx:for-item="item" wx:key="m" class="item flexColumnCenter" bindtap="{{item.n}}"><block wx:if="{{item.a}}"><view class="{{item.e}}">{{item.b}} <view wx:if="{{item.c}}" class="chg">{{item.d}}%</view></view></block><block wx:else><block wx:if="{{item.f}}"><view class="date notCurrentMonth">{{item.g}}</view></block><block wx:else><view class="{{item.l}}">{{item.h}} <view wx:if="{{item.i}}" class="{{item.k}}">{{item.j}}%</view></view></block></block></view></view></view><view class="statisticsC"><view class="date">{{m}}统计</view><view wx:if="{{n}}" class="chgStockNumC flex"><view class="chgC flex flex1"><view class="title">涨跌幅</view><image wx:if="{{o}}" class="icon" src="{{p}}" mode="widthFix"></image><image wx:else class="icon" src="{{q}}" mode="widthFix"></image><view class="{{s}}">{{r}}%</view></view><view class="stockNumC flex flex1"><view class="title">统计股票</view><view class="stockNum">{{t}} 只股票</view></view></view><view class="newsReportC flex"><image class="icon" src="{{v}}" mode="widthFix"></image><text class="news">{{w}} 条新闻 · </text><text class="report" decode> {{x}} 份研报</text></view><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view><view wx:for="{{z}}" wx:for-item="item" wx:key="b" class="item"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">坚定看好锂电材料,建议继续加配坚定六氟、添加剂,关注隔膜更加坚定的看好六氟:下游传导如期</view></view></view></view></view></view>
<view><nav-bar wx:if="{{a}}" u-i="adc20db2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="timelineTitle fixed" style="{{d}}">{{c}}- 历史时间轴</view><view class="dateStatisticsC fixed" style="{{A}}"><view class="dateC"><view class="yearMonthC flex"><view class="btn" bindtap="{{f}}"><image class="icon" src="{{e}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{h}}">{{g}}</picker></view><view class="btn" bindtap="{{j}}"><image class="icon" src="{{i}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{l}}" wx:for-item="item" wx:key="m" class="item flexColumnCenter" bindtap="{{item.n}}"><block wx:if="{{item.a}}"><view class="{{item.e}}">{{item.b}} <view wx:if="{{item.c}}" class="chg">{{item.d}}%</view></view></block><block wx:else><block wx:if="{{item.f}}"><view class="date notCurrentMonth">{{item.g}}</view></block><block wx:else><view class="{{item.l}}">{{item.h}} <view wx:if="{{item.i}}" class="{{item.k}}">{{item.j}}%</view></view></block></block></view></view></view><view class="statisticsC"><view class="date">{{m}}统计</view><view wx:if="{{n}}" class="chgStockNumC flex"><view class="chgC flex flex1"><view class="title">涨跌幅</view><image wx:if="{{o}}" class="icon" src="{{p}}" mode="widthFix"></image><image wx:else class="icon" src="{{q}}" mode="widthFix"></image><view class="{{s}}">{{r}}%</view></view><view class="stockNumC flex flex1"><view class="title">统计股票</view><view class="stockNum">{{t}} 只股票</view></view></view><view class="newsReportC flex"><image class="icon" src="{{v}}" mode="widthFix"></image><text class="news">{{w}} 条新闻 · </text><text class="report" decode> {{x}} 份研报</text></view><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view><view wx:for="{{z}}" wx:for-item="item" wx:key="b" class="item"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">坚定看好锂电材料,建议继续加配坚定六氟、添加剂,关注隔膜更加坚定的看好六氟:下游传导如期</view></view></view></view></view></view>

View File

@@ -255,7 +255,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
leftText: "热门个股",
hideNavBg: true
}),
b: common_assets._imports_0$2,
b: common_assets._imports_0,
c: common_vendor.t($data.conceptName),
d: common_assets._imports_1$8,
e: common_vendor.o(($event) => $options.clickDateScreen()),
@@ -266,9 +266,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
b: common_vendor.t(item.stock_code),
c: item.isExpand
}, item.isExpand ? {
d: common_assets._imports_2$9
d: common_assets._imports_2$7
} : {
e: common_assets._imports_3$8
e: common_assets._imports_3$7
}, {
f: common_vendor.o(($event) => $options.clickExpandOrRetract(index), index),
g: item.isExpand
@@ -281,11 +281,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
h: common_vendor.s("top:" + $data.listTop + "px;"),
i: common_vendor.o(($event) => $options.clickCancel()),
j: common_vendor.o(($event) => $options.clickConfirm()),
k: common_assets._imports_4$5,
k: common_assets._imports_4$2,
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_5$3,
o: common_assets._imports_5$1,
p: common_vendor.o(($event) => $options.clickNextMonth()),
q: common_vendor.f($data.weekList, (item, index, i0) => {
return {
@@ -316,7 +316,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
c: common_vendor.o(($event) => $options.clickQuickTimeItem(index), index)
};
}),
t: common_vendor.sr("datePopup", "59b0aede-1"),
t: common_vendor.sr("datePopup", "0dffb7e7-1"),
v: common_vendor.p({
type: "bottom",
safeArea: false
@@ -325,4 +325,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/hotStock/hotStock.js.map
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/concept/hotStock/hotStock.js.map

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="59b0aede-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 direction="vertical" class="stockList fixed" style="{{h}}"><view class="list"><view wx:for="{{g}}" wx:for-item="item" wx:key="i" class="item"><view class="stockInfoC flex" bindtap="{{item.f}}"><view class="titleCodeC"><view class="title">{{item.a}}</view><view class="code">{{item.b}}</view></view><view class="chg flex1">+4.04%</view><view class="industry flex1">食品行业</view><view class="reasonProjectC flex"><view>REASON/项目</view><image wx:if="{{item.c}}" class="arrow expand" src="{{item.d}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.e}}" mode="widthFix"></image></view></view><view wx:if="{{item.g}}" class="reasonProjectContentC"><view class="reasonC"><text class="title">REASON</text><text>{{item.h}}</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="59b0aede-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 direction="vertical" class="stockList fixed" style="{{h}}"><view class="list"><view wx:for="{{g}}" wx:for-item="item" wx:key="i" class="item"><view class="stockInfoC flex" bindtap="{{item.f}}"><view class="titleCodeC"><view class="title">{{item.a}}</view><view class="code">{{item.b}}</view></view><view class="chg flex1">+4.04%</view><view class="industry flex1">食品行业</view><view class="reasonProjectC flex"><view>REASON/项目</view><image wx:if="{{item.c}}" class="arrow expand" src="{{item.d}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.e}}" mode="widthFix"></image></view></view><view wx:if="{{item.g}}" class="reasonProjectContentC"><view class="reasonC"><text class="title">REASON</text><text>{{item.h}}</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 File

@@ -1,7 +0,0 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar",
"uni-popup": "../../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -16,7 +16,7 @@ function _sfc_render(_ctx, _cache) {
leftText: "历史时间轴",
hideNavBg: true
}),
b: common_assets._imports_0$2
b: common_assets._imports_0
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);

View File

@@ -11,6 +11,8 @@ const _sfc_main = {
windowWidth: common_vendor.inject("windowWidth"),
eventId: "",
//事件id
memberInfo: null,
//会员信息
eventDetails: null,
//事件详情
categoryList: ["相关标的", "相关概念", "历史事件"],
@@ -28,6 +30,7 @@ const _sfc_main = {
getLocaleTime: utils_util.getLocaleTime,
getRateUpOrDown: utils_util.getRateUpOrDown,
getRateStr: utils_util.getRateStr,
getChgRateStr: utils_util.getChgRateStr,
scoreTop: "",
expectScore: 0,
//预期得分
@@ -181,6 +184,40 @@ const _sfc_main = {
url: "/pages/index/conceptDetails/conceptDetails?name=" + name
});
},
/**
* 非vip点击
*/
clickNotVip() {
this.$refs["vipPopup"].open();
},
/**
* 点击稍后再说
*/
clickLater() {
this.$refs["vipPopup"].close();
},
/**
* 点击立即升级
*/
clickUpgradeAtOnce() {
this.clickLater();
},
/**
* 点击查看更多个股
*/
clickStockMore(item) {
common_vendor.index.navigateTo({
url: "/pages/concept/hotStock/hotStock?id=" + item.concept_id
});
},
/**
* 点击查看历史时间轴
*/
clickHistoricalTimeline(item) {
common_vendor.index.navigateTo({
url: "/pages/concept/historicalTimeline/historicalTimeline?id=" + item.concept_id
});
},
/**
* 点击查看历史事件的相关股票
*/
@@ -198,7 +235,7 @@ const _sfc_main = {
* 点击查看超预期得分
*/
clickExpectScore(e) {
this.scoreTop = e.currentTarget.offsetTop + this.navH + (70 + 10 + 20) / 750 * this.windowWidth;
this.scoreTop = e.currentTarget.offsetTop + this.navH + (70 + 10) / 750 * this.windowWidth;
this.$refs["expectScorePopup"].open();
},
/**
@@ -317,7 +354,7 @@ const _sfc_main = {
*/
getEventRelatedConceptData() {
let eventDetails = this.eventDetails;
let param = { query: eventDetails.event_title, size: 4, page: 1, sort_by: "_score", isJson: 1 };
let param = { query: eventDetails.event_title, size: 10, page: 1, sort_by: "_score", isJson: 1 };
request_api.eventRelatedConcept(param).then((res) => {
this.conceptList = res.results;
}).catch((error) => {
@@ -367,7 +404,8 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
leftText: "事件详情"
leftText: "事件详情",
hideNavBg: true
}),
b: common_assets._imports_0,
c: $data.eventDetails
@@ -420,38 +458,48 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.selectCategory == 1 ? {
n: common_vendor.f($data.conceptList, (item, index, i0) => {
return common_vendor.e({
a: $data.getRateUpOrDown(item.price_info.avg_change_pct)
}, $data.getRateUpOrDown(item.price_info.avg_change_pct) ? {
b: common_assets._imports_1$4
} : {
c: common_assets._imports_2$6
}, {
d: common_vendor.t($data.getRateStr(item.price_info.avg_change_pct)),
e: common_vendor.n("rateC absolute " + ($data.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up")),
a: common_vendor.t(item.concept),
b: item.price_info
}, item.price_info ? {
c: common_vendor.t($data.getChgRateStr(item.price_info.avg_change_pct)),
d: common_vendor.n("chg " + ($data.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
} : {}, {
e: item.price_info
}, item.price_info ? {
f: common_vendor.t(item.stock_count),
g: common_vendor.t(item.concept),
h: common_vendor.t(item.description),
i: common_vendor.t(item.price_info.trade_date),
j: common_vendor.f(item.stocks, (item2, index2, i1) => {
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" ? {
i: common_vendor.f(item.stocks.slice(0, 3), (sitem, sindex, i1) => {
return {
a: common_vendor.t(item2.stock_name),
b: index2
a: common_vendor.t(sitem.name),
b: sindex
};
}),
k: common_vendor.t(item.happened_times[0] + (item.happened_times.length > 1 ? "(共" + item.happened_times.length + "次)" : "")),
l: index,
m: common_vendor.o(($event) => $options.clickConceptItem(item.concept), index)
j: common_vendor.t(item.stock_count - 3),
k: common_vendor.o(($event) => $options.clickStockMore(item), index)
} : {
l: common_assets._imports_1$3,
m: common_vendor.t(item.stock_count),
n: common_vendor.o(($event) => $options.clickNotVip(), index)
}, {
o: common_vendor.t(item.price_info ? item.price_info.trade_date : ""),
p: common_vendor.o(($event) => $options.clickHistoricalTimeline(item), index),
q: index,
r: common_vendor.o(($event) => $options.clickConceptItem(item.concept), index)
});
}),
o: common_assets._imports_3$4
o: $data.memberInfo && $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro",
p: common_assets._imports_1$2
} : {}, {
p: $data.selectCategory == 2
q: $data.selectCategory == 2
}, $data.selectCategory == 2 ? {
q: common_assets._imports_4$3,
r: common_vendor.t($data.expectScore),
s: common_assets._imports_5$1,
t: common_vendor.o(($event) => $options.clickExpectScore($event)),
v: common_vendor.f($data.historyEventList, (item, index, i0) => {
r: common_assets._imports_3$4,
s: common_vendor.t($data.expectScore),
t: common_assets._imports_4$5,
v: common_vendor.o(($event) => $options.clickExpectScore($event)),
w: common_vendor.f($data.historyEventList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.title),
b: common_vendor.t(item.relevance * 10),
@@ -460,7 +508,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.getRateUpOrDown(item.related_avg_chg) ? {
e: common_assets._imports_1$1
} : {
f: common_assets._imports_2$2
f: common_assets._imports_2$1
}, {
g: common_vendor.t($data.getRateStr(item.related_avg_chg)),
h: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_avg_chg) ? "down" : "up")),
@@ -468,7 +516,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.getRateUpOrDown(item.related_max_chg) ? {
j: common_assets._imports_1$1
} : {
k: common_assets._imports_2$2
k: common_assets._imports_2$1
}, {
l: common_vendor.t($data.getRateStr(item.related_max_chg)),
m: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_max_chg) ? "down" : "up")),
@@ -477,27 +525,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
p: index
});
}),
w: common_assets._imports_4$3
x: common_assets._imports_5$2,
y: common_assets._imports_3$4
} : {}, {
x: common_vendor.s("top:" + $data.navH + "px;")
z: common_vendor.s("top:" + $data.navH + "px;")
}) : {}, {
y: $data.eventDetails
A: $data.eventDetails
}, $data.eventDetails ? {
z: common_vendor.o(($event) => $options.sendEventComment()),
A: $data.eventComment,
B: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
C: common_assets._imports_3,
D: common_vendor.t($data.eventDetails.view_count),
E: common_assets._imports_4,
F: common_vendor.t($data.eventDetails.post_count),
G: common_vendor.o(($event) => $options.clickComment()),
H: common_assets._imports_10,
I: common_vendor.t($data.eventDetails.follower_count),
J: common_vendor.o(($event) => $options.clickFollow())
B: common_vendor.o(($event) => $options.sendEventComment()),
C: $data.eventComment,
D: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
E: common_assets._imports_3$1,
F: common_vendor.t($data.eventDetails.view_count),
G: common_assets._imports_4,
H: common_vendor.t($data.eventDetails.post_count),
I: common_vendor.o(($event) => $options.clickComment()),
J: common_assets._imports_10$1,
K: common_vendor.t($data.eventDetails.follower_count),
L: common_vendor.o(($event) => $options.clickFollow())
} : {}, {
K: common_assets._imports_6$1,
L: common_vendor.o(($event) => $options.closeCommentPopup()),
M: common_vendor.f($data.commentList, (item, index, i0) => {
M: common_assets._imports_11$1,
N: common_vendor.o(($event) => $options.closeCommentPopup()),
O: common_vendor.f($data.commentList, (item, index, i0) => {
return {
a: item.user.avatar_url,
b: common_vendor.t(item.user.username),
@@ -509,25 +558,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
h: index
};
}),
N: common_assets._imports_12,
O: $data.isFocus,
P: common_vendor.o(($event) => $options.sendReplyComment()),
Q: $data.replyComment,
R: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
S: common_vendor.sr("popup", "6e1a61f1-2"),
T: common_vendor.p({
P: common_assets._imports_12$2,
Q: $data.isFocus,
R: common_vendor.o(($event) => $options.sendReplyComment()),
S: $data.replyComment,
T: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
U: common_vendor.sr("popup", "6e1a61f1-2"),
V: common_vendor.p({
type: "bottom"
}),
U: common_assets._imports_14,
V: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
W: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
X: common_vendor.p({
W: common_assets._imports_13$1,
X: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
Y: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
Z: common_vendor.p({
type: "top",
["mask-background-color"]: "transparent"
}),
Y: common_assets._imports_6$1,
Z: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
aa: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
aa: common_assets._imports_11$1,
ab: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
ac: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.stock_name + "(" + item.stock_code + ")"),
b: common_vendor.t(item.correlation * 100),
@@ -536,7 +585,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.getRateUpOrDown(item.daily_change) ? {
e: common_assets._imports_1$1
} : {
f: common_assets._imports_2$2
f: common_assets._imports_2$1
}, {
g: common_vendor.t($data.getRateStr(item.daily_change)),
h: common_vendor.n("rateC " + ($data.getRateUpOrDown(item.daily_change) ? "down" : "up")),
@@ -545,9 +594,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
k: common_vendor.o(($event) => $options.clickStockItem(item.stock_code), index)
});
}),
ab: common_vendor.sr("stockPopup", "6e1a61f1-4"),
ac: common_vendor.p({
ad: common_vendor.sr("stockPopup", "6e1a61f1-4"),
ae: common_vendor.p({
type: "bottom"
}),
af: common_assets._imports_14,
ag: common_assets._imports_15,
ah: common_assets._imports_16,
ai: common_assets._imports_16,
aj: common_assets._imports_17,
ak: common_assets._imports_17,
al: common_assets._imports_17,
am: common_vendor.o(($event) => $options.clickLater()),
an: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
ao: common_vendor.sr("vipPopup", "6e1a61f1-5"),
ap: common_vendor.p({
type: "center"
})
});
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,6 @@
page {
background-color: #070707;
}
.topBg {
top: 0;
left: 0;
@@ -5,21 +8,25 @@
height: auto;
}
.eventDetailsC {
background-color: white;
margin-top: 10rpx;
padding: 20rpx 0 0;
padding: 20rpx 25rpx 0;
left: 0;
right: 0;
bottom: calc(20rpx + 70rpx + 20rpx + env(safe-area-inset-bottom));
border-radius: 20rpx 20rpx 0 0;
overflow-y: scroll;
}
.eventDetailsC .categoryTitleC {
.eventDetailsC .eventIntroC {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
padding: 26rpx 0 34rpx;
border-radius: 10rpx;
}
.eventDetailsC .eventIntroC .categoryTitleC {
padding: 0 25rpx;
}
.eventDetailsC .categoryTitleC .category {
background-color: #FD9A14;
margin-right: 12rpx;
.eventDetailsC .eventIntroC .categoryTitleC .category {
background-color: #F3C368;
margin-right: 8rpx;
display: inline-block;
padding: 0 11rpx;
line-height: 40rpx;
@@ -28,70 +35,64 @@
font-weight: bold;
color: white;
}
.eventDetailsC .categoryTitleC .title {
.eventDetailsC .eventIntroC .categoryTitleC .title {
font-size: 30rpx;
font-weight: bold;
color: #222;
line-height: 1.1rem;
}
.eventDetailsC .eventTime {
.eventDetailsC .eventIntroC .eventTime {
margin: 20rpx 25rpx 0;
font-size: 22rpx;
font-weight: 500;
color: #aaa;
color: #666;
}
.eventDetailsC .eventContent {
margin: 22rpx 24rpx 0;
.eventDetailsC .eventIntroC .eventContent {
margin: 18rpx 27rpx 0;
font-size: 24rpx;
font-weight: 500;
color: #666;
color: #71675D;
line-height: 1.3rem;
}
.eventDetailsC .eventIntroC .eventContent .ai {
color: #EC3440;
}
.eventDetailsC .eventIntroC .riskTips {
margin: 24rpx 25rpx 0;
line-height: 1.2rem;
}
.eventDetailsC .eventContent .ai {
color: #C00000;
}
.eventDetailsC .riskTips {
margin: 20rpx 25rpx 0;
padding-bottom: 30rpx;
line-height: 1.4rem;
font-size: 20rpx;
color: #999;
border-bottom: solid 1rpx #E4E4E4;
font-size: 22rpx;
font-weight: 500;
color: #A2A2A1;
}
.eventDetailsC .categoryList {
white-space: nowrap;
margin-top: 10rpx;
}
.eventDetailsC .categoryList .item {
display: inline-block;
line-height: 60rpx;
line-height: 80rpx;
padding: 0 18rpx;
font-size: 28rpx;
font-size: 27rpx;
font-weight: 500;
color: #42485B;
color: #939393;
}
.eventDetailsC .categoryList .item.select {
font-weight: bold;
color: #F97316;
}
.eventDetailsC .categoryList .item.select .line {
background-color: #F97316;
left: calc((100% - 50rpx)/2);
bottom: 0;
width: 50rpx;
height: 2rpx;
color: #F3C368;
}
.eventDetailsC .headingList {
background-color: #F3F6F9;
margin: 28rpx 25rpx 0;
background-color: #FFF1E7;
padding: 0 10rpx;
border-radius: 10rpx 10rpx 0 0;
}
.eventDetailsC .headingList .item {
line-height: 55rpx;
line-height: 70rpx;
font-size: 24rpx;
font-weight: 500;
color: #999;
color: #070707;
text-align: center;
}
.eventDetailsC .targetList {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
padding: 0 25rpx;
}
.eventDetailsC .targetList .item {
@@ -113,144 +114,144 @@
text-align: center;
}
.eventDetailsC .targetList .item .nameCodePriceC .chg {
text-align: center;
text-align: right;
}
.eventDetailsC .targetList .item .nameCodePriceC .chg.up {
color: #FF2929;
}
.eventDetailsC .targetList .item .nameCodePriceC .chg.down {
color: #22C55E;
color: #355422;
}
.eventDetailsC .targetList .item .content {
font-size: 20rpx;
font-weight: 500;
color: #666;
color: #71675D;
line-height: 1.2rem;
}
.eventDetailsC .targetList .item .content .ai {
color: #C00000;
}
.eventDetailsC .conceptList {
padding: 30rpx 25rpx;
color: #EC3440;
}
.eventDetailsC .conceptList .conceptItem {
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.05);
margin: 0 30rpx 30rpx 0;
width: calc((100% - 30rpx)/2);
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-bottom: 20rpx;
border-radius: 10rpx;
}
.eventDetailsC .conceptList .conceptItem .coverC .cover {
display: block;
width: 100%;
height: 220rpx;
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC {
padding: 24rpx 18rpx 0;
}
.eventDetailsC .conceptList .conceptItem .coverC .rateC {
top: 12rpx;
left: 12rpx;
padding: 0 10rpx;
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .title {
margin-right: 20rpx;
font-size: 30rpx;
font-weight: bold;
color: #3D3D3D;
}
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .chg {
margin-right: 20rpx;
padding: 0 13rpx;
line-height: 40rpx;
border-radius: 20rpx;
font-size: 18rpx;
font-weight: 500;
font-size: 22rpx;
font-weight: bold;
color: white;
}
.eventDetailsC .conceptList .conceptItem .coverC .rateC .icon {
width: 11rpx;
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .chg.up {
background-color: #EC3440;
}
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .chg.down {
background-color: #355422;
}
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .stockNum {
padding: 0 16rpx;
line-height: 36rpx;
border-radius: 20rpx;
font-size: 22rpx;
font-weight: bold;
}
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .stockNum.up {
color: #EC3440;
border: solid 2rpx #EC3440;
}
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .stockNum.down {
color: #355422;
border: solid 2rpx #355422;
}
.eventDetailsC .conceptList .conceptItem .content {
margin-top: 26rpx;
padding: 0 22rpx;
font-size: 24rpx;
font-weight: 500;
color: #71675D;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
.eventDetailsC .conceptList .conceptItem .hotStockC {
margin-top: 30rpx;
padding: 0 20rpx;
}
.eventDetailsC .conceptList .conceptItem .hotStockC .title {
margin-right: 10rpx;
font-size: 24rpx;
font-weight: bold;
color: #936E5C;
}
.eventDetailsC .conceptList .conceptItem .hotStockC .stockList {
font-size: 22rpx;
}
.eventDetailsC .conceptList .conceptItem .hotStockC .stockList .stockItem {
background-color: #3D3D3D;
margin-right: 10rpx;
padding: 0 8rpx;
line-height: 36rpx;
border-radius: 5rpx 20rpx 5rpx 20rpx;
color: #EFDDD1;
}
.eventDetailsC .conceptList .conceptItem .hotStockC .stockList .more {
color: #936E5C;
line-height: 36rpx;
}
.eventDetailsC .conceptList .conceptItem .hotStockC .notVipC {
background-color: #3D3D3D;
padding: 0 21rpx 0 16rpx;
line-height: 36rpx;
border-radius: 5rpx;
font-size: 22rpx;
color: #F3C368;
}
.eventDetailsC .conceptList .conceptItem .hotStockC .notVipC .icon {
margin-right: 9rpx;
width: 15rpx;
height: auto;
}
.eventDetailsC .conceptList .conceptItem .coverC .rateC.up {
background-color: #E53E3E;
.eventDetailsC .conceptList .conceptItem .transactionDateHistoryTimeC {
padding: 20rpx 22rpx 30rpx;
}
.eventDetailsC .conceptList .conceptItem .coverC .rateC.down {
background-color: #38A169;
}
.eventDetailsC .conceptList .conceptItem .coverC .totalC {
background: linear-gradient(-90deg, #FAC915 0%, #F18D10 100%);
top: 12rpx;
right: 12rpx;
padding: 0 9rpx;
line-height: 40rpx;
border-radius: 20rpx;
font-size: 20rpx;
color: white;
}
.eventDetailsC .conceptList .conceptItem .infoC {
padding: 20rpx 23rpx;
}
.eventDetailsC .conceptList .conceptItem .infoC .title {
font-size: 26rpx;
font-weight: bold;
color: #222;
}
.eventDetailsC .conceptList .conceptItem .infoC .content {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin-top: 10rpx;
line-height: 1.2rem;
.eventDetailsC .conceptList .conceptItem .transactionDateHistoryTimeC .transactionDate {
font-size: 20rpx;
font-weight: 500;
color: #666;
}
.eventDetailsC .conceptList .conceptItem .infoC .transactionDate {
margin-top: 12rpx;
.eventDetailsC .conceptList .conceptItem .transactionDateHistoryTimeC .historyTimeC {
background-color: #F3C368;
padding: 0 10rpx 0 15rpx;
line-height: 36rpx;
border-radius: 10rpx;
font-size: 22rpx;
font-weight: 500;
color: #AAA;
color: #101213;
}
.eventDetailsC .conceptList .conceptItem .infoC .hotStockC {
background-color: #F7FAFC;
margin-top: 16rpx;
padding: 10rpx 13rpx;
border-radius: 5rpx;
}
.eventDetailsC .conceptList .conceptItem .infoC .hotStockC .titleC {
font-size: 20rpx;
font-weight: 500;
color: #666;
}
.eventDetailsC .conceptList .conceptItem .infoC .hotStockC .titleC .arrow {
width: 6rpx;
.eventDetailsC .conceptList .conceptItem .transactionDateHistoryTimeC .historyTimeC .icon {
margin-right: 7rpx;
width: 20rpx;
height: auto;
}
.eventDetailsC .conceptList .conceptItem .infoC .hotStockC .stockList {
margin-top: 10rpx;
height: 35rpx;
overflow: hidden;
}
.eventDetailsC .conceptList .conceptItem .infoC .hotStockC .stockList .item {
background-color: #FFEADC;
margin: 0 5rpx 5rpx 0;
padding: 0 9rpx;
line-height: 30rpx;
border-radius: 5rpx;
font-size: 18rpx;
font-weight: 500;
color: #F97316;
}
.eventDetailsC .conceptList .conceptItem .infoC .dateHistoryTimeC {
margin-top: 10rpx;
font-size: 20rpx;
}
.eventDetailsC .conceptList .conceptItem .infoC .dateHistoryTimeC .date {
color: #666;
}
.eventDetailsC .conceptList .conceptItem .infoC .dateHistoryTimeC .historyTimeC {
background-color: #F97316;
padding: 0 6rpx;
line-height: 38rpx;
border-radius: 5rpx;
color: white;
}
.eventDetailsC .conceptList .conceptItem:nth-child(2n) {
margin-right: 0;
}
.eventDetailsC .historyEventList {
padding: 34rpx 25rpx;
padding: 20rpx 0;
}
.eventDetailsC .historyEventList .expectScoreC {
background-color: #FBEFE7;
padding: 0 25rpx;
padding: 0 20rpx;
height: 70rpx;
}
.eventDetailsC .historyEventList .expectScoreC .icon {
@@ -261,40 +262,29 @@
.eventDetailsC .historyEventList .expectScoreC .score {
font-size: 24rpx;
font-weight: 500;
color: #F97316;
color: #FFF6F0;
}
.eventDetailsC .historyEventList .expectScoreC .tips {
margin-left: 14rpx;
width: 24rpx;
height: auto;
}
.eventDetailsC .historyEventList .list {
padding: 23rpx 0;
}
.eventDetailsC .historyEventList .list .item .eventLineC {
padding: 0 43rpx 0 15rpx;
padding: 30rpx 34rpx 0 25rpx;
}
.eventDetailsC .historyEventList .list .item .eventLineC .line {
background-color: #F0F0F0;
width: 1px;
height: 100%;
width: 1rpx;
border-left: dashed 1rpx #F3C368;
height: calc(100% - 10rpx);
}
.eventDetailsC .historyEventList .list .item .eventLineC .pointC {
background-color: #F9731680;
.eventDetailsC .historyEventList .list .item .eventLineC .point {
top: 0;
left: 5rpx;
left: 14rpx;
width: 20rpx;
height: 20rpx;
border-radius: 50%;
}
.eventDetailsC .historyEventList .list .item .eventLineC .pointC .point {
background-color: #F97316;
width: 10rpx;
height: 10rpx;
border-radius: 50%;
height: auto;
}
.eventDetailsC .historyEventList .list .item .eventInfoC {
box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.07);
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-bottom: 20rpx;
padding-top: 27rpx;
min-width: 0;
@@ -308,18 +298,18 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
font-size: 28rpx;
font-weight: bold;
color: #222;
}
.eventDetailsC .historyEventList .list .item .eventInfoC .titleCorrelationC .correlation {
background-color: #F973161A;
background-color: #FFF8EB;
padding: 0 12rpx;
line-height: 40rpx;
border-radius: 5rpx;
font-size: 24rpx;
font-size: 22rpx;
font-weight: 500;
color: #F97316;
color: #EFB342;
}
.eventDetailsC .historyEventList .list .item .eventInfoC .content {
margin: 16rpx 30rpx 0;
@@ -350,7 +340,7 @@
height: auto;
}
.eventDetailsC .historyEventList .list .item .eventInfoC .increaseRateList .rateItem.up {
background-color: #C00000;
background-color: #EC3440;
}
.eventDetailsC .historyEventList .list .item .eventInfoC .increaseRateList .rateItem.down {
background-color: #355422;
@@ -362,7 +352,7 @@
padding: 16rpx 30rpx;
font-size: 24rpx;
font-weight: bold;
color: #F97316;
color: #070707;
}
.eventDetailsC .historyEventList .list .item .eventInfoC .relatedStockTimeC .relatedStockC .icon {
margin-right: 13rpx;
@@ -376,14 +366,14 @@
text-align: right;
}
.bottomC {
background-color: #131313;
padding: 20rpx 25rpx calc(20rpx + env(safe-area-inset-bottom));
left: 0;
right: 0;
bottom: 0;
box-shadow: 0px -1rpx 0px 0px #EEEEEE;
}
.bottomC .inputC {
background-color: #F0F0F0;
background-color: #424143;
margin-right: 20rpx;
padding: 0 33rpx;
height: 70rpx;
@@ -564,7 +554,7 @@
color: #333;
}
.expectScorePopup {
background-color: white;
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-left: calc(100% - 320rpx - 24rpx);
width: 320rpx;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
@@ -619,13 +609,13 @@
color: #222;
}
.stockPopup .list .item .titleCorrelationC .correlation {
background-color: #F973161A;
background-color: #F3C368;
padding: 0 12rpx;
line-height: 40rpx;
border-radius: 5rpx;
font-size: 24rpx;
font-weight: 500;
color: #F97316;
color: #101213;
}
.stockPopup .list .item .sectorRateC .sector {
display: inline-block;
@@ -666,3 +656,118 @@
.stockPopup .list .item .content .ai {
color: #C00000;
}
.vipPopup {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin: 0 95rpx;
padding-bottom: 34rpx;
width: 560rpx;
border-radius: 10rpx;
}
.vipPopup .topIcon {
margin: -60rpx 0 0 calc((100% - 143rpx)/2);
width: 143rpx;
height: auto;
}
.vipPopup .popTitle {
margin-top: 28rpx;
font-size: 40rpx;
font-weight: bold;
color: #101213;
text-align: center;
}
.vipPopup .popSubtitle {
margin-top: 20rpx;
font-size: 24rpx;
font-weight: 500;
color: #493F2B;
text-align: center;
}
.vipPopup .moduleC {
background-color: white;
margin: 0 30rpx 20rpx;
padding-top: 25rpx;
border-radius: 10rpx;
}
.vipPopup .moduleC .section {
padding: 0 25rpx;
font-size: 26rpx;
font-weight: bold;
color: #333;
}
.vipPopup .moduleC .section .version {
margin-left: 18rpx;
padding: 0 15rpx;
line-height: 32rpx;
border-radius: 10rpx;
font-size: 22rpx;
}
.vipPopup .moduleC .section .version.free {
background-color: #3D3D3D;
color: #FEFCFB;
}
.vipPopup .moduleC .section .version.pro {
background-color: #F2C367;
color: #3D3D3D;
}
.vipPopup .moduleC .visitC {
margin: 18rpx 24rpx 0;
height: 60rpx;
}
.vipPopup .moduleC .visitC .line {
background-color: #F2C367;
top: 0;
left: 0;
width: 44rpx;
height: 100%;
border-radius: 7rpx 0 0 7rpx;
}
.vipPopup .moduleC .visitC .contentC {
background-color: #F7F7F7;
margin-left: 6rpx;
padding: 0 15rpx;
height: 100%;
border-radius: 10rpx;
font-size: 24rpx;
font-weight: 500;
color: #3D3D3D;
}
.vipPopup .moduleC .visitC .contentC .icon {
margin-right: 14rpx;
width: 25rpx;
height: auto;
}
.vipPopup .moduleC .list {
padding-bottom: 10rpx;
}
.vipPopup .moduleC .list .item {
padding: 10rpx 25rpx;
font-size: 24rpx;
font-weight: 500;
color: #333;
}
.vipPopup .moduleC .list .item .icon {
margin-right: 13rpx;
width: 27rpx;
height: auto;
}
.vipPopup .moduleC.visit {
margin-top: 20rpx;
padding-bottom: 25rpx;
}
.vipPopup .btnC {
margin: 28rpx 92rpx 0;
}
.vipPopup .btnC .btn {
line-height: 60rpx;
border-radius: 10rpx;
font-size: 24rpx;
font-weight: bold;
text-align: center;
}
.vipPopup .btnC .btn.later {
background-color: #EDEDED;
margin-right: 56rpx;
}
.vipPopup .btnC .btn.upgrade {
background-color: #F2C367;
}

View File

@@ -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({

View File

@@ -2,6 +2,7 @@
"navigationBarTitleText": "uni-app",
"enablePullDownRefresh": false,
"usingComponents": {
"nav-bar": "../../components/navBar/navBar",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,118 +1,104 @@
page {
background-color: #070707;
}
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.navTitle {
left: 0;
margin: 0 23rpx;
font-size: 36rpx;
font-weight: bold;
color: white;
}
.searchC {
background-color: white;
.topC {
left: 0;
right: 0;
}
.topC .searchC {
background-color: #292929B3;
margin: 20rpx 25rpx 0;
padding: 0 20rpx;
height: 75rpx;
border-radius: 20rpx;
font-size: 26rpx;
padding: 0 25rpx;
height: 70rpx;
border-radius: 35rpx;
font-size: 22rpx;
font-weight: 500;
}
.searchC .icon {
margin-right: 16rpx;
width: 30rpx;
.topC .searchC .icon {
margin-right: 12rpx;
width: 25rpx;
height: auto;
}
.searchC input {
.topC .searchC input {
height: 100%;
}
.searchC .line {
background-color: #E1E1E1;
width: 1rpx;
height: 40rpx;
.topC .screenC {
margin: 0 25rpx;
border-bottom: solid 1rpx #373737;
}
.searchC .search {
padding: 0 25rpx;
color: #F97316;
.topC .screenC .item {
padding: 0 8rpx;
height: 64rpx;
font-size: 24rpx;
color: #CCCDD1;
}
.screenCategoryC {
background-color: white;
margin-top: 22rpx;
left: 0;
right: 0;
border-radius: 20rpx 20rpx 0 0;
.topC .screenC .item .icon {
margin-right: 13rpx;
width: 17rpx;
height: auto;
}
.screenCategoryC .sortScreenC {
font-weight: 500;
.topC .screenC .item .arrow {
margin-left: 9rpx;
width: 11rpx;
height: auto;
}
.screenCategoryC .sortScreenC .timeCategoryC .item {
.topC .screenC .item:first-child .icon {
margin-right: 12rpx;
width: 20rpx;
height: auto;
}
.topC .screenC .item.level .icon {
margin-right: 13rpx;
width: 16rpx;
height: auto;
}
.topC .timeCategoryC {
margin-top: 10rpx;
}
.topC .timeCategoryC .item {
display: inline-block;
padding: 0 26rpx;
line-height: 80rpx;
line-height: 60rpx;
font-size: 32rpx;
color: #42485B;
color: #CCCDD1;
}
.screenCategoryC .sortScreenC .timeCategoryC .item.select {
.topC .timeCategoryC .item.select {
font-weight: bold;
color: #F97316;
color: #F3C368;
}
.screenCategoryC .sortScreenC .sortC {
padding: 0 14rpx;
font-size: 24rpx;
color: #999;
}
.screenCategoryC .sortScreenC .sortC .icon {
margin-right: 4rpx;
width: 22rpx;
height: auto;
}
.screenCategoryC .sortScreenC .line {
background-color: #999;
width: 1rpx;
height: 25rpx;
}
.screenCategoryC .sortScreenC .screenC {
padding: 0 14rpx;
font-size: 24rpx;
color: #999;
}
.screenCategoryC .sortScreenC .screenC .icon {
margin-right: 5rpx;
width: 24rpx;
height: auto;
}
.screenCategoryC .topCategoryC {
.topC .topCategoryC {
white-space: nowrap;
border-bottom: solid 1rpx #E4E4E4;
}
.screenCategoryC .topCategoryC .item {
.topC .topCategoryC .item {
display: inline-block;
line-height: 72rpx;
padding: 0 28rpx;
font-size: 27rpx;
font-weight: 500;
color: #42485B;
color: #939393;
}
.screenCategoryC .topCategoryC .item.select {
.topC .topCategoryC .item.select {
font-weight: bold;
color: black;
color: #F3C368;
}
.screenCategoryC .topCategoryC .item.select .line {
background-color: #F97316;
.topC .topCategoryC .item.select .line {
background-color: #F3C368;
left: calc((100% - 50rpx)/2);
width: 50rpx;
height: 2rpx;
bottom: 0;
}
.screenCategoryC .secondCategoryC {
.topC .secondCategoryC {
white-space: nowrap;
padding: 21rpx 20rpx;
}
.screenCategoryC .secondCategoryC .item {
.topC .secondCategoryC .item {
display: inline-block;
line-height: 44rpx;
padding: 0 11rpx;
@@ -120,13 +106,12 @@
font-weight: 500;
color: #42485B;
}
.screenCategoryC .secondCategoryC .item.select {
.topC .secondCategoryC .item.select {
background-color: #FFF6F0;
color: #F97316;
border-radius: 5rpx;
}
.eventListC {
background-color: white;
left: 0;
right: 0;
bottom: calc(55px + env(safe-area-inset-bottom));
@@ -136,11 +121,16 @@
padding: 0 25rpx;
}
.eventListC .list .item {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-bottom: 20rpx;
padding: 30rpx 0;
border-bottom: solid 1rpx #E4E4E4;
border-radius: 10rpx;
}
.eventListC .list .item .level {
margin-right: 16rpx;
.eventListC .list .item .levelTitleC {
padding: 0 18rpx 0 20rpx;
}
.eventListC .list .item .levelTitleC .level {
margin-right: 18rpx;
width: 50rpx;
line-height: 40rpx;
border-radius: 10rpx;
@@ -149,28 +139,31 @@
color: white;
text-align: center;
}
.eventListC .list .item .level.S {
.eventListC .list .item .levelTitleC .level.S {
background-color: #CC4C02;
}
.eventListC .list .item .level.A {
.eventListC .list .item .levelTitleC .level.A {
background-color: #EC7014;
}
.eventListC .list .item .level.B {
.eventListC .list .item .levelTitleC .level.B {
background-color: #FB9A29;
}
.eventListC .list .item .level.C {
.eventListC .list .item .levelTitleC .level.C {
background-color: #FEC44F;
}
.eventListC .list .item .title {
.eventListC .list .item .levelTitleC .title {
font-size: 30rpx;
font-weight: bold;
color: #222;
color: #3D3D3D;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.eventListC .list .item .content {
margin-top: 20rpx;
margin: 20rpx 22rpx 0;
font-size: 24rpx;
font-weight: 500;
color: #666;
color: #71675D;
word-break: break-all;
}
.eventListC .list .item .content.retract {
@@ -182,7 +175,7 @@
}
.eventListC .list .item .increaseRateList {
white-space: nowrap;
margin-top: 24rpx;
margin: 20rpx 22rpx 0;
}
.eventListC .list .item .increaseRateList .rateItem {
display: inline-block;
@@ -199,7 +192,7 @@
height: auto;
}
.eventListC .list .item .increaseRateList .rateItem.up {
background-color: #C00000;
background-color: #EC3440;
}
.eventListC .list .item .increaseRateList .rateItem.down {
background-color: #355422;
@@ -229,9 +222,10 @@
margin-top: 20rpx;
}
.eventListC .list .item .timeToolBarC .time {
margin-left: 22rpx;
font-size: 22rpx;
font-weight: 500;
color: #aaa;
color: #666;
}
.eventListC .list .item .timeToolBarC .toolBarC .toolItem {
padding: 0 20rpx;
@@ -249,30 +243,6 @@
width: 33rpx;
height: auto;
}
.sortPopup {
background-color: white;
margin-left: calc(100% - (170rpx + 54rpx));
width: 170rpx;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 10rpx;
}
.sortPopup .arrow {
top: -13rpx;
left: 38rpx;
width: 26rpx;
height: auto;
}
.sortPopup .list .item {
padding: 20rpx;
font-size: 24rpx;
font-weight: 500;
color: #444;
}
.sortPopup .list .item .icon {
margin-right: 11rpx;
width: 20rpx;
height: 20rpx;
}
.screenPopup {
background-color: white;
border-radius: 0 0 20rpx 20rpx;
@@ -288,133 +258,100 @@
width: 32rpx;
height: auto;
}
.screenPopup .screenCategoryList {
background-color: #F8F7FD;
width: 175rpx;
.screenPopup .screenC {
margin: 20rpx 25rpx 0;
border-bottom: solid 1rpx #F0F0F0;
}
.screenPopup .screenCategoryList .item {
padding: 0 23rpx;
line-height: 90rpx;
font-size: 28rpx;
font-weight: 500;
color: #333;
}
.screenPopup .screenCategoryList .item.select {
background-color: white;
font-weight: bold;
color: #F97316;
}
.screenPopup .screenCategoryList .item.select .line {
background-color: #F97316;
top: calc((100% - 25rpx)/2);
left: 0;
width: 8rpx;
height: 25rpx;
border-radius: 0 5rpx 5rpx 0;
}
.screenPopup .screenContentC {
padding: 30rpx 0 60rpx;
max-height: 1100rpx;
overflow-y: scroll;
}
.screenPopup .screenContentC .section {
padding: 0 20rpx;
font-size: 30rpx;
font-weight: 500;
color: #222;
}
.screenPopup .screenContentC .dateC {
background-color: #F6F6F6;
margin: 30rpx 20rpx 0;
height: 70rpx;
border-radius: 5rpx;
font-size: 28rpx;
font-weight: 500;
color: #858C9A;
}
.screenPopup .screenContentC .dateC .start {
text-align: right;
}
.screenPopup .screenContentC .dateC .and {
margin: 0 20rpx;
}
.screenPopup .screenContentC .yearMonthC {
margin-top: 30rpx;
padding: 0 30rpx;
}
.screenPopup .screenContentC .yearMonthC .yearMonth {
text-align: center;
.screenPopup .screenC .item {
padding: 0 8rpx;
height: 64rpx;
font-size: 24rpx;
color: #3E3E3E;
}
.screenPopup .screenContentC .yearMonthC .btn {
background-color: #f8f8f8;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
}
.screenPopup .screenContentC .yearMonthC .btn .icon {
display: block;
width: 24rpx;
.screenPopup .screenC .item .icon {
margin-right: 13rpx;
width: 17rpx;
height: auto;
}
.screenPopup .screenContentC .weekList {
margin-top: 20rpx;
padding: 0 30rpx;
.screenPopup .screenC .item .arrow {
margin-left: 9rpx;
width: 11rpx;
height: auto;
}
.screenPopup .screenContentC .weekList .item {
line-height: 40rpx;
.screenPopup .screenC .item:first-child .icon {
margin-right: 12rpx;
width: 20rpx;
height: auto;
}
.screenPopup .screenC .item.level .icon {
margin-right: 13rpx;
width: 16rpx;
height: auto;
}
.screenPopup .quickTimeC {
padding: 30rpx 48rpx 20rpx;
}
.screenPopup .quickTimeC .item {
margin: 0 32rpx 30rpx 0;
width: calc((100% - 96rpx)/4);
line-height: 58rpx;
border-radius: 30rpx;
border: solid 1rpx #4E4E4E;
font-size: 24rpx;
color: #a1a1a1;
text-align: center;
}
.screenPopup .screenContentC .monthDateList {
padding: 0 30rpx;
}
.screenPopup .screenContentC .monthDateList .item {
margin-bottom: 10rpx;
width: calc(100%/7);
}
.screenPopup .screenContentC .monthDateList .item .date {
background-color: #f8f8f8;
width: calc(100% - 10rpx);
line-height: 64rpx;
border-radius: 15rpx;
font-size: 24rpx;
font-weight: bold;
color: #333;
text-align: center;
}
.screenPopup .screenContentC .monthDateList .item .date.select {
background-color: #FF7E1A;
color: white;
}
.screenPopup .screenContentC .monthDateList .item .date.today {
color: #FF7E1A;
}
.screenPopup .screenContentC .monthDateList .item .date.inRange {
background-color: #FFF2EB;
}
.screenPopup .screenContentC .monthDateList .item .date.notCurrentMonth {
background-color: #fdfdfd;
color: #c3c3c3;
}
.screenPopup .screenContentC .monthDateList .item .eventNum {
margin-top: 12rpx;
width: 80rpx;
height: 30rpx;
line-height: 30rpx;
border-radius: 5rpx;
font-size: 16rpx;
font-weight: 500;
color: white;
color: #4E4E4E;
text-align: center;
}
.screenPopup .screenContentC .industryCategoryC {
.screenPopup .quickTimeC .item:nth-child(4n) {
margin-right: 0;
}
.screenPopup .quickTimeC .item.select {
border: solid 1rpx #F3C368;
color: #F3C368;
}
.screenPopup .dateRangeC {
padding: 0 25rpx;
border-radius: 5rpx;
}
.screenPopup .dateRangeC .dateC {
background-color: #F7F7F7;
height: 76rpx;
border-radius: 38rpx;
font-size: 24rpx;
font-weight: 500;
color: #999;
}
.screenPopup .dateRangeC .dateC .icon {
margin-right: 17rpx;
width: 28rpx;
height: auto;
}
.screenPopup .dateRangeC .dateC.select {
border: solid 1rpx #F3C368;
color: #F3C368;
}
.screenPopup .dateRangeC .line {
background-color: #999;
margin: 0 12rpx;
width: 36rpx;
height: 2rpx;
}
.screenPopup .dateList {
height: 430rpx;
}
.screenPopup .dateList .item {
line-height: 43px;
font-size: 32rpx;
font-weight: 500;
color: #778595;
text-align: center;
}
.screenPopup .industryCategoryC {
margin: 14rpx 20rpx 0;
padding-bottom: 20rpx;
border-bottom: solid 1rpx #E4E4E4;
}
.screenPopup .screenContentC .industryCategoryC .item {
.screenPopup .industryCategoryC .item {
background-color: #F6F6F6;
margin: 0 20rpx 20rpx 0;
padding: 0 30rpx;
@@ -424,11 +361,11 @@
font-weight: 500;
color: #666;
}
.screenPopup .screenContentC .industryCategoryC .item.select {
.screenPopup .industryCategoryC .item.select {
background-color: #F97316;
color: white;
}
.screenPopup .screenContentC .industrySearchC {
.screenPopup .industrySearchC {
background-color: #F6F6F6;
margin: 28rpx 22rpx 0;
padding: 0 22rpx;
@@ -438,27 +375,33 @@
font-size: 26rpx;
font-weight: 500;
}
.screenPopup .screenContentC .industrySearchC .icon {
.screenPopup .industrySearchC .icon {
margin-right: 16rpx;
width: 30rpx;
height: auto;
}
.screenPopup .screenContentC .searchResultList .item {
.screenPopup .searchResultList {
max-height: 500rpx;
overflow-y: scroll;
}
.screenPopup .searchResultList .item {
padding: 10rpx 44rpx;
font-size: 26rpx;
font-weight: 500;
color: #444;
}
.screenPopup .screenContentC .searchResultList .item .key {
.screenPopup .searchResultList .item .key {
color: #F97316;
}
.screenPopup .screenContentC .industryList {
.screenPopup .industryList {
margin-top: 24rpx;
max-height: 500rpx;
overflow-y: scroll;
}
.screenPopup .screenContentC .industryList .selectCategoryList {
.screenPopup .industryList .selectCategoryList {
padding: 0 22rpx;
}
.screenPopup .screenContentC .industryList .selectCategoryList .item {
.screenPopup .industryList .selectCategoryList .item {
background-color: #FFF1E7;
margin-right: 15rpx;
padding-left: 16rpx;
@@ -469,38 +412,38 @@
font-weight: 500;
color: #F97316;
}
.screenPopup .screenContentC .industryList .selectCategoryList .item .deleteC {
.screenPopup .industryList .selectCategoryList .item .deleteC {
padding: 0 11rpx;
}
.screenPopup .screenContentC .industryList .selectCategoryList .item .deleteC .icon {
.screenPopup .industryList .selectCategoryList .item .deleteC .icon {
width: 15rpx;
height: 15rpx;
}
.screenPopup .screenContentC .industryList .list {
.screenPopup .industryList .list {
margin-top: 20rpx;
}
.screenPopup .screenContentC .industryList .list .topCategory {
.screenPopup .industryList .list .topCategory {
padding: 0 22rpx;
font-size: 28rpx;
font-weight: bold;
color: #F97316;
}
.screenPopup .screenContentC .industryList .list .secondItem {
.screenPopup .industryList .list .secondItem {
padding: 0 22rpx;
}
.screenPopup .screenContentC .industryList .list .thirdItem {
.screenPopup .industryList .list .thirdItem {
padding-left: 36rpx;
}
.screenPopup .screenContentC .industryList .list .forthItem {
.screenPopup .industryList .list .forthItem {
padding-left: 36rpx;
}
.screenPopup .screenContentC .industryList .list .forthItem .categoryC.select {
.screenPopup .industryList .list .forthItem .categoryC.select {
border-bottom: solid 0.5px #F97316;
}
.screenPopup .screenContentC .industryList .list .categoryC {
.screenPopup .industryList .list .categoryC {
height: 50rpx;
}
.screenPopup .screenContentC .industryList .list .categoryC .spread {
.screenPopup .industryList .list .categoryC .spread {
margin-right: 12rpx;
width: 24rpx;
line-height: 22rpx;
@@ -509,45 +452,69 @@
color: #8C8C8C;
text-align: center;
}
.screenPopup .screenContentC .industryList .list .categoryC .category {
.screenPopup .industryList .list .categoryC .category {
font-size: 24rpx;
font-weight: 500;
color: #444;
}
.screenPopup .screenContentC .industryList .list .categoryC.select .spread {
.screenPopup .industryList .list .categoryC.select .spread {
color: #F97316;
border: solid 0.5px #F97316;
}
.screenPopup .screenContentC .industryList .list .categoryC.select .category {
.screenPopup .industryList .list .categoryC.select .category {
color: #F97316;
}
.screenPopup .screenContentC .industryList .list .categoryC.select .selectC {
.screenPopup .industryList .list .categoryC.select .selectC {
width: 24rpx;
height: 24rpx;
border: solid 0.5px #F97316;
}
.screenPopup .screenContentC .industryList .list .categoryC.select .selectC .icon {
.screenPopup .industryList .list .categoryC.select .selectC .icon {
display: block;
width: 20rpx;
height: auto;
}
.screenPopup .screenContentC .importanceList {
margin-top: 16rpx;
padding: 0 20rpx;
.screenPopup .importanceList {
margin-top: 12rpx;
padding: 0 50rpx 25rpx;
}
.screenPopup .screenContentC .importanceList .item {
background-color: #F6F6F6;
margin: 0 20rpx 20rpx 0;
width: 150rpx;
line-height: 70rpx;
.screenPopup .importanceList .item {
background-color: #F7F7F7;
margin-bottom: 20rpx;
padding: 0 50rpx;
height: 70rpx;
border-radius: 10rpx;
font-size: 28rpx;
color: #666;
text-align: center;
font-size: 24rpx;
font-weight: 500;
color: #4E4E4E;
}
.screenPopup .screenContentC .importanceList .item.select {
background-color: #F97316;
color: white;
.screenPopup .importanceList .item.select {
border: solid 2rpx #F3C368;
}
.screenPopup .importanceList .item.select .icon {
width: 26rpx;
height: auto;
}
.screenPopup .sortTypeList {
padding: 0 25rpx 15rpx;
}
.screenPopup .sortTypeList .item {
height: 80rpx;
border-bottom: solid 1rpx #EAEAEA;
font-size: 24rpx;
font-weight: 500;
color: #778595;
}
.screenPopup .sortTypeList .item .icon {
margin-right: 12rpx;
width: 23rpx;
height: auto;
}
.screenPopup .sortTypeList .item.select {
color: #3D3D3D;
}
.screenPopup .sortTypeList .item:last-child {
border: none;
}
.screenPopup .btnC {
overflow: hidden;
@@ -563,7 +530,7 @@
color: #999;
}
.screenPopup .btnC .btn.certain {
background-color: #F97316;
background-color: #F3C368;
font-weight: bold;
color: white;
color: #101213;
}

View File

@@ -35,7 +35,7 @@ const _sfc_main = {
type: "cross"
},
formatter: function(params) {
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:74", params);
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:77", params);
let res = "日期:" + params[0].name + "\n开盘价" + params[0].data[1] + "\n收盘价" + params[0].data[2] + "\n最低价" + params[0].data[3] + "\n最高价" + params[0].data[4];
return res;
}
@@ -159,7 +159,7 @@ const _sfc_main = {
if (e.code) {
this.type = e.type;
if (e.type == 1) {
this.contentTop = this.navH + (60 + 8) / 750 * common_vendor.inject("windowWidth");
this.contentTop = this.navH + 20 / 750 * common_vendor.inject("windowWidth");
this.eventId = e.id;
this.stockCode = e.code;
this.getStockDetailsData();
@@ -343,7 +343,8 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
leftText: $data.navTitle
leftText: $data.navTitle,
hideNavBg: true
}),
b: common_assets._imports_0,
c: $data.type == 1
@@ -357,21 +358,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: index,
e: common_vendor.o(($event) => $options.clickCategoryItem(index), index)
});
}),
e: common_vendor.s("top:" + $data.navH + "px;")
})
} : {}, {
f: $data.type == 1 && $data.tradeData
e: $data.type == 1 && $data.tradeData
}, $data.type == 1 && $data.tradeData ? {
g: common_vendor.t($data.tradeData.volume),
h: common_vendor.t($data.tradeData.amount)
f: common_vendor.t($data.tradeData.volume),
g: common_vendor.t($data.tradeData.amount)
} : {}, {
i: $data.type == 1
h: $data.type == 1
}, $data.type == 1 ? {
j: common_vendor.sr("chartRef", "42054871-1")
i: common_vendor.sr("chartRef", "42054871-1")
} : {}, {
k: common_vendor.t($data.relatedDesc),
j: common_vendor.t($data.relatedDesc),
k: common_vendor.s("margin-top:" + $data.contentTop + "px;"),
l: $data.type == 1 && $data.sourceList.length > 0
}, $data.type == 1 && $data.sourceList.length > 0 ? {} : {}, {
}, $data.type == 1 && $data.sourceList.length > 0 ? {
m: common_vendor.f($data.sourceList, (item, index, i0) => {
return {
a: common_vendor.t(item.sentences),
@@ -380,10 +381,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.t($data.getLocalDate(item.declare_date)),
e: index
};
}),
n: common_vendor.n("contentC fixed " + ($data.type == 2 ? "radius" : "")),
o: common_vendor.s("top:" + $data.contentTop + "px;")
});
})
} : {});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="tabC fixed" style="{{e}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view class="{{n}}" style="{{o}}"><view wx:if="{{f}}" class="volumeAmountC flex"><text class="volume">成交量:{{g}}</text><text class="amount">成交金额:{{h}}</text></view><view wx:if="{{i}}" style="width:750rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{k}}<text class="ai">AI合成</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view><view wx:if="{{l}}" class="section">信息来源</view><view class="list"><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="chartDesC relative" style="{{k}}"><view wx:if="{{c}}" class="tabC"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="volumeAmountC flex"><text class="volume">成交量:{{f}}</text><text class="amount">成交金额:{{g}}</text></view><view wx:if="{{h}}" style="width:700rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{j}}<text class="ai">AI合成</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view></view><view wx:if="{{l}}" class="infoSourceC"><view class="section">信息来源</view><view class="list"><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>

View File

@@ -1,103 +1,105 @@
page {
background-color: #070707;
}
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.tabC {
background-color: white;
margin-top: 10rpx;
left: 0;
right: 0;
border-radius: 20rpx 20rpx 0 0;
.chartDesC {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin: 0 25rpx;
padding-top: 10rpx;
border-radius: 10rpx;
}
.tabC .item {
.chartDesC .tabC .item {
display: inline-block;
padding: 0 30rpx;
padding: 0 25rpx;
line-height: 60rpx;
font-size: 28rpx;
font-weight: 500;
color: #42485B;
}
.tabC .item.select {
.chartDesC .tabC .item.select {
font-weight: bold;
color: #F97316;
color: #F3C368;
}
.tabC .item.select .line {
background-color: #F97316;
.chartDesC .tabC .item.select .line {
background-color: #F3C368;
left: calc((100% - 50rpx)/2);
bottom: 0;
width: 50rpx;
height: 2rpx;
}
.contentC {
background-color: white;
left: 0;
right: 0;
bottom: 0;
overflow-y: scroll;
.chartDesC .volumeAmountC {
padding: 25rpx;
font-size: 28rpx;
font-weight: bold;
color: #666;
}
.contentC .volumeAmountC {
padding: 20rpx;
font-size: 26rpx;
color: #333;
.chartDesC .volumeAmountC .volume {
margin-right: 30rpx;
}
.contentC .volumeAmountC .volume {
margin-right: 20rpx;
}
.contentC .section {
padding: 0 28rpx;
.chartDesC .section {
padding: 0 25rpx;
line-height: 80rpx;
font-size: 32rpx;
font-weight: bold;
color: #222;
}
.contentC .des {
.chartDesC .des {
margin: 0 25rpx;
line-height: 1.4rem;
font-size: 24rpx;
font-weight: 500;
color: #666;
}
.contentC .des .ai {
color: #C00000;
.chartDesC .des .ai {
color: #EC3440;
}
.contentC .riskTips {
.chartDesC .riskTips {
margin: 20rpx 25rpx 0;
padding-bottom: 30rpx;
line-height: 1.4rem;
font-size: 20rpx;
color: #999;
border-bottom: solid 1rpx #E4E4E4;
line-height: 1.2rem;
font-size: 22rpx;
color: #A2A2A1;
}
.contentC .list {
.infoSourceC .section {
padding: 0 25rpx;
line-height: 80rpx;
font-size: 27rpx;
font-weight: bold;
color: #F3C368;
}
.infoSourceC .list {
padding: 0 25rpx;
}
.contentC .list .item {
background-color: #F8F8F8;
.infoSourceC .list .item {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-bottom: 20rpx;
padding: 30rpx 26rpx;
border-radius: 10rpx;
}
.contentC .list .item .content {
.infoSourceC .list .item .content {
font-size: 24rpx;
font-weight: 500;
color: #222;
}
.contentC .list .item .article {
.infoSourceC .list .item .article {
margin-top: 10rpx;
font-size: 22rpx;
font-weight: 500;
color: #666;
text-align: right;
}
.contentC .list .item .authorDateC {
.infoSourceC .list .item .authorDateC {
margin-top: 30rpx;
font-size: 22rpx;
font-weight: 500;
color: #AAA;
}
.contentC .list .item .authorDateC .author {
.infoSourceC .list .item .authorDateC .author {
margin-right: 10rpx;
}
.contentC.radius {

View File

@@ -361,119 +361,131 @@ const _sfc_main = {
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
const _easycom_ua_markdown2 = common_vendor.resolveComponent("ua-markdown");
const _easycom_zui_progress_circle2 = common_vendor.resolveComponent("zui-progress-circle");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_ua_markdown2 + _easycom_zui_progress_circle2 + _easycom_uni_popup2)();
(_easycom_navBar2 + _easycom_ua_markdown2 + _easycom_zui_progress_circle2 + _easycom_uni_popup2)();
}
const _easycom_navBar = () => "../../components/navBar/navBar.js";
const _easycom_ua_markdown = () => "../../components/ua-markdown/ua-markdown.js";
const _easycom_zui_progress_circle = () => "../../uni_modules/zui-progress-circle/components/zui-progress-circle/zui-progress-circle.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_ua_markdown + _easycom_zui_progress_circle + _easycom_uni_popup)();
(_easycom_navBar + _easycom_ua_markdown + _easycom_zui_progress_circle + _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;"),
h: common_vendor.t($data.selectDate),
i: common_assets._imports_2$3,
j: common_vendor.o(($event) => $options.clickSelectMonth()),
k: common_vendor.o(($event) => $options.clickTodayDate()),
l: common_vendor.f($data.weekList, (item, index, i0) => {
f: common_vendor.s("top:" + $data.navH + "px;"),
g: common_vendor.t($data.selectDate),
h: common_assets._imports_2$2,
i: common_vendor.o(($event) => $options.clickSelectMonth()),
j: common_vendor.o(($event) => $options.clickTodayDate()),
k: common_vendor.f($data.weekList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
m: $data.isExpand
l: $data.isExpand
}, $data.isExpand ? {
n: common_vendor.f($data.monthDateList, (item, index, i0) => {
return common_vendor.e($data.selectDate != $data.todayDate ? common_vendor.e({
a: $data.selectDate == item.date
}, $data.selectDate == item.date ? {
b: common_vendor.t(item.day)
} : {
c: common_vendor.t(item.day),
d: common_vendor.n("date " + (item.isCurrentMonth ? "" : " notCurrentMonth"))
}) : {
e: common_vendor.t(item.day),
f: common_vendor.n("date " + (item.isToday ? "today" : item.isCurrentMonth ? "" : " notCurrentMonth"))
}, {
g: item.className
m: common_vendor.f($data.monthDateList, (item, index, i0) => {
return common_vendor.e({
a: item.className
}, item.className ? common_vendor.e({
h: item.className == "bg-gradient-danger"
b: item.className == "bg-gradient-danger"
}, item.className == "bg-gradient-danger" ? {
i: common_vendor.t(item.eventCount)
c: common_vendor.t(item.day),
d: common_vendor.t(item.eventCount),
e: common_vendor.n("item flexColumnCenter danger " + ($data.selectDate == item.date ? "select" : "")),
f: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}, {
j: item.className == "bg-gradient-warning"
g: item.className == "bg-gradient-warning"
}, item.className == "bg-gradient-warning" ? {
k: common_vendor.t(item.eventCount)
h: common_vendor.t(item.day),
i: common_vendor.t(item.eventCount),
j: common_vendor.n("item flexColumnCenter warning " + ($data.selectDate == item.date ? "select" : "")),
k: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}, {
l: item.className == "bg-gradient-info"
}, item.className == "bg-gradient-info" ? {
m: common_vendor.t(item.eventCount)
m: common_vendor.t(item.day),
n: common_vendor.t(item.eventCount),
o: common_vendor.n("item flexColumnCenter info " + ($data.selectDate == item.date ? "select" : "")),
p: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}, {
n: item.className == "bg-gradient-success"
q: item.className == "bg-gradient-success"
}, item.className == "bg-gradient-success" ? {
o: common_vendor.t(item.eventCount)
} : {}) : {}, {
p: index,
q: common_vendor.o(($event) => $options.clickSelectDate(item), index)
});
}),
o: $data.selectDate != $data.todayDate
} : {
p: common_vendor.f($data.weekDateList, (item, index, i0) => {
return common_vendor.e($data.selectDate != $data.todayDate ? common_vendor.e({
a: $data.selectDate == item.date
}, $data.selectDate == item.date ? {
b: common_vendor.t(item.day)
} : {
c: common_vendor.t(item.day),
d: common_vendor.n("date " + (item.isCurrentMonth ? "" : " notCurrentMonth"))
}) : {
e: common_vendor.t(item.day),
f: common_vendor.n("date " + (item.isToday ? "today" : item.isCurrentMonth ? "" : " notCurrentMonth"))
r: common_vendor.t(item.day),
s: common_vendor.t(item.eventCount),
t: common_vendor.n("item flexColumnCenter success" + ($data.selectDate == item.date ? "select" : "")),
v: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}) : {
w: common_vendor.t(item.day),
x: common_vendor.n("date " + (item.isCurrentMonth ? "" : " notCurrentMonth"))
}, {
g: item.className
y: index
});
})
} : {
n: common_vendor.f($data.weekDateList, (item, index, i0) => {
return common_vendor.e({
a: item.className
}, item.className ? common_vendor.e({
h: item.className == "bg-gradient-danger"
b: item.className == "bg-gradient-danger"
}, item.className == "bg-gradient-danger" ? {
i: common_vendor.t(item.eventCount)
c: common_vendor.t(item.day),
d: common_vendor.t(item.eventCount),
e: common_vendor.n("item flex1 flexColumnCenter danger " + ($data.selectDate == item.date ? "select" : "")),
f: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}, {
j: item.className == "bg-gradient-warning"
g: item.className == "bg-gradient-warning"
}, item.className == "bg-gradient-warning" ? {
k: common_vendor.t(item.eventCount)
h: common_vendor.t(item.day),
i: common_vendor.t(item.eventCount),
j: common_vendor.n("item flex1 flexColumnCenter warning " + ($data.selectDate == item.date ? "select" : "")),
k: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}, {
l: item.className == "bg-gradient-info"
}, item.className == "bg-gradient-info" ? {
m: common_vendor.t(item.eventCount)
m: common_vendor.t(item.day),
n: common_vendor.t(item.eventCount),
o: common_vendor.n("item flex1 flexColumnCenter info " + ($data.selectDate == item.date ? "select" : "")),
p: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}, {
n: item.className == "bg-gradient-success"
q: item.className == "bg-gradient-success"
}, item.className == "bg-gradient-success" ? {
o: common_vendor.t(item.eventCount)
} : {}) : {}, {
p: common_vendor.o(($event) => $options.clickSelectDate(item), index),
q: index
r: common_vendor.t(item.day),
s: common_vendor.t(item.eventCount),
t: common_vendor.n("item flex1 flexColumnCenter success " + ($data.selectDate == item.date ? "select" : "")),
v: common_vendor.o(($event) => $options.clickSelectDate(item), index)
} : {}) : {
w: common_vendor.t(item.day),
x: common_vendor.t(item.className ? item.eventCount : ""),
y: common_vendor.o(($event) => $options.clickSelectDate(item), index)
}, {
z: index
});
}),
q: $data.selectDate != $data.todayDate
})
}, {
r: common_vendor.t($data.isExpand ? "收起" : "展开"),
s: $data.isExpand
o: common_vendor.t($data.isExpand ? "收起" : "展开"),
p: $data.isExpand
}, $data.isExpand ? {
t: common_assets._imports_3$2
q: common_assets._imports_3$2
} : {
v: common_assets._imports_4$1
r: common_assets._imports_4$1
}, {
w: common_vendor.o(($event) => $options.clickExpandOrRetract()),
x: common_vendor.f($data.tabList, (item, index, i0) => {
s: common_vendor.o(($event) => $options.clickExpandOrRetract()),
t: common_vendor.f($data.tabList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.n("item " + ($data.selectTab == index ? "select" : "")),
@@ -481,7 +493,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickTabItem(index), index)
};
}),
y: common_vendor.f($data.stockCategoryList, (item, index, i0) => {
v: common_vendor.f($data.stockCategoryList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.primary_sector),
b: $data.selectTopCategory == index
@@ -491,9 +503,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: common_vendor.o(($event) => $options.clickTopCategoryItem(index), index)
});
}),
z: $data.selectTab == 0
w: $data.selectTab == 0
}, $data.selectTab == 0 ? {
A: common_vendor.f($data.eventList, (item, index, i0) => {
x: common_vendor.f($data.eventList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t($data.getLocaleHourMinute(item.start_time)),
b: common_vendor.f(5, (sitem, sindex, i1) => {
@@ -504,42 +516,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
c: index,
d: common_vendor.t(item.category.event_type),
e: common_vendor.t(item.title),
f: common_vendor.f(item.tags, (titem, tindex, i1) => {
return {
a: common_vendor.t(titem),
b: tindex
};
}),
g: "2cf1ca64-0-" + i0,
h: common_vendor.p({
f: "2cf1ca64-1-" + i0,
g: common_vendor.p({
source: $data.replaceAnswerLabel(item.description)
}),
i: item.related_concepts
h: item.related_concepts
}, item.related_concepts ? {
j: common_vendor.f(item.related_concepts, (citem, cindex, i1) => {
i: common_vendor.f(item.related_concepts, (citem, cindex, i1) => {
return {
a: common_vendor.t(citem.name),
b: common_vendor.t(citem.score * 100),
c: "2cf1ca64-1-" + i0 + "-" + i1,
c: "2cf1ca64-2-" + i0 + "-" + i1,
d: common_vendor.p({
position: citem.score,
range: [270, 630],
size: 26,
["ring-width"]: 2,
texture: ["#F97316", "#E3E3E3"]
texture: ["#F3C368", "#E3E3E3"]
}),
e: cindex
};
})
} : {}, {
k: index,
l: common_vendor.o(($event) => $options.clickEventItem(item.id), index)
j: index,
k: common_vendor.o(($event) => $options.clickEventItem(item.id), index)
});
})
} : {}, {
B: $data.selectTab == 1
y: $data.selectTab == 1
}, $data.selectTab == 1 ? {
C: common_vendor.f($data.dataList, (item, index, i0) => {
z: common_vendor.f($data.dataList, (item, index, i0) => {
return {
a: common_vendor.t($data.getLocaleHourMinute(item.created_at)),
b: common_vendor.f(5, (sitem, sindex, i1) => {
@@ -556,22 +562,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {}, {
D: common_vendor.s("top:" + $data.contentTop + "px;"),
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) => {
A: common_vendor.s("top:" + $data.contentTop + "px;"),
B: $data.isRefreshing,
C: common_vendor.o(($event) => $options.pullDownRefresh()),
D: common_vendor.o(($event) => $options.loadMoreData()),
E: common_assets._imports_5,
F: common_vendor.o(($event) => $options.clickPreMonth()),
G: common_vendor.t($data.selectMonth),
H: common_assets._imports_6,
I: common_vendor.o(($event) => $options.clickNextMonth()),
J: common_vendor.f($data.weekList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
N: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
K: 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 ? {
@@ -587,9 +593,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
});
}),
O: common_vendor.s("margin-top:" + $data.navH + "px;"),
P: common_vendor.sr("popup", "2cf1ca64-2"),
Q: common_vendor.p({
L: common_vendor.s("margin-top:" + $data.navH + "px;"),
M: common_vendor.sr("popup", "2cf1ca64-3"),
N: common_vendor.p({
type: "top"
})
});

View File

@@ -2,6 +2,7 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"usingComponents": {
"nav-bar": "../../components/navBar/navBar",
"ua-markdown": "../../components/ua-markdown/ua-markdown",
"zui-progress-circle": "../../uni_modules/zui-progress-circle/components/zui-progress-circle/zui-progress-circle",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"

File diff suppressed because one or more lines are too long

View File

@@ -1,25 +1,22 @@
page {
background-color: #070707;
}
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.navTitle {
left: 0;
margin: 0 23rpx;
font-size: 36rpx;
font-weight: bold;
color: white;
}
.searchC {
background-color: white;
background-color: #292929B3;
left: 0;
right: 0;
margin: 20rpx 25rpx 0;
padding: 0 20rpx;
height: 75rpx;
border-radius: 20rpx;
font-size: 26rpx;
padding: 0 25rpx;
height: 70rpx;
border: solid 1rpx #363636;
border-radius: 35rpx;
font-size: 22rpx;
font-weight: 500;
}
.searchC .icon {
@@ -40,151 +37,198 @@
color: #F97316;
}
.contentC {
background-color: white;
left: 0;
right: 0;
bottom: calc(55px + env(safe-area-inset-bottom));
margin-top: 22rpx;
border-radius: 20rpx 20rpx 0 0;
margin-top: 20rpx;
overflow-y: scroll;
}
.contentC .todayC {
.contentC .calendarC {
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin: 0 25rpx;
border-radius: 20rpx;
}
.contentC .calendarC .todayC {
padding: 12rpx 26rpx;
}
.contentC .todayC .todayDateC {
.contentC .calendarC .todayC .todayDateC {
font-size: 32rpx;
font-weight: bold;
color: #222;
color: #CCCDD1;
}
.contentC .todayC .todayDateC .icon {
.contentC .calendarC .todayC .todayDateC .icon {
margin-left: 16rpx;
width: 30rpx;
height: auto;
}
.contentC .todayC .today {
background-color: #F973161A;
.contentC .calendarC .todayC .today {
background-color: #F3C368;
width: 40rpx;
line-height: 40rpx;
border-radius: 50%;
font-size: 26rpx;
font-weight: 500;
color: #F97316;
color: #070707;
text-align: center;
}
.contentC .weekList .item {
.contentC .calendarC .weekList .item {
line-height: 40rpx;
font-size: 24rpx;
font-weight: 500;
color: #292621;
text-align: center;
}
.contentC .weekDateList .item {
padding-top: 14rpx;
.contentC .calendarC .weekDateList {
margin-top: 6rpx;
padding: 0 20rpx;
}
.contentC .weekDateList .item .date {
width: 40rpx;
line-height: 40rpx;
font-size: 24rpx;
text-align: center;
}
.contentC .weekDateList .item .date.today {
background-color: #F9731626;
.contentC .calendarC .weekDateList .item {
margin-right: 16rpx;
padding: 10rpx 0 6rpx;
border-radius: 5rpx;
color: #F97316;
}
.contentC .weekDateList .item .eventNum {
margin-top: 12rpx;
width: 80rpx;
height: 30rpx;
line-height: 30rpx;
border-radius: 5rpx;
font-size: 16rpx;
font-weight: 500;
color: white;
text-align: center;
}
.contentC .weekDateList .item .eventNum.danger {
background-color: #EB4A46;
}
.contentC .weekDateList .item .eventNum.warning {
background-color: #FD9C16;
}
.contentC .weekDateList .item .eventNum.info {
background-color: #16BBCF;
}
.contentC .weekDateList .item .eventNum.success {
background-color: #55AE59;
}
.contentC .monthDateList .item {
padding-top: 14rpx;
width: calc(100%/7);
}
.contentC .monthDateList .item .date {
width: 40rpx;
line-height: 40rpx;
.contentC .calendarC .weekDateList .item .date {
font-size: 24rpx;
font-weight: bold;
color: #292621;
text-align: center;
color: #2A2A2A;
}
.contentC .monthDateList .item .date.today {
background-color: #F9731626;
.contentC .calendarC .weekDateList .item .eventNum {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2rpx;
font-size: 18rpx;
font-weight: bold;
}
.contentC .calendarC .weekDateList .item:nth-child(7n) {
margin-right: 0;
}
.contentC .calendarC .weekDateList .item.select .date {
color: white;
}
.contentC .calendarC .weekDateList .item.danger {
background-color: #EB4A461A;
color: #EB4A46;
}
.contentC .calendarC .weekDateList .item.select.danger {
background-color: #EB4A46;
color: white;
}
.contentC .calendarC .weekDateList .item.warning {
background-color: #FD9A141A;
color: #FD9A14;
}
.contentC .calendarC .weekDateList .item.select.warning {
background-color: #FD9A14;
color: white;
}
.contentC .calendarC .weekDateList .item.info {
background-color: #16BBCF1A;
color: #16BBCF;
}
.contentC .calendarC .weekDateList .item.select.info {
background-color: #16BBCF;
color: white;
}
.contentC .calendarC .weekDateList .item.success {
background-color: #55AE591A;
color: #55AE59;
}
.contentC .calendarC .weekDateList .item.select.success {
background-color: #55AE59;
color: white;
}
.contentC .calendarC .monthDateList {
margin-top: 6rpx;
padding: 0 20rpx;
}
.contentC .calendarC .monthDateList .item {
margin: 0 16rpx 20rpx 0;
padding: 10rpx 0 6rpx;
width: calc((100% - 96rpx)/7);
border-radius: 5rpx;
color: #F97316;
}
.contentC .monthDateList .item .date.notCurrentMonth {
.contentC .calendarC .monthDateList .item .date {
font-size: 26rpx;
font-weight: bold;
color: #2A2A2A;
}
.contentC .calendarC .monthDateList .item .date.notCurrentMonth {
color: #999;
}
.contentC .monthDateList .item .eventNum {
margin-top: 12rpx;
width: 80rpx;
height: 30rpx;
line-height: 30rpx;
border-radius: 5rpx;
font-size: 16rpx;
font-weight: 500;
.contentC .calendarC .monthDateList .item .eventNum {
margin-top: 2rpx;
font-size: 18rpx;
font-weight: bold;
}
.contentC .calendarC .monthDateList .item:nth-child(7n) {
margin-right: 0;
}
.contentC .calendarC .monthDateList .item.select .date {
color: white;
text-align: center;
}
.contentC .monthDateList .item .eventNum.danger {
.contentC .calendarC .monthDateList .item.danger {
background-color: #EB4A461A;
color: #EB4A46;
}
.contentC .calendarC .monthDateList .item.select.danger {
background-color: #EB4A46;
color: white;
}
.contentC .monthDateList .item .eventNum.warning {
background-color: #FD9C16;
.contentC .calendarC .monthDateList .item.warning {
background-color: #FD9A141A;
color: #FD9A14;
}
.contentC .monthDateList .item .eventNum.info {
.contentC .calendarC .monthDateList .item.select.warning {
background-color: #FD9A14;
color: white;
}
.contentC .calendarC .monthDateList .item.info {
background-color: #16BBCF1A;
color: #16BBCF;
}
.contentC .calendarC .monthDateList .item.select.info {
background-color: #16BBCF;
color: white;
}
.contentC .monthDateList .item .eventNum.success {
.contentC .calendarC .monthDateList .item.success {
background-color: #55AE591A;
color: #55AE59;
}
.contentC .calendarC .monthDateList .item.select.success {
background-color: #55AE59;
color: white;
}
.contentC .expandBgC {
.contentC .calendarC .expandBgC {
margin: 0 25rpx;
border-bottom: solid 1rpx #E4E4E4;
}
.contentC .expandBgC .expandC {
.contentC .calendarC .expandBgC .expandC {
padding: 20rpx 0;
font-size: 22rpx;
font-weight: 500;
color: #8A857C;
}
.contentC .expandBgC .expandC .arrow {
.contentC .calendarC .expandBgC .expandC .arrow {
margin-left: 7rpx;
width: 15rpx;
height: auto;
}
.contentC .tabC {
margin-top: 10rpx;
}
.contentC .tabC .item {
display: inline-block;
padding: 0 24rpx;
padding: 0 27rpx;
line-height: 70rpx;
font-size: 32rpx;
color: #42485B;
color: #CCCDD1;
}
.contentC .tabC .item.select {
color: #F97316;
color: #F3C368;
}
.contentC .topCategoryC {
white-space: nowrap;
border-bottom: solid 1rpx #E4E4E4;
}
.contentC .topCategoryC .item {
display: inline-block;
@@ -192,60 +236,77 @@
padding: 0 28rpx;
font-size: 27rpx;
font-weight: 500;
color: #42485B;
color: #939393;
}
.contentC .topCategoryC .item.select {
font-weight: bold;
color: black;
color: #F3C368;
}
.contentC .topCategoryC .item.select .line {
background-color: #F97316;
background-color: #F3C368;
left: calc((100% - 50rpx)/2);
width: 50rpx;
height: 2rpx;
bottom: 0;
}
.eventList {
padding: 0 25rpx;
padding: 18rpx 25rpx;
}
.eventList .item {
padding: 30rpx 0;
border-bottom: solid 1rpx #E4E4E4;
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-bottom: 20rpx;
padding: 30rpx 20rpx;
border-radius: 10rpx;
}
.eventList .item .time {
.eventList .item .timeStarFollowC .time {
margin-right: 22rpx;
font-size: 24rpx;
font-weight: bold;
color: #767676;
}
.eventList .item .starC .starList {
.eventList .item .timeStarFollowC .starC .starList {
top: 0;
left: 0;
}
.eventList .item .starC .icon {
.eventList .item .timeStarFollowC .starC .icon {
margin-right: 9rpx;
width: 27rpx;
height: auto;
}
.eventList .item .timeStarFollowC .follow {
background-color: #3D3D3D;
width: 90rpx;
line-height: 40rpx;
border-radius: 20rpx;
font-size: 22rpx;
font-weight: 500;
color: #F2C367;
text-align: center;
}
.eventList .item .timeStarFollowC .follow.select {
background-color: #F3C368;
color: #3D3D3D;
}
.eventList .item .categoryTitleC {
margin-top: 18rpx;
}
.eventList .item .categoryTitleC .category {
background-color: #FD9A14;
margin-right: 10rpx;
background-color: #F3C368;
margin-right: 12rpx;
padding: 0 12rpx;
line-height: 40rpx;
border-radius: 8rpx;
font-size: 22rpx;
font-size: 24rpx;
font-weight: bold;
color: white;
color: #070707;
}
.eventList .item .categoryTitleC .title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
font-size: 28rpx;
font-weight: bold;
color: #222;
color: #3D3D3D;
}
.eventList .item .labelC {
margin-top: 12rpx;
@@ -269,16 +330,17 @@
overflow: hidden;
font-size: 24rpx;
font-weight: 500;
color: #666;
color: #71675D;
}
.eventList .item .percentList {
white-space: nowrap;
margin-top: 20rpx;
margin-top: 26rpx;
}
.eventList .item .percentList .percentItem {
display: inline-flex;
align-items: center;
background-color: #F8F8F8;
background-color: white;
box-shadow: 0 7rpx 18rpx 0 rgba(217, 217, 217, 0.28);
margin-right: 20rpx;
padding: 0 20rpx;
height: 70rpx;

View File

@@ -19,13 +19,13 @@ const _sfc_main = {
{
title: "全部股票",
num: 0,
bgColor: "#C00000",
bgColor: "#D82A2A",
color: "white"
},
{
title: "大周期",
num: 0,
bgColor: "#305496",
bgColor: "#3A5D9C",
color: "white"
},
{
@@ -113,18 +113,17 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
leftText: "详情"
leftText: "事件详情",
hideNavBg: true
}),
b: common_assets._imports_0,
c: common_vendor.f($data.categoryList, (item, index, i0) => {
return common_vendor.e({
return {
a: common_vendor.t(item),
b: $data.selectCategory == index
}, $data.selectCategory == index ? {} : {}, {
c: common_vendor.n("item relative " + ($data.selectCategory == index ? "select" : "")),
d: index,
e: common_vendor.o(($event) => $options.clickCategoryItem(index), index)
});
b: common_vendor.n("item relative " + ($data.selectCategory == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickCategoryItem(index), index)
};
}),
d: common_vendor.s("top:" + $data.navH + "px;"),
e: $data.investDetails
@@ -165,19 +164,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}, {
m: $data.selectCategory == 4
}, $data.selectCategory == 4 ? {
n: common_vendor.f($data.investDetails.extracted_concepts, (item, index, i0) => {
return {
a: item.first_image,
b: common_vendor.t(item.name),
c: common_vendor.t(item.reason),
d: index,
e: common_vendor.o(($event) => _ctx.clickConceptItem(), index)
};
})
m: $data.selectCategory == 3
}, $data.selectCategory == 3 ? {
n: common_vendor.f(_ctx.conceptList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.concept),
b: item.price_info
}, item.price_info ? {
c: common_vendor.t(_ctx.getChgRateStr(item.price_info.avg_change_pct)),
d: common_vendor.n("chg " + (_ctx.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
} : {}, {
e: item.price_info
}, item.price_info ? {
f: common_vendor.t(item.stock_count),
g: common_vendor.n("stockNum " + (_ctx.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
} : {}, {
h: common_vendor.t(item.description),
i: common_vendor.f(item.stocks.slice(0, 3), (sitem, sindex, i1) => {
return {
a: common_vendor.t(sitem.stock_name),
b: sindex
};
}),
j: common_vendor.t(item.stock_count - 3),
k: common_vendor.o(($event) => _ctx.clickStockMore(item), index),
l: common_vendor.t(item.price_info ? item.price_info.trade_date : ""),
m: common_vendor.o(($event) => _ctx.clickHistoricalTimeline(item), index),
n: index
});
}),
o: common_assets._imports_1$2
} : {}, {
o: 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]]);

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="b7e6c0fc-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="categoryC fixed" style="{{d}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="contentC fixed" style="{{o}}"><view wx:if="{{f}}" class="former"><ua-markdown wx:if="{{g}}" u-i="b7e6c0fc-1" bind:__l="__l" u-p="{{g}}"/><text class="ai">AI合成</text></view><view wx:if="{{h}}" class="former"><ua-markdown wx:if="{{i}}" u-i="b7e6c0fc-2" bind:__l="__l" u-p="{{i}}"/></view><view wx:if="{{j}}" class="stockC"><view class="stockCategoryList flexWrap"><view wx:for="{{k}}" wx:for-item="item" wx:key="d" class="item flexColumnCenter" style="{{item.c}}"><view class="num">{{item.a}}</view><view class="title">{{item.b}}</view></view></view><view class="stockList"><view wx:for="{{l}}" wx:for-item="item" wx:key="f" class="item" bindtap="{{item.g}}"><view class="titleCorrelationC flex"><view class="title flex1">{{item.a}}</view><view class="correlation">相关度: {{item.b}}%</view></view><view wx:if="{{item.c}}" class="category">{{item.d}}</view><view class="content">{{item.e}}</view></view></view></view><view wx:if="{{m}}"><view class="conceptList"><view wx:for="{{n}}" wx:for-item="item" wx:key="d" class="item relative" bindtap="{{item.e}}"><image class="cover" src="{{item.a}}" mode="aspectFill"></image><view class="infoC absolute"><view class="title">{{item.b}}</view><view class="content relative">{{item.c}} <text class="lookDetails absolute">查看详情</text></view></view></view></view></view></view></view>
<view><nav-bar wx:if="{{a}}" u-i="b7e6c0fc-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="categoryC fixed" style="{{d}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view><view wx:if="{{e}}" class="contentC fixed" style="{{p}}"><view wx:if="{{f}}" class="former"><ua-markdown wx:if="{{g}}" u-i="b7e6c0fc-1" bind:__l="__l" u-p="{{g}}"/><text class="ai">AI合成</text></view><view wx:if="{{h}}" class="former"><ua-markdown wx:if="{{i}}" u-i="b7e6c0fc-2" bind:__l="__l" u-p="{{i}}"/></view><view wx:if="{{j}}" class="stockC"><view class="stockCategoryList flexWrap"><view wx:for="{{k}}" wx:for-item="item" wx:key="d" class="item flexColumnCenter" style="{{item.c}}"><view class="num">{{item.a}}</view><view class="title">{{item.b}}</view></view></view><view class="stockList"><view wx:for="{{l}}" wx:for-item="item" wx:key="f" class="item" bindtap="{{item.g}}"><view class="titleCorrelationC flex"><view class="title flex1">{{item.a}}</view><view class="correlation">相关度: {{item.b}}%</view></view><view wx:if="{{item.c}}" class="category">{{item.d}}</view><view class="content">{{item.e}}</view></view></view></view><view wx:if="{{m}}"><view class="conceptList"><view wx:for="{{n}}" wx:for-item="item" wx:key="n" class="item"><view class="titleChgStockNumC flex"><view class="title">{{item.a}}</view><view wx:if="{{item.b}}" class="{{item.d}}">{{item.c}}%</view><view wx:if="{{item.e}}" class="{{item.g}}">{{item.f}} 只股票</view></view><view class="content">{{item.h}}</view><view class="hotStockC flex"><view class="title">热门个股</view><view class="stockList flex"><view wx:for="{{item.i}}" wx:for-item="sitem" wx:key="b" class="stockItem">{{sitem.a}}</view><view class="more" bindtap="{{item.k}}">+{{item.j}}更多</view></view></view><view class="transactionDateHistoryTimeC flex"><view class="transactionDate flex1">交易时间:{{item.l}}</view><view class="historyTimeC flex" bindtap="{{item.m}}"><image class="icon" src="{{o}}" mode="widthFix"></image><view>历史时间轴</view></view></view></view></view></view></view></view>

View File

@@ -1,3 +1,6 @@
page {
background-color: #070707;
}
.topBg {
top: 0;
left: 0;
@@ -5,9 +8,8 @@
height: auto;
}
.categoryC {
background-color: white;
margin-top: 10rpx;
padding-top: 20rpx;
padding: 20rpx 10rpx 0;
left: 0;
right: 0;
border-radius: 20rpx 20rpx 0 0;
@@ -15,27 +17,22 @@
.categoryC .item {
display: inline-block;
padding: 0 30rpx;
line-height: 75rpx;
font-size: 32rpx;
line-height: 76rpx;
font-size: 27rpx;
font-weight: 500;
color: #42485B;
color: #939393;
}
.categoryC .item.select {
font-weight: bold;
color: #F97316;
}
.categoryC .item.select .line {
background-color: #F97316;
left: calc((100% - 50rpx)/2);
bottom: 0;
width: 50rpx;
height: 2rpx;
color: #F3C368;
}
.contentC {
background-color: white;
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
left: 0;
right: 0;
bottom: 0;
bottom: env(safe-area-inset-bottom);
margin: 0 25rpx;
border-radius: 10rpx;
overflow-y: scroll;
}
.contentC .former {
@@ -46,12 +43,12 @@
color: #C00000;
}
.contentC .stockCategoryList {
margin-top: 18rpx;
padding: 0 24rpx;
margin-top: 30rpx;
padding: 0 20rpx;
}
.contentC .stockCategoryList .item {
margin: 0 20rpx 20rpx 0;
width: calc((100% - 40rpx)/3);
margin: 0 30rpx 20rpx 0;
width: calc((100% - 60rpx)/3);
height: 100rpx;
border-radius: 10rpx;
}
@@ -108,38 +105,118 @@
padding: 30rpx 25rpx;
}
.contentC .conceptList .item {
margin-bottom: 20rpx;
}
.contentC .conceptList .item .cover {
display: block;
width: 100%;
height: 350rpx;
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
margin-bottom: 24rpx;
border-radius: 10rpx;
}
.contentC .conceptList .item .infoC {
background: linear-gradient(to bottom, #00000080, #000);
padding: 20rpx 23rpx;
left: 0;
width: 100%;
bottom: 0;
border-radius: ;
.contentC .conceptList .item .titleChgStockNumC {
padding: 24rpx 18rpx 0;
}
.contentC .conceptList .item .titleChgStockNumC .title {
margin-right: 20rpx;
font-size: 30rpx;
font-weight: bold;
color: #3D3D3D;
}
.contentC .conceptList .item .titleChgStockNumC .chg {
margin-right: 20rpx;
padding: 0 13rpx;
line-height: 40rpx;
border-radius: 20rpx;
font-size: 22rpx;
font-weight: bold;
color: white;
}
.contentC .conceptList .item .infoC .title {
font-size: 26rpx;
.contentC .conceptList .item .titleChgStockNumC .chg.up {
background-color: #EC3440;
}
.contentC .conceptList .item .titleChgStockNumC .chg.down {
background-color: #355422;
}
.contentC .conceptList .item .titleChgStockNumC .stockNum {
padding: 0 16rpx;
line-height: 36rpx;
border-radius: 20rpx;
font-size: 22rpx;
font-weight: bold;
}
.contentC .conceptList .item .infoC .content {
.contentC .conceptList .item .titleChgStockNumC .stockNum.up {
color: #EC3440;
border: solid 2rpx #EC3440;
}
.contentC .conceptList .item .titleChgStockNumC .stockNum.down {
color: #355422;
border: solid 2rpx #355422;
}
.contentC .conceptList .item .content {
margin-top: 26rpx;
padding: 0 22rpx;
font-size: 24rpx;
font-weight: 500;
color: #71675D;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
margin-top: 10rpx;
text-overflow: ellipsis;
}
.contentC .conceptList .item .hotStockC {
margin-top: 30rpx;
padding: 0 20rpx;
}
.contentC .conceptList .item .hotStockC .title {
margin-right: 10rpx;
font-size: 24rpx;
font-weight: bold;
color: #936E5C;
}
.contentC .conceptList .item .hotStockC .stockList {
font-size: 22rpx;
}
.contentC .conceptList .item .hotStockC .stockList .stockItem {
background-color: #3D3D3D;
margin-right: 10rpx;
padding: 0 8rpx;
line-height: 36rpx;
border-radius: 5rpx 20rpx 5rpx 20rpx;
color: #EFDDD1;
}
.contentC .conceptList .item .hotStockC .stockList .more {
color: #936E5C;
line-height: 36rpx;
}
.contentC .conceptList .item .hotStockC .notVipC {
background-color: #3D3D3D;
padding: 0 21rpx 0 16rpx;
line-height: 36rpx;
border-radius: 5rpx;
font-size: 22rpx;
color: #F3C368;
}
.contentC .conceptList .item .hotStockC .notVipC .icon {
margin-right: 9rpx;
width: 15rpx;
height: auto;
}
.contentC .conceptList .item .transactionDateHistoryTimeC {
padding: 20rpx 22rpx 30rpx;
}
.contentC .conceptList .item .transactionDateHistoryTimeC .transactionDate {
font-size: 20rpx;
font-weight: 500;
line-height: 1.2rem;
color: #666;
}
.contentC .conceptList .item .infoC .content .lookDetails {
right: 0;
color: #F97316;
.contentC .conceptList .item .transactionDateHistoryTimeC .historyTimeC {
background-color: #F3C368;
padding: 0 10rpx 0 15rpx;
line-height: 36rpx;
border-radius: 10rpx;
font-size: 22rpx;
font-weight: 500;
color: #101213;
}
.contentC .conceptList .item .transactionDateHistoryTimeC .historyTimeC .icon {
margin-right: 7rpx;
width: 20rpx;
height: auto;
}

View File

@@ -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$1,
d: common_assets._imports_1$6,
d: common_assets._imports_1$7,
e: $data.mobile,
f: common_vendor.o(($event) => $data.mobile = $event.detail.value),
g: common_assets._imports_2$7,
g: common_assets._imports_2$6,
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" : "重新获取验证码" : "获取验证码"),
@@ -169,7 +169,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.isAgree ? {
o: common_assets._imports_3$5
} : {
p: common_assets._imports_4$4
p: common_assets._imports_4$6
}, {
q: common_vendor.o(($event) => $options.clickAgree())
});

View File

@@ -6,13 +6,63 @@ const _sfc_main = {
data() {
return {
contentTop: "",
isAgree: false
isAgree: false,
isBindPhone: true
//是否绑定过手机号
};
},
onLoad() {
this.contentTop = common_vendor.inject("navHeight") + 230 / 750 * common_vendor.inject("windowWidth");
this.getIsBindPhoneData();
},
methods: {
/**
* 获取手机号
* @param {Object} e
*/
getPhoneNumData(e) {
common_vendor.index.__f__("log", "at pages/login/login.vue:44", e);
if (e.detail.errMsg == "getPhoneNumber:ok") {
common_vendor.index.login({
provider: "weixin",
success(res) {
common_vendor.index.__f__("log", "at pages/login/login.vue:49", res.code);
let param = { code: res.code, isJson: 1 };
request_api.loginByWx(param).then((res2) => {
if (res2.code == 200) {
let token = res2.data.token;
common_vendor.index.setStorageSync("token", token);
let param2 = { code: e.detail.code };
request_api.wxBindPhone(param2).then((res3) => {
if (res3.code == 200) {
common_vendor.index.showToast({
title: res3.message
});
setTimeout(function() {
common_vendor.index.switchTab({
url: "/pages/index/index"
});
}, 1e3);
} else
common_vendor.index.showToast({
title: res3.message,
icon: "none"
});
}).catch((error) => {
});
} else
common_vendor.index.showToast({
title: res2.message,
icon: "none"
});
}).catch((error) => {
});
},
fail() {
}
});
}
},
/**
* 点击一键登录
*/
@@ -27,14 +77,12 @@ const _sfc_main = {
common_vendor.index.login({
provider: "weixin",
success(res) {
common_vendor.index.__f__("log", "at pages/login/login.vue:49", res.code);
common_vendor.index.__f__("log", "at pages/login/login.vue:106", res.code);
let param = { code: res.code, isJson: 1 };
request_api.loginByWx(param).then((res2) => {
if (res2.code == 200) {
common_vendor.index.showToast({
title: res2.message
});
common_vendor.index.setStorageSync("token", res2.data.token);
let token = res2.data.token;
common_vendor.index.setStorageSync("token", token);
setTimeout(function() {
common_vendor.index.switchTab({
url: "/pages/index/index"
@@ -73,6 +121,31 @@ const _sfc_main = {
common_vendor.index.navigateTo({
url: "/pages/mine/web/web?type=" + type
});
},
/**
* 获取是否绑定过手机号
*/
getIsBindPhoneData() {
let that = this;
common_vendor.index.login({
provider: "weixin",
success(res) {
common_vendor.index.__f__("log", "at pages/login/login.vue:166", res.code);
let param = { code: res.code, isJson: 1 };
request_api.loginByWx(param).then((res2) => {
if (res2.code == 200) {
that.isBindPhone = res2.data.user.phone ? true : false;
} else
common_vendor.index.showToast({
title: res2.message,
icon: "none"
});
}).catch((error) => {
});
},
fail() {
}
});
}
}
};
@@ -93,17 +166,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
b: common_vendor.s("margin-top:" + $data.contentTop + "px;"),
c: common_assets._imports_0$1,
d: common_vendor.o(($event) => $options.clickOneClickLogin()),
e: common_vendor.o(($event) => $options.clickCodeLogin()),
f: $data.isAgree
d: !$data.isBindPhone
}, !$data.isBindPhone ? {
e: common_vendor.o((...args) => $options.getPhoneNumData && $options.getPhoneNumData(...args))
} : {}, {
f: common_vendor.o(($event) => $data.isBindPhone ? $options.clickOneClickLogin() : ""),
g: common_vendor.o(($event) => $options.clickCodeLogin()),
h: $data.isAgree
}, $data.isAgree ? {
g: common_assets._imports_3$5
i: common_assets._imports_3$5
} : {
h: common_assets._imports_4$4
j: common_assets._imports_4$6
}, {
i: common_vendor.o(($event) => $options.clickAgree()),
j: common_vendor.o(($event) => $options.clickProtocol(2)),
k: common_vendor.o(($event) => $options.clickProtocol(3))
k: common_vendor.o(($event) => $options.clickAgree()),
l: common_vendor.o(($event) => $options.clickProtocol(2)),
m: common_vendor.o(($event) => $options.clickProtocol(3))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="f90ca6fc-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="logo" style="{{b}}" src="{{c}}" mode="widthFix"></image><view class="loginTitle">欢迎登录价值前沿平台</view><view class="btn oneClickLogin" bindtap="{{d}}">授权手机号一键登录</view><view class="btn codeLogin" bindtap="{{e}}">使用短信验证登录</view><view class="agreeProtocolC fixed flexCenter"><view class="agreeC" bindtap="{{i}}"><image wx:if="{{f}}" class="icon" src="{{g}}" mode="widthFix"></image><image wx:else class="icon" src="{{h}}" mode="widthFix"></image></view> 阅读并同意我们的<text class="protocol" bindtap="{{j}}">《用户服务协议》</text>和<text class="protocol" bindtap="{{k}}">《隐私政策》</text></view></view>
<view><nav-bar wx:if="{{a}}" u-i="f90ca6fc-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="logo" style="{{b}}" src="{{c}}" mode="widthFix"></image><view class="loginTitle">欢迎登录价值前沿平台</view><view class="btn oneClickLogin relative" bindtap="{{f}}"> 授权手机号一键登录 <button wx:if="{{d}}" class="absolute" open-type="getPhoneNumber" bindgetphonenumber="{{e}}"></button></view><view class="btn codeLogin" bindtap="{{g}}">使用短信验证登录</view><view class="agreeProtocolC fixed flexCenter"><view class="agreeC" bindtap="{{k}}"><image wx:if="{{h}}" class="icon" src="{{i}}" mode="widthFix"></image><image wx:else class="icon" src="{{j}}" mode="widthFix"></image></view> 阅读并同意我们的<text class="protocol" bindtap="{{l}}">《用户服务协议》</text>和<text class="protocol" bindtap="{{m}}">《隐私政策》</text></view></view>

View File

@@ -22,6 +22,12 @@
margin-top: 60rpx;
color: white;
}
.btn.oneClickLogin button {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.btn.codeLogin {
background-color: #FFF1E8;
margin-top: 28rpx;

View File

@@ -33,7 +33,7 @@ const _sfc_main = {
* @param {Object} e
*/
chooseAvatar(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:65", e);
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:68", e);
this.avatar = e.detail.avatarUrl;
},
/**
@@ -41,10 +41,33 @@ const _sfc_main = {
* @param {Object} e
*/
sexChange(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:74", e);
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:77", e);
let value = e.detail.value;
this.sex = this.sexList[value];
},
/**
* 获取手机号
* @param {Object} e
*/
getPhoneNumData(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:87", e);
if (e.detail.errMsg == "getPhoneNumber:ok") {
let param = { code: e.detail.code };
request_api.wxBindPhone(param).then((res) => {
if (res.code == 200) {
common_vendor.index.showToast({
title: res.message
});
this.mobile = res.data.phone;
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
},
/**
* 点击下一步
*/
@@ -143,20 +166,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
b: common_assets._imports_0,
c: $data.avatar ? $data.avatar : $data.avatarUrl,
d: common_assets._imports_1$3,
d: common_assets._imports_1$5,
e: common_vendor.o((...args) => $options.chooseAvatar && $options.chooseAvatar(...args)),
f: common_vendor.s("top:" + $data.avatarTop + "px;"),
g: $data.nickname,
h: common_vendor.o(($event) => $data.nickname = $event.detail.value),
i: common_vendor.t($data.mobile),
j: common_vendor.t($data.sex),
k: common_assets._imports_2$5,
l: $data.sexList,
m: common_vendor.o((...args) => $options.sexChange && $options.sexChange(...args)),
n: $data.profile,
o: common_vendor.o(($event) => $data.profile = $event.detail.value),
p: common_vendor.s("top:" + $data.contentTop + "px;"),
q: common_vendor.o(($event) => $options.clickNext())
j: common_vendor.o((...args) => $options.getPhoneNumData && $options.getPhoneNumData(...args)),
k: common_vendor.t($data.sex),
l: common_assets._imports_2$5,
m: $data.sexList,
n: common_vendor.o((...args) => $options.sexChange && $options.sexChange(...args)),
o: $data.profile,
p: common_vendor.o(($event) => $data.profile = $event.detail.value),
q: common_vendor.s("top:" + $data.contentTop + "px;"),
r: common_vendor.o(($event) => $options.clickNext())
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="8b6eb184-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="avatarC fixed" style="{{f}}"><image class="avatar" src="{{c}}" mode="aspectFill"></image><image class="icon absolute" src="{{d}}" mode="widthFix"></image><button class="absolute" open-type="chooseAvatar" bindchooseavatar="{{e}}"></button></view><view class="basicInfoC fixed" style="{{p}}"><view class="title">基本信息</view><view class="section">昵称</view><view class="inputC"><input type="nickname" value="{{g}}" bindinput="{{h}}"/></view><view class="section">手机号</view><view class="selectC flex">{{i}}</view><view class="section">性别</view><picker mode="selector" range="{{l}}" bindchange="{{m}}"><view class="selectC flex"><view class="flex1">{{j}}</view><image class="arrow" src="{{k}}" mode="widthFix"></image></view></picker><view class="section">个人简介</view><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA" value="{{n}}" bindinput="{{o}}"></textarea></block></view></view><view class="next fixed" bindtap="{{q}}">下一步</view></view>
<view><nav-bar wx:if="{{a}}" u-i="8b6eb184-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="avatarC fixed" style="{{f}}"><image class="avatar" src="{{c}}" mode="aspectFill"></image><image class="icon absolute" src="{{d}}" mode="widthFix"></image><button class="absolute" open-type="chooseAvatar" bindchooseavatar="{{e}}"></button></view><view class="basicInfoC fixed" style="{{q}}"><view class="title">基本信息</view><view class="section">昵称</view><view class="inputC"><input type="nickname" value="{{g}}" bindinput="{{h}}"/></view><view class="section">手机号</view><view class="selectC flex relative">{{i}} <button class="absolute" open-type="getPhoneNumber" bindgetphonenumber="{{j}}"></button></view><view class="section">性别</view><picker mode="selector" range="{{m}}" bindchange="{{n}}"><view class="selectC flex"><view class="flex1">{{k}}</view><image class="arrow" src="{{l}}" mode="widthFix"></image></view></picker><view class="section">个人简介</view><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA" value="{{o}}" bindinput="{{p}}"></textarea></block></view></view><view class="next fixed" bindtap="{{r}}">下一步</view></view>

View File

@@ -76,6 +76,12 @@
width: 16rpx;
height: auto;
}
.basicInfoC .selectC button {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.basicInfoC .textareaC {
background-color: #FBFBFD;
margin: 0 60rpx;

View File

@@ -108,7 +108,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.getRateUpOrDown(item.related_avg_chg) ? {
f: common_assets._imports_1$1
} : {
g: common_assets._imports_2$2
g: common_assets._imports_2$1
}, {
h: common_vendor.t($data.getRateStr(item.related_avg_chg)),
i: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_avg_chg) ? "down" : "up")),
@@ -116,7 +116,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.getRateUpOrDown(item.related_max_chg) ? {
k: common_assets._imports_1$1
} : {
l: common_assets._imports_2$2
l: common_assets._imports_2$1
}, {
m: common_vendor.t($data.getRateStr(item.related_max_chg)),
n: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_max_chg) ? "down" : "up")),
@@ -124,7 +124,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.getRateUpOrDown(item.related_week_chg) ? {
p: common_assets._imports_1$1
} : {
q: common_assets._imports_2$2
q: common_assets._imports_2$1
}, {
r: common_vendor.t($data.getRateStr(item.related_week_chg)),
s: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_week_chg) ? "down" : "up")),
@@ -145,9 +145,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
B: index
});
}),
d: common_assets._imports_3,
d: common_assets._imports_3$1,
e: common_assets._imports_4,
f: common_assets._imports_5$2,
f: common_assets._imports_5$3,
g: common_vendor.s("top:" + $data.navH + "px;")
};
}

View File

@@ -225,7 +225,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
b: common_assets._imports_0,
c: $data.avatar ? $data.avatar : $data.avatarUrl,
d: common_assets._imports_1$3,
d: common_assets._imports_1$5,
e: common_vendor.o((...args) => $options.chooseAvatar && $options.chooseAvatar(...args)),
f: common_vendor.s("top:" + $data.avatarTop + "px;"),
g: common_vendor.f($data.investPreferenceList, (item, index, i0) => {

View File

@@ -9,6 +9,9 @@ const _sfc_main = {
menuH: common_vendor.inject("menuHeight"),
infoTop: "",
userInfo: null,
//用户信息
memberInfo: null,
//会员信息
menuList: [
{
icon: "/static/icon/mine/aboutUs.png",
@@ -46,6 +49,7 @@ const _sfc_main = {
},
onShow() {
this.getUserInfoData();
this.getMemberStatus();
},
methods: {
/**
@@ -82,6 +86,11 @@ const _sfc_main = {
url: "/pages/mine/myLike/myLike"
});
},
/**
* 点击菜单
* @param {Object} url
* @param {Object} index
*/
clickMenuItem(url, index) {
if (url) {
common_vendor.index.navigateTo({
@@ -116,6 +125,21 @@ const _sfc_main = {
});
}).catch((error) => {
});
},
/**
* 获取会员状态
*/
getMemberStatus() {
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) => {
});
}
}
};
@@ -132,26 +156,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
a: common_assets._imports_0,
b: common_vendor.s("top:" + $data.menuTop + "px;line-height:" + $data.menuH + "px;"),
c: $data.userInfo
}, $data.userInfo ? {
}, $data.userInfo ? common_vendor.e({
d: $data.userInfo.basic_info.avatar_url,
e: common_vendor.t($data.userInfo.basic_info.username),
f: common_vendor.t($data.userInfo.basic_info.phone),
g: common_assets._imports_1$2,
h: common_vendor.s("margin-top:" + $data.infoTop + "px;"),
i: common_vendor.o(($event) => $options.clickPersonalInfo())
g: $data.memberInfo && $data.memberInfo.is_member
}, $data.memberInfo && $data.memberInfo.is_member ? {
h: common_vendor.t($data.memberInfo.subscription_type)
} : {}, {
j: $data.userInfo
i: common_assets._imports_1$4,
j: common_vendor.s("margin-top:" + $data.infoTop + "px;"),
k: common_vendor.o(($event) => $options.clickPersonalInfo())
}) : {}, {
l: $data.userInfo
}, $data.userInfo ? {
k: common_vendor.t($data.userInfo.statistics.total_comments),
l: common_vendor.o(($event) => $options.clickNumItem(0)),
m: common_vendor.t($data.userInfo.statistics.follows_count),
n: common_vendor.o(($event) => $options.clickNumItem(1)),
o: common_vendor.t($data.userInfo.statistics.likes_count),
p: common_vendor.o(($event) => $options.clickNumItem(2))
m: common_vendor.t($data.userInfo.statistics.total_comments),
n: common_vendor.o(($event) => $options.clickNumItem(0)),
o: common_vendor.t($data.userInfo.statistics.follows_count),
p: common_vendor.o(($event) => $options.clickNumItem(1)),
q: common_vendor.t($data.userInfo.statistics.likes_count),
r: common_vendor.o(($event) => $options.clickNumItem(2))
} : {}, {
q: common_assets._imports_2$4,
r: common_vendor.o(($event) => $options.clickVip()),
s: common_vendor.f($data.menuList, (item, index, i0) => {
s: common_assets._imports_2$4,
t: common_vendor.o(($event) => $options.clickVip()),
v: common_vendor.f($data.menuList, (item, index, i0) => {
return {
a: item.icon,
b: common_vendor.t(item.title),
@@ -159,10 +187,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickMenuItem(item.url, index), index)
};
}),
t: common_assets._imports_3$3,
v: common_assets._imports_4$2,
w: common_vendor.sr("popup", "dd5840e4-0"),
x: common_vendor.p({
w: common_assets._imports_3$3,
x: common_assets._imports_4$4,
y: common_vendor.sr("popup", "dd5840e4-0"),
z: common_vendor.p({
type: "center"
})
});

View File

@@ -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="{{h}}" bindtap="{{i}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view></view><image class="arrow" src="{{g}}" mode="widthFix"></image></view><view wx:if="{{j}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{l}}"><view class="num">{{k}}</view><view class="title">评论回复</view></view><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><view class="vipC relative" bindtap="{{r}}"><image class="icon" src="{{q}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{s}}" 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="{{t}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{x}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{x}}"><view class="popup"><image class="icon" src="{{v}}" mode="widthFix" show-menu-by-longpress></image></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="{{t}}"><image class="icon" src="{{s}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{v}}" 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="{{w}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{z}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{z}}"><view class="popup"><image class="icon" src="{{x}}" mode="widthFix" show-menu-by-longpress></image></view></uni-popup></view>

View File

@@ -1,3 +1,6 @@
page {
background-color: black;
}
.topBg {
top: 0;
left: 0;
@@ -30,7 +33,7 @@
margin-top: 6rpx;
font-size: 24rpx;
font-weight: 500;
color: #FFECD3;
color: #F3C368;
}
.personalInfoC .arrow {
width: 15rpx;
@@ -50,7 +53,7 @@
color: #FFECD3;
}
.vipC {
padding: 0 25rpx;
margin: 0 45rpx;
}
.vipC .icon {
display: block;
@@ -59,8 +62,9 @@
}
.menuList {
background-color: white;
padding: 0 25rpx;
border-radius: 20rpx 20rpx 0 0;
margin: 0 25rpx;
padding: 0 20rpx 220rpx;
border-radius: 20rpx;
}
.menuList .item {
height: 100rpx;

View File

@@ -87,7 +87,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: index
};
}),
d: common_assets._imports_1$5,
d: common_assets._imports_1$6,
e: common_vendor.s("top:" + $data.navH + "px;")
};
}