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
0df57af6
Commit
0df57af6
authored
Aug 26, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复显示bug
parent
eb0fd85b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+11
-5
GeliBusinessPlatform/ViewController/商品详情/EPViewController.xib
...BusinessPlatform/ViewController/商品详情/EPViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0df57af6
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
0df57af6
...
...
@@ -1564,7 +1564,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
collectionView
.
register
(
UINib
(
nibName
:
"ItemCell"
,
bundle
:
nil
),
forCellWithReuseIdentifier
:
"ItemCell"
)
if
guiGeArr
.
count
>
0
{
collectionView
.
layoutIfNeeded
()
collectionView
.
scrollToItem
(
at
:
selectIdx
!
,
at
:
.
centeredHorizontally
,
animated
:
false
)
collectionView
.
scrollToItem
(
at
:
selectIdx
!
,
at
:
.
top
,
animated
:
false
)
}
if
guiGeArr
.
count
>
2
{
let
leftImg
=
UIImageView
()
...
...
@@ -1666,16 +1666,22 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
var
skuArr
:
Array
<
Any
>
=
[]
for
i
in
0
..<
dataArr
.
count
{
let
item
=
dataArr
[
i
]
if
isPurnNumber
(
str
:
item
.
price
)
{
var
pData
=
""
if
item
.
price
.
contains
(
","
)
{
let
arr
=
item
.
price
.
components
(
separatedBy
:
","
)
pData
=
arr
.
joined
(
separator
:
""
)
}
else
{
pData
=
item
.
price
}
if
isPurnNumber
(
str
:
pData
)
{
if
isgetP
{
let
peiceP
=
Float
(
item
.
price
)
!
//第n个售价(n > 1)
let
peiceP
=
Float
(
pData
)
!
//第n个售价(n > 1)
if
peiceP
<
price
{
price
=
peiceP
model
=
item
}
}
else
{
price
=
Float
(
item
.
price
)
!
//第一个售价
price
=
Float
(
pData
)
!
//第一个售价
model
=
item
isgetP
=
true
}
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.xib
View file @
0df57af6
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
0df57af6
...
...
@@ -1136,7 +1136,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
collectionView
.
register
(
UINib
(
nibName
:
"ItemCell"
,
bundle
:
nil
),
forCellWithReuseIdentifier
:
"ItemCell"
)
if
guiGeArr
.
count
>
0
{
collectionView
.
layoutIfNeeded
()
collectionView
.
scrollToItem
(
at
:
selectIdx
!
,
at
:
.
centeredHorizontally
,
animated
:
false
)
collectionView
.
scrollToItem
(
at
:
selectIdx
!
,
at
:
.
top
,
animated
:
false
)
}
if
guiGeArr
.
count
>
2
{
let
leftImg
=
UIImageView
()
...
...
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