Commit bdede4e5 by wangzhihui

积分优化

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