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
aaaac4f0
Commit
aaaac4f0
authored
May 28, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复显示bug
parent
e6eefa72
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+11
-6
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+1
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
aaaac4f0
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
aaaac4f0
...
...
@@ -436,6 +436,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
goodsDetail
([
"user_token"
:
UserToken
,
"goods_id"
:
goods_id
],
success
:
{
(
data
)
in
//MARK: - 获取详情
self
.
listTbv
.
isHidden
=
false
let
model
=
data
as!
GoodsDetailModel
self
.
goodsDetailModel
=
model
//商品名
...
...
@@ -671,7 +672,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
SetTopFrameView
(
view
:
listTbv
,
btmView
:
btmBtnBGView
)
listTbv
.
isHidden
=
true
loadData
()
self
.
listTbv
.
separatorStyle
=
.
none
...
...
@@ -689,11 +690,15 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
func
getResponseArr
(
str
:
String
)
->
Array
<
String
>
{
let
a
=
str
.
replacingOccurrences
(
of
:
"{"
,
with
:
""
)
let
b
=
a
.
replacingOccurrences
(
of
:
"}"
,
with
:
""
)
let
c
=
b
.
replacingOccurrences
(
of
:
":"
,
with
:
"_"
)
let
d
=
c
.
replacingOccurrences
(
of
:
"
\"
"
,
with
:
""
)
return
d
.
components
(
separatedBy
:
","
)
let
dict
=
getDictionaryFromJSONString
(
jsonString
:
str
)
var
arr
:
Array
<
String
>
=
[]
for
key
in
dict
.
allKeys
{
let
k
=
key
as!
String
let
str
=
k
+
"_"
+
(
dict
[
k
]
as!
String
)
arr
.
append
(
str
)
}
return
arr
}
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
aaaac4f0
...
...
@@ -414,6 +414,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
if
item
!=
""
{
//MARK:--阶梯价格切割
// print("sjklasd",item)
let
arr
=
item
.
components
(
separatedBy
:
"_"
)
cell
.
priceTF
.
text
=
arr
[
0
]
cell
.
countTF
.
text
=
arr
[
1
]
...
...
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