Commit bdede4e5 by wangzhihui

积分优化

1 parent 68a3a531
...@@ -48,8 +48,8 @@ export default { ...@@ -48,8 +48,8 @@ export default {
}, },
computed: { computed: {
routerInfo() { routerInfo() {
return this.$route.query.params return this.$route.params
? JSON.parse(this.$route.query.params) ? this.$route.params
: "" : ""
} }
}, },
...@@ -73,9 +73,9 @@ export default { ...@@ -73,9 +73,9 @@ export default {
this.isLoad = false this.isLoad = false
}, },
getFinaceObj() { getFinaceObj() {
// const { id } = this.routerInfo; const { id } = this.routerInfo;
merchantSettleDistributeRuleLastRule({ merchantSettleDistributeRuleLastRule({
id: 1 id
}).then((result) => { }).then((result) => {
this.divisiObj = Object.assign(result.merchantSettleDistributeRule,{ this.divisiObj = Object.assign(result.merchantSettleDistributeRule,{
partnerMerchantName:result.createBusinessApproveMerchant.partnerMerchantName, partnerMerchantName:result.createBusinessApproveMerchant.partnerMerchantName,
......
...@@ -131,8 +131,8 @@ export default { ...@@ -131,8 +131,8 @@ export default {
if (!value) { if (!value) {
return callback(new Error("请输入退回积分")) return callback(new Error("请输入退回积分"))
} }
if (!Number.isInteger(+value)) { if (!Util.validateNumber(value)) {
callback(new Error("请输入数字值")) callback(new Error("输入范围为大于0的数字,至少支持小数点后两位"))
} else { } else {
if (value > this.refundForm.integralIncome) { if (value > this.refundForm.integralIncome) {
callback(new Error("输入的积分超过当前订单最大积分")) callback(new Error("输入的积分超过当前订单最大积分"))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!