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
382849a2
Commit
382849a2
authored
Jan 12, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
17da7935
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
38 deletions
+30
-38
friendcircle.vue
pages/friendcircle/friendcircle.vue
+15
-22
mydetails.vue
pages/friendcircle/mydetails.vue
+15
-16
No files found.
pages/friendcircle/friendcircle.vue
View file @
382849a2
...
...
@@ -137,7 +137,7 @@
}
.friendcircle
.comment
{
width
:
100%
;
height
:
55
px
;
height
:
80
px
;
padding
:
0
15px
;
display
:
flex
;
flex-direction
:
row
;
...
...
@@ -338,11 +338,11 @@
</view>
</view>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#FFF"
/>
<view
style=
"width: 100%;height:
60
px;"
></view>
<view
style=
"width: 100%;height:
85
px;"
></view>
</scroll-view>
<!-- 输入框 -->
<view
class=
"comment"
v-if=
"focu==true"
>
<input
type=
"text"
v-model=
"commentMsg.Content"
:placeholder=
'placeholder'
class=
"commentinput"
:focus=
'focu'
@
focus=
'getfocus'
@
keyboardheightchange=
'keyboardheight
'
>
<view
class=
"comment"
v-if=
"focu==true"
:style=
"
{'bottom':inputheight}"
>
<input
type=
"text"
v-model=
"commentMsg.Content"
:placeholder=
'placeholder'
class=
"commentinput"
:focus=
'focu'
@
focus=
'getfocus'
@
blur=
'inputheight=0
'
>
<view
class=
"comment-pl"
:style=
"
{background:mainColor}" @click="addComment">评论
</view>
</view>
...
...
@@ -506,9 +506,7 @@
}
);
},
keyboardheight
(
e
){
console
.
log
(
e
,
'新的'
)
},
//语音播放
playVoice
(
x
,
i
)
{
let
that
=
this
...
...
@@ -599,16 +597,15 @@
);
},
getfocus
(){
uni
.
onKeyboardHeightChange
(
res
=>
{
console
.
log
(
res
.
height
,
'获取'
)
this
.
inputheight
=
res
.
height
+
'px'
})
let
data
=
uni
.
getSystemInfoSync
().
system
.
indexOf
(
'iOS'
)
if
(
data
==-
1
){
this
.
inputheight
=
'24px'
}
},
pinglun
(
x
,
i
)
{
//评论
uni
.
onKeyboardHeightChange
(
res
=>
{
console
.
log
(
res
.
height
,
'px'
)
this
.
inputheight
=
res
.
height
+
'px'
})
this
.
focu
=
false
;
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
...
...
@@ -624,8 +621,7 @@
},
inputscroll
()
{
//滚动时触发
//初始化内容
this
.
focu
=
false
;
this
.
inputheight
=
0
;
this
.
focu
=
false
;
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
this
.
g
[
this
.
dianindex
].
dianshow
=
false
;
...
...
@@ -652,10 +648,7 @@
if
(
this
.
msg
.
UserId
==
this
.
user
.
item
.
empId
){
//自己点自己的时候处理
this
.
show
=
true
}
else
{
uni
.
onKeyboardHeightChange
(
res
=>
{
console
.
log
(
res
.
height
,
'px'
)
this
.
inputheight
=
res
.
height
+
'px'
})
this
.
focu
=
true
;
this
.
choiceId
=
x
.
id
;
this
.
$forceUpdate
()
...
...
@@ -703,7 +696,7 @@
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
focu
=
false
;
this
.
inputheight
=
0
;
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
this
.
init2
(
2
)
...
...
pages/friendcircle/mydetails.vue
View file @
382849a2
...
...
@@ -295,8 +295,14 @@
</view>
</view>
<!-- 输入框 -->
<view
class=
"comment"
>
<input
type=
"text"
v-model=
"commentMsg.Content"
:placeholder=
'placeholder'
class=
"commentinput"
:focus=
'focu'
@
focus=
'getfocus'
>
<view
class=
"comment"
:style=
"
{'bottom':inputheight}" >
<input
type=
"text"
v-model=
"commentMsg.Content"
:placeholder=
'placeholder'
class=
"commentinput"
:focus=
'focu'
@
blur=
'inputheight=0'
@
focus=
'getfocus'
>
<view
class=
"comment-pl"
:style=
"
{background:mainColor}" @click.stop="addComment">评论
</view>
</view>
...
...
@@ -466,10 +472,7 @@
if
(
this
.
UserId
==
this
.
user
.
item
.
empId
){
//自己点自己的时候处理
this
.
show
=
true
}
else
{
uni
.
onKeyboardHeightChange
(
res
=>
{
console
.
log
(
res
.
height
,
'回复'
)
this
.
inputheight
=
res
.
height
+
'px'
})
this
.
focu
=
true
;
this
.
choiceId
=
x
.
id
;
...
...
@@ -484,17 +487,13 @@
},
getfocus
(){
uni
.
onKeyboardHeightChange
(
res
=>
{
console
.
log
(
res
.
height
,
'获取'
)
this
.
inputheight
=
res
.
height
+
'
px'
}
)
let
data
=
uni
.
getSystemInfoSync
().
system
.
indexOf
(
'iOS'
)
if
(
data
==-
1
){
this
.
inputheight
=
'24
px'
}
},
pinglun
(
x
)
{
//评论
uni
.
onKeyboardHeightChange
(
res
=>
{
console
.
log
(
res
.
height
,
'评论'
)
this
.
inputheight
=
res
.
height
+
'px'
})
this
.
focu
=
false
;
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
...
...
@@ -523,7 +522,7 @@
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
inputheight
=
0
this
.
focu
=
false
;
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
...
...
@@ -536,7 +535,7 @@
this
.
focu
=
false
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
this
.
inputheight
=
0
},
mydelete
(){
//删除自己的回复
this
.
request2
({
...
...
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