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
6fe41933
Commit
6fe41933
authored
Nov 05, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击看大图
parent
e6906032
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
4 deletions
+51
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/AddImgCell.swift
GeliBusinessPlatform/View/Cell/AddImgCell.swift
+26
-2
GeliBusinessPlatform/View/Cell/AddImgCell.xib
GeliBusinessPlatform/View/Cell/AddImgCell.xib
+2
-2
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+19
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+4
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
6fe41933
No preview for this file type
GeliBusinessPlatform/View/Cell/AddImgCell.swift
View file @
6fe41933
...
@@ -13,10 +13,12 @@ protocol AddImgCellDelegate {
...
@@ -13,10 +13,12 @@ protocol AddImgCellDelegate {
func
AddImgCellBtnClick
(
cell
:
AddImgCell
)
func
AddImgCellBtnClick
(
cell
:
AddImgCell
)
func
DelImgCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
func
DelImgCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
func
ChangeCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
func
ChangeCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
func
CheckCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
}
}
class
AddImgCell
:
UITableViewCell
{
class
AddImgCell
:
UITableViewCell
{
var
delegate
:
AddImgCellDelegate
?
var
delegate
:
AddImgCellDelegate
?
var
isAllEditing
=
true
var
isAllEditing
=
true
var
isEdit
:
Bool
?{
var
isEdit
:
Bool
?{
willSet
{
willSet
{
isEdit
=
newValue
isEdit
=
newValue
...
@@ -25,6 +27,7 @@ class AddImgCell: UITableViewCell {
...
@@ -25,6 +27,7 @@ class AddImgCell: UITableViewCell {
}
}
}
}
}
}
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
if
isAllEditing
{
if
isAllEditing
{
delegate
?
.
AddImgCellBtnClick
(
cell
:
self
)
delegate
?
.
AddImgCellBtnClick
(
cell
:
self
)
...
@@ -119,8 +122,6 @@ class AddImgCell: UITableViewCell {
...
@@ -119,8 +122,6 @@ class AddImgCell: UITableViewCell {
make
.
width
.
height
.
equalTo
(
90
)
make
.
width
.
height
.
equalTo
(
90
)
make
.
left
.
equalTo
(
105*
i
)
make
.
left
.
equalTo
(
105*
i
)
}
}
if
isAllEditing
{
if
isAllEditing
{
let
changeBtn
=
UIButton
()
let
changeBtn
=
UIButton
()
changeBtn
.
tag
=
i
changeBtn
.
tag
=
i
...
@@ -161,9 +162,32 @@ class AddImgCell: UITableViewCell {
...
@@ -161,9 +162,32 @@ class AddImgCell: UITableViewCell {
make
.
width
.
height
.
equalTo
(
25
)
make
.
width
.
height
.
equalTo
(
25
)
}
}
delBtn
.
addTarget
(
self
,
action
:
#selector(
delAction(sender:)
)
,
for
:
.
touchUpInside
)
delBtn
.
addTarget
(
self
,
action
:
#selector(
delAction(sender:)
)
,
for
:
.
touchUpInside
)
}
else
{
let
checkBtn
=
UIButton
()
checkBtn
.
tag
=
i
checkBtn
.
backgroundColor
=
UIColor
(
named
:
"标题字颜色"
)
checkBtn
.
alpha
=
0.5
checkBtn
.
addTarget
(
self
,
action
:
#selector(
checkAction(sender:)
)
,
for
:
.
touchUpInside
)
img
.
addSubview
(
checkBtn
)
checkBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
bottom
.
right
.
left
.
equalTo
(
0
)
}
let
tit
=
UILabel
()
tit
.
text
=
"查 看"
tit
.
textColor
=
UIColor
.
white
tit
.
textAlignment
=
.
center
tit
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
)
img
.
addSubview
(
tit
)
tit
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
bottom
.
right
.
left
.
equalTo
(
0
)
}
}
}
}
}
}
}
@objc
func
checkAction
(
sender
:
UIButton
){
delegate
?
.
CheckCellBtnClick
(
sender
:
sender
,
cell
:
self
)
}
@objc
func
changeAction
(
sender
:
UIButton
){
@objc
func
changeAction
(
sender
:
UIButton
){
if
isAllEditing
{
if
isAllEditing
{
delegate
?
.
ChangeCellBtnClick
(
sender
:
sender
,
cell
:
self
)
delegate
?
.
ChangeCellBtnClick
(
sender
:
sender
,
cell
:
self
)
...
...
GeliBusinessPlatform/View/Cell/AddImgCell.xib
View file @
6fe41933
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7125
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
6fe41933
...
@@ -17,6 +17,25 @@ protocol EPViewControllerDelegate {
...
@@ -17,6 +17,25 @@ protocol EPViewControllerDelegate {
}
}
class
EPViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
,
TitleAndTFCellDelegate
,
YuShouWeiKuanFaHuoCellDelegate
,
UITextFieldDelegate
,
ShowTimeSelectViewDelegate
,
LMNoteViewControllerDelegate
,
GeliAlertViewDelegate
{
class
EPViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
,
TitleAndTFCellDelegate
,
YuShouWeiKuanFaHuoCellDelegate
,
UITextFieldDelegate
,
ShowTimeSelectViewDelegate
,
LMNoteViewControllerDelegate
,
GeliAlertViewDelegate
{
func
CheckCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
{
let
browser
=
JXPhotoBrowser
()
print
(
sender
.
tag
,
cell
.
imgs
.
count
)
browser
.
numberOfItems
=
{
cell
.
imgs
.
count
}
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
indexPath
=
IndexPath
(
item
:
context
.
index
,
section
:
0
)
browser
.
pageIndex
=
indexPath
.
item
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
cell
.
imgs
[
browser
.
pageIndex
])
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
})
}
browser
.
show
()
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
delegate
:
EPViewControllerDelegate
?
var
delegate
:
EPViewControllerDelegate
?
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
6fe41933
...
@@ -18,6 +18,10 @@ protocol ProductDetailViewControllerDelegate {
...
@@ -18,6 +18,10 @@ protocol ProductDetailViewControllerDelegate {
}
}
class
ProductDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
,
TitleAndTFCellDelegate
,
YuShouWeiKuanFaHuoCellDelegate
,
UITextFieldDelegate
,
ShowTimeSelectViewDelegate
,
LMNoteViewControllerDelegate
,
GeliAlertViewDelegate
{
class
ProductDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
,
TitleAndTFCellDelegate
,
YuShouWeiKuanFaHuoCellDelegate
,
UITextFieldDelegate
,
ShowTimeSelectViewDelegate
,
LMNoteViewControllerDelegate
,
GeliAlertViewDelegate
{
func
CheckCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
{
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
delegate
:
ProductDetailViewControllerDelegate
?
var
delegate
:
ProductDetailViewControllerDelegate
?
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
...
...
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