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
317bbf72
Commit
317bbf72
authored
Jul 11, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赴港计划书修改
parent
89e2d20f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
YHHKPlanItemView.swift
...tService(服务中心)/MyDocuments(我的文书)/V/YHHKPlanItemView.swift
+19
-13
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHHKPlanItemView.swift
View file @
317bbf72
...
@@ -216,12 +216,18 @@ private extension YHHKPlanItemView {
...
@@ -216,12 +216,18 @@ private extension YHHKPlanItemView {
}
}
if
model
.
type
==
.
planOther
{
if
model
.
type
==
.
planOther
{
maxNumbler
=
5
00
maxNumbler
=
3
00
}
else
{
}
else
{
maxNumbler
=
300
maxNumbler
=
300
}
}
tipsLable
.
text
=
tipsTxt
tipsLable
.
text
=
tipsTxt
myTextView
.
text
=
getFuckString
(
string
:
model
.
content
)
// print("原始数据: " + model.content)
let
ttt
=
getFuckString
(
string
:
model
.
content
)
// print("之后数据: " + ttt)
myTextView
.
text
=
ttt
let
textNum
=
calcTextLength
(
string
:
myTextView
.
text
)
let
textNum
=
calcTextLength
(
string
:
myTextView
.
text
)
numberLabel
.
text
=
textNum
.
string
+
"/
\(
maxNumbler
)
"
numberLabel
.
text
=
textNum
.
string
+
"/
\(
maxNumbler
)
"
...
@@ -396,7 +402,7 @@ extension YHHKPlanItemView : UITextViewDelegate {
...
@@ -396,7 +402,7 @@ extension YHHKPlanItemView : UITextViewDelegate {
return
true
return
true
}
}
var
newLength
=
calcTextLength
(
string
:
textView
.
text
)
let
newLength
=
calcTextLength
(
string
:
textView
.
text
)
return
newLength
<=
maxNumbler
-
1
return
newLength
<=
maxNumbler
-
1
}
}
...
@@ -411,16 +417,16 @@ extension YHHKPlanItemView : UITextViewDelegate {
...
@@ -411,16 +417,16 @@ extension YHHKPlanItemView : UITextViewDelegate {
printLog
(
text
.
count
)
printLog
(
text
.
count
)
if
text
.
count
<=
maxNumbler
{
//
if text.count <= maxNumbler{
model
.
content
=
text
//
model.content = text
}
else
{
//
} else {
var
ttt
=
text
//
var ttt = text
let
subString
=
ttt
.
slice
(
from
:
0
,
length
:
maxNumbler
)
//
let subString = ttt.slice(from: 0, length: maxNumbler)
//
model
.
content
=
subString
//
model.content = subString
}
//
}
model
.
content
=
text
if
txtNum
>
maxNumbler
{
if
txtNum
>
maxNumbler
{
numberLabel
.
textColor
=
.
failColor
numberLabel
.
textColor
=
.
failColor
}
else
{
}
else
{
...
...
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