修改订单问题

This commit is contained in:
liuyuan
2025-07-01 16:34:25 +08:00
parent e0556ef0fd
commit c7bab5afb4
12 changed files with 1065 additions and 743 deletions

View File

@@ -222,7 +222,7 @@
validateFunction: (rule, value, data, callback) => {
// 异步需要返回 Promise 对象
return new Promise((resolve, reject) => {
if (!this.$base.phoneRegular.test(value)) {
if (!/^\d{5,15}$/.test(value)) {
reject(new Error("手机号格式不正确"));
} else {
resolve();

View File

@@ -1007,7 +1007,7 @@
if (value.indexOf(".") !== -1) {
value = value.split(".")[0]; // 截取小数点前的部分
}
// 如果输入为0强制设置为0并显示为 "0"
if (val == 0) {
this.jfNumber = 0;
@@ -1034,6 +1034,7 @@
if (this.curCouponId && this.curCoupon.couponEntity.id) {
couponAmount = this.curCoupon.couponEntity.couponAmount;
}
this.actualPayment =
this.totalPrice -
couponAmount -
@@ -1291,6 +1292,7 @@
that.freightNum -
that.districtAmount -
that.vipPrice;
console.log(that.actualPayment)
} else {
that.actualPayment =
that.totalPrice +