Authored by OF1706

修改问题

@@ -389,16 +389,16 @@ const formatPromotion = (it, selectedGiftsList) => { @@ -389,16 +389,16 @@ const formatPromotion = (it, selectedGiftsList) => {
389 // 判断赠品/加价购商品,是否被选中 389 // 判断赠品/加价购商品,是否被选中
390 info.giftGoodsList = checkGoodsIsSel(info.giftGoodsList, info.promotionId, selectedGiftsList); 390 info.giftGoodsList = checkGoodsIsSel(info.giftGoodsList, info.promotionId, selectedGiftsList);
391 391
392 - function toDecimal(x){  
393 - var f = Math.round(x*100)/100;  
394 - var s= f.toString();  
395 - var rs =s.indexOf('.');  
396 - if(rs<0){ 392 + function toDecimal(x) {
  393 + var f = Math.round(x * 100) / 100;
  394 + var s = f.toString();
  395 + var rs = s.indexOf('.');
  396 + if (rs < 0) {
397 rs = s.length; 397 rs = s.length;
398 - s+="."; 398 + s += '.';
399 } 399 }
400 - while(s.length<=rs+2){  
401 - s+='0'; 400 + while (s.length <= rs + 2) {
  401 + s += '0';
402 } 402 }
403 return s; 403 return s;
404 } 404 }
@@ -414,9 +414,9 @@ const formatPromotion = (it, selectedGiftsList) => { @@ -414,9 +414,9 @@ const formatPromotion = (it, selectedGiftsList) => {
414 tipTxt += '元满足'; 414 tipTxt += '元满足';
415 } 415 }
416 416
417 - info.promotionTitle = tipTxt + "("+ info.promotionTitle + ")"; 417 + info.promotionTitle = tipTxt + '(' + info.promotionTitle + ')';
418 } else if (status === 10) { 418 } else if (status === 10) {
419 - info.promotionTitle = '已满足' + "("+ info.promotionTitle + ")"; 419 + info.promotionTitle = '已满足' + '(' + info.promotionTitle + ')';
420 } 420 }
421 421
422 if (info.giftGoodsList) { 422 if (info.giftGoodsList) {