update pay ui
This commit is contained in:
@@ -17,9 +17,9 @@ const formatStockCode = (code) => {
|
||||
|
||||
// 根据股票代码规则添加后缀
|
||||
// 6开头 -> 上海 .SH
|
||||
// 0、3开头 -> 深圳 .SZ
|
||||
// 688开头 -> 科创板(上海).SH
|
||||
// 8开头(北交所)-> .BJ(暂不处理,大部分场景不需要)
|
||||
// 0、3开头 -> 深圳 .SZ
|
||||
// 8、9、4开头 -> 北交所 .BJ
|
||||
const firstChar = code.charAt(0);
|
||||
const prefix = code.substring(0, 3);
|
||||
|
||||
@@ -27,6 +27,9 @@ const formatStockCode = (code) => {
|
||||
return `${code}.SH`;
|
||||
} else if (firstChar === '0' || firstChar === '3') {
|
||||
return `${code}.SZ`;
|
||||
} else if (firstChar === '8' || firstChar === '9' || firstChar === '4') {
|
||||
// 北交所股票
|
||||
return `${code}.BJ`;
|
||||
}
|
||||
|
||||
// 默认返回原代码(可能是指数或其他)
|
||||
|
||||
Reference in New Issue
Block a user