Merge pull request #23 from songquanpeng/main
Fork Sync: Update from parent repository
This commit is contained in:
commit
d5091492bf
@ -17,6 +17,7 @@ func GroupRatio2JSONString() string {
|
||||
}
|
||||
|
||||
func UpdateGroupRatioByJSONString(jsonStr string) error {
|
||||
GroupRatio = make(map[string]float64)
|
||||
return json.Unmarshal([]byte(jsonStr), &GroupRatio)
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ func ModelRatio2JSONString() string {
|
||||
}
|
||||
|
||||
func UpdateModelRatioByJSONString(jsonStr string) error {
|
||||
ModelRatio = make(map[string]float64)
|
||||
return json.Unmarshal([]byte(jsonStr), &ModelRatio)
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ function renderType(type) {
|
||||
|
||||
function renderBalance(type, balance) {
|
||||
if (type === 5) {
|
||||
return <span>{balance.toFixed(2)}</span>
|
||||
return <span>¥{(balance / 10000).toFixed(2)}</span>
|
||||
}
|
||||
return <span>${balance.toFixed(2)}</span>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user