diff --git a/dist.zip b/dist.zip
index 19c40e2..59473bb 100644
Binary files a/dist.zip and b/dist.zip differ
diff --git a/src/components/ShouFei.vue b/src/components/ShouFei.vue
index ec7f41d..87973f7 100644
--- a/src/components/ShouFei.vue
+++ b/src/components/ShouFei.vue
@@ -8,7 +8,8 @@
全托
-
¥500
+
¥380
+
加急件1000元
@@ -77,12 +78,14 @@
写材料+代理
-
¥{{ basePrice21 + additionalOptionsPrice2 }}起
-
加急件{{ basePrice22 + additionalOptionsPrice2 }}元
-
+
+
¥{{ totalPrice21 }}起
+
加急件{{ totalPrice22 }}元
+
@@ -136,13 +139,13 @@
-
-
-
安装包100元
+ 安装包50元
-
-
系统演示视频文件50元
@@ -151,8 +154,9 @@
写材料
- ¥{{ basePrice3 + additionalOptionsPrice3 }}
-
+
+ ¥{{ totalPrice3 }}
+
@@ -196,13 +200,13 @@
-
-
-
安装包100元
+ 安装包50元
-
-
系统演示视频文件50元
@@ -252,11 +256,17 @@ export default {
data() {
return {
basePrice1: 500,
- basePrice21: 400,
- basePrice22: 500,
- additionalOptions2: [],
- basePrice3: 200,
- additionalOptions3: [],
+ basePrice21: 300,
+ basePrice22: 1000,
+ additionalOptions2: {
+ chec1: false,
+ chec2: false,
+ },
+ basePrice3: 180,
+ additionalOptions3: {
+ chec3: false,
+ chec4: false,
+ },
}
@@ -268,20 +278,67 @@ export default {
getButtonValue(event) {
// 获取按钮的value
console.log(event.target.value);
- }
+ },
+
+ // updateTotalPrice2() {
+ // // 更新第二项的总价格
+ // this.additionalOptions2 = this.additionalOptions2.concat(this.additionalOptions3);
+ // this.additionalOptions2 = this.additionalOptions2.concat(this.additionalOptions4);
+ // },
+ // updateTotalPrice3() {
+ // // 更新第三项的总价格
+ // this.additionalOptions3 = this.additionalOptions3.concat(this.additionalOptions4);
+ // this.additionalOptions3 = this.additionalOptions3.concat(this.additionalOptions5);
+ // }
+
+ updateTotalPrice2() {
+ let price = 0;
+ if (this.additionalOptions2.chec1) price += 50;
+ if (this.additionalOptions2.chec2) price += 50;
+ this.additionalOptions2.total = price;
+ },
+ updateTotalPrice3() {
+ let price = 0;
+ if (this.additionalOptions3.chec3) price += 50;
+ if (this.additionalOptions3.chec4) price += 50;
+ this.additionalOptions3.total = price;
+ },
+
},
// mounted() {
// this.dianji();
// },
computed: {
- additionalOptionsPrice2() {
- // 计算附加选项的总价
- return this.additionalOptions2.reduce((total, option) => total + parseInt(option), 0);
+ totalPrice21() {
+ return this.basePrice21 + (this.additionalOptions2.total || 0);
},
- additionalOptionsPrice3() {
- // 计算附加选项的总价
- return this.additionalOptions3.reduce((total, option) => total + parseInt(option), 0);
+ totalPrice22() {
+ return this.basePrice22 + (this.additionalOptions2.total || 0);
},
+ totalPrice3() {
+ return this.basePrice3 + (this.additionalOptions3.total || 0);
+ },
+ // additionalOptionsPrice2() {
+ // // 计算附加选项的总价
+ // return this.additionalOptions2.reduce((total, option) => total + parseInt(option), 0);
+ // },
+ // additionalOptionsPrice3() {
+ // // 计算附加选项的总价
+ // return this.additionalOptions3.reduce((total, option) => total + parseInt(option), 0);
+ // },
+
+ // totalPrice21() {
+ // // 计算第二项普通件的总价
+ // return this.basePrice21 + this.additionalOptionsPrice2;
+ // },
+ // totalPrice22() {
+ // // 计算第二项加急件的总价
+ // return this.basePrice22 + this.additionalOptionsPrice2;
+ // },
+ // totalPrice3() {
+ // // 计算第三项的总价
+ // return this.basePrice3 + this.additionalOptionsPrice3;
+ // }
},
@@ -397,6 +454,7 @@ text-align: center;
font-size: 18px;
cursor: pointer;
}
+.box .top p,
.box2 .top p {
text-align: center;
font-size: 14px;
diff --git a/src/components/TransactionCenter.vue b/src/components/TransactionCenter.vue
index 0b41f0e..ba57f1c 100644
--- a/src/components/TransactionCenter.vue
+++ b/src/components/TransactionCenter.vue
@@ -178,7 +178,7 @@
-
+
+
\ No newline at end of file