修改vip积分支付没有默认天医币的问题

This commit is contained in:
2025-11-05 10:29:45 +08:00
parent 335a52dbe4
commit 97520a832f
9 changed files with 57 additions and 59 deletions

View File

@@ -557,7 +557,7 @@
}
}
this.payType = this.payList[this.selectPayIndex].type;
this.payType = this.payList.length && this.payList[this.selectPayIndex].type;
if (this.actualPayment == 0) {
var that = this;
this.payList.forEach((e, i) => {
@@ -725,7 +725,7 @@
};
},
async mounted() {
async created() {
this.curCouponId = undefined;
var that = this;
await uni.$on("returnData", function (data) {
@@ -1271,8 +1271,7 @@
}
if (!this.isShowAddress) {
if (that.initData.user && that.initData.user.jf) {
var totalMoney =
that.totalPrice - that.districtAmount - that.vipPrice;
var totalMoney = that.totalPrice - that.districtAmount - that.vipPrice;
if (this.initData.user.jf >= totalMoney) {
const integerPart = Math.floor(totalMoney);
@@ -1303,7 +1302,6 @@
that.freightNum -
that.districtAmount -
that.vipPrice;
console.log(that.actualPayment)
} else {
that.actualPayment =
that.totalPrice +