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

debug

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