Initial commit
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// ShopAlreadyCertifyViewCell.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/2/9.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "CertificationShopModel.h"
|
||||
|
||||
@interface ShopAlreadyCertifyViewCell : UITableViewCell
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *shopUserIcon;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UILabel *shopName;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *shopTel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *shopAdderess;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIButton *shopDetailBtn;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *shopUserName;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *saomaBtn;
|
||||
|
||||
-(void)loadDataWith:(CertificationShopModel*)model;
|
||||
@end
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
//
|
||||
// ShopAlreadyCertifyViewCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/2/9.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShopAlreadyCertifyViewCell.h"
|
||||
#import "UIImageView+WebCache.h"
|
||||
|
||||
@implementation ShopAlreadyCertifyViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
//UIImageView *imagView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"merchant_iocn_background"]];
|
||||
//[self setBackgroundView:imagView];
|
||||
|
||||
/*NSString *str= @" 查看店铺";
|
||||
NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:str];
|
||||
NSTextAttachment *attch = [[NSTextAttachment alloc] init];
|
||||
attch.image = [UIImage imageNamed:@"merchant_iocn_shop"];
|
||||
attch.bounds = CGRectMake(0,-2,17,14);
|
||||
NSAttributedString *attristr=[NSAttributedString attributedStringWithAttachment:attch];
|
||||
[attri insertAttributedString:attristr atIndex:0];
|
||||
|
||||
[self.shopDetailBtn setAttributedTitle:attri forState:UIControlStateNormal];
|
||||
|
||||
[attri addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0,str.length+1)];
|
||||
[attri addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:11] range:NSMakeRange(0,str.length+1)];
|
||||
self.shopDetailBtn.layer.masksToBounds = YES;
|
||||
self.shopDetailBtn.layer.cornerRadius = 5;
|
||||
self.shopUserIcon.layer.masksToBounds = YES;
|
||||
self.shopUserIcon.layer.cornerRadius = 5;*/
|
||||
self.shopUserIcon.layer.masksToBounds = YES;
|
||||
self.shopUserIcon.layer.cornerRadius = 5;
|
||||
|
||||
}
|
||||
|
||||
-(void)loadDataWith:(CertificationShopModel*)model{
|
||||
|
||||
UserModel *userModel=[dataContorl getUserInfo];
|
||||
[self.shopUserIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]];
|
||||
self.shopAdderess.text =[NSString stringWithFormat:@"详细地址:%@%@%@%@",model.shopsProvince,model.shopsCity,model.shopsArea,model.shopsAddress];
|
||||
self.shopTel.text = [NSString stringWithFormat:@"联系方式:%@",model.shopsPhone];
|
||||
self.shopUserName.text = userModel.nickName;
|
||||
self.shopName.text = model.shopsName;
|
||||
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="ShopAlreadyCertifyViewCell" id="KGk-i7-Jjw" customClass="ShopAlreadyCertifyViewCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="186"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="186"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cjo-cw-Dkf">
|
||||
<rect key="frame" x="97" y="35" width="219" height="21"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="LM8-A0-BGo"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="18"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="McZ-lp-men">
|
||||
<rect key="frame" x="15" y="96" width="297" height="16"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="8bv-Sc-yeV"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oyn-Tm-VOS">
|
||||
<rect key="frame" x="15" y="116" width="297" height="16"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="16" id="KrU-ni-uUf"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="gxx-O0-VPj">
|
||||
<rect key="frame" x="15" y="15" width="72" height="72"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="72" id="Ci5-PS-6rh"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cVc-Ns-E2K">
|
||||
<rect key="frame" x="235" y="152" width="77" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="77" id="JwG-MT-iCI"/>
|
||||
<constraint firstAttribute="height" constant="24" id="Zda-yQ-rRl"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="11"/>
|
||||
<state key="normal" backgroundImage="merchant_botton_shop.png">
|
||||
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1b0-EJ-yfR">
|
||||
<rect key="frame" x="97" y="67" width="219" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="17" id="rRz-nZ-zkC"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9VD-JS-YLJ">
|
||||
<rect key="frame" x="143" y="152" width="84" height="23"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="84" id="PTl-Gd-pck"/>
|
||||
<constraint firstAttribute="height" constant="23" id="ujB-NB-DTm"/>
|
||||
</constraints>
|
||||
<state key="normal" backgroundImage="merchant_botton_code.png"/>
|
||||
</button>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="merchant_iocn_background" translatesAutoresizingMaskIntoConstraints="NO" id="ddt-bD-bT5">
|
||||
<rect key="frame" x="236" y="0.0" width="84" height="94"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="94" id="7se-ot-DIA"/>
|
||||
<constraint firstAttribute="width" constant="84" id="Fzo-x0-xVC"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="oyn-Tm-VOS" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="3Pe-R1-Mo1"/>
|
||||
<constraint firstItem="cVc-Ns-E2K" firstAttribute="leading" secondItem="9VD-JS-YLJ" secondAttribute="trailing" constant="8" id="6Zu-Sp-eZx"/>
|
||||
<constraint firstItem="gxx-O0-VPj" firstAttribute="leading" secondItem="McZ-lp-men" secondAttribute="leading" id="F3X-o6-Bea"/>
|
||||
<constraint firstItem="ddt-bD-bT5" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="N8Z-0n-Ghl"/>
|
||||
<constraint firstAttribute="bottomMargin" secondItem="cVc-Ns-E2K" secondAttribute="bottom" constant="1.5" id="NAa-yz-a6M"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="oyn-Tm-VOS" secondAttribute="trailing" id="SmF-Q6-pc9"/>
|
||||
<constraint firstItem="gxx-O0-VPj" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="7" id="TWC-ZD-RAi"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="1b0-EJ-yfR" secondAttribute="trailing" constant="-4" id="TaF-mH-wB6"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="cVc-Ns-E2K" secondAttribute="trailing" id="VgU-GK-9Sw"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="cjo-cw-Dkf" secondAttribute="trailing" constant="-4" id="czD-6u-rrM"/>
|
||||
<constraint firstItem="oyn-Tm-VOS" firstAttribute="top" secondItem="McZ-lp-men" secondAttribute="bottom" constant="4" id="inR-2y-90G"/>
|
||||
<constraint firstItem="McZ-lp-men" firstAttribute="centerX" secondItem="oyn-Tm-VOS" secondAttribute="centerX" id="j8n-JH-pCM"/>
|
||||
<constraint firstItem="cjo-cw-Dkf" firstAttribute="leading" secondItem="gxx-O0-VPj" secondAttribute="trailing" constant="10" id="k22-Ou-8I2"/>
|
||||
<constraint firstItem="1b0-EJ-yfR" firstAttribute="leading" secondItem="gxx-O0-VPj" secondAttribute="trailing" constant="10" id="k5r-f4-hV1"/>
|
||||
<constraint firstAttribute="bottomMargin" secondItem="9VD-JS-YLJ" secondAttribute="bottom" constant="2.5" id="o7v-eg-fUv"/>
|
||||
<constraint firstItem="1b0-EJ-yfR" firstAttribute="top" secondItem="cjo-cw-Dkf" secondAttribute="bottom" constant="11" id="oSD-dn-VOB"/>
|
||||
<constraint firstItem="cjo-cw-Dkf" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="27" id="ss8-fI-x2w"/>
|
||||
<constraint firstItem="McZ-lp-men" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="tC2-cs-lLj"/>
|
||||
<constraint firstItem="McZ-lp-men" firstAttribute="top" secondItem="1b0-EJ-yfR" secondAttribute="bottom" constant="12" id="yDu-Gy-sRh"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ddt-bD-bT5" secondAttribute="trailing" id="yPD-Vf-x5c"/>
|
||||
<constraint firstItem="McZ-lp-men" firstAttribute="top" secondItem="gxx-O0-VPj" secondAttribute="bottom" constant="9" id="z5s-0X-7qY"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" red="1" green="0.58823529411764708" blue="0.090196078431372548" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<connections>
|
||||
<outlet property="saomaBtn" destination="9VD-JS-YLJ" id="AGK-zJ-7yj"/>
|
||||
<outlet property="shopAdderess" destination="oyn-Tm-VOS" id="8pc-vT-LCl"/>
|
||||
<outlet property="shopDetailBtn" destination="cVc-Ns-E2K" id="T1d-35-0p3"/>
|
||||
<outlet property="shopName" destination="cjo-cw-Dkf" id="GdK-T0-MtU"/>
|
||||
<outlet property="shopTel" destination="McZ-lp-men" id="Rdq-Bz-RpG"/>
|
||||
<outlet property="shopUserIcon" destination="gxx-O0-VPj" id="9dp-Pd-X2R"/>
|
||||
<outlet property="shopUserName" destination="1b0-EJ-yfR" id="iTB-kG-MI1"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="-205" y="-86"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="merchant_botton_code.png" width="194" height="53"/>
|
||||
<image name="merchant_botton_shop.png" width="173" height="53"/>
|
||||
<image name="merchant_iocn_background" width="16" height="16"/>
|
||||
</resources>
|
||||
</document>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ShopNotCertifyViewCell.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/2/9.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface ShopNotCertifyViewCell : UITableViewCell
|
||||
|
||||
@end
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// ShopNotCertifyViewCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/2/9.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShopNotCertifyViewCell.h"
|
||||
|
||||
@implementation ShopNotCertifyViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="ShopNotCertifyViewCell" id="KGk-i7-Jjw" customClass="ShopNotCertifyViewCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="89"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="merchant_iocn_a_attestation.png" translatesAutoresizingMaskIntoConstraints="NO" id="MPL-OR-b4e">
|
||||
<rect key="frame" x="15" y="15" width="57" height="59"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="59" id="WYY-0c-TRk"/>
|
||||
<constraint firstAttribute="width" constant="57" id="blO-F9-Hjc"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商家认证" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UEL-ZY-D0x">
|
||||
<rect key="frame" x="91" y="25" width="66" height="20"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="16"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="成为爱鱼奇认证商户,开通更多个性服务。" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rqr-fu-84E">
|
||||
<rect key="frame" x="91" y="53" width="221" height="21"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="21" id="BVq-f7-eG5"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="11"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="merchant_iocn_a_left.png" translatesAutoresizingMaskIntoConstraints="NO" id="7vM-J2-q1V">
|
||||
<rect key="frame" x="294" y="33.5" width="11" height="21"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="Rqr-fu-84E" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailingMargin" id="0PI-0a-V32"/>
|
||||
<constraint firstItem="Rqr-fu-84E" firstAttribute="leading" secondItem="MPL-OR-b4e" secondAttribute="trailing" constant="19" id="AAL-Jx-5m8"/>
|
||||
<constraint firstItem="Rqr-fu-84E" firstAttribute="bottom" secondItem="MPL-OR-b4e" secondAttribute="bottom" id="AbS-KE-0Cf"/>
|
||||
<constraint firstItem="Rqr-fu-84E" firstAttribute="top" secondItem="UEL-ZY-D0x" secondAttribute="bottom" constant="8" symbolic="YES" id="AqU-97-u4Q"/>
|
||||
<constraint firstItem="UEL-ZY-D0x" firstAttribute="leading" secondItem="MPL-OR-b4e" secondAttribute="trailing" constant="19" id="Ejy-1j-00T"/>
|
||||
<constraint firstAttribute="leadingMargin" secondItem="MPL-OR-b4e" secondAttribute="leading" constant="-7" id="EtD-fD-sHz"/>
|
||||
<constraint firstItem="MPL-OR-b4e" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="RXe-Db-vbV"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="7vM-J2-q1V" secondAttribute="trailing" constant="7" id="Swy-4z-5yu"/>
|
||||
<constraint firstItem="7vM-J2-q1V" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="efB-ry-Ljl"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" red="0.14117647058823529" green="0.65098039215686276" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<point key="canvasLocation" x="-170" y="-50"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="merchant_iocn_a_attestation.png" width="59" height="59"/>
|
||||
<image name="merchant_iocn_a_left.png" width="11" height="21"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// ShopServiceListCell.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/2/9.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "ShopServiceListData.h"
|
||||
@interface ShopServiceListCell : UITableViewCell
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *headerImg;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *title;
|
||||
|
||||
-(void)setCellDataWith:(ShopServiceListData*)data;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *desc;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// ShopServiceListCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/2/9.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShopServiceListCell.h"
|
||||
|
||||
@implementation ShopServiceListCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
[self.title sizeToFit];
|
||||
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
-(void)setCellDataWith:(ShopServiceListData*)data
|
||||
{
|
||||
self.headerImg.image = [UIImage imageNamed:data.serviceIcon];
|
||||
self.title.text = data.serviceName;
|
||||
self.desc.text = data.serviceDt;
|
||||
|
||||
|
||||
}
|
||||
@end
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/>
|
||||
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="ShopServiceListCell" id="KGk-i7-Jjw" customClass="ShopServiceListCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="59"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="kyP-eA-boR">
|
||||
<rect key="frame" x="15" y="11" width="36" height="36"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" secondItem="kyP-eA-boR" secondAttribute="height" multiplier="1:1" id="b4z-Cj-cit"/>
|
||||
<constraint firstAttribute="width" constant="36" id="y4P-fq-Yh3"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bTE-X6-ZPE">
|
||||
<rect key="frame" x="59" y="11" width="253" height="18"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="15"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="X7G-NF-oTF">
|
||||
<rect key="frame" x="0.0" y="58" width="320" height="1"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<color key="backgroundColor" red="0.8666666666666667" green="0.8666666666666667" blue="0.8666666666666667" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JnB-T3-TWc">
|
||||
<rect key="frame" x="59" y="32" width="222" height="15"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="JnB-T3-TWc" secondAttribute="trailing" constant="31" id="7F3-vB-4oQ"/>
|
||||
<constraint firstItem="bTE-X6-ZPE" firstAttribute="leading" secondItem="kyP-eA-boR" secondAttribute="trailing" constant="8" symbolic="YES" id="8u1-iw-rxf"/>
|
||||
<constraint firstItem="kyP-eA-boR" firstAttribute="top" secondItem="bTE-X6-ZPE" secondAttribute="top" id="AKY-PT-9gg"/>
|
||||
<constraint firstItem="kyP-eA-boR" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="D0b-01-DmL"/>
|
||||
<constraint firstItem="kyP-eA-boR" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Kns-hQ-WhI"/>
|
||||
<constraint firstItem="kyP-eA-boR" firstAttribute="bottom" secondItem="JnB-T3-TWc" secondAttribute="bottom" id="VfO-FX-MLb"/>
|
||||
<constraint firstItem="JnB-T3-TWc" firstAttribute="top" secondItem="bTE-X6-ZPE" secondAttribute="bottom" constant="3" id="naK-bZ-yFt"/>
|
||||
<constraint firstItem="bTE-X6-ZPE" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailingMargin" id="x9n-UL-dQC"/>
|
||||
<constraint firstItem="bTE-X6-ZPE" firstAttribute="leading" secondItem="JnB-T3-TWc" secondAttribute="leading" id="yrY-cO-DQk"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<connections>
|
||||
<outlet property="desc" destination="JnB-T3-TWc" id="ifv-uM-4d4"/>
|
||||
<outlet property="headerImg" destination="kyP-eA-boR" id="cEN-fN-r0s"/>
|
||||
<outlet property="title" destination="bTE-X6-ZPE" id="5s5-k1-lvE"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="-61" y="46"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
Reference in New Issue
Block a user