Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
1020b4e0
Commit
1020b4e0
authored
Oct 10, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 动态
parent
05111627
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
9 deletions
+36
-9
YHNameCardDynamicViewController.swift
...(我的)/NameCard(名片)/C/YHNameCardDynamicViewController.swift
+28
-1
YHNameCardDynamicCell.swift
...dules/Mine(我的)/NameCard(名片)/V/YHNameCardDynamicCell.swift
+8
-8
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/C/YHNameCardDynamicViewController.swift
View file @
1020b4e0
...
...
@@ -107,6 +107,9 @@ extension YHNameCardDynamicViewController: UITableViewDelegate, UITableViewDataS
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
self
.
arr
.
count
{
let
model
=
self
.
arr
[
indexPath
.
row
]
cell
.
updateModel
(
model
)
cell
.
rePublishClick
=
{
// model.id
}
}
return
cell
}
...
...
@@ -116,7 +119,31 @@ extension YHNameCardDynamicViewController: UITableViewDelegate, UITableViewDataS
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
self
.
arr
.
count
{
let
model
=
self
.
arr
[
indexPath
.
row
]
var
url
=
YHBaseUrlManager
.
shared
.
businessH5Url
()
+
"/community/activity/"
+
"
\(
model
.
id
)
"
if
YHLoginManager
.
shared
.
isLogin
()
{
let
token
=
YHLoginManager
.
shared
.
h5Token
let
urlHasParam
=
String
.
hasQueryParameters
(
urlString
:
url
)
if
urlHasParam
{
url
=
url
+
"¶m="
+
token
}
else
{
url
=
url
+
"?param="
+
token
}
}
var
tUrl
=
url
if
!
url
.
contains
(
"navigationH="
)
{
tUrl
=
url
+
"?navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
if
url
.
contains
(
"?"
)
{
tUrl
=
url
+
"&navigationH=
\(
k_Height_NavigationtBarAndStatuBar
)
"
}
}
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
tUrl
vc
.
isHideNavigationBar
=
true
vc
.
isFullScreenFlag
=
true
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/NameCard(名片)/V/YHNameCardDynamicCell.swift
View file @
1020b4e0
...
...
@@ -15,6 +15,8 @@ class YHNameCardDynamicCell: UITableViewCell {
static
let
imgH
:
CGFloat
=
(
KScreenWidth
-
20*
2
-
4*
2
)
/
3.0
var
rePublishClick
:(()
->
())?
private
lazy
var
publishLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
...
...
@@ -111,6 +113,7 @@ class YHNameCardDynamicCell: UITableViewCell {
btn
.
layer
.
borderColor
=
UIColor
.
brandGrayColor8
.
cgColor
btn
.
layer
.
borderWidth
=
1.0
btn
.
layer
.
cornerRadius
=
12.0
btn
.
addTarget
(
self
,
action
:
#selector(
didPublishBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
...
...
@@ -123,17 +126,14 @@ class YHNameCardDynamicCell: UITableViewCell {
setupUI
()
}
@objc
func
didPublishBtnClicked
()
{
self
.
rePublishClick
?()
}
func
updateModel
(
_
model
:
YHDynamicItem
)
{
timeLabel
.
text
=
self
.
formatDateString
(
model
.
created_at
)
// let test = true
// if test {
// model.is_self_posts = 1
// model.audit_status = 3
// model.violation_remark = "阿是就发了时代峰峻阿克拉生发剂拉卡萨电极法卡拉是电极法考拉手机大发卡拉季湿哒哒开发逻辑阿达山卡拉代发久啊双打卡拉法基1"
// }
// 审核视图显示
var
hiddenReview
=
true
if
model
.
is_self_posts
==
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