Commit dd531c1c authored by 黄媛媛's avatar 黄媛媛

修改幸福存折最大使用金额

parent 8b717840
......@@ -297,7 +297,7 @@
<el-input size="small" v-model="ActivateCode" placeholder="请输入兑换码" style="width:200px"></el-input>
<el-button @click="GetCode" size="small" style="margin-left:10px">兑换</el-button>
</div>
<p class="margin-top: 10px;">幸福存折</p>
<p class="margin-top: 10px;">幸福存折<span style="color: #EE4454;font-size:12px;margin-left:10px">幸福存折金额单次最高只能使用1000</span></p>
<div>
<el-input size="small" v-model="RedEnvelopeMoney" @change="RedEnvelopeMoneyChange" placeholder="请输入金额" style="width:200px;margin-right: 10px;"></el-input>
<span>当前幸福存折余额:<span style="color: #EE4454">{{RedEnvelopeMoneyALL}}</span></span>
......@@ -596,10 +596,16 @@ export default {
console.log(this.RedEnvelopeMoney)
if (this.RedEnvelopeMoney == '') {
this.RedEnvelopeMoney = 0
} else if (this.RedEnvelopeMoney > this.RedEnvelopeMoneyALL) {
}
else if(Number(this.RedEnvelopeMoney)>1000 && this.RedEnvelopeMoney < this.RedEnvelopeMoneyALL){
this.RedEnvelopeMoney=1000;
this.$message.error('幸福存折金额单次最高只能使用1000!')
}
else if (this.RedEnvelopeMoney > this.RedEnvelopeMoneyALL) {
this.RedEnvelopeMoney = this.RedEnvelopeMoneyALL
this.$message.error('使用金额不能超过幸福存折余额!')
}
// this.calcMoney()
},
// 获取幸福存折余额
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment