Commit e96cf622 by zhangxw

文案修改

1 parent e4f245d8
......@@ -44,7 +44,7 @@ Component({
},
{
id: '3',
label: '众筹活动'
label: '售后众筹'
},
{
id: '0',
......
......@@ -69,7 +69,8 @@ Component({
actionOperationResult(val1, val2, rate = false){
const p = this.actionOperation(val1, val2)
return rate ? ((val1 * p) / (val2 * p)) * 100 : ((val1 * p) / (val2 * p)).toFixed(2)
let flag = Number.isInteger(((val1 * p) / (val2 * p)) * 100) // 是否是整数
return rate ? (flag ? ((val1 * p) / (val2 * p)) * 100 : (((val1 * p) / (val2 * p)) * 100).toFixed(2)) : ((val1 * p) / (val2 * p)).toFixed(2)
},
actionOperation(val1, val2){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!