Commit f7efac82bb6f4af0805d4fc1deeeb819526c25cf

Authored by yvan.ni
1 parent 0537cc9f

小程序点判断

pages/goods/goodsInfo/goodsInfo.js
@@ -6584,7 +6584,7 @@ Page({ @@ -6584,7 +6584,7 @@ Page({
6584 break; 6584 break;
6585 } 6585 }
6586 } else { 6586 } else {
6587 - if (item.condition > all_price) { 6587 + if ( parseFloat(item.condition)> parseFloat(parseFloat(all_price).toFixed(2)) ) {
6588 con = item; 6588 con = item;
6589 con.need = (item.condition - all_price).toFixed(2) + "元"; 6589 con.need = (item.condition - all_price).toFixed(2) + "元";
6590 break; 6590 break;