Commit 01a639c2 authored by 曹云霄's avatar 曹云霄

debug

parent 681f34c6
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
- (void)setModel:(TOConsumerEntity *)model - (void)setModel:(TOConsumerEntity *)model
{ {
_model = model; _model = model;
NSArray *images = [_model.picture componentsSeparatedByString:@","]; [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:REPLACEIMAGE];
[self.customerHeader sd_setImageWithURL:[NSURL URLWithString:[images firstObject]] placeholderImage:REPLACEIMAGE];
self.customerName.text = _model.name; self.customerName.text = _model.name;
self.companyName.text = _model.company; self.companyName.text = _model.company;
self.customerAddress.text = _model.address; self.customerAddress.text = _model.address;
......
...@@ -287,7 +287,6 @@ ...@@ -287,7 +287,6 @@
//上拉加载 //上拉加载
self.productCollectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{ self.productCollectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
[[SDImageCache sharedImageCache] clearMemory];
//扫描二维码结果 //扫描二维码结果
if (weakSelf.barcode) { if (weakSelf.barcode) {
......
...@@ -311,6 +311,7 @@ ...@@ -311,6 +311,7 @@
#pragma -mark -UIImagePickerControllerDelegate #pragma -mark -UIImagePickerControllerDelegate
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info
{ {
[DeviceDirectionManager instance].isHorizontal = NO;
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
UIImage *Headimage = [info objectForKey:UIImagePickerControllerOriginalImage]; UIImage *Headimage = [info objectForKey:UIImagePickerControllerOriginalImage];
self.sceneImageView.image = Headimage; self.sceneImageView.image = Headimage;
......
...@@ -39,13 +39,13 @@ ...@@ -39,13 +39,13 @@
/** /**
* 禁止所有的打印,提交AppStore时使用 * 禁止所有的打印,提交AppStore时使用
*/ */
//#ifdef DEBUG #ifdef DEBUG
//#define NSLog(...) NSLog(__VA_ARGS__) #define NSLog(...) NSLog(__VA_ARGS__)
//#define debugMethod() NSLog(@"%s", __func__) #define debugMethod() NSLog(@"%s", __func__)
//#else #else
//#define NSLog(...) #define NSLog(...)
//#define debugMethod() #define debugMethod()
//#endif #endif
/** /**
* AppDelegate代理 * AppDelegate代理
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
[self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:[images firstObject]] placeholderImage:REPLACEIMAGE]; [self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:[images firstObject]] placeholderImage:REPLACEIMAGE];
self.goodsName.text = _model.name; self.goodsName.text = _model.name;
self.goodsSpecifications.text = _model.code; self.goodsSpecifications.text = _model.code;
self.goodsPrice.text = [NSString stringWithFormat:@"¥%@",[_model.tagPrice stringValue]]; self.goodsPrice.text = [NSString stringWithFormat:@"¥%.2f",[_model.tagPrice floatValue]];
if (model.isSelectedState) { if (model.isSelectedState) {
self.layer.borderWidth = 2.0f; self.layer.borderWidth = 2.0f;
self.layer.borderColor = kMainBlueColor.CGColor; self.layer.borderColor = kMainBlueColor.CGColor;
......
Markdown is supported
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