优惠前价格取整

This commit is contained in:
2023-06-08 17:07:33 +08:00
parent bf89c360ff
commit 5392d3a2fc
2 changed files with 15 additions and 108 deletions

View File

@@ -198,16 +198,14 @@ export default {
// uni.setStorageSync("customer_info", ["39207", "zh-CN"]);
// this.$i18n.locale = "en";
// uni.setStorageSync("heXiaoData", {
// totalMoney: +this.form_data.money.value,
// totalMoney: Math.round(+this.form_data.money.value),
// userNum: this.form_data.num_dine,
// dTicket: 0, // 优惠券抵扣
// dIntegral: 0, // 积分抵扣
// dMoney: 0, // 抵扣后金额
// coupon: [], // 选中的优惠券
// });
// this.gotoWhere(
// `/pages/verification/stepOne?money=${this.form_data.money.value}&num_dine=${this.form_data.num_dine}`
// );
// this.gotoWhere(`/pages/verification/stepOne`);
// return;
// 允许从相机和相册扫码
if (parseInt(this.form_data.money.value) < 0) return;
@@ -218,7 +216,7 @@ export default {
console.log(customer_info);
uni.setStorageSync("customer_info", customer_info);
uni.setStorageSync("heXiaoData", {
totalMoney: +this.form_data.money.value,
totalMoney: Math.round(+this.form_data.money.value),
userNum: this.form_data.num_dine,
dTicket: 0, // 优惠券抵扣
dIntegral: 0, // 积分抵扣
@@ -227,9 +225,7 @@ export default {
});
// 修改默认语言
this.$i18n.locale = customer_info[1];
this.gotoWhere(
`/pages/verification/stepOne?money=${this.form_data.money.value}&num_dine=${this.form_data.num_dine}`
);
this.gotoWhere(`/pages/verification/stepOne`);
},
});
},