Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -0,0 +1,20 @@
//
// ShopGoodsListViewCell.h
// Ifish
//
// Created by imac on 2017/5/16.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopGoodsListData.h"
@interface ShopGoodsListViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *goodsImg;
@property (weak, nonatomic) IBOutlet UILabel *goodsName;
@property (weak, nonatomic) IBOutlet UILabel *creatTime;
@property (weak, nonatomic) IBOutlet UILabel *watchCount;
-(void)loadCellDataWith:(ShopGoodsListData *)data;
@property (weak, nonatomic) IBOutlet UIButton *eduteBtn;
@end
@@ -0,0 +1,38 @@
//
// ShopGoodsListViewCell.m
// Ifish
//
// Created by imac on 2017/5/16.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "ShopGoodsListViewCell.h"
#import "UIImageView+WebCache.h"
@implementation ShopGoodsListViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)loadCellDataWith:(ShopGoodsListData *)data
{
NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg];
[self.goodsImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
self.goodsName.text = [NSString stringWithFormat:@"%@",data.commodityName];
NSString *dateStr = [NSString stringWithFormat:@"%@",data.createTime];
NSDate *date = [dataContorl formatDateTime:dateStr];
NSLog(@"date***%@****",date);
NSString *riqi =[dataContorl getYearmonthaddDayWithDate:date];
self.creatTime.text = [NSString stringWithFormat:@"创建时间:%@",riqi];
self.watchCount.text = [NSString stringWithFormat:@"浏览次数:%@次",data.click];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16E195" 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="none" indentationWidth="10" reuseIdentifier="ShopGoodsListViewCell" id="KGk-i7-Jjw" customClass="ShopGoodsListViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="106"/>
<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="105.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Sms-ff-hyW">
<rect key="frame" x="8" y="12" width="107" height="80"/>
<constraints>
<constraint firstAttribute="height" constant="80" id="4c1-Wk-oua"/>
<constraint firstAttribute="width" constant="107" id="E6z-N7-7WC"/>
</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="7fY-hJ-IgQ">
<rect key="frame" x="123" y="77" width="74" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="bly-JC-A5t"/>
</constraints>
<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>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Tkb-YZ-5ZK">
<rect key="frame" x="243" y="74" width="60" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="1ei-IA-kT7"/>
<constraint firstAttribute="height" constant="22" id="nYg-aG-883"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" title=" 编辑" image="shop_goods_edite.png">
<color key="titleColor" red="0.0" green="0.70588235294117641" blue="0.93725490196078431" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FHl-OJ-f6s">
<rect key="frame" x="123" y="12" width="180" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<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="RAe-hU-5BT">
<rect key="frame" x="123" y="54" width="180" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="qaf-64-vg3"/>
</constraints>
<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>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="goods_video_start.png" translatesAutoresizingMaskIntoConstraints="NO" id="4Js-LW-iti">
<rect key="frame" x="54" y="39" width="16" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="bxc-nJ-6g9"/>
<constraint firstAttribute="width" constant="16" id="omS-Xe-uNq"/>
</constraints>
</imageView>
</subviews>
<constraints>
<constraint firstItem="4Js-LW-iti" firstAttribute="centerX" secondItem="Sms-ff-hyW" secondAttribute="centerX" id="7rV-Kv-sNa"/>
<constraint firstItem="RAe-hU-5BT" firstAttribute="leading" secondItem="Sms-ff-hyW" secondAttribute="trailing" constant="8" id="9R9-xw-5iJ"/>
<constraint firstAttribute="trailingMargin" secondItem="FHl-OJ-f6s" secondAttribute="trailing" constant="9" id="A4L-PZ-UwE"/>
<constraint firstAttribute="leadingMargin" secondItem="Sms-ff-hyW" secondAttribute="leading" id="Duu-Bv-ccL"/>
<constraint firstAttribute="trailingMargin" secondItem="RAe-hU-5BT" secondAttribute="trailing" constant="9" id="IZx-GR-xTU"/>
<constraint firstItem="4Js-LW-iti" firstAttribute="centerY" secondItem="Sms-ff-hyW" secondAttribute="centerY" id="L7U-G4-n7p"/>
<constraint firstItem="Tkb-YZ-5ZK" firstAttribute="centerY" secondItem="7fY-hJ-IgQ" secondAttribute="centerY" id="ODw-ep-w4B"/>
<constraint firstItem="7fY-hJ-IgQ" firstAttribute="bottom" secondItem="Sms-ff-hyW" secondAttribute="bottom" id="SmK-Sl-6Sh"/>
<constraint firstItem="FHl-OJ-f6s" firstAttribute="leading" secondItem="Sms-ff-hyW" secondAttribute="trailing" constant="8" id="gad-hb-yqf"/>
<constraint firstItem="FHl-OJ-f6s" firstAttribute="top" secondItem="Sms-ff-hyW" secondAttribute="top" id="gy7-Pk-Czp"/>
<constraint firstItem="7fY-hJ-IgQ" firstAttribute="top" secondItem="RAe-hU-5BT" secondAttribute="bottom" constant="8" id="jXj-sa-Dcj"/>
<constraint firstAttribute="trailingMargin" secondItem="Tkb-YZ-5ZK" secondAttribute="trailing" constant="9" id="rKW-xz-AI6"/>
<constraint firstItem="Sms-ff-hyW" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="sol-3F-6fd"/>
<constraint firstItem="7fY-hJ-IgQ" firstAttribute="leading" secondItem="Sms-ff-hyW" secondAttribute="trailing" constant="8" id="yVK-Hq-pDC"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="creatTime" destination="RAe-hU-5BT" id="Rkt-mM-rRh"/>
<outlet property="eduteBtn" destination="Tkb-YZ-5ZK" id="ebf-dt-aIl"/>
<outlet property="goodsImg" destination="Sms-ff-hyW" id="hqb-JV-h6o"/>
<outlet property="goodsName" destination="FHl-OJ-f6s" id="pa3-dc-0Wo"/>
<outlet property="watchCount" destination="7fY-hJ-IgQ" id="6YE-Vp-uwP"/>
</connections>
<point key="canvasLocation" x="25" y="52"/>
</tableViewCell>
</objects>
<resources>
<image name="goods_video_start.png" width="43" height="68"/>
<image name="shop_goods_edite.png" width="15" height="14"/>
</resources>
</document>
@@ -0,0 +1,17 @@
//
// VideoEditeNameViewCell.h
// Ifish
//
// Created by imac on 2017/5/19.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface VideoEditeNameViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *holderLabel;
@property (weak, nonatomic) IBOutlet UITextView *goodsNameTextView;
@end
@@ -0,0 +1,24 @@
//
// VideoEditeNameViewCell.m
// Ifish
//
// Created by imac on 2017/5/19.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "VideoEditeNameViewCell.h"
@implementation VideoEditeNameViewCell
- (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
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16E195" 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="none" indentationWidth="10" reuseIdentifier="VideoEditeNameViewCell" id="KGk-i7-Jjw" customClass="VideoEditeNameViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="136"/>
<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="135.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品名称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qEw-g1-tHv">
<rect key="frame" x="8" y="19" width="68" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="o7D-Yj-eAI"/>
<constraint firstAttribute="width" constant="68" id="yZn-9l-Jzy"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="fUZ-s7-fXx">
<rect key="frame" x="8" y="48" width="304" height="70"/>
<color key="backgroundColor" red="0.94891661405563354" green="0.94907897710800171" blue="0.94890636205673218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="70" id="Vg2-UB-Nkv"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences" returnKeyType="done"/>
</textView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请输入商品名称(不超过15个字)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RqA-1V-VEA">
<rect key="frame" x="26" y="57" width="232" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="232" id="Wwr-gM-nPt"/>
<constraint firstAttribute="height" constant="21" id="cCG-Il-DHz"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="fUZ-s7-fXx" firstAttribute="leading" secondItem="RqA-1V-VEA" secondAttribute="trailing" constant="-250" id="1SH-Rg-8qZ"/>
<constraint firstItem="fUZ-s7-fXx" firstAttribute="top" secondItem="RqA-1V-VEA" secondAttribute="bottom" constant="-30" id="6af-rR-BYQ"/>
<constraint firstAttribute="trailingMargin" secondItem="fUZ-s7-fXx" secondAttribute="trailing" id="KOG-gm-QVY"/>
<constraint firstAttribute="leadingMargin" secondItem="fUZ-s7-fXx" secondAttribute="leading" id="c6b-ym-I3U"/>
<constraint firstAttribute="leadingMargin" secondItem="qEw-g1-tHv" secondAttribute="leading" id="dBX-ie-ae1"/>
<constraint firstItem="qEw-g1-tHv" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="11" id="o9x-65-TTs"/>
<constraint firstItem="fUZ-s7-fXx" firstAttribute="top" secondItem="qEw-g1-tHv" secondAttribute="bottom" constant="8" id="qT2-Iu-RgJ"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="goodsNameTextView" destination="fUZ-s7-fXx" id="ghY-xd-ecz"/>
<outlet property="holderLabel" destination="RqA-1V-VEA" id="lPe-HC-FXk"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,19 @@
//
// VideoEditeVideoCell.h
// Ifish
//
// Created by imac on 2017/5/19.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "IfishVideoModel.h"
#import "ShopGoodsListData.h"
@interface VideoEditeVideoCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *videoShotImg;
@property (weak, nonatomic) IBOutlet UIImageView *videoStartImg;
-(void)addImgWithViewTypeNew:(IfishVideoModel*)model;
-(void)addImgWithViewTypeUpDate:(ShopGoodsListData *)data;
@end
@@ -0,0 +1,43 @@
//
// VideoEditeVideoCell.m
// Ifish
//
// Created by imac on 2017/5/19.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "VideoEditeVideoCell.h"
#import "UIImageView+WebCache.h"
@implementation VideoEditeVideoCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)addImgWithViewTypeNew:(IfishVideoModel*)model
{
//新加 获取本地视频数据
NSString *filePath = model.thumAbsolutePath;
self.videoShotImg.image = [UIImage imageWithContentsOfFile:filePath];
}
-(void)addImgWithViewTypeUpDate:(ShopGoodsListData *)data
{
NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg];
[self.videoShotImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16E195" 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="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="none" indentationWidth="10" reuseIdentifier="VideoEditeVideoCell" id="KGk-i7-Jjw" customClass="VideoEditeVideoCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="180"/>
<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="180"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="eLf-pi-dYh">
<rect key="frame" x="0.0" y="0.0" width="320" height="180"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="goods_video_start.png" translatesAutoresizingMaskIntoConstraints="NO" id="azV-iS-aaR">
<rect key="frame" x="139" y="56" width="43" height="68"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="azV-iS-aaR" firstAttribute="centerY" secondItem="eLf-pi-dYh" secondAttribute="centerY" id="CLk-Nn-8aw"/>
<constraint firstItem="eLf-pi-dYh" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="iqO-d9-9kx"/>
<constraint firstItem="azV-iS-aaR" firstAttribute="centerX" secondItem="eLf-pi-dYh" secondAttribute="centerX" id="pGE-ce-Ogi"/>
<constraint firstAttribute="trailing" secondItem="eLf-pi-dYh" secondAttribute="trailing" id="qj7-u9-ufN"/>
<constraint firstItem="eLf-pi-dYh" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="sQt-WX-iLY"/>
<constraint firstAttribute="bottom" secondItem="eLf-pi-dYh" secondAttribute="bottom" id="uFg-Gb-wdw"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="videoShotImg" destination="eLf-pi-dYh" id="UME-fa-SUf"/>
<outlet property="videoStartImg" destination="azV-iS-aaR" id="yMI-pt-2NI"/>
</connections>
</tableViewCell>
</objects>
<resources>
<image name="goods_video_start.png" width="43" height="68"/>
</resources>
</document>