红包金额修改

This commit is contained in:
yulixing 2019-07-16 15:37:03 +08:00
parent 85f1efd5c2
commit 36ce6caf67

View File

@ -49,7 +49,7 @@
:key="index" :key="index"
> >
<template slot="title"> <template slot="title">
{{ `[${index+1}]红包:${item.cash}`}} {{ `[${index+1}]红包:${item.cash}`}}
</template> </template>
<el-form <el-form
:ref="`redEnvelopeForm${index}`" :ref="`redEnvelopeForm${index}`"
@ -225,8 +225,8 @@ export default {
const percentKey = `Percent_${index + 1}` const percentKey = `Percent_${index + 1}`
result.push({ result.push({
id: idx + 1, id: idx + 1,
[cashKey]: parseFloat(item.cash), [cashKey]: parseFloat(item.cash).toFixed(2),
[percentKey]: parseFloat(p.pr) [percentKey]: parseFloat(p.pr)
}) })
}) })
}) })