Commit 94571ad844c56a98f742ce87fd56eebcdeb7c6ad

Authored by pengye
1 parent beb3003b

邀请函弹框送券金额有多位小数时,保留2位小数

@@ -1225,7 +1225,7 @@ Page({ @@ -1225,7 +1225,7 @@ Page({
1225 setTimeout(() => { 1225 setTimeout(() => {
1226 this.setData({ 1226 this.setData({
1227 couponArr, 1227 couponArr,
1228 - totalPrice, 1228 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1229 }) 1229 })
1230 this.couponModal.showModal() 1230 this.couponModal.showModal()
1231 }, 3000); 1231 }, 3000);
@@ -1304,7 +1304,7 @@ Page({ @@ -1304,7 +1304,7 @@ Page({
1304 setTimeout(() => { 1304 setTimeout(() => {
1305 this.setData({ 1305 this.setData({
1306 couponArr, 1306 couponArr,
1307 - totalPrice, 1307 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1308 }) 1308 })
1309 this.couponModal.showModal() 1309 this.couponModal.showModal()
1310 }, 3000); 1310 }, 3000);
@@ -1314,7 +1314,7 @@ Page({ @@ -1314,7 +1314,7 @@ Page({
1314 setTimeout(() => { 1314 setTimeout(() => {
1315 this.setData({ 1315 this.setData({
1316 couponArr, 1316 couponArr,
1317 - totalPrice, 1317 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1318 }) 1318 })
1319 this.couponModal.showModal() 1319 this.couponModal.showModal()
1320 }, 3000); 1320 }, 3000);
@@ -1171,7 +1171,7 @@ Page({ @@ -1171,7 +1171,7 @@ Page({
1171 setTimeout(() => { 1171 setTimeout(() => {
1172 this.setData({ 1172 this.setData({
1173 couponArr, 1173 couponArr,
1174 - totalPrice, 1174 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1175 }) 1175 })
1176 this.couponModal.showModal() 1176 this.couponModal.showModal()
1177 }, 3000); 1177 }, 3000);
@@ -1126,7 +1126,7 @@ Page({ @@ -1126,7 +1126,7 @@ Page({
1126 setTimeout(() => { 1126 setTimeout(() => {
1127 this.setData({ 1127 this.setData({
1128 couponArr, 1128 couponArr,
1129 - totalPrice, 1129 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1130 }) 1130 })
1131 this.couponModal.showModal() 1131 this.couponModal.showModal()
1132 }, 3000); 1132 }, 3000);
@@ -1126,7 +1126,7 @@ Page({ @@ -1126,7 +1126,7 @@ Page({
1126 setTimeout(() => { 1126 setTimeout(() => {
1127 this.setData({ 1127 this.setData({
1128 couponArr, 1128 couponArr,
1129 - totalPrice, 1129 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1130 }) 1130 })
1131 this.couponModal.showModal() 1131 this.couponModal.showModal()
1132 }, 3000); 1132 }, 3000);
@@ -1125,7 +1125,7 @@ Page({ @@ -1125,7 +1125,7 @@ Page({
1125 setTimeout(() => { 1125 setTimeout(() => {
1126 this.setData({ 1126 this.setData({
1127 couponArr, 1127 couponArr,
1128 - totalPrice, 1128 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1129 }) 1129 })
1130 this.couponModal.showModal() 1130 this.couponModal.showModal()
1131 }, 3000); 1131 }, 3000);
@@ -1083,7 +1083,7 @@ Page({ @@ -1083,7 +1083,7 @@ Page({
1083 setTimeout(() => { 1083 setTimeout(() => {
1084 this.setData({ 1084 this.setData({
1085 couponArr, 1085 couponArr,
1086 - totalPrice, 1086 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1087 }) 1087 })
1088 this.couponModal.showModal() 1088 this.couponModal.showModal()
1089 }, 3000); 1089 }, 3000);
@@ -1126,7 +1126,7 @@ Page({ @@ -1126,7 +1126,7 @@ Page({
1126 setTimeout(() => { 1126 setTimeout(() => {
1127 this.setData({ 1127 this.setData({
1128 couponArr, 1128 couponArr,
1129 - totalPrice, 1129 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1130 }) 1130 })
1131 this.couponModal.showModal() 1131 this.couponModal.showModal()
1132 }, 3000); 1132 }, 3000);
@@ -1125,7 +1125,7 @@ Page({ @@ -1125,7 +1125,7 @@ Page({
1125 setTimeout(() => { 1125 setTimeout(() => {
1126 this.setData({ 1126 this.setData({
1127 couponArr, 1127 couponArr,
1128 - totalPrice, 1128 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1129 }) 1129 })
1130 this.couponModal.showModal() 1130 this.couponModal.showModal()
1131 }, 3000); 1131 }, 3000);
@@ -1166,7 +1166,7 @@ Page({ @@ -1166,7 +1166,7 @@ Page({
1166 setTimeout(() => { 1166 setTimeout(() => {
1167 this.setData({ 1167 this.setData({
1168 couponArr, 1168 couponArr,
1169 - totalPrice, 1169 + totalPrice:parseFloat(totalPrice.toFixed(2)),
1170 }) 1170 })
1171 this.couponModal.showModal() 1171 this.couponModal.showModal()
1172 }, 3000); 1172 }, 3000);