From 2a7a159b136805612e241e4e8e24affedfc23cc2 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sat, 20 Nov 2021 21:07:43 +0800
Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop
---
zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 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 9962460..96cde1a 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,26 +813,24 @@
sku.selfPrice = selfPrice;
//推广提成
var sealesPrice = tds.eq(length - 4).find("input").val();
- if(sealesPrice != ""){
- sku.sealesPrice = sealesPrice;
+ if(sealesPrice == ""){
+ sealesPrice = 0;
}
+ sku.sealesPrice = sealesPrice;
//邀请提成
var invitationPrice = tds.eq(length - 3).find("input").val();
- if(invitationPrice != ""){
- sku.invitationPrice = invitationPrice;
+ if(invitationPrice == ""){
+ invitationPrice = 0;
}
+ sku.invitationPrice = invitationPrice;
//兑换所需金额
var scorePrice = tds.eq(length - 2).find("input").val();
- if(scorePrice != ""){
- sku.scorePrice = scorePrice;
- }
+ sku.scorePrice = scorePrice;
//兑换所需积分
var scoreCount = tds.eq(length - 1).find("input").val();
- if(scoreCount != ""){
- sku.scoreCount = scoreCount;
- }
+ sku.scoreCount = scoreCount;
skus.push(sku);
}
--
Gitblit v1.9.1