Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
45fbe61e
Commit
45fbe61e
authored
Sep 27, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌的 招引需求的空格换行处理
parent
8a3f174b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
detail.vue
pages/kotra/brand/detail.vue
+14
-0
No files found.
pages/kotra/brand/detail.vue
View file @
45fbe61e
...
...
@@ -592,6 +592,10 @@
this
.
active
=
1
;
}
this
.
details
.
imgs
=
[];
if
(
this
.
details
.
Other
&&
this
.
details
.
Other
!=
''
){
this
.
details
.
Other
=
this
.
textFormat
(
this
.
details
.
Other
);
}
this
.
details
.
BannerList
.
forEach
((
x
)
=>
{
let
obj
=
{
name
:
x
,
...
...
@@ -602,6 +606,16 @@
}
);
},
textFormat
(
val
)
{
// 格式化文字展示文本域格式文字
if
(
val
)
{
let
newString
=
val
.
replace
(
/
\n
/g
,
'_@'
).
replace
(
/
\r
/g
,
'_#'
);
newString
=
newString
.
replace
(
/_#_@/g
,
'<br/>'
);
// IE7-8
newString
=
newString
.
replace
(
/_@/g
,
'<br/>'
);
// IE9、FF、chrome
newString
=
newString
.
replace
(
/
\s
/g
,
' '
);
// 空格处理
return
newString
;
}
},
changeHandler
(
i
)
{
this
.
active
=
i
;
},
...
...
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