Commit db7bbb2195e544d6bc97699507a1585e1411fdbd
1 parent
81d8932b
再来一单的优化
Showing
2 changed files
with
4 additions
and
7 deletions
packageG/pages/user/order_detail/order_detail.js
... | ... | @@ -1769,11 +1769,8 @@ Page({ |
1769 | 1769 | }) |
1770 | 1770 | |
1771 | 1771 | if (arr2.length == 1) { |
1772 | - good.prom_type = 1; | |
1773 | - good.prom_id = item.act_id; | |
1774 | - | |
1775 | - | |
1776 | - | |
1772 | + good.prom_type = arr2[0].prom_type; | |
1773 | + good.prom_id = arr2[0].act_id; | |
1777 | 1774 | } |
1778 | 1775 | else if (arr2.length > 1) { |
1779 | 1776 | good.prom_type = g_item.prom_type; good.prom_id = g_item.prom_id; | ... | ... |
pages/user/order_list/order_list.js
... | ... | @@ -2093,8 +2093,8 @@ Page({ |
2093 | 2093 | }) |
2094 | 2094 | |
2095 | 2095 | if (arr2.length == 1) { |
2096 | - good.prom_type = item.prom_type; | |
2097 | - good.prom_id = item.act_id; | |
2096 | + good.prom_type = arr2[0].prom_type; | |
2097 | + good.prom_id = arr2[0].act_id; | |
2098 | 2098 | } |
2099 | 2099 | else if (arr2.length > 1) { |
2100 | 2100 | good.prom_type = g_item.prom_type; good.prom_id = g_item.prom_id; | ... | ... |