62,046
社区成员
发帖
与我相关
我的任务
分享
var PRODUCT_HASH=new Hash({ "1855":{ "bn":"20049598243-1", "price":388.11, "mktprice":0.00, "store":543, "weight":0.000, "mprice":{"1":388.10,"2":388.10,"3":388.10}, "spec_private_value_id":[ "658" , "670" ] } ,
"1856":{ "bn":"20049598243-2", "price":388.12, "mktprice":0.00, "store":3334, "weight":0.000, "mprice":{"1":388.10,"2":388.10,"3":388.10}, "spec_private_value_id":[ "658" , "671" ] } ,
"1857":{ "bn":"20049598243-3", "price":388.13, "mktprice":0.00, "store":214, "weight":0.000, "mprice":{"1":388.10,"2":388.10,"3":388.10}, "spec_private_value_id":[ "657" , "670" ] } ,
"1858":{ "bn":"20049598243-4", "price":388.14, "mktprice":0.00, "store":443, "weight":0.000, "mprice":{"1":388.10,"2":388.10,"3":388.10}, "spec_private_value_id":[ "657" , "671" ] } });
var SPEC_HASH=new Hash({ "657": { "product_id":[ "1857" , "1858" ], "images": [ ] } ,
"658": { "product_id":[ "1855" , "1856" ], "images": [ ] } ,
"670": { "product_id":[ "1855" , "1857" ], "images": [ ] } ,
"671": { "product_id":[ "1856" , "1858" ], "images": [ ] } }); //计算货架商品会员价 window.addEvent('domready',function(){ if($E(".mktprice1")) { var xn_price = "388.10"; var mkPrice = parseFloat($E(".mktprice1").get("text").replace("¥","")); if(xn_price.length>0){ $E(".price1").set("text","¥"+xn_price) /*$E(".discount").set("text","优惠:" + ( (mkPrice-parseFloat(xn_price))/mkPrice * 100 ).toFixed(1) + "%");*/ } } })