修改订单问题
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user