Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
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
front-end-dev
techbook
Commits
e1da32d1
Commit
e1da32d1
authored
Jul 02, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
cd3e57e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
phone.scss
public/css/phone.scss
+3
-1
faceCmpt1.vue
src/components/mobile/faceCmpt1.vue
+20
-3
No files found.
public/css/phone.scss
View file @
e1da32d1
...
...
@@ -2179,8 +2179,9 @@ i, em {
line-height
:
20px
!
important
;
}
}
.hbl-fa
{
.hbl-fa
,
#hbl-fa
{
textarea
{
width
:
100%
;
outline
:
none
;
//去除外边框
border
:none
;
//去除边框
...
...
@@ -2395,6 +2396,7 @@ i, em {
}
}
.textTransparent
{
position
:
relative
;
.el-textarea
{
overflow
:
scroll
;
}
...
...
src/components/mobile/faceCmpt1.vue
View file @
e1da32d1
<
template
>
<div
class
=
"hbl-fa"
>
<div
id
=
"hbl-fa"
>
<div
:class=
"commentType==1?'textTransparent':'textareaDiv'"
@
click=
"showButton(0)"
>
<el-input
@
blur
.
prevent=
"handleToParent"
id=
"inputTextarea"
ref=
"textareaRef"
@
focus=
"handleShowEle"
@
input=
"handleInput"
autofocus
type=
"textarea"
v-model=
"textareaMap[0]"
resize=
"none"
rows=
"6"
...
...
@@ -436,12 +437,17 @@
//获取焦点信息
handleShowEle
(
event
)
{
var
u
=
navigator
.
userAgent
;
if
(
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Adr'
)
>
-
1
){
document
.
getElementById
(
"hbl-fa"
).
setAttribute
(
"class"
,
"absoluteDiv"
);
}
if
(
event
.
srcElement
.
setSelectionRange
)
{
setTimeout
(
function
()
{
event
.
srcElement
.
setSelectionRange
(
event
.
srcElement
.
value
.
length
,
event
.
srcElement
.
value
.
length
);
event
.
srcElement
.
focus
()
},
0
)
}
this
.
isShowVisible
=
false
;
},
...
...
@@ -527,6 +533,10 @@
if
(
navigator
.
userAgent
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
))
{
globalMsg
.
$emit
(
"scrollToTop"
);
}
var
u
=
navigator
.
userAgent
;
if
(
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Adr'
)
>
-
1
){
document
.
getElementById
(
"hbl-fa"
).
classList
.
remove
(
"absoluteDiv"
);
}
},
//让input获取焦点
...
...
@@ -832,6 +842,7 @@
}
},
mounted
()
{
//页面加载完成后
$
(
"#inputTextarea"
).
focus
();
this
.
getTopicInfo
()
if
(
this
.
replyCreatedBy
)
{
this
.
getNickName
();
...
...
@@ -857,7 +868,7 @@
}
}
}
}
;
</
script
>
<
style
lang=
"scss"
scoped
>
.comment
{
...
...
@@ -1592,7 +1603,7 @@
font-size
:
16px
;
}
.
hbl-fa
{
#
hbl-fa
{
text-align
:
left
;
font-size
:
.28rem
;
width
:
100%
;
...
...
@@ -1855,4 +1866,9 @@
padding-top
:
.2rem
;
}
}
.absoluteDiv
{
position
:
absolute
;
top
:
-300px
;
width
:
100%
;
}
</
style
>
\ No newline at end of file
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