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
18f3e4c2
Commit
18f3e4c2
authored
Jul 01, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理图片展示的问题
parent
86bd1034
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
YHActivityModel.swift
...odules/Community(社区)/Activity(活动)/M/YHActivityModel.swift
+2
-2
YHActivityDetailItemView.swift
...mmunity(社区)/Activity(活动)/V/YHActivityDetailItemView.swift
+3
-3
YHActivityTitleItemView.swift
...ommunity(社区)/Activity(活动)/V/YHActivityTitleItemView.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/M/YHActivityModel.swift
View file @
18f3e4c2
...
...
@@ -21,7 +21,7 @@ class YHActivityModel: YHBaseModel {
private
var
beginTimeForUI
:
String
=
""
func
getDateString
()
->
String
{
func
getDateString
(
format
:
String
=
"MM-dd"
)
->
String
{
if
beginTimeForUI
.
isEmpty
{
if
let
tttt
=
beginTime
.
double
()
{
...
...
@@ -33,7 +33,7 @@ class YHActivityModel: YHBaseModel {
let
dateFormatter
=
DateFormatter
()
// 设置日期格式,这里设置为"年-月-日 时:分:秒"
dateFormatter
.
dateFormat
=
"MM-dd"
// HH:mm:ss
dateFormatter
.
dateFormat
=
format
// HH:mm:ss
// 使用DateFormatter将Date对象转换为字符串
let
dateString
=
dateFormatter
.
string
(
from
:
date
)
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityDetailItemView.swift
View file @
18f3e4c2
...
...
@@ -122,7 +122,7 @@ extension YHActivityDetailItemView {
imageV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
lastView
.
snp
.
bottom
)
.
offset
(
24
)
//
make.height.equalTo(376)
make
.
height
.
equalTo
(
376
)
make
.
bottom
.
equalToSuperview
()
}
...
...
@@ -131,7 +131,7 @@ extension YHActivityDetailItemView {
imageV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
lastView
.
snp
.
bottom
)
.
offset
(
20
)
//
make.height.equalTo(376)
make
.
height
.
equalTo
(
376
)
make
.
bottom
.
equalToSuperview
()
}
...
...
@@ -141,7 +141,7 @@ extension YHActivityDetailItemView {
imageV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
lastView
.
snp
.
bottom
)
.
offset
(
20
)
//
make.height.equalTo(376)
make
.
height
.
equalTo
(
376
)
}
}
lastView
=
imageV
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityTitleItemView.swift
View file @
18f3e4c2
...
...
@@ -53,7 +53,7 @@ class YHActivityTitleItemView: UIView {
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
textAlignment
=
.
left
nameLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
nameLabel
.
text
=
"
2024-
08-06 周五 09:30"
nameLabel
.
text
=
"08-06 周五 09:30"
return
nameLabel
}()
...
...
@@ -107,7 +107,7 @@ extension YHActivityTitleItemView {
"""
}
timeLable
.
text
=
model
.
getDateString
()
//String(model.beginTime)
timeLable
.
text
=
model
.
getDateString
()
addressLable
.
text
=
model
.
place
navAddressLable
.
text
=
model
.
guidance
}
...
...
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