Commit 3a2bd82a authored by Steven杜宇's avatar Steven杜宇

// 最近浏览数

parent 6344247e
......@@ -189,8 +189,8 @@ class YHUserInfoHeaderView: UIView {
self.scanLabel.text = "最近浏览 \(scanCount)"
}
func showCount(_ count: Int)-> String {
return count < 10000 ? String(count) : String(format: "%.1fw", Double(count)/Double(10000))
func showCount(_ count: Int)-> String {
return count < 10000 ? String(count) : String(format: "%.1fw", Double(count/1000)/10.0)
}
private func createUI() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment