Commit aff7e6eb by 前端

开发环境调整

1 parent dd99811c
......@@ -37,7 +37,7 @@
<template v-else>
<!-- &lt;!&ndash; v-focus&ndash;&gt; @onfocus="focusPoints"-->
<el-input ref="redeemPoints" size="small" clearable v-model="redeemPoints"
onkeyup="value=value.replace(/[^\d]/g,'')" type="text"
onkeyup="value=value.replace(/[^\d]/g,'').replace(/^[0]+[0-9]*$/gi,'')" type="text"
@blur="setPriceFn">
<span slot="append">积分</span>
</el-input>
......
......@@ -6,7 +6,7 @@
<span>
{{ isConversionRate ? '兑换价 = ' : '兑换价 = 供货价1:1积分 +' }}
</span>
<el-input size="small" type="text" onkeyup="value=value.replace(/[^\d]/g,'')"
<el-input size="small" type="text" onkeyup="value=value.replace(/[^\d]/g,'').replace(/^[0]+[0-9]*$/gi,'')"
v-model="batchCount" placeholder="请输入积分">
<span slot="append">积分</span>
</el-input>
......
......@@ -33,7 +33,7 @@
<template v-else>
<!-- v-focus-->
<el-input size="small" clearable v-model="redeemPoints" onkeyup="value=value.replace(/[^\d]/g,'')" type="text"
<el-input size="small" clearable v-model="redeemPoints" onkeyup="value=value.replace(/[^\d]/g,'').replace(/^[0]+[0-9]*$/gi,'')" type="text"
@blur="setPriceFn('redeemPoints')">
<span slot="append">积分</span>
</el-input>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!