12.12 页面风格改版,增加事件详情相关概念网页跳转,增加绑定手机号功能
This commit is contained in:
@@ -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"
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user