diff --git a/packageG/pages/user/order_detail/order_detail.js b/packageG/pages/user/order_detail/order_detail.js index cbb88f0..08ba1af 100644 --- a/packageG/pages/user/order_detail/order_detail.js +++ b/packageG/pages/user/order_detail/order_detail.js @@ -1769,11 +1769,8 @@ Page({ }) if (arr2.length == 1) { - good.prom_type = 1; - good.prom_id = item.act_id; - - - + good.prom_type = arr2[0].prom_type; + good.prom_id = arr2[0].act_id; } else if (arr2.length > 1) { good.prom_type = g_item.prom_type; good.prom_id = g_item.prom_id; diff --git a/pages/user/order_list/order_list.js b/pages/user/order_list/order_list.js index d383ed4..8d3b471 100644 --- a/pages/user/order_list/order_list.js +++ b/pages/user/order_list/order_list.js @@ -2093,8 +2093,8 @@ Page({ }) if (arr2.length == 1) { - good.prom_type = item.prom_type; - good.prom_id = item.act_id; + good.prom_type = arr2[0].prom_type; + good.prom_id = arr2[0].act_id; } else if (arr2.length > 1) { good.prom_type = g_item.prom_type; good.prom_id = g_item.prom_id;