Commit d00d4dc3 authored by 曹云霄's avatar 曹云霄

no message

parent 26e566d7
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
/** /**
评论人姓名 评论人姓名
*/ */
@property (weak, nonatomic) IBOutlet UILabel *issuerNameLabel; @property (weak, nonatomic) IBOutlet CustomBorderLabel *issuerNameLabel;
/** /**
评论时间 评论时间
......
...@@ -87,8 +87,13 @@ ...@@ -87,8 +87,13 @@
{ {
_replyEntity = replyEntity; _replyEntity = replyEntity;
self.bestView.replyId = _replyEntity.fid; self.bestView.replyId = _replyEntity.fid;
if (_replyEntity.isAdminReply) {
self.issuerNameLabel.customText = @"管理员";
self.issuerImageView.image = [UIImage imageNamed:@"manager"];
}else {
self.issuerNameLabel.customText = [NSString stringWithFormat:@"%@: %@",_replyEntity.replyerPosition,_replyEntity.replyerRealName];
[self.issuerImageView sd_setImageWithURL:[NSURL URLWithString:_replyEntity.replyerPicture] placeholderImage:ReplaceImage]; [self.issuerImageView sd_setImageWithURL:[NSURL URLWithString:_replyEntity.replyerPicture] placeholderImage:ReplaceImage];
self.issuerNameLabel.text = [NSString stringWithFormat:@"%@: %@",_replyEntity.replyerPosition,_replyEntity.replyerRealName]; }
self.issuerDateLabel.text = [BaseViewController formateDate:_replyEntity.replyTime]; self.issuerDateLabel.text = [BaseViewController formateDate:_replyEntity.replyTime];
self.commentContentLabel.text = _replyEntity.replyContent; self.commentContentLabel.text = _replyEntity.replyContent;
self.bestView.isBest = _replyEntity.best; self.bestView.isBest = _replyEntity.best;
...@@ -105,6 +110,7 @@ ...@@ -105,6 +110,7 @@
UIImageView *imgView = (UIImageView *)[self.attachmentView viewWithTag:i]; UIImageView *imgView = (UIImageView *)[self.attachmentView viewWithTag:i];
[imgView sd_setImageWithURL:[NSURL URLWithString:att.fileUrl] placeholderImage:REPLACEIMAGE]; [imgView sd_setImageWithURL:[NSURL URLWithString:att.fileUrl] placeholderImage:REPLACEIMAGE];
} }
} }
#pragma mark - lazy #pragma mark - lazy
......
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
*/ */
@property (weak, nonatomic) IBOutlet UIImageView *forumImageView; @property (weak, nonatomic) IBOutlet UIImageView *forumImageView;
/**
未读背景
*/
@property (weak, nonatomic) IBOutlet UIView *remindBgView;
/** /**
icon icon
*/ */
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
[self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachment.fileUrl] placeholderImage:nil]; [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachment.fileUrl] placeholderImage:nil];
self.forumTitleLabel.text = _categoryEntity.name; self.forumTitleLabel.text = _categoryEntity.name;
self.forumDetailTitleLabel.text = _categoryEntity.fdescription; self.forumDetailTitleLabel.text = _categoryEntity.fdescription;
//判断是否显示未读提醒
self.remindBgView.hidden = !categoryEntity.hasNew;
} }
} }
......
...@@ -17,11 +17,14 @@ ...@@ -17,11 +17,14 @@
@implementation DiscussModuleViewController @implementation DiscussModuleViewController
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self getClassificationList];
}
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
[self uiConfigAction]; [self uiConfigAction];
[self getClassificationList];
} }
#pragma mark - 获取分类帖子列表 #pragma mark - 获取分类帖子列表
...@@ -29,7 +32,7 @@ ...@@ -29,7 +32,7 @@
{ {
[XBLoadingView showHUDViewWithDefaultWithView:self.view]; [XBLoadingView showHUDViewWithDefaultWithView:self.view];
WS(weakSelf); WS(weakSelf);
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(DEFAULTFORUM_CATEGORY) withRequestType:GET withParameter:nil withReturnValueBlock:^(id returnValue) { [HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(DEFAULTFORUM_CATEGORY),[Shoppersmanager manager].shoppers.employee.fid] withRequestType:GET withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefaultWithView:self.view]; [XBLoadingView hideHUDViewWithDefaultWithView:self.view];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -382,6 +382,7 @@ ...@@ -382,6 +382,7 @@
reply.replyerPosition = [Shoppersmanager manager].shoppers.employee.positionsName; reply.replyerPosition = [Shoppersmanager manager].shoppers.employee.positionsName;
reply.replyTime = [[self class] getTimeby:0]; reply.replyTime = [[self class] getTimeby:0];
reply.replyerId = [Shoppersmanager manager].shoppers.employee.fid; reply.replyerId = [Shoppersmanager manager].shoppers.employee.fid;
reply.isAdminReply = [Shoppersmanager manager].shoppers.isAdmin;
NSMutableArray *attachments = [NSMutableArray array]; NSMutableArray *attachments = [NSMutableArray array];
NSString *entityId = [OSSHelper getOSSObjectKey]; NSString *entityId = [OSSHelper getOSSObjectKey];
reply.attachmentId = entityId; reply.attachmentId = entityId;
...@@ -396,9 +397,6 @@ ...@@ -396,9 +397,6 @@
reply.attachments = (NSArray<TOAttachmentEntity>*)attachments; reply.attachments = (NSArray<TOAttachmentEntity>*)attachments;
[weakSelf httpSubmit:reply complete:nil]; [weakSelf httpSubmit:reply complete:nil];
}]; }];
} }
- (void)httpSubmit:(TOForumReplyEntity *)reply complete:(void (^)(void))complete { - (void)httpSubmit:(TOForumReplyEntity *)reply complete:(void (^)(void))complete {
......
...@@ -145,6 +145,22 @@ static NSString *TAGCELL_IDENTIFIER = @"CommentTagTableViewCell"; ...@@ -145,6 +145,22 @@ static NSString *TAGCELL_IDENTIFIER = @"CommentTagTableViewCell";
}]; }];
} }
#pragma mark - 读帖
- (void)readTopic:(NSString *)forumTopicId finish:(void(^)())block {
[XBLoadingView showHUDViewWithDefault];
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(READTOPIC),forumTopicId,[Shoppersmanager manager].shoppers.employee.fid] withRequestType:POST withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
if (block) {
block();
}
}else {
[XBLoadingView showHUDViewWithText:MESSAGE(returnValue)];
}
} withFailureBlock:^(NSError *error) {
[XBLoadingView showHUDViewWithText:error.localizedDescription];
}];
}
#pragma mark - 发帖 #pragma mark - 发帖
- (IBAction)releaseButtonClickAction:(UIButton *)sender { - (IBAction)releaseButtonClickAction:(UIButton *)sender {
...@@ -160,9 +176,7 @@ static NSString *TAGCELL_IDENTIFIER = @"CommentTagTableViewCell"; ...@@ -160,9 +176,7 @@ static NSString *TAGCELL_IDENTIFIER = @"CommentTagTableViewCell";
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{ {
CustomTOForumTopicEntity *entity = self.datasArray[indexPath.row]; CustomTOForumTopicEntity *entity = self.datasArray[indexPath.row];
if (entity.backEnd || if (entity.backEnd || entity.bestTopic || ![[self class] isBlankString:entity.top]) {
entity.bestTopic ||
![[self class] isBlankString:entity.top]) {
CommentTagTableViewCell *tagCell = [tableView dequeueReusableCellWithIdentifier:TAGCELL_IDENTIFIER forIndexPath:indexPath]; CommentTagTableViewCell *tagCell = [tableView dequeueReusableCellWithIdentifier:TAGCELL_IDENTIFIER forIndexPath:indexPath];
[self configTagCellAction:tagCell withIndexPath:indexPath]; [self configTagCellAction:tagCell withIndexPath:indexPath];
return tagCell; return tagCell;
...@@ -230,7 +244,9 @@ static NSString *TAGCELL_IDENTIFIER = @"CommentTagTableViewCell"; ...@@ -230,7 +244,9 @@ static NSString *TAGCELL_IDENTIFIER = @"CommentTagTableViewCell";
} }
} }
}]; }];
[self.navigationController pushViewController:postDetail animated:YES]; [self readTopic:entity.fid finish:^{
[weakSelf.navigationController pushViewController:postDetail animated:YES];
}];
} }
#pragma mark -设置普通帖子 #pragma mark -设置普通帖子
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
@implementation ForumViewController @implementation ForumViewController
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self getForumAllTypeAction];
}
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
...@@ -59,7 +64,7 @@ ...@@ -59,7 +64,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [XBLoadingView showHUDViewWithDefault];;
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(FORUMCATEGORYS),self.typeId] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) { [HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(FORUMCATEGORYS),self.typeId,[Shoppersmanager manager].shoppers.employee.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.forumTableView]; [weakSelf endRefreshingForTableView:weakSelf.forumTableView];
......
...@@ -224,7 +224,6 @@ ...@@ -224,7 +224,6 @@
- (void)showCameraAction - (void)showCameraAction
{ {
if ([[self class] determineCameraPermissions]) { if ([[self class] determineCameraPermissions]) {
UIImagePickerController *camera = [[UIImagePickerController alloc]init]; UIImagePickerController *camera = [[UIImagePickerController alloc]init];
camera.delegate = self; camera.delegate = self;
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
...@@ -235,9 +234,7 @@ ...@@ -235,9 +234,7 @@
[XBLoadingView showHUDViewWithText:@"相机无法使用"]; [XBLoadingView showHUDViewWithText:@"相机无法使用"];
} }
}else { }else {
UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"提示" message:@"请在iPad的“设置-隐私-相机”选项中,允许欧立方访问你的相机" preferredStyle:UIAlertControllerStyleAlert]; ShowAlertView(@"提示", @"请在iPad的“设置-隐私-相机”选项中,允许欧立方访问你的相机", nil, @"知道了", UIAlertControllerStyleAlert, nil, nil);
[alertVC addAction:[UIAlertAction actionWithTitle:@"知道了" style:UIAlertActionStyleCancel handler:nil]];
[self presentViewController:alertVC animated:YES completion:nil];
} }
} }
...@@ -436,7 +433,7 @@ ...@@ -436,7 +433,7 @@
topic.posterPicture = [Shoppersmanager manager].shoppers.employee.picture; topic.posterPicture = [Shoppersmanager manager].shoppers.employee.picture;
topic.postTime = [[self class] getTimeby:0]; topic.postTime = [[self class] getTimeby:0];
topic.category = self.category.fid; topic.category = self.category.fid;
topic.backEnd = NO; topic.backEnd = [Shoppersmanager manager].shoppers.isAdmin;
topic.forumType = self.category.typeId; topic.forumType = self.category.typeId;
topic.title = title; topic.title = title;
topic.content = content; topic.content = content;
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
/**
提醒
*/
@property (weak, nonatomic) IBOutlet UIImageView *remindImageView;
/** /**
背景图片 背景图片
*/ */
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
[self.discussModuleImageView sd_setImageWithURL:[NSURL URLWithString:entity.attachmentBg.fileUrl] placeholderImage:REPLACEIMAGE]; [self.discussModuleImageView sd_setImageWithURL:[NSURL URLWithString:entity.attachmentBg.fileUrl] placeholderImage:REPLACEIMAGE];
[self.iconImageView sd_setImageWithURL:[NSURL URLWithString:entity.attachment.fileUrl] placeholderImage:REPLACEIMAGE]; [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:entity.attachment.fileUrl] placeholderImage:REPLACEIMAGE];
self.titleLabel.text = entity.name; self.titleLabel.text = entity.name;
//判断是否显示未读提醒
self.remindImageView.hidden = !entity.hasNew;
} }
@end @end
...@@ -108,12 +108,12 @@ ...@@ -108,12 +108,12 @@
//微信卡劵 //微信卡劵
if ([model isMemberOfClass:[PromotionWeChatCardModel class]]) { if ([model isMemberOfClass:[PromotionWeChatCardModel class]]) {
PromotionWeChatCardModel *weChatModel = (PromotionWeChatCardModel *)model; PromotionWeChatCardModel *weChatModel = (PromotionWeChatCardModel *)model;
weChatPrice = @{@"price":[NSString stringWithFormat:@"%ld",self.weChatModel.wxcardDenomation],@"priority":@(weChatModel.priority)}; weChatPrice = @{@"price":[NSString stringWithFormat:@"%f",self.weChatModel.wxcardDenomation],@"priority":@(weChatModel.priority)};
}else if ([model isMemberOfClass:[PromotionalDeductionModel class]]) { }else if ([model isMemberOfClass:[PromotionalDeductionModel class]]) {
//抵扣 //抵扣
PromotionalDeductionModel *deductionModel = (PromotionalDeductionModel *)model; PromotionalDeductionModel *deductionModel = (PromotionalDeductionModel *)model;
deductionPrice = @{@"price":[NSString stringWithFormat:@"%ld",deductionModel.total],@"priority":@(deductionModel.priority)}; deductionPrice = @{@"price":[NSString stringWithFormat:@"%f",deductionModel.total],@"priority":@(deductionModel.priority)};
}else if ([model isMemberOfClass:[PromotionLuckyDrawModel class]]) { }else if ([model isMemberOfClass:[PromotionLuckyDrawModel class]]) {
//抽奖 //抽奖
......
...@@ -264,8 +264,8 @@ ...@@ -264,8 +264,8 @@
{ {
//价格字符串切割 //价格字符串切割
NSArray *spacrArray = [weakSelf.selectedCode componentsSeparatedByString:@"到"]; NSArray *spacrArray = [weakSelf.selectedCode componentsSeparatedByString:@"到"];
weakSelf.condtionModel.startprice = (NSDecimalNumber *)[NSDecimalNumber numberWithInteger:[[spacrArray objectAtIndex_opple:0] integerValue]]; weakSelf.condtionModel.startprice = [NSNumber numberWithInteger:[[spacrArray objectAtIndex_opple:0] integerValue]];
weakSelf.condtionModel.endprice = (NSDecimalNumber *)[NSDecimalNumber numberWithInteger:[[spacrArray objectAtIndex_opple:1] integerValue]]; weakSelf.condtionModel.endprice = [NSNumber numberWithInteger:[[spacrArray objectAtIndex_opple:1] integerValue]];
} }
break; break;
default: default:
......
...@@ -328,11 +328,31 @@ ...@@ -328,11 +328,31 @@
#pragma mark -推出3D体验中心控制器 #pragma mark -推出3D体验中心控制器
- (void)show3DFollowHeart:(NSNotification *)objc - (void)show3DFollowHeart:(NSNotification *)objc
{ {
MyclientEntityModel *user = [Customermanager manager].model;
if (user == nil) {
ShowAlertView(nil, @"请先指定当前客户", nil, @"我知道了", UIAlertControllerStyleAlert, nil, nil);
return;
}
LoginResult *shopper = [Shoppersmanager manager].shoppers;
CustomWKWebViewController *webView = [[CustomWKWebViewController alloc] init]; CustomWKWebViewController *webView = [[CustomWKWebViewController alloc] init];
webView.type = Announcement; webView.type = Announcement;
webView.urlString = @"http://ysj.zbj.com/oem/100001.html"; webView.urlString = [NSString stringWithFormat:BAJIE3D,user.fid,shopper.employee.departid,shopper.employee.fid];
[self presentViewController:webView animated:YES completion:nil]; [self presentViewController:webView animated:YES completion:nil];
} }
@end @end
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16E195" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
<device id="ipad9_7" orientation="landscape"> <device id="ipad9_7" orientation="landscape">
<adaptation id="fullscreen"/> <adaptation id="fullscreen"/>
</device> </device>
<dependencies> <dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/> <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/> <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
...@@ -440,6 +440,19 @@ ...@@ -440,6 +440,19 @@
<rect key="frame" x="0.0" y="0.0" width="1024" height="90"/> <rect key="frame" x="0.0" y="0.0" width="1024" height="90"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rEo-N1-aF0">
<rect key="frame" x="95" y="3" width="10" height="10"/>
<color key="backgroundColor" red="1" green="0.16451525227875108" blue="0.074432441126347948" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="Bmo-Hs-JgU"/>
<constraint firstAttribute="height" constant="10" id="DPW-fZ-h5e"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="案例分析" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="InC-cR-acr"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="案例分析" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="InC-cR-acr">
<rect key="frame" x="103" y="24" width="70" height="21"/> <rect key="frame" x="103" y="24" width="70" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
...@@ -461,7 +474,7 @@ ...@@ -461,7 +474,7 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yYt-oe-BR3"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yYt-oe-BR3">
<rect key="frame" x="28" y="13" width="65" height="65"/> <rect key="frame" x="28" y="13" width="65" height="65"/>
<subviews> <subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="tIu-Ox-DXo"> <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="tIu-Ox-DXo">
<rect key="frame" x="0.0" y="0.0" width="65" height="65"/> <rect key="frame" x="0.0" y="0.0" width="65" height="65"/>
<userDefinedRuntimeAttributes> <userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius"> <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
...@@ -470,7 +483,7 @@ ...@@ -470,7 +483,7 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</imageView> </imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="uBx-pP-QGT"> <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="uBx-pP-QGT">
<rect key="frame" x="0.5" y="0.5" width="65" height="65"/> <rect key="frame" x="0.0" y="0.0" width="65" height="65"/>
</imageView> </imageView>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
...@@ -498,8 +511,10 @@ ...@@ -498,8 +511,10 @@
<constraint firstItem="R8L-1A-ohO" firstAttribute="leading" secondItem="yYt-oe-BR3" secondAttribute="trailing" constant="10" id="1cO-Q6-jOP"/> <constraint firstItem="R8L-1A-ohO" firstAttribute="leading" secondItem="yYt-oe-BR3" secondAttribute="trailing" constant="10" id="1cO-Q6-jOP"/>
<constraint firstItem="InC-cR-acr" firstAttribute="leading" secondItem="yYt-oe-BR3" secondAttribute="trailing" constant="10" id="9oh-Ue-jL3"/> <constraint firstItem="InC-cR-acr" firstAttribute="leading" secondItem="yYt-oe-BR3" secondAttribute="trailing" constant="10" id="9oh-Ue-jL3"/>
<constraint firstItem="SKx-pF-I2X" firstAttribute="leading" secondItem="4lI-td-FE0" secondAttribute="leading" id="DBO-cg-Hx1"/> <constraint firstItem="SKx-pF-I2X" firstAttribute="leading" secondItem="4lI-td-FE0" secondAttribute="leading" id="DBO-cg-Hx1"/>
<constraint firstItem="rEo-N1-aF0" firstAttribute="top" secondItem="uBx-pP-QGT" secondAttribute="top" constant="-10" id="DlC-rs-OAb"/>
<constraint firstAttribute="bottom" secondItem="SKx-pF-I2X" secondAttribute="bottom" id="EKG-DJ-7YI"/> <constraint firstAttribute="bottom" secondItem="SKx-pF-I2X" secondAttribute="bottom" id="EKG-DJ-7YI"/>
<constraint firstItem="InC-cR-acr" firstAttribute="centerY" secondItem="4lI-td-FE0" secondAttribute="centerY" multiplier="0.75" id="T1n-Wz-08i"/> <constraint firstItem="InC-cR-acr" firstAttribute="centerY" secondItem="4lI-td-FE0" secondAttribute="centerY" multiplier="0.75" id="T1n-Wz-08i"/>
<constraint firstItem="rEo-N1-aF0" firstAttribute="leading" secondItem="yYt-oe-BR3" secondAttribute="trailing" constant="2" id="Zyf-Xj-vSD"/>
<constraint firstItem="R8L-1A-ohO" firstAttribute="centerY" secondItem="4lI-td-FE0" secondAttribute="centerY" multiplier="1.25" constant="1.2" id="jaq-PQ-owD"/> <constraint firstItem="R8L-1A-ohO" firstAttribute="centerY" secondItem="4lI-td-FE0" secondAttribute="centerY" multiplier="1.25" constant="1.2" id="jaq-PQ-owD"/>
<constraint firstAttribute="trailing" secondItem="SKx-pF-I2X" secondAttribute="trailing" id="vjc-P0-9e1"/> <constraint firstAttribute="trailing" secondItem="SKx-pF-I2X" secondAttribute="trailing" id="vjc-P0-9e1"/>
<constraint firstItem="yYt-oe-BR3" firstAttribute="leading" secondItem="4lI-td-FE0" secondAttribute="leading" constant="28" id="wCf-7N-eKH"/> <constraint firstItem="yYt-oe-BR3" firstAttribute="leading" secondItem="4lI-td-FE0" secondAttribute="leading" constant="28" id="wCf-7N-eKH"/>
...@@ -510,6 +525,7 @@ ...@@ -510,6 +525,7 @@
<outlet property="forumImageView" destination="tIu-Ox-DXo" id="AYh-Ex-fo4"/> <outlet property="forumImageView" destination="tIu-Ox-DXo" id="AYh-Ex-fo4"/>
<outlet property="forumTitleLabel" destination="InC-cR-acr" id="vPh-Yx-udm"/> <outlet property="forumTitleLabel" destination="InC-cR-acr" id="vPh-Yx-udm"/>
<outlet property="iconImageView" destination="uBx-pP-QGT" id="Yoo-3E-VJ5"/> <outlet property="iconImageView" destination="uBx-pP-QGT" id="Yoo-3E-VJ5"/>
<outlet property="remindBgView" destination="rEo-N1-aF0" id="7dH-H0-10m"/>
</connections> </connections>
</tableViewCell> </tableViewCell>
</prototypes> </prototypes>
...@@ -1307,14 +1323,19 @@ ...@@ -1307,14 +1323,19 @@
<constraint firstAttribute="height" constant="70" id="WBX-tx-wgZ"/> <constraint firstAttribute="height" constant="70" id="WBX-tx-wgZ"/>
</constraints> </constraints>
</imageView> </imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="NewRed" translatesAutoresizingMaskIntoConstraints="NO" id="c42-r8-7kx">
<rect key="frame" x="237" y="37" width="43" height="29"/>
</imageView>
</subviews> </subviews>
</view> </view>
<constraints> <constraints>
<constraint firstAttribute="bottom" secondItem="7Fw-Z6-RHQ" secondAttribute="bottom" id="1iz-Jy-bsz"/> <constraint firstAttribute="bottom" secondItem="7Fw-Z6-RHQ" secondAttribute="bottom" id="1iz-Jy-bsz"/>
<constraint firstItem="7Fw-Z6-RHQ" firstAttribute="leading" secondItem="xyj-vp-PmN" secondAttribute="leading" id="2Zn-6l-8oc"/> <constraint firstItem="7Fw-Z6-RHQ" firstAttribute="leading" secondItem="xyj-vp-PmN" secondAttribute="leading" id="2Zn-6l-8oc"/>
<constraint firstItem="c42-r8-7kx" firstAttribute="leading" secondItem="rz6-GB-Wn5" secondAttribute="trailing" constant="5" id="NWn-no-T50"/>
<constraint firstItem="THz-Dz-s93" firstAttribute="centerX" secondItem="xyj-vp-PmN" secondAttribute="centerX" multiplier="0.5" id="S6g-4G-EeD"/> <constraint firstItem="THz-Dz-s93" firstAttribute="centerX" secondItem="xyj-vp-PmN" secondAttribute="centerX" multiplier="0.5" id="S6g-4G-EeD"/>
<constraint firstItem="rz6-GB-Wn5" firstAttribute="leading" secondItem="THz-Dz-s93" secondAttribute="trailing" constant="30" id="aGe-SB-2XV"/> <constraint firstItem="rz6-GB-Wn5" firstAttribute="leading" secondItem="THz-Dz-s93" secondAttribute="trailing" constant="30" id="aGe-SB-2XV"/>
<constraint firstItem="rz6-GB-Wn5" firstAttribute="centerY" secondItem="THz-Dz-s93" secondAttribute="centerY" id="b6t-9P-7eG"/> <constraint firstItem="rz6-GB-Wn5" firstAttribute="centerY" secondItem="THz-Dz-s93" secondAttribute="centerY" id="b6t-9P-7eG"/>
<constraint firstItem="c42-r8-7kx" firstAttribute="top" secondItem="rz6-GB-Wn5" secondAttribute="top" constant="-25" id="i1P-1s-cm6"/>
<constraint firstItem="THz-Dz-s93" firstAttribute="centerY" secondItem="xyj-vp-PmN" secondAttribute="centerY" id="jz0-tw-Dq5"/> <constraint firstItem="THz-Dz-s93" firstAttribute="centerY" secondItem="xyj-vp-PmN" secondAttribute="centerY" id="jz0-tw-Dq5"/>
<constraint firstItem="7Fw-Z6-RHQ" firstAttribute="top" secondItem="xyj-vp-PmN" secondAttribute="top" id="mcV-WM-VNv"/> <constraint firstItem="7Fw-Z6-RHQ" firstAttribute="top" secondItem="xyj-vp-PmN" secondAttribute="top" id="mcV-WM-VNv"/>
<constraint firstAttribute="trailing" secondItem="7Fw-Z6-RHQ" secondAttribute="trailing" id="uAx-oK-x8K"/> <constraint firstAttribute="trailing" secondItem="7Fw-Z6-RHQ" secondAttribute="trailing" id="uAx-oK-x8K"/>
...@@ -1323,6 +1344,7 @@ ...@@ -1323,6 +1344,7 @@
<connections> <connections>
<outlet property="discussModuleImageView" destination="7Fw-Z6-RHQ" id="2Ba-7K-xbC"/> <outlet property="discussModuleImageView" destination="7Fw-Z6-RHQ" id="2Ba-7K-xbC"/>
<outlet property="iconImageView" destination="THz-Dz-s93" id="cYV-aU-Cpf"/> <outlet property="iconImageView" destination="THz-Dz-s93" id="cYV-aU-Cpf"/>
<outlet property="remindImageView" destination="c42-r8-7kx" id="dWr-S1-W4t"/>
<outlet property="titleLabel" destination="rz6-GB-Wn5" id="lw3-dz-dE1"/> <outlet property="titleLabel" destination="rz6-GB-Wn5" id="lw3-dz-dE1"/>
</connections> </connections>
</collectionViewCell> </collectionViewCell>
...@@ -3267,8 +3289,8 @@ ...@@ -3267,8 +3289,8 @@
<constraint firstAttribute="height" constant="35" id="ccw-v8-BsU"/> <constraint firstAttribute="height" constant="35" id="ccw-v8-BsU"/>
</constraints> </constraints>
</imageView> </imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mfw-jx-1kt"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" layoutMarginsFollowReadableWidth="YES" text="管理员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mfw-jx-1kt" customClass="CustomBorderLabel">
<rect key="frame" x="68" y="20" width="7" height="15"/> <rect key="frame" x="68" y="20" width="37" height="14.5"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/> <fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/> <color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -3479,6 +3501,7 @@ ...@@ -3479,6 +3501,7 @@
<image name="00登录-谭" width="1024" height="768"/> <image name="00登录-谭" width="1024" height="768"/>
<image name="6" width="141" height="141"/> <image name="6" width="141" height="141"/>
<image name="Imagebackground" width="65" height="65"/> <image name="Imagebackground" width="65" height="65"/>
<image name="NewRed" width="43" height="29"/>
<image name="Recruitbackground" width="2048" height="1402"/> <image name="Recruitbackground" width="2048" height="1402"/>
<image name="Recruitbackground_title" width="1762" height="939"/> <image name="Recruitbackground_title" width="1762" height="939"/>
<image name="StudyGuides" width="229" height="318"/> <image name="StudyGuides" width="229" height="318"/>
......
{
"images" : [
{
"idiom" : "universal",
"filename" : "NewRed.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "NewRed@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "NewRed@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundleName</key> <key>CFBundleName</key>
<string>欧立方</string> <string>欧立方</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>2.1.3</string> <string>2.1.6</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <dict>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2.1.3</string> <string>2.1.6</string>
<key>LSApplicationQueriesSchemes</key> <key>LSApplicationQueriesSchemes</key>
<array> <array>
<string>wechat</string> <string>wechat</string>
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#import "YXAlertController.h" #import "YXAlertController.h"
#import "UIView+Frame.h" #import "UIView+Frame.h"
#import "UIImage+Fit.h" #import "UIImage+Fit.h"
#import "WZLBadgeImport.h"
#import <UMSocialCore/UMSocialCore.h> #import <UMSocialCore/UMSocialCore.h>
// 引入JPush功能所需头文件 // 引入JPush功能所需头文件
#import "JPUSHService.h" #import "JPUSHService.h"
...@@ -116,6 +117,12 @@ typedef NS_ENUM(NSInteger,COMMENT_PRAISE) { ...@@ -116,6 +117,12 @@ typedef NS_ENUM(NSInteger,COMMENT_PRAISE) {
/*****************************************接口地址*****************************************/ /*****************************************接口地址*****************************************/
/**
* 猪八戒3D
*/
extern NSString *const BAJIE3D;
/** /**
* 登陆 * 登陆
*/ */
...@@ -603,6 +610,11 @@ extern NSString *const READPACKETPATH; ...@@ -603,6 +610,11 @@ extern NSString *const READPACKETPATH;
* 保存门店地区 * 保存门店地区
*/ */
extern NSString *const ADDRESS; extern NSString *const ADDRESS;
/**
* 读帖
*/
extern NSString *const READTOPIC;
/*****************************************接口地址*****************************************/ /*****************************************接口地址*****************************************/
......
...@@ -12,6 +12,12 @@ ...@@ -12,6 +12,12 @@
/*****************************************接口地址*****************************************/ /*****************************************接口地址*****************************************/
/**
* 猪八戒3D
*/
NSString *const BAJIE3D = @"http://ysj.zbj.com/oem/100001.html?consumerId=%@&resellerId=%@&uId=%@&key=9efb9f0537d24caca3c30fe7b9aeb0af";
/** /**
* 登陆 * 登陆
*/ */
...@@ -342,7 +348,7 @@ NSString *const STUDYTYPES = @"/study/getTypes"; ...@@ -342,7 +348,7 @@ NSString *const STUDYTYPES = @"/study/getTypes";
/** /**
* 论坛讨论项分类第二层 * 论坛讨论项分类第二层
*/ */
NSString *const FORUMCATEGORYS = @"/forum/getCategorys/%@"; NSString *const FORUMCATEGORYS = @"/forum/getCategorys/%@/%@";
/** /**
* 论坛讨类型第一层 * 论坛讨类型第一层
*/ */
...@@ -485,7 +491,7 @@ NSString *const GETTIMELINE = @"/forum/getTimeLine"; ...@@ -485,7 +491,7 @@ NSString *const GETTIMELINE = @"/forum/getTimeLine";
/** /**
* 综合讨论区 * 综合讨论区
*/ */
NSString *const DEFAULTFORUM_CATEGORY = @"/forum/getDefaultForumCategory"; NSString *const DEFAULTFORUM_CATEGORY = @"/forum/getDefaultForumCategory/%@";
/** /**
* 查询红包 * 查询红包
*/ */
...@@ -498,6 +504,10 @@ NSString *const READPACKETPATH = @"/redPackage/uploadNote?orderNumber=%@&orderR ...@@ -498,6 +504,10 @@ NSString *const READPACKETPATH = @"/redPackage/uploadNote?orderNumber=%@&orderR
* 保存门店地区 * 保存门店地区
*/ */
NSString *const ADDRESS = @"/resellerStore/saveStoreAddress"; NSString *const ADDRESS = @"/resellerStore/saveStoreAddress";
/**
* 读帖
*/
NSString *const READTOPIC = @"/forum/readForumTopic/%@/%@";
/*****************************************接口地址*****************************************/ /*****************************************接口地址*****************************************/
/** /**
......
...@@ -793,6 +793,11 @@ extern NSString * const GRADEMETHOD_MANUL; ...@@ -793,6 +793,11 @@ extern NSString * const GRADEMETHOD_MANUL;
* *
*/ */
@property (nonatomic, assign) BOOL isHasStoreAddress; @property (nonatomic, assign) BOOL isHasStoreAddress;
/**
是否是管理员
*/
@property (nonatomic,assign) BOOL isAdmin;
@end /* interface LoginResult */ @end /* interface LoginResult */
...@@ -2121,7 +2126,10 @@ extern NSString * const GRADEMETHOD_MANUL; ...@@ -2121,7 +2126,10 @@ extern NSString * const GRADEMETHOD_MANUL;
*/ */
@property (nonatomic,copy) NSString *typeId; @property (nonatomic,copy) NSString *typeId;
//帖子数量
@property (nonatomic, assign) NSInteger topicCount; @property (nonatomic, assign) NSInteger topicCount;
//是否有最新的帖子
@property (nonatomic,assign) BOOL hasNew;
/** /**
* 附件 * 附件
* *
...@@ -5823,6 +5831,11 @@ extern NSString * const GRADEMETHOD_MANUL; ...@@ -5823,6 +5831,11 @@ extern NSString * const GRADEMETHOD_MANUL;
* *
*/ */
@property (nonatomic, copy) NSString *replyerPicture; @property (nonatomic, copy) NSString *replyerPicture;
/**
是否是管理员
*/
@property (nonatomic,assign) BOOL isAdminReply;
@end /* interface TOForumReplyEntity */ @end /* interface TOForumReplyEntity */
......
...@@ -158,6 +158,7 @@ static NetworkRequestClassManager *manager = nil; ...@@ -158,6 +158,7 @@ static NetworkRequestClassManager *manager = nil;
withReturnValueBlock:(ReturnValueBlock) successBlock withReturnValueBlock:(ReturnValueBlock) successBlock
withFailureBlock:(FailureBlock) failureBlock withFailureBlock:(FailureBlock) failureBlock
{ {
NSLog(@"%@",requestURLString);
AFHTTPSessionManager *manager = [self baseHttpRequest]; AFHTTPSessionManager *manager = [self baseHttpRequest];
if (requestType == POST) { if (requestType == POST) {
[manager POST:requestURLString parameters:parameter progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { [manager POST:requestURLString parameters:parameter progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
......
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