1.
This commit is contained in:
@@ -52,6 +52,13 @@ const _sfc_main = {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getContent(item) {
|
||||
if (utils_util.isValidJSON(item.content)) {
|
||||
return JSON.parse(item.content).content;
|
||||
} else {
|
||||
return item.content;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 获取当前时间前一天的数据
|
||||
*/
|
||||
@@ -215,6 +222,7 @@ const _sfc_main = {
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickNewsOrReportItem(index) {
|
||||
common_vendor.index.__f__("log", "at pages/concept/historicalTimeline/historicalTimeline.vue:332", this.selectNewsOrReport, index);
|
||||
if (this.selectNewsOrReport != index) {
|
||||
this.selectNewsOrReport = index;
|
||||
}
|
||||
@@ -233,6 +241,7 @@ const _sfc_main = {
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickReportItem(item) {
|
||||
common_vendor.index.__f__("log", "at pages/concept/historicalTimeline/historicalTimeline.vue:351", item);
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/concept/reportDetails/reportDetails?info=" + encodeURIComponent(JSON.stringify(item))
|
||||
});
|
||||
@@ -306,11 +315,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
b: common_assets._imports_0,
|
||||
c: common_vendor.t($data.conceptName),
|
||||
d: common_vendor.s("top: " + $data.navH + "px;"),
|
||||
e: common_assets._imports_4$2,
|
||||
e: common_assets._imports_4$1,
|
||||
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$1,
|
||||
i: common_assets._imports_1$2,
|
||||
j: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
k: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
@@ -358,7 +367,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$4,
|
||||
v: common_assets._imports_5$2,
|
||||
w: common_vendor.t($data.newsList.length),
|
||||
x: common_vendor.n("num " + ($data.selectNewsOrReport == 0 ? "select" : "")),
|
||||
y: common_vendor.o(($event) => $options.clickNewsOrReportItem(0)),
|
||||
@@ -379,7 +388,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
E: common_vendor.f($data.reportList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.report_title),
|
||||
b: common_vendor.t(JSON.parse(item.content).content),
|
||||
b: common_vendor.t($options.getContent(item)),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickReportItem(item), index)
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
<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="{{F}}"><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="{{x}}" bindtap="{{y}}">{{w}} 条新闻 · </text><text class="{{A}}" decode bindtap="{{B}}"> {{z}} 份研报</text></view><view class="list"><block wx:if="{{C}}"><view wx:for="{{D}}" wx:for-item="item" wx:key="c" class="item" bindtap="{{item.d}}"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view></block><block wx:else><view wx:for="{{E}}" wx:for-item="item" wx:key="c" class="item" bindtap="{{item.d}}"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view></block></view></view></view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="18a04f27-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="{{F}}"><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="{{x}}" bindtap="{{y}}">{{w}} 条新闻 · </text><text class="{{A}}" decode bindtap="{{B}}"> {{z}} 份研报</text></view><view class="list"><block wx:if="{{C}}"><view wx:for="{{D}}" wx:for-item="item" wx:key="c" class="item" bindtap="{{item.d}}"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view></block><block wx:else><view wx:for="{{E}}" wx:for-item="item" wx:key="c" class="item" bindtap="{{item.d}}"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view></block></view></view></view></view>
|
||||
Reference in New Issue
Block a user