Skip to content

Commit 456f3d2

Browse files
committed
【功能优化】优化限时满减的金额数据库保存为分
1 parent 4d25dda commit 456f3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/mall/promotion/discountActivity/DiscountActivityForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const submitForm = async () => {
193193
const products = cloneDeep(spuAndSkuListRef.value.getSkuConfigs('productConfig'))
194194
products.forEach((item: DiscountActivityApi.DiscountProductVO) => {
195195
item.discountPercent = convertToInteger(item.discountPercent)
196-
item.discountPrice = convertToInteger(item.discountPrice)
196+
item.discountPrice = convertToInteger(yuanToFen(item.discountPrice))
197197
})
198198
const data = cloneDeep(formRef.value.formModel) as DiscountActivityApi.DiscountActivityVO
199199
data.products = products

0 commit comments

Comments
 (0)