Commit f9cb4bf1585d8f5399b9e56acb14470f75b249e8

Authored by yvan.ni
1 parent 306746e2

预售尾款,非实收的订单促销不能参与~~

packageC/pages/presell/cart/cart.js
@@ -1972,6 +1972,10 @@ Page({ @@ -1972,6 +1972,10 @@ Page({
1972 }).then(res => { 1972 }).then(res => {
1973 if (res.data.code == 0) { 1973 if (res.data.code == 0) {
1974 var data = res.data.data; 1974 var data = res.data.data;
  1975 +
  1976 + //如果订单促销的取价不是实收,清空订单促销
  1977 + if(data && data.discount_field>0) data=null;
  1978 +
1975 th.data.order_prom[pick] = data; 1979 th.data.order_prom[pick] = data;
1976 } else { 1980 } else {
1977 th.data.order_prom[pick] = null; 1981 th.data.order_prom[pick] = null;
@@ -2439,6 +2443,9 @@ Page({ @@ -2439,6 +2443,9 @@ Page({
2439 }).then(res => { 2443 }).then(res => {
2440 if (res.data.code == 0) { 2444 if (res.data.code == 0) {
2441 ord_prom = res.data.data; 2445 ord_prom = res.data.data;
  2446 +
  2447 + //如果订单促销的取价不是实收,清空订单促销
  2448 + if(ord_prom && ord_prom.discount_field>0) ord_prom=null;
2442 } 2449 }
2443 }) 2450 })
2444 } 2451 }