Authored by 陈轩

秒杀结算 送货方式fix

@@ -31,7 +31,7 @@ function yohoCoinCompute(orderCompute) { @@ -31,7 +31,7 @@ function yohoCoinCompute(orderCompute) {
31 } 31 }
32 32
33 if (yohoCoinData.totalYohoCoinNum < 100) { 33 if (yohoCoinData.totalYohoCoinNum < 100) {
34 - yohoCoinData.yohoCoinMsg = '共{yohoCoinData.totalYohoCoinNum}有货币,满{orderCompute.yoho_coin_pay_rule.num_limit}可用'; 34 + yohoCoinData.yohoCoinMsg = `共${yohoCoinData.totalYohoCoinNum}有货币,满${orderCompute.yoho_coin_pay_rule.num_limit}可用`;
35 } else if (yohoCoinData.useYohoCoin > 0 || yohoCoinData.yohoCoin > 0) { 35 } else if (yohoCoinData.useYohoCoin > 0 || yohoCoinData.yohoCoin > 0) {
36 yohoCoinData.yohoCoinMsg = '可抵¥' + (yohoCoinData.useYohoCoin > 0 ? yohoCoinData.useYohoCoin : yohoCoinData.yohoCoin); 36 yohoCoinData.yohoCoinMsg = '可抵¥' + (yohoCoinData.useYohoCoin > 0 ? yohoCoinData.useYohoCoin : yohoCoinData.yohoCoin);
37 yohoCoinData.yohoCoinClick = 1; 37 yohoCoinData.yohoCoinClick = 1;
@@ -127,11 +127,11 @@ function tranformPayment(data, orderInfo) { @@ -127,11 +127,11 @@ function tranformPayment(data, orderInfo) {
127 times[defaultKey].isSelected = true; 127 times[defaultKey].isSelected = true;
128 128
129 if (cookieTimeId) { 129 if (cookieTimeId) {
130 - let selectTime = times.find(time => time.delivery_time_id === cookieTimeId); 130 + let selectTime = times.find(time => time.id === cookieTimeId);
131 131
132 if (selectTime) { 132 if (selectTime) {
133 - selectTime.isSelected = true;  
134 times[defaultKey].isSelected = false; 133 times[defaultKey].isSelected = false;
  134 + selectTime.isSelected = true;
135 } 135 }
136 } 136 }
137 137