Commit 717d6b292880f055d9ae43672b0ddb8df6f9388d
1 parent
1f42a460
预存优化
Showing
5 changed files
with
5 additions
and
5 deletions
packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js
| ... | ... | @@ -1234,7 +1234,7 @@ Page({ |
| 1234 | 1234 | let pre_json = formData.pre_json |
| 1235 | 1235 | let all_yck_arr = formData.all_yck_arr |
| 1236 | 1236 | pdata.map((item, i) => { |
| 1237 | - item.pre_cut = all_yck_arr[i] ? all_yck_arr[i] : 0 | |
| 1237 | + item.pre_cut = all_yck_arr[i] ? all_yck_arr[i].toFixed(2) : 0 | |
| 1238 | 1238 | item.pre_preferential = 0 |
| 1239 | 1239 | item.pre_json = pre_json[i] ? JSON.stringify(pre_json[i]) : '' |
| 1240 | 1240 | }) | ... | ... |
packageC/pages/presell/cart/cart2_pre.js
| ... | ... | @@ -818,7 +818,7 @@ Page({ |
| 818 | 818 | let pre_json = formData.pre_json |
| 819 | 819 | let all_yck_arr = formData.all_yck_arr |
| 820 | 820 | pdata.map((item, i) => { |
| 821 | - item.pre_cut = all_yck_arr[i] ? all_yck_arr[i] : 0 | |
| 821 | + item.pre_cut = all_yck_arr[i] ? all_yck_arr[i].toFixed(2) : 0 | |
| 822 | 822 | item.pre_preferential = 0 |
| 823 | 823 | item.pre_json = pre_json[i] ? JSON.stringify(pre_json[i]) : '' |
| 824 | 824 | }) | ... | ... |
packageE/pages/cart/cart2/cart2.js
| ... | ... | @@ -4183,7 +4183,7 @@ Page({ |
| 4183 | 4183 | let pre_json = formData.pre_json |
| 4184 | 4184 | let all_yck_arr = formData.all_yck_arr |
| 4185 | 4185 | pdata.map((item, i) => { |
| 4186 | - item.pre_cut = all_yck_arr[i] ? all_yck_arr[i] : 0 | |
| 4186 | + item.pre_cut = all_yck_arr[i] ? all_yck_arr[i].toFixed(2) : 0 | |
| 4187 | 4187 | item.pre_preferential = 0 |
| 4188 | 4188 | item.pre_json = pre_json[i] ? JSON.stringify(pre_json[i]) : '' |
| 4189 | 4189 | }) | ... | ... |
pages/cart/cart2_inte/cart2_inte.js
| ... | ... | @@ -1090,7 +1090,7 @@ Page({ |
| 1090 | 1090 | let pre_json = formData.pre_json |
| 1091 | 1091 | let all_yck_arr = formData.all_yck_arr |
| 1092 | 1092 | pdata.map((item, i) => { |
| 1093 | - item.pre_cut = all_yck_arr[i] ? all_yck_arr[i] : 0 | |
| 1093 | + item.pre_cut = all_yck_arr[i] ? all_yck_arr[i].toFixed(2) : 0 | |
| 1094 | 1094 | item.pre_preferential = 0 |
| 1095 | 1095 | item.pre_json = pre_json[i] ? JSON.stringify(pre_json[i]) : '' |
| 1096 | 1096 | }) | ... | ... |
pages/cart/cart2_pt/cart2_pt.js
| ... | ... | @@ -1178,7 +1178,7 @@ Page({ |
| 1178 | 1178 | let pre_json = formData.pre_json |
| 1179 | 1179 | let all_yck_arr = formData.all_yck_arr |
| 1180 | 1180 | pdata.map((item, i) => { |
| 1181 | - item.pre_cut = all_yck_arr[i] ? all_yck_arr[i] : 0 | |
| 1181 | + item.pre_cut = all_yck_arr[i] ? all_yck_arr[i].toFixed(2) : 0 | |
| 1182 | 1182 | item.pre_preferential = 0 |
| 1183 | 1183 | item.pre_json = pre_json[i] ? JSON.stringify(pre_json[i]) : '' |
| 1184 | 1184 | }) | ... | ... |