Commit aff7e6eb by 前端

开发环境调整

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