|
|
@@ -226,10 +226,11 @@ const _sfc_main = {
|
|
|
b: common_vendor.o(handleSearchClick),
|
|
|
c: common_vendor.o(($event) => showDropdown.value = true),
|
|
|
d: keyword.value,
|
|
|
- e: common_vendor.o(handleSearchClick),
|
|
|
- f: showDropdown.value && suggestions.value && suggestions.value.length > 0
|
|
|
+ e: common_vendor.unref(utils_api.getImageUrl)("/static/images/tab_search.png"),
|
|
|
+ f: common_vendor.o(handleSearchClick),
|
|
|
+ g: showDropdown.value && suggestions.value && suggestions.value.length > 0
|
|
|
}, showDropdown.value && suggestions.value && suggestions.value.length > 0 ? {
|
|
|
- g: common_vendor.f(suggestions.value, (item, index, i0) => {
|
|
|
+ h: common_vendor.f(suggestions.value, (item, index, i0) => {
|
|
|
return {
|
|
|
a: common_vendor.t(item.name),
|
|
|
b: common_vendor.t(item.code),
|
|
|
@@ -238,98 +239,98 @@ const _sfc_main = {
|
|
|
};
|
|
|
})
|
|
|
} : {}, {
|
|
|
- h: common_vendor.t(isLoggedIn.value ? "" : "(需登录)"),
|
|
|
- i: showDropdown.value && suggestions.value.length > 0
|
|
|
+ i: common_vendor.t(isLoggedIn.value ? "" : "(需登录)"),
|
|
|
+ j: showDropdown.value && suggestions.value.length > 0
|
|
|
}, showDropdown.value && suggestions.value.length > 0 ? {
|
|
|
- j: common_vendor.o(closeDropdown)
|
|
|
+ k: common_vendor.o(closeDropdown)
|
|
|
} : {}, {
|
|
|
- k: hasSearched.value
|
|
|
+ l: hasSearched.value
|
|
|
}, hasSearched.value ? common_vendor.e({
|
|
|
- l: loading.value
|
|
|
+ m: loading.value
|
|
|
}, loading.value ? {} : errorMsg.value ? {
|
|
|
- n: common_vendor.t(errorMsg.value)
|
|
|
+ o: common_vendor.t(errorMsg.value)
|
|
|
} : result.value ? common_vendor.e({
|
|
|
- p: common_vendor.t(result.value.stockName),
|
|
|
- q: common_vendor.t(result.value.stockCode),
|
|
|
- r: common_vendor.t(result.value.currentPrice || "--"),
|
|
|
- s: common_vendor.n(getPriceClass(result.value.changePercent)),
|
|
|
- t: common_vendor.t(result.value.priceChange || "--"),
|
|
|
- v: common_vendor.t(result.value.changePercent || "--"),
|
|
|
- w: common_vendor.n(getPriceClass(result.value.changePercent)),
|
|
|
- x: result.value.currentPrice
|
|
|
+ q: common_vendor.t(result.value.stockName),
|
|
|
+ r: common_vendor.t(result.value.stockCode),
|
|
|
+ s: common_vendor.t(result.value.currentPrice || "--"),
|
|
|
+ t: common_vendor.n(getPriceClass(result.value.changePercent)),
|
|
|
+ v: common_vendor.t(result.value.priceChange || "--"),
|
|
|
+ w: common_vendor.t(result.value.changePercent || "--"),
|
|
|
+ x: common_vendor.n(getPriceClass(result.value.changePercent)),
|
|
|
+ y: result.value.currentPrice
|
|
|
}, result.value.currentPrice ? {
|
|
|
- y: common_vendor.t(result.value.openPrice || "--"),
|
|
|
- z: common_vendor.t(result.value.highPrice || "--"),
|
|
|
- A: common_vendor.t(result.value.lowPrice || "--"),
|
|
|
- B: common_vendor.t(result.value.volume || "--"),
|
|
|
- C: common_vendor.t(result.value.amount || "--"),
|
|
|
- D: common_vendor.t(result.value.turnoverRate || "--")
|
|
|
+ z: common_vendor.t(result.value.openPrice || "--"),
|
|
|
+ A: common_vendor.t(result.value.highPrice || "--"),
|
|
|
+ B: common_vendor.t(result.value.lowPrice || "--"),
|
|
|
+ C: common_vendor.t(result.value.volume || "--"),
|
|
|
+ D: common_vendor.t(result.value.amount || "--"),
|
|
|
+ E: common_vendor.t(result.value.turnoverRate || "--")
|
|
|
} : {}, {
|
|
|
- E: result.value.score
|
|
|
+ F: result.value.score
|
|
|
}, result.value.score ? {
|
|
|
- F: common_vendor.t(result.value.score)
|
|
|
+ G: common_vendor.t(result.value.score)
|
|
|
} : {}, {
|
|
|
- G: hasSearched.value && result.value
|
|
|
+ H: hasSearched.value && result.value
|
|
|
}, hasSearched.value && result.value ? common_vendor.e({
|
|
|
- H: common_vendor.o(onDateChange),
|
|
|
- I: historyData.value && historyData.value.recordDate
|
|
|
+ I: common_vendor.o(onDateChange),
|
|
|
+ J: historyData.value && historyData.value.recordDate
|
|
|
}, historyData.value && historyData.value.recordDate ? {
|
|
|
- J: common_vendor.t(historyData.value.recordDate)
|
|
|
+ K: common_vendor.t(historyData.value.recordDate)
|
|
|
} : {}, {
|
|
|
- K: !historyData.value || !historyData.value.strengthScore && !historyData.value.highTrend
|
|
|
+ L: !historyData.value || !historyData.value.strengthScore && !historyData.value.highTrend
|
|
|
}, !historyData.value || !historyData.value.strengthScore && !historyData.value.highTrend ? {
|
|
|
- L: common_vendor.t(selectedDate.value ? "未找到该日期的历史数据" : "暂无历史数据")
|
|
|
+ M: common_vendor.t(selectedDate.value ? "未找到该日期的历史数据" : "暂无历史数据")
|
|
|
} : common_vendor.e({
|
|
|
- M: historyData.value.strengthScore !== null && historyData.value.strengthScore !== void 0
|
|
|
+ N: historyData.value.strengthScore !== null && historyData.value.strengthScore !== void 0
|
|
|
}, historyData.value.strengthScore !== null && historyData.value.strengthScore !== void 0 ? {
|
|
|
- N: common_vendor.t(formatStrengthScore(historyData.value.strengthScore)),
|
|
|
- O: common_vendor.n(historyData.value.strengthScore >= 0 ? "capsule-up" : "capsule-down")
|
|
|
+ O: common_vendor.t(formatStrengthScore(historyData.value.strengthScore)),
|
|
|
+ P: common_vendor.n(historyData.value.strengthScore >= 0 ? "capsule-up" : "capsule-down")
|
|
|
} : {}, {
|
|
|
- P: historyData.value.closePrice
|
|
|
+ Q: historyData.value.closePrice
|
|
|
}, historyData.value.closePrice ? {
|
|
|
- Q: common_vendor.t(historyData.value.closePrice)
|
|
|
+ R: common_vendor.t(historyData.value.closePrice)
|
|
|
} : {}, {
|
|
|
- R: historyData.value.changePercent
|
|
|
+ S: historyData.value.changePercent
|
|
|
}, historyData.value.changePercent ? {
|
|
|
- S: common_vendor.t(formatPercent(historyData.value.changePercent)),
|
|
|
- T: common_vendor.n(getChangeClass(historyData.value.changePercent))
|
|
|
+ T: common_vendor.t(formatPercent(historyData.value.changePercent)),
|
|
|
+ U: common_vendor.n(getChangeClass(historyData.value.changePercent))
|
|
|
} : {}, {
|
|
|
- U: historyData.value.totalAmount
|
|
|
+ V: historyData.value.totalAmount
|
|
|
}, historyData.value.totalAmount ? {
|
|
|
- V: common_vendor.t(formatAmount(historyData.value.totalAmount))
|
|
|
+ W: common_vendor.t(formatAmount(historyData.value.totalAmount))
|
|
|
} : {}, {
|
|
|
- W: historyData.value.circulationMarketValue
|
|
|
+ X: historyData.value.circulationMarketValue
|
|
|
}, historyData.value.circulationMarketValue ? {
|
|
|
- X: common_vendor.t(formatAmount(historyData.value.circulationMarketValue))
|
|
|
+ Y: common_vendor.t(formatAmount(historyData.value.circulationMarketValue))
|
|
|
} : {}, {
|
|
|
- Y: historyData.value.mainRisePeriod
|
|
|
+ Z: historyData.value.mainRisePeriod
|
|
|
}, historyData.value.mainRisePeriod ? {
|
|
|
- Z: common_vendor.t(historyData.value.mainRisePeriod)
|
|
|
+ aa: common_vendor.t(historyData.value.mainRisePeriod)
|
|
|
} : {}, {
|
|
|
- aa: historyData.value.recentLimitUp
|
|
|
+ ab: historyData.value.recentLimitUp
|
|
|
}, historyData.value.recentLimitUp ? {
|
|
|
- ab: common_vendor.t(historyData.value.recentLimitUp)
|
|
|
+ ac: common_vendor.t(historyData.value.recentLimitUp)
|
|
|
} : {}, {
|
|
|
- ac: historyData.value.dayHighestPrice
|
|
|
+ ad: historyData.value.dayHighestPrice
|
|
|
}, historyData.value.dayHighestPrice ? {
|
|
|
- ad: common_vendor.t(historyData.value.dayHighestPrice)
|
|
|
+ ae: common_vendor.t(historyData.value.dayHighestPrice)
|
|
|
} : {}, {
|
|
|
- ae: historyData.value.dayLowestPrice
|
|
|
+ af: historyData.value.dayLowestPrice
|
|
|
}, historyData.value.dayLowestPrice ? {
|
|
|
- af: common_vendor.t(historyData.value.dayLowestPrice)
|
|
|
+ ag: common_vendor.t(historyData.value.dayLowestPrice)
|
|
|
} : {}, {
|
|
|
- ag: historyData.value.dayClosePrice
|
|
|
+ ah: historyData.value.dayClosePrice
|
|
|
}, historyData.value.dayClosePrice ? {
|
|
|
- ah: common_vendor.t(historyData.value.dayClosePrice)
|
|
|
+ ai: common_vendor.t(historyData.value.dayClosePrice)
|
|
|
} : {}, {
|
|
|
- ai: historyData.value.highTrend !== null && historyData.value.highTrend !== void 0
|
|
|
+ aj: historyData.value.highTrend !== null && historyData.value.highTrend !== void 0
|
|
|
}, historyData.value.highTrend !== null && historyData.value.highTrend !== void 0 ? {
|
|
|
- aj: common_vendor.t(formatPercent(historyData.value.highTrend)),
|
|
|
- ak: common_vendor.n(getChangeClass(historyData.value.highTrend))
|
|
|
+ ak: common_vendor.t(formatPercent(historyData.value.highTrend)),
|
|
|
+ al: common_vendor.n(getChangeClass(historyData.value.highTrend))
|
|
|
} : {})) : {}, {
|
|
|
- al: result.value.history && result.value.history.length > 0
|
|
|
+ am: result.value.history && result.value.history.length > 0
|
|
|
}, result.value.history && result.value.history.length > 0 ? {
|
|
|
- am: common_vendor.f(result.value.history, (item, index, i0) => {
|
|
|
+ an: common_vendor.f(result.value.history, (item, index, i0) => {
|
|
|
return {
|
|
|
a: common_vendor.t(item.date),
|
|
|
b: common_vendor.t(item.score),
|
|
|
@@ -338,9 +339,9 @@ const _sfc_main = {
|
|
|
};
|
|
|
})
|
|
|
} : {}, {
|
|
|
- an: result.value.factors && result.value.factors.length > 0
|
|
|
+ ao: result.value.factors && result.value.factors.length > 0
|
|
|
}, result.value.factors && result.value.factors.length > 0 ? {
|
|
|
- ao: common_vendor.f(result.value.factors, (item, index, i0) => {
|
|
|
+ ap: common_vendor.f(result.value.factors, (item, index, i0) => {
|
|
|
return {
|
|
|
a: common_vendor.t(item.name),
|
|
|
b: common_vendor.t(item.value),
|
|
|
@@ -348,8 +349,8 @@ const _sfc_main = {
|
|
|
};
|
|
|
})
|
|
|
} : {}) : {}, {
|
|
|
- m: errorMsg.value,
|
|
|
- o: result.value
|
|
|
+ n: errorMsg.value,
|
|
|
+ p: result.value
|
|
|
}) : {});
|
|
|
};
|
|
|
}
|