Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
444ebbb5
Commit
444ebbb5
authored
Apr 28, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择商品
parent
a641d996
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
567 additions
and
5 deletions
+567
-5
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+16
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/jiahaoXG.imageset/Contents.json
...form/Assets.xcassets/代客下单/jiahaoXG.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/jiahaoXG.imageset/jiahao@2x.png
...form/Assets.xcassets/代客下单/jiahaoXG.imageset/jiahao@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/jiahaoXG.imageset/jiahao@3x.png
...form/Assets.xcassets/代客下单/jiahaoXG.imageset/jiahao@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/jianhaoXG.imageset/Contents.json
...orm/Assets.xcassets/代客下单/jianhaoXG.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/jianhaoXG.imageset/jianhao@2x.png
...rm/Assets.xcassets/代客下单/jianhaoXG.imageset/jianhao@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/jianhaoXG.imageset/jianhao@3x.png
...rm/Assets.xcassets/代客下单/jianhaoXG.imageset/jianhao@3x.png
+0
-0
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+5
-4
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
+45
-0
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
+276
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+1
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+89
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
.../ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
+86
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+3
-1
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
444ebbb5
...
...
@@ -15,6 +15,10 @@
E00D85EB244561FE00F5F816
/* LaunchScreen.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00D85E9244561FE00F5F816
/* LaunchScreen.storyboard */
;
};
E00D85F6244561FE00F5F816
/* GeliBusinessPlatformTests.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00D85F5244561FE00F5F816
/* GeliBusinessPlatformTests.swift */
;
};
E00D8601244561FE00F5F816
/* GeliBusinessPlatformUITests.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00D8600244561FE00F5F816
/* GeliBusinessPlatformUITests.swift */
;
};
E00E48BE2457BAC700F16545
/* XuanZeShangPinCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00E48BC2457BAC700F16545
/* XuanZeShangPinCell.swift */
;
};
E00E48BF2457BAC700F16545
/* XuanZeShangPinCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00E48BD2457BAC700F16545
/* XuanZeShangPinCell.xib */
;
};
E00E48C22457C0D600F16545
/* XuanZeShangPinViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00E48C02457C0D600F16545
/* XuanZeShangPinViewController.swift */
;
};
E00E48C32457C0D600F16545
/* XuanZeShangPinViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00E48C12457C0D600F16545
/* XuanZeShangPinViewController.xib */
;
};
E01C26B12446989700ADCC70
/* Interface_Z.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B02446989700ADCC70
/* Interface_Z.plist */
;
};
E01C26B62446AF3100ADCC70
/* DemoViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B42446AF3100ADCC70
/* DemoViewController.swift */
;
};
E01C26B72446AF3100ADCC70
/* DemoViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B52446AF3100ADCC70
/* DemoViewController.xib */
;
};
...
...
@@ -279,6 +283,10 @@
E00D85FC244561FE00F5F816
/* GeliBusinessPlatformUITests.xctest */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.cfbundle
;
includeInIndex
=
0
;
path
=
GeliBusinessPlatformUITests.xctest
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
E00D8600244561FE00F5F816
/* GeliBusinessPlatformUITests.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GeliBusinessPlatformUITests.swift
;
sourceTree
=
"<group>"
;
};
E00D8602244561FE00F5F816
/* Info.plist */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.xml
;
path
=
Info.plist
;
sourceTree
=
"<group>"
;
};
E00E48BC2457BAC700F16545
/* XuanZeShangPinCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
XuanZeShangPinCell.swift
;
sourceTree
=
"<group>"
;
};
E00E48BD2457BAC700F16545
/* XuanZeShangPinCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
XuanZeShangPinCell.xib
;
sourceTree
=
"<group>"
;
};
E00E48C02457C0D600F16545
/* XuanZeShangPinViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
XuanZeShangPinViewController.swift
;
sourceTree
=
"<group>"
;
};
E00E48C12457C0D600F16545
/* XuanZeShangPinViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
XuanZeShangPinViewController.xib
;
sourceTree
=
"<group>"
;
};
E01C26B02446989700ADCC70
/* Interface_Z.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
path
=
Interface_Z.plist
;
sourceTree
=
"<group>"
;
};
E01C26B42446AF3100ADCC70
/* DemoViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DemoViewController.swift
;
sourceTree
=
"<group>"
;
};
E01C26B52446AF3100ADCC70
/* DemoViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DemoViewController.xib
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1010,6 +1018,8 @@
E0B946262456775000FBEC9A
/* DaiKeXiaDanGouWuCell.xib */
,
E0A320C42456D01300AF321C
/* DaiKeXiaDanFooterView.swift */
,
E0A320C62456D01D00AF321C
/* DaiKeXiaDanFooterView.xib */
,
E00E48C02457C0D600F16545
/* XuanZeShangPinViewController.swift */
,
E00E48C12457C0D600F16545
/* XuanZeShangPinViewController.xib */
,
);
path
=
"代客下单(购物)"
;
sourceTree
=
"<group>"
;
...
...
@@ -1168,6 +1178,8 @@
E0B9461D24566B3100FBEC9A
/* TitleAndTFAndBtnCell.xib */
,
E0B946292456AABE00FBEC9A
/* YuShouWeiKuanFaHuoCell.swift */
,
E0B9462A2456AABE00FBEC9A
/* YuShouWeiKuanFaHuoCell.xib */
,
E00E48BC2457BAC700F16545
/* XuanZeShangPinCell.swift */
,
E00E48BD2457BAC700F16545
/* XuanZeShangPinCell.xib */
,
);
path
=
Cell
;
sourceTree
=
"<group>"
;
...
...
@@ -1518,6 +1530,7 @@
E0C4F4BA244EEA7C00CC7E2F
/* JiaTiJiaCell.xib in Resources */
,
F9023F6E2449A9B100DD5A63
/* TitleAndTFCell.xib in Resources */
,
E042F7392452766100CDFA12
/* AdressSelectCell.xib in Resources */
,
E00E48C32457C0D600F16545
/* XuanZeShangPinViewController.xib in Resources */
,
F9023F6A2449A50900DD5A63
/* TitleContentCell.xib in Resources */
,
E0516F782448003D00E373CE
/* PayViewController.xib in Resources */
,
E02FD9ED2455627300E10E27
/* ChuKuViewController.xib in Resources */
,
...
...
@@ -1549,6 +1562,7 @@
E02DDD8B244FE17400ABB707
/* NewCreateFooter.xib in Resources */
,
F95A9EEE24558E3D00867849
/* ChangeGoodsPriceVC.xib in Resources */
,
E0DDCB19244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib in Resources */
,
E00E48BF2457BAC700F16545
/* XuanZeShangPinCell.xib in Resources */
,
E09F4CA32452D18800BE033D
/* ZengZhiServicesViewController.xib in Resources */
,
F95D9CA524493E840080D6E3
/* ShopInfoViewController.xib in Resources */
,
F961D26F245015D6007FBE70
/* SelectContentView.xib in Resources */
,
...
...
@@ -1768,6 +1782,7 @@
E0D4165F24482AAF008DCAB4
/* AccountViewController.swift in Sources */
,
F950FDB32451820D00C40530
/* TitleAndSelCalendarView.swift in Sources */
,
F95A9EED24558E3D00867849
/* ChangeGoodsPriceVC.swift in Sources */
,
E00E48BE2457BAC700F16545
/* XuanZeShangPinCell.swift in Sources */
,
E042F734245274F200CDFA12
/* YunDanLieBiaoCell.swift in Sources */
,
E01C26B62446AF3100ADCC70
/* DemoViewController.swift in Sources */
,
F933F6C32452C68B00189561
/* FrameView.swift in Sources */
,
...
...
@@ -1781,6 +1796,7 @@
E0D46C5624503EC50087B564
/* TitleAndSelectCell.swift in Sources */
,
E0F97B022451228A001BD600
/* GLAlertSelectView.swift in Sources */
,
F95567AB2453E40B009674AB
/* OrderListViewController.swift in Sources */
,
E00E48C22457C0D600F16545
/* XuanZeShangPinViewController.swift in Sources */
,
E042F730245272FF00CDFA12
/* XiaYunDanViewController.swift in Sources */
,
E09B03A72445B04E00211A51
/* BaseViewController.swift in Sources */
,
E02DDD9924501A5B00ABB707
/* DelGuiGeCell.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
444ebbb5
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/代客下单/jiahaoXG.imageset/Contents.json
0 → 100644
View file @
444ebbb5
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"jiahao@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"jiahao@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/代客下单/jiahaoXG.imageset/jiahao@2x.png
0 → 100644
View file @
444ebbb5
206 Bytes
GeliBusinessPlatform/Assets.xcassets/代客下单/jiahaoXG.imageset/jiahao@3x.png
0 → 100644
View file @
444ebbb5
355 Bytes
GeliBusinessPlatform/Assets.xcassets/代客下单/jianhaoXG.imageset/Contents.json
0 → 100644
View file @
444ebbb5
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"jianhao@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"jianhao@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/代客下单/jianhaoXG.imageset/jianhao@2x.png
0 → 100644
View file @
444ebbb5
108 Bytes
GeliBusinessPlatform/Assets.xcassets/代客下单/jianhaoXG.imageset/jianhao@3x.png
0 → 100644
View file @
444ebbb5
136 Bytes
GeliBusinessPlatform/SceneDelegate.swift
View file @
444ebbb5
...
...
@@ -35,11 +35,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
}
//MARK:--loginVC
func
addLoginVc
(
isAgain
:
Bool
){
let
vc
=
LoginViewController
()
vc
.
delegate
=
self
let
contentView
=
vc
//
let vc = LoginViewController()
//
vc.delegate = self
//
let contentView = vc
let
vc
=
XuanZeShangPinViewController
()
let
contentView
=
vc
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
isAgain
{
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
0 → 100644
View file @
444ebbb5
//
// XuanZeShangPinCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/28.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
XuanZeShangPinCellDelegate
{
@objc
optional
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
@objc
optional
func
XuanZeShangPinCellBtnADClick
(
sender
:
UIButton
)
}
class
XuanZeShangPinCell
:
UITableViewCell
{
var
delegate
:
XuanZeShangPinCellDelegate
?
var
idx
:
IndexPath
?
@IBAction
func
btnClickAction
(
_
sender
:
Any
)
{
delegate
?
.
XuanZeShangPinCellBtnClick
!
(
index
:
idx
!
)
}
@IBAction
func
addOrDelAction
(
_
sender
:
UIButton
)
{
delegate
?
.
XuanZeShangPinCellBtnADClick
?(
sender
:
sender
)
}
@IBOutlet
weak
var
priceTF
:
UITextField
!
@IBOutlet
weak
var
countTF
:
UITextField
!
@IBOutlet
weak
var
detailLbl2
:
UILabel
!
@IBOutlet
weak
var
detailLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
selectBtn
:
UIButton
!
@IBOutlet
weak
var
btmView
:
UIView
!
@IBOutlet
weak
var
btmViewHeight
:
NSLayoutConstraint
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
0 → 100644
View file @
444ebbb5
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.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"
id=
"KGk-i7-Jjw"
customClass=
"XuanZeShangPinCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"120"
/>
<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=
"375"
height=
"120"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1LA-II-o8c"
>
<rect
key=
"frame"
x=
"15"
y=
"119"
width=
"360"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"SWi-xi-4p7"
/>
</constraints>
</view>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uL5-74-gFt"
>
<rect
key=
"frame"
x=
"0.0"
y=
"119"
width=
"375"
height=
"0.0"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"数量:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mhz-Yo-UXD"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"40"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"LP6-kY-Ual"
/>
<constraint
firstAttribute=
"width"
constant=
"40"
id=
"PnF-Af-2HL"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<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=
"T8u-2s-ZnZ"
>
<rect
key=
"frame"
x=
"15"
y=
"47"
width=
"40"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"Gh6-QN-KHQ"
/>
<constraint
firstAttribute=
"width"
constant=
"40"
id=
"fw4-Ez-B7m"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"0"
textAlignment=
"center"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Xzz-Ce-cFH"
>
<rect
key=
"frame"
x=
"257.5"
y=
"-6.5"
width=
"80"
height=
"32"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"80"
id=
"A4P-Xh-HX1"
/>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"u0g-Na-i9w"
/>
</constraints>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"borderColor"
>
<color
key=
"value"
name=
"#999999"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"borderWidth"
>
<real
key=
"value"
value=
"1"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jiahaoXG"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ZjI-zb-nTr"
>
<rect
key=
"frame"
x=
"235"
y=
"3"
width=
"12.5"
height=
"12.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"12.5"
id=
"Xba-p1-uHG"
/>
<constraint
firstAttribute=
"height"
constant=
"12.5"
id=
"bSk-cY-vmg"
/>
</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=
"v1F-o6-CoT"
>
<rect
key=
"frame"
x=
"238.5"
y=
"47"
width=
"9"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"evQ-Jm-mSa"
/>
<constraint
firstAttribute=
"width"
constant=
"9"
id=
"jw2-Js-hfT"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"0"
textAlignment=
"center"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jP7-f2-sjI"
>
<rect
key=
"frame"
x=
"257.5"
y=
"39"
width=
"102.5"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"102.5"
id=
"Dmf-Xn-jed"
/>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"f0R-4e-w5R"
/>
</constraints>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"borderColor"
>
<color
key=
"value"
name=
"#999999"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"borderWidth"
>
<real
key=
"value"
value=
"1"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jianhaoXG"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"I4l-mj-vZo"
>
<rect
key=
"frame"
x=
"347.5"
y=
"3"
width=
"12.5"
height=
"12.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"12.5"
id=
"NV3-31-mIE"
/>
<constraint
firstAttribute=
"height"
constant=
"12.5"
id=
"dC2-c2-Ius"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PKT-ps-1jb"
>
<rect
key=
"frame"
x=
"226.5"
y=
"-5.5"
width=
"30"
height=
"30"
/>
<color
key=
"backgroundColor"
systemColor=
"systemIndigoColor"
red=
"0.34509803919999998"
green=
"0.33725490200000002"
blue=
"0.83921568629999999"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"CQg-fc-t1x"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"enX-y3-FNN"
/>
</constraints>
<connections>
<action
selector=
"addOrDelAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"Zkv-ys-bRj"
/>
</connections>
</button>
<button
opaque=
"NO"
alpha=
"0.5"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ApV-Jy-dQR"
>
<rect
key=
"frame"
x=
"339"
y=
"-5.5"
width=
"30"
height=
"30"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.20784313730000001"
blue=
"0.63137254899999995"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"9Mx-0J-NeB"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"hP6-Ad-IOi"
/>
</constraints>
<connections>
<action
selector=
"addOrDelAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"hhE-0C-UmD"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"Mhz-Yo-UXD"
firstAttribute=
"leading"
secondItem=
"uL5-74-gFt"
secondAttribute=
"leading"
constant=
"15"
id=
"0tR-XY-xKk"
/>
<constraint
firstItem=
"ApV-Jy-dQR"
firstAttribute=
"centerX"
secondItem=
"I4l-mj-vZo"
secondAttribute=
"centerX"
id=
"3Xx-ND-AKs"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"I4l-mj-vZo"
secondAttribute=
"trailing"
constant=
"15"
id=
"9bh-SZ-pps"
/>
<constraint
firstItem=
"T8u-2s-ZnZ"
firstAttribute=
"leading"
secondItem=
"Mhz-Yo-UXD"
secondAttribute=
"leading"
id=
"F1W-Eg-HV8"
/>
<constraint
firstItem=
"Xzz-Ce-cFH"
firstAttribute=
"leading"
secondItem=
"ZjI-zb-nTr"
secondAttribute=
"trailing"
constant=
"10"
id=
"I74-aN-YSa"
/>
<constraint
firstItem=
"ZjI-zb-nTr"
firstAttribute=
"centerY"
secondItem=
"Xzz-Ce-cFH"
secondAttribute=
"centerY"
id=
"IRW-qd-Wev"
/>
<constraint
firstItem=
"Xzz-Ce-cFH"
firstAttribute=
"centerY"
secondItem=
"I4l-mj-vZo"
secondAttribute=
"centerY"
id=
"SCZ-Yt-SQc"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"jP7-f2-sjI"
secondAttribute=
"trailing"
constant=
"15"
id=
"TGg-Wg-w7A"
/>
<constraint
firstItem=
"PKT-ps-1jb"
firstAttribute=
"centerX"
secondItem=
"ZjI-zb-nTr"
secondAttribute=
"centerX"
id=
"WRr-Hm-1X4"
/>
<constraint
firstItem=
"v1F-o6-CoT"
firstAttribute=
"centerY"
secondItem=
"jP7-f2-sjI"
secondAttribute=
"centerY"
id=
"Zzd-Q5-lBs"
/>
<constraint
firstItem=
"ApV-Jy-dQR"
firstAttribute=
"centerY"
secondItem=
"I4l-mj-vZo"
secondAttribute=
"centerY"
id=
"gh2-Eq-Yej"
/>
<constraint
firstItem=
"jP7-f2-sjI"
firstAttribute=
"centerY"
secondItem=
"T8u-2s-ZnZ"
secondAttribute=
"centerY"
id=
"hVE-70-YFQ"
/>
<constraint
firstItem=
"I4l-mj-vZo"
firstAttribute=
"leading"
secondItem=
"Xzz-Ce-cFH"
secondAttribute=
"trailing"
constant=
"10"
id=
"jrA-rJ-dDF"
/>
<constraint
firstAttribute=
"height"
id=
"myp-wC-pYy"
/>
<constraint
firstItem=
"jP7-f2-sjI"
firstAttribute=
"leading"
secondItem=
"v1F-o6-CoT"
secondAttribute=
"trailing"
constant=
"10"
id=
"ou2-7j-Cvr"
/>
<constraint
firstItem=
"Mhz-Yo-UXD"
firstAttribute=
"top"
secondItem=
"uL5-74-gFt"
secondAttribute=
"top"
id=
"rVC-gg-Rfv"
/>
<constraint
firstItem=
"PKT-ps-1jb"
firstAttribute=
"centerY"
secondItem=
"ZjI-zb-nTr"
secondAttribute=
"centerY"
id=
"ts2-SP-rvf"
/>
<constraint
firstItem=
"T8u-2s-ZnZ"
firstAttribute=
"top"
secondItem=
"Mhz-Yo-UXD"
secondAttribute=
"bottom"
constant=
"28.5"
id=
"vhM-lv-Ii2"
/>
<constraint
firstItem=
"I4l-mj-vZo"
firstAttribute=
"centerY"
secondItem=
"Mhz-Yo-UXD"
secondAttribute=
"centerY"
id=
"w8J-p2-HsT"
/>
</constraints>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uIB-c2-bcI"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"90"
height=
"90"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"90"
id=
"22L-sd-gRb"
/>
<constraint
firstAttribute=
"width"
constant=
"90"
id=
"ba6-wR-eLi"
/>
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"六和川香鸡柳2.5kg/六和川香鸡"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZs-Q1-4ZI"
>
<rect
key=
"frame"
x=
"115"
y=
"15"
width=
"245"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"9Nl-v9-6EE"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"5kg/箱/袋"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7gF-DF-0eb"
>
<rect
key=
"frame"
x=
"115"
y=
"48.5"
width=
"225"
height=
"15"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"5D6-oU-7Yt"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"存储:1000"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WSO-2J-XFP"
>
<rect
key=
"frame"
x=
"115"
y=
"68.5"
width=
"225"
height=
"15"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"7Qj-DC-aso"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mdz-mb-FFq"
>
<rect
key=
"frame"
x=
"340"
y=
"50"
width=
"20"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"8vZ-Pm-tXe"
/>
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"Kjv-hc-5mZ"
/>
</constraints>
<state
key=
"normal"
image=
"daixuan"
/>
<state
key=
"selected"
image=
"yuxuan"
/>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7TH-eJ-iAq"
>
<rect
key=
"frame"
x=
"330"
y=
"40"
width=
"40"
height=
"40"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"40"
id=
"AK3-u9-PHb"
/>
<constraint
firstAttribute=
"width"
constant=
"40"
id=
"J89-RZ-gK8"
/>
</constraints>
<connections>
<action
selector=
"btnClickAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"lAu-Sj-JCd"
/>
</connections>
</button>
</subviews>
<constraints>
<constraint
firstItem=
"uIB-c2-bcI"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"18B-pa-PXz"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"1LA-II-o8c"
secondAttribute=
"trailing"
id=
"1dT-ZY-G0F"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"1LA-II-o8c"
secondAttribute=
"bottom"
id=
"7N0-sD-4CL"
/>
<constraint
firstItem=
"Mdz-mb-FFq"
firstAttribute=
"centerY"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"centerY"
id=
"Afo-fi-cGL"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"trailing"
constant=
"15"
id=
"Ari-tm-ZOo"
/>
<constraint
firstItem=
"WSO-2J-XFP"
firstAttribute=
"top"
secondItem=
"7gF-DF-0eb"
secondAttribute=
"bottom"
constant=
"5"
id=
"CHn-yp-EgG"
/>
<constraint
firstItem=
"7TH-eJ-iAq"
firstAttribute=
"centerX"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"centerX"
id=
"Mby-NY-G2f"
/>
<constraint
firstItem=
"1LA-II-o8c"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"PvJ-If-pmi"
/>
<constraint
firstItem=
"7gF-DF-0eb"
firstAttribute=
"top"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"bottom"
constant=
"15"
id=
"ROT-9H-pZh"
/>
<constraint
firstItem=
"7TH-eJ-iAq"
firstAttribute=
"centerY"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"centerY"
id=
"Skp-qw-W7b"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"trailing"
constant=
"15"
id=
"T3U-k6-rEI"
/>
<constraint
firstItem=
"vZs-Q1-4ZI"
firstAttribute=
"top"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"top"
id=
"Z14-9s-Tq3"
/>
<constraint
firstItem=
"7gF-DF-0eb"
firstAttribute=
"leading"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"leading"
id=
"g05-l1-Cbi"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uL5-74-gFt"
secondAttribute=
"trailing"
id=
"g7E-sv-cbD"
/>
<constraint
firstItem=
"1LA-II-o8c"
firstAttribute=
"top"
secondItem=
"uL5-74-gFt"
secondAttribute=
"bottom"
id=
"gUA-b6-Fpt"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"7gF-DF-0eb"
secondAttribute=
"trailing"
constant=
"15"
id=
"mSs-00-nVs"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"WSO-2J-XFP"
secondAttribute=
"trailing"
constant=
"15"
id=
"man-Ky-gf2"
/>
<constraint
firstItem=
"WSO-2J-XFP"
firstAttribute=
"leading"
secondItem=
"7gF-DF-0eb"
secondAttribute=
"leading"
id=
"xDn-Ta-VsZ"
/>
<constraint
firstItem=
"uIB-c2-bcI"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"z1B-O5-3zb"
/>
<constraint
firstItem=
"uL5-74-gFt"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"zU6-9T-Foc"
/>
<constraint
firstItem=
"vZs-Q1-4ZI"
firstAttribute=
"leading"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"trailing"
constant=
"10"
id=
"zWJ-C3-KQZ"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"btmView"
destination=
"uL5-74-gFt"
id=
"kcj-yT-eFK"
/>
<outlet
property=
"btmViewHeight"
destination=
"myp-wC-pYy"
id=
"pme-mP-8JS"
/>
<outlet
property=
"countTF"
destination=
"Xzz-Ce-cFH"
id=
"dkA-pf-Zyn"
/>
<outlet
property=
"detailLbl"
destination=
"7gF-DF-0eb"
id=
"IbC-uE-ohj"
/>
<outlet
property=
"detailLbl2"
destination=
"WSO-2J-XFP"
id=
"2Xr-Bm-Kqz"
/>
<outlet
property=
"nameLbl"
destination=
"vZs-Q1-4ZI"
id=
"X7U-kU-VSh"
/>
<outlet
property=
"priceTF"
destination=
"jP7-f2-sjI"
id=
"x6R-5h-cov"
/>
<outlet
property=
"selectBtn"
destination=
"Mdz-mb-FFq"
id=
"wm1-L1-fpE"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.875"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"jiahaoXG"
width=
"12.5"
height=
"12.5"
/>
<image
name=
"jianhaoXG"
width=
"12.5"
height=
"1.5"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"#999999"
>
<color
red=
"0.60000002384185791"
green=
"0.60000002384185791"
blue=
"0.60000002384185791"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
444ebbb5
...
...
@@ -143,6 +143,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
textTF
.
layer
.
borderWidth
=
1
cell
.
textTF
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色字体颜色"
)?
.
cgColor
cell
.
textTF
.
placeholder
=
"请输入运费"
cell
.
textTF
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
if
indexPath
.
row
==
5
{
cell
.
textTF
.
placeholder
=
"请输入费用"
}
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
0 → 100644
View file @
444ebbb5
//
// XuanZeShangPinViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/28.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
{
//XuanZeShangPinCell
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
var
idx
:
IndexPath
?
@IBOutlet
weak
var
btmLbl
:
UILabel
!
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"选择商品"
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
listView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
left
.
right
.
equalTo
(
0
)
make
.
bottom
.
equalTo
(
btmLbl
.
snp_top
)
}
listView
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
}
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
8
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
delegate
=
self
cell
.
idx
=
indexPath
if
idx
==
indexPath
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
btmView
.
isHidden
=
false
cell
.
btmViewHeight
.
constant
=
89
}
else
{
cell
.
selectBtn
.
isSelected
=
false
cell
.
btmView
.
isHidden
=
true
cell
.
btmViewHeight
.
constant
=
0
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
idx
!=
nil
{
if
indexPath
==
idx
{
return
210
}
}
return
120
}
//MARK: - SELF DELEGATE
func
XuanZeShangPinCellBtnADClick
(
sender
:
UIButton
)
{
if
sender
.
tag
==
0
{
//加
}
else
{
//减
}
}
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
{
idx
=
index
for
item
in
listView
.
visibleCells
{
let
cel
=
item
as!
XuanZeShangPinCell
cel
.
selectBtn
.
isSelected
=
false
cel
.
btmView
.
isHidden
=
true
cel
.
btmViewHeight
.
constant
=
0
if
cel
.
idx
==
index
{
cel
.
selectBtn
.
isSelected
=
true
cel
.
btmView
.
isHidden
=
false
cel
.
btmViewHeight
.
constant
=
89
}
}
listView
.
reloadData
()
}
}
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
0 → 100644
View file @
444ebbb5
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XuanZeShangPinViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"btmLbl"
destination=
"5Kt-Ig-zbb"
id=
"fUx-No-8SV"
/>
<outlet
property=
"listView"
destination=
"YuT-X7-ecw"
id=
"wKf-Ej-i9r"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"IB6-lV-KWZ"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientEndColor"
>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Xwq-8w-4fK"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"确定"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"5Kt-Ig-zbb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"MHS-iR-lJv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
name=
"白色背景色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"YuT-X7-ecw"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"pf9-cD-hFe"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"kFX-d5-Tz7"
/>
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"YuT-X7-ecw"
secondAttribute=
"trailing"
id=
"9Rc-E2-u9s"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"5Kt-Ig-zbb"
secondAttribute=
"trailing"
id=
"9nZ-Ef-l1a"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"BdU-A8-HfN"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"top"
secondItem=
"5Kt-Ig-zbb"
secondAttribute=
"top"
id=
"Bw1-yn-w9z"
/>
<constraint
firstItem=
"YuT-X7-ecw"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"LVQ-qR-vHK"
/>
<constraint
firstItem=
"5Kt-Ig-zbb"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Zxi-kb-DhB"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"5Kt-Ig-zbb"
secondAttribute=
"bottom"
id=
"aeg-df-E1I"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"top"
secondItem=
"YuT-X7-ecw"
secondAttribute=
"bottom"
id=
"uUk-FK-syJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"IB6-lV-KWZ"
secondAttribute=
"trailing"
id=
"v8D-Yo-QxM"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"IB6-lV-KWZ"
secondAttribute=
"bottom"
id=
"w8M-CY-ifc"
/>
<constraint
firstItem=
"YuT-X7-ecw"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"xFN-or-L0x"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
</view>
</objects>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
444ebbb5
...
...
@@ -33,7 +33,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
var
isYuShouShangPin
:
Bool
?
@objc
func
bottomBtnClick
(
sender
:
UIButton
){
print
(
sender
.
t
ag
)
print
(
sender
.
t
itleLabel
?
.
text
)
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -45,6 +45,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
for
i
in
0
..<
btmTitleArr
.
count
{
let
btn
=
UIButton
(
frame
:
CGRect
(
x
:
CGFloat
(
i
)
*
w
,
y
:
0
,
width
:
w
,
height
:
btmView
.
bounds
.
size
.
height
))
btn
.
tag
=
i
btn
.
setTitle
(
btmTitleArr
[
i
],
for
:
.
normal
)
btn
.
titleLabel
?
.
textColor
=
UIColor
.
clear
btn
.
addTarget
(
self
,
action
:
#selector(
bottomBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
CGFloat
(
i
)
*
w
,
y
:
0
,
width
:
w
,
height
:
49*
glscale
))
lbl
.
textAlignment
=
.
center
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment