Commit 5b186c40 by 李伟康

commit

1 parent ba693b85
...@@ -95,7 +95,7 @@ Page({ ...@@ -95,7 +95,7 @@ Page({
}) })
if (!data) throw '获取数据失败' if (!data) throw '获取数据失败'
data.map(item => { data.map(item => {
item.offset = Number(item.offset) item.offset = item.offset != null ? Number(item.offset) : item.offset
item.formatScore = `${item.score || item.score === 0 ? item.score : '-'}/${item.sumScore || item.sumScore === 0 ? item.sumScore : '-'}` item.formatScore = `${item.score || item.score === 0 ? item.score : '-'}/${item.sumScore || item.sumScore === 0 ? item.sumScore : '-'}`
let hitTextList = JSON.parse(item.hitText), let hitTextList = JSON.parse(item.hitText),
matchedClass = 'no-hit', matchedClass = 'no-hit',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!