💪 optimize: 优化代码
This commit is contained in:
parent
eb68b36ecd
commit
eeb35e93b0
|
@ -231,10 +231,7 @@
|
||||||
/* 动态font */
|
/* 动态font */
|
||||||
fonts () {
|
fonts () {
|
||||||
const { cash_amount_type, min_denomination, max_denomination } = this.goodsInfo.entity;
|
const { cash_amount_type, min_denomination, max_denomination } = this.goodsInfo.entity;
|
||||||
const defaultCss = {
|
const defaultCss = { b: '0.2rem', a: '0.32rem' };
|
||||||
b: '0.2rem',
|
|
||||||
a: '0.32rem'
|
|
||||||
};
|
|
||||||
if (cash_amount_type === '2') {
|
if (cash_amount_type === '2') {
|
||||||
const count = String(parseFloat(min_denomination)).length + String(parseFloat(max_denomination)).length + 1;
|
const count = String(parseFloat(min_denomination)).length + String(parseFloat(max_denomination)).length + 1;
|
||||||
if (count > 6) {
|
if (count > 6) {
|
||||||
|
|
Loading…
Reference in New Issue