|
@@ -125,7 +125,22 @@
|
|
|
NSString *imgStr = [NSString stringWithFormat:@"https:%@%@%@",HostPath,ProductImgPath,itemM.image];
|
|
|
[self.leftImg sd_setImageWithURL:[NSURL URLWithString:imgStr] placeholderImage:UIImageDefaultImg_SD];
|
|
|
self.nameLab.text = itemM.name;
|
|
|
- self.optionsLab.text = itemM.options;
|
|
|
+
|
|
|
+
|
|
|
+ NSArray *array = [Current_normalTool arrFromjsonStr:itemM.options];
|
|
|
+
|
|
|
+ NSString *optionStr = @"";
|
|
|
+ for (int i = 0; i < array.count; i++) {
|
|
|
+ NSDictionary *dic = [array objectAtIndex:i];
|
|
|
+ optionStr = [NSString stringWithFormat:@"%@%@:%@", optionStr, dic[@"label"], dic[@"value"]];
|
|
|
+
|
|
|
+ if (i < array.count - 1) {
|
|
|
+ optionStr = [NSString stringWithFormat:@"%@\n", optionStr];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ self.optionsLab.text = optionStr;
|
|
|
+
|
|
|
+
|
|
|
self.priceLab.attributedText = [MyCartItemCell tool_changePriceAtr:itemM];
|
|
|
|
|
|
self.closeBtn.hidden = itemM.isGift;
|