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
cdd502d8
Commit
cdd502d8
authored
Jan 11, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
546e6ff9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
friendcircle.vue
pages/friendcircle/friendcircle.vue
+3
-0
mydetails.vue
pages/friendcircle/mydetails.vue
+28
-5
No files found.
pages/friendcircle/friendcircle.vue
View file @
cdd502d8
...
...
@@ -230,6 +230,9 @@
<view
class=
"andiostyle"
@
click
.
stop=
"playVoice(x)"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Sound.png"
mode=
"widthFix"
style=
"width: 19px;height: auto;"
></image>
</view>
</view>
<view
class=
"text"
style=
"font-size: 11px;"
v-if=
"x.address && x.address!=''"
>
{{
x
.
address
}}
</view>
<view
class=
"r-sj"
>
<text>
{{
x
.
createTime
}}
</text>
...
...
pages/friendcircle/mydetails.vue
View file @
cdd502d8
...
...
@@ -231,6 +231,9 @@
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Sound.png"
mode=
"widthFix"
style=
"width: 19px;height: auto;"
></image>
</view>
</view>
<view
class=
"text"
style=
"font-size: 11px;"
v-if=
"detial.address && detial.address!=''"
>
{{
detial
.
address
}}
</view>
<view
class=
"r-sj"
>
<text>
{{
detial
.
createTime
}}
</text>
<view
class=
"r-sj-d"
@
click=
"getdian(detial)"
>
...
...
@@ -330,23 +333,33 @@
choiceId
:
0
,
//保存评论和点赞时候的id
show
:
false
,
user
:
''
,
//点击用户保存的数据
UserId
:
0
,
}
},
onLoad
(
options
)
{
if
(
options
&&
options
.
ID
){
this
.
articleId
=
options
.
ID
;
this
.
init
()
this
.
init
(
1
)
}
uni
.
setNavigationBarTitle
({
title
:
'详情'
,
});
innerAudioContext
.
loop
=
true
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
pricecolor
=
this
.
$uiConfig
.
pricecolor
;
this
.
UserId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
;
},
onUnload
(){
innerAudioContext
.
stop
();
},
methods
:{
init
(){
this
.
loading
=
true
;
init
(
type
=
0
){
if
(
type
==
1
){
//第一次进来判断
this
.
loading
=
true
;
}
this
.
request2
({
url
:
'/api/AppletEducation/DynamicDetial'
,
data
:
{
articleId
:
this
.
articleId
}
...
...
@@ -422,12 +435,12 @@
item
:
item
,
iq
:
iq
,
}
if
(
this
.
msg
.
UserId
==
this
.
user
.
item
.
empId
){
//自己点自己的时候处理
if
(
this
.
UserId
==
this
.
user
.
item
.
empId
){
//自己点自己的时候处理
this
.
show
=
true
}
else
{
this
.
focu
=
true
;
this
.
choiceId
=
x
.
id
;
this
.
$forceUpdate
()
this
.
commentMsg
=
{
ArticleId
:
x
.
id
,
CommentId
:
item
.
commentId
,
...
...
@@ -437,6 +450,16 @@
}
},
pinglun
(
x
)
{
//评论
this
.
focu
=
true
;
this
.
choiceId
=
x
.
id
;
this
.
detial
.
dianshow
=
false
;
//隐藏按钮
this
.
commentMsg
=
{
ArticleId
:
x
.
id
,
CommentId
:
0
,
Content
:
''
,
}
},
addComment
()
{
if
(
this
.
commentMsg
.
Content
==
''
)
{
...
...
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