From eaae492de8807438e64b18b60600a52df21d668f Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 02 Nov 2021 11:23:09 +0800
Subject: [PATCH] 20211102
---
zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html b/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html
index ff5c0b5..9962460 100644
--- a/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html
+++ b/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html
@@ -813,30 +813,26 @@
sku.selfPrice = selfPrice;
//推广提成
var sealesPrice = tds.eq(length - 4).find("input").val();
- if(sealesPrice == ""){
- sealesPrice = 0;
+ if(sealesPrice != ""){
+ sku.sealesPrice = sealesPrice;
}
- sku.sealesPrice = sealesPrice;
//邀请提成
var invitationPrice = tds.eq(length - 3).find("input").val();
- if(invitationPrice == ""){
- invitationPrice = 0;
+ if(invitationPrice != ""){
+ sku.invitationPrice = invitationPrice;
}
- sku.invitationPrice = invitationPrice;
//兑换所需金额
var scorePrice = tds.eq(length - 2).find("input").val();
- if(scorePrice == ""){
- scorePrice = 0;
+ if(scorePrice != ""){
+ sku.scorePrice = scorePrice;
}
- sku.scorePrice = scorePrice;
//兑换所需积分
var scoreCount = tds.eq(length - 1).find("input").val();
- if(scoreCount == ""){
- scoreCount = 0;
+ if(scoreCount != ""){
+ sku.scoreCount = scoreCount;
}
- sku.scoreCount = scoreCount;
skus.push(sku);
}
--
Gitblit v1.9.1