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
604b2865
Commit
604b2865
authored
Jan 11, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
68468494
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
22 deletions
+34
-22
my-news.vue
pages/friendcircle/my-news.vue
+7
-5
mydetails.vue
pages/friendcircle/mydetails.vue
+24
-17
release.vue
pages/friendcircle/release.vue
+3
-0
No files found.
pages/friendcircle/my-news.vue
View file @
604b2865
...
...
@@ -252,22 +252,22 @@
list
:
[{
name
:
'文本'
,
type
:
0
,
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
Sound
.png'
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
friendwenben
.png'
},
{
name
:
'图文'
,
type
:
1
,
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
Sound
.png'
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
friendtuwen
.png'
},
{
name
:
'视频'
,
type
:
2
,
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
Sound
.png'
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
friendsp
.png'
},
{
name
:
'语音'
,
type
:
3
,
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
Sound
.png'
url
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/
friendyyin
.png'
},
],
nowbofo
:
false
,
...
...
@@ -311,7 +311,9 @@
}
},
onUnload
(){
innerAudioContext
.
stop
();
},
methods
:
{
init
()
{
this
.
loading
=
true
;
...
...
pages/friendcircle/mydetails.vue
View file @
604b2865
...
...
@@ -192,7 +192,7 @@
<
template
>
<view
class=
"mydetails"
>
<u-empty
v-if=
"loading==true"
text=
"网络出现故障"
mode=
"wifi"
></u-empty>
<view
class=
"box"
v-if=
"loading==false"
>
<view
class=
"box"
v-if=
"loading==false"
@
click=
"blurc"
>
<view
class=
"ftBox"
>
<view
class=
"ftBox-left"
>
<u-avatar
:src=
"detial.crearteEmPhoto"
size=
'80'
mode=
"square"
></u-avatar>
...
...
@@ -202,14 +202,14 @@
<view
class=
"text2"
style=
"font-size: 14px;margin-bottom: 5px;"
>
{{
detial
.
content
}}
</view>
<!-- 图片模式 -->
<view
class=
"imgmode"
v-if=
"detial.fileType==1"
>
<view
v-if=
"detial.files.length==1"
style=
"width: 150px;height:200px;margin-bottom: 6px;"
@
click=
"previewImage(0,detial.files)"
>
<view
v-if=
"detial.files.length==1"
style=
"width: 150px;height:200px;margin-bottom: 6px;"
@
click
.
stop
=
"previewImage(0,detial.files)"
>
<image
:src=
"detial.files[0]"
mode=
"aspectFill"
class=
"fileimg"
></image>
</view>
<view
v-if=
"detial.files.length==2 || detial.files.length==4"
v-for=
"(item, iq) in detial.files"
:key=
"iq"
@
click=
"previewImage(iq,detial.files)"
<view
v-if=
"detial.files.length==2 || detial.files.length==4"
v-for=
"(item, iq) in detial.files"
:key=
"iq"
@
click
.
stop
=
"previewImage(iq,detial.files)"
style=
"width: 240rpx;height:240rpx;margin-bottom: 6px;margin-right: 6px;"
>
<image
:src=
"item"
mode=
"aspectFill"
class=
"fileimg"
></image>
</view>
<view
v-if=
"(detial.files.length==3 || detial.files.length>4) && iq
<9
"
v-for=
"(item, iq) in detial.files"
:key=
"iq"
@
click=
"previewImage(iq,detial.files)"
<view
v-if=
"(detial.files.length==3 || detial.files.length>4) && iq
<9
"
v-for=
"(item, iq) in detial.files"
:key=
"iq"
@
click
.
stop
=
"previewImage(iq,detial.files)"
style=
"width: 160rpx;height:160rpx;margin-bottom: 6px;margin-right: 6px;position: relative;"
>
<image
:src=
"item"
mode=
"aspectFill"
class=
"fileimg"
></image>
<view
class=
"imgc"
v-if=
"iq==8 && detial.files.length>9"
>
...
...
@@ -221,34 +221,35 @@
<view
style=
"width: 100px;height:120px;margin-bottom: 6px;position: relative;"
>
<video
id=
"myVideo"
:src=
"detial.files[0]"
style=
"width: 100%;height: 100%;"
:controls=
'false'
:show-center-play-btn=
'false'
></video>
<view
style=
"width: 100%;height: 100%;position: absolute;left: 0;top: 0;display: flex;align-items: center;justify-content: center;"
@
click=
"enlarge(detial.files[0])"
>
@
click
.
stop
=
"enlarge(detial.files[0])"
>
<u-icon
name=
"play-circle-o"
:size=
"50"
color=
"#FFF"
></u-icon>
</view>
</view>
</view>
<view
v-if=
"detial.fileType==3"
class=
"audios"
>
<view
class=
"andiostyle"
@
click
.
stop=
"playVoice(detial)"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Sound.png"
mode=
"widthFix"
style=
"width: 19px;height: auto;"
></image>
<view
v-if=
"detial.fileType==3"
class=
"audios"
@
click
.
stop=
"playVoice(detial)"
>
<view
class=
"andiostyle"
>
<image
v-if=
"nowbofo==false"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Sound.png"
mode=
"widthFix"
style=
"width: 19px;height: auto;"
></image>
<image
v-if=
"nowbofo==true"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/bofanggif.gif"
mode=
"widthFix"
style=
"width: 19px;height: auto;"
></image>
</view>
</view>
<view
class=
"text"
style=
"font-size: 11px;"
v-if=
"detial.address && detial.address!=''"
>
<view
class=
"text"
style=
"font-size: 11px;
margin-top: 5px;
"
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)"
>
<view
class=
"r-sj-d"
@
click
.
stop
=
"getdian(detial)"
>
<view
class=
"dian"
></view>
<view
class=
"dian"
></view>
</view>
<view
class=
"diancaoz"
v-if=
"detial.dianshow==true"
>
<view
class=
"dianrow"
@
click=
"dianzan(detial)"
>
<view
class=
"dianrow"
@
click
.
stop
=
"dianzan(detial)"
>
<u-icon
name=
"like-o"
:size=
"30"
color=
"#FFF"
></u-icon>
<text>
{{
detial
.
hasLike
==
false
?
'赞'
:
'取消'
}}
</text>
</view>
<view
class=
"dianrow"
@
click=
"pinglun(detial)"
>
<view
class=
"dianrow"
@
click
.
stop
=
"pinglun(detial)"
>
<u-icon
name=
"comment-o"
:size=
"30"
color=
"#FFF"
></u-icon>
<text>
评论
...
...
@@ -270,7 +271,7 @@
<view
class=
"areagood"
v-if=
" detial.commentList.length>0"
>
<u-icon
name=
"comment-o"
:size=
"30"
color=
"#737373"
style=
'margin-top: 2px;'
></u-icon>
<view
class=
"areagood-r"
>
<view
v-for=
"(item, iq) in detial.commentList"
:key=
"iq"
style=
"width: 100%;margin-bottom: 7px;"
@
click=
"huifu(detial,item,iq)"
>
<view
v-for=
"(item, iq) in detial.commentList"
:key=
"iq"
style=
"width: 100%;margin-bottom: 7px;"
@
click
.
stop
=
"huifu(detial,item,iq)"
>
<view
class=
"text comment-list"
>
{{
item
.
empName
}}
<text
style=
"color: #333333;margin: 0 3px;"
v-if=
"item.byReplayEmpId>0"
>
回复
</text>
...
...
@@ -287,8 +288,8 @@
</view>
<!-- 输入框 -->
<view
class=
"comment"
>
<input
type=
"text"
v-model=
"commentMsg.Content"
:placeholder=
'placeholder'
class=
"commentinput"
@
blur=
'blurc'
:focus=
'focu'
>
<view
class=
"comment-pl"
:style=
"
{background:mainColor}" @click="addComment">评论
</view>
<input
type=
"text"
v-model=
"commentMsg.Content"
:placeholder=
'placeholder'
class=
"commentinput"
:focus=
'focu'
>
<view
class=
"comment-pl"
:style=
"
{background:mainColor}" @click
.stop
="addComment">评论
</view>
</view>
</view>
...
...
@@ -339,12 +340,12 @@
onLoad
(
options
)
{
if
(
options
&&
options
.
ID
){
this
.
articleId
=
options
.
ID
;
this
.
commentMsg
.
ArticleId
=
options
.
ID
this
.
init
(
1
)
}
uni
.
setNavigationBarTitle
({
title
:
'详情'
,
});
innerAudioContext
.
loop
=
true
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
pricecolor
=
this
.
$uiConfig
.
pricecolor
;
...
...
@@ -368,7 +369,6 @@
this
.
loading
=
false
;
if
(
res
.
resultCode
==
1
)
{
this
.
detial
=
res
.
data
;
this
.
detial
.
nowbofo
=
false
;
this
.
detial
.
dianshow
=
false
;
}
}
...
...
@@ -396,6 +396,10 @@
if
(
this
.
nowbofo
==
false
)
{
innerAudioContext
.
play
()
this
.
nowbofo
=
true
innerAudioContext
.
onEnded
(()
=>
{
innerAudioContext
.
stop
()
this
.
nowbofo
=
false
})
}
else
{
innerAudioContext
.
pause
();
this
.
nowbofo
=
false
...
...
@@ -435,6 +439,7 @@
item
:
item
,
iq
:
iq
,
}
this
.
focu
=
false
if
(
this
.
UserId
==
this
.
user
.
item
.
empId
){
//自己点自己的时候处理
this
.
show
=
true
}
else
{
...
...
@@ -462,6 +467,7 @@
}
},
addComment
()
{
console
.
log
(
this
.
commentMsg
)
if
(
this
.
commentMsg
.
Content
==
''
)
{
uni
.
showToast
({
title
:
'请输入评论'
,
...
...
@@ -485,6 +491,7 @@
);
},
blurc
(){
this
.
focu
=
false
this
.
commentMsg
.
Content
=
''
;
this
.
placeholder
=
'评论'
;
},
...
...
pages/friendcircle/release.vue
View file @
604b2865
...
...
@@ -330,6 +330,9 @@
created
()
{
// 监听
this
.
onMonitorEvents
()
},
onUnload
(){
innerAudioContext
.
stop
();
},
methods
:
{
publish
()
{
//发布
...
...
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