From bc721423d62b0b8e8deedff6b97b5dbc8ca54a97 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 28 五月 2025 09:08:16 +0800
Subject: [PATCH] 提交
---
wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
index f361900..e052ea3 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
@@ -325,6 +325,7 @@
//
//
//
+//
var _default = {
data: function data() {
return {
@@ -373,7 +374,12 @@
// 鎬婚噾棰�
totalPrice: function totalPrice() {
// return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
- return (this.cyclePrice * this.add.length - this.cyclePrice * this.del.length).toFixed(2);
+ var totalReductPrice = 0;
+ this.del.forEach(function (item) {
+ totalReductPrice = totalReductPrice + item.fee;
+ });
+ // return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
+ return (this.cyclePrice * this.add.length + totalReductPrice).toFixed(2);
}
},
methods: {
@@ -410,7 +416,7 @@
memberName: item.name,
workTypeName: item.gzName,
worktypeId: item.gzId,
- fee: _this2.cyclePrice
+ fee: item.fee
};
});
this.$u.api.applyChangeCreate({
--
Gitblit v1.9.3