Commit 549c2c9e authored by 季圣华's avatar 季圣华
Browse files

解决商品信息展示的bug

parent f90aa299
......@@ -469,18 +469,20 @@
res = value;
} else {
var ps = rec.pricestrategy;
var arr = JSON.parse(ps);
var basic = "";
if(type == "lowprice") {
basic = arr[0].basic.LowPrice;
} else if(type == "presetpriceone") {
basic = arr[0].basic.PresetPriceOne;
} else if(type == "presetpricetwo") {
basic = arr[0].basic.PresetPriceTwo;
} else if(type == "retailprice") {
basic = arr[0].basic.RetailPrice;
if(ps) {
var arr = JSON.parse(ps);
var basic = "";
if(type == "lowprice") {
basic = arr[0].basic.LowPrice;
} else if(type == "presetpriceone") {
basic = arr[0].basic.PresetPriceOne;
} else if(type == "presetpricetwo") {
basic = arr[0].basic.PresetPriceTwo;
} else if(type == "retailprice") {
basic = arr[0].basic.RetailPrice;
}
res = basic;
}
res = basic;
}
return res;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment