Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
ea9fb418
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ea9fb418
编写于
5月 07, 2023
作者:
Y
yyt
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'frontend' of gitcode.net:qq_50679803/great-teamwork into frontend
上级
8bc2f03d
924de7fc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
37 addition
and
34 deletion
+37
-34
teamwork/pages/discover/discover-detail.vue
teamwork/pages/discover/discover-detail.vue
+2
-1
teamwork/pages/discover/main.vue
teamwork/pages/discover/main.vue
+0
-2
teamwork/pages/post/add-post.vue
teamwork/pages/post/add-post.vue
+1
-1
teamwork/pages/post/post-detail.vue
teamwork/pages/post/post-detail.vue
+17
-14
teamwork/pages/post/post.vue
teamwork/pages/post/post.vue
+17
-16
未找到文件。
teamwork/pages/discover/discover-detail.vue
浏览文件 @
ea9fb418
...
...
@@ -124,7 +124,7 @@
dialogClose
()
{
console
.
log
(
'
点击关闭
'
)
this
.
$refsalertDialog
.
close
();
}
,
}
},
onLoad
(
e
)
{
this
.
from
=
e
.
from
;
...
...
@@ -206,6 +206,7 @@
height
:
200px
;
margin
:
0px
;
padding
:
0px
;
border-radius
:
15px
;
}
.activity-production
{
margin-top
:
10px
;
...
...
teamwork/pages/discover/main.vue
浏览文件 @
ea9fb418
...
...
@@ -72,7 +72,6 @@
},
onPullDownRefresh
(){
//刷新后的效果
console
.
log
(
"
1111
"
);
this
.
onLoad1
();
uni
.
stopPullDownRefresh
();
},
...
...
@@ -118,7 +117,6 @@
data
:
{
teacherId
:
this
.
teacherId
}
})
.
then
(
res
=>
{
this
.
activityList1
=
res
.
result
.
data
.
activityList
,
console
.
log
(
this
.
activityList1
);
});
...
...
teamwork/pages/post/add-post.vue
浏览文件 @
ea9fb418
...
...
@@ -67,7 +67,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-makePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
picture
:
this
.
img
,
content
:
this
.
value1
,
},
...
...
teamwork/pages/post/post-detail.vue
浏览文件 @
ea9fb418
...
...
@@ -27,15 +27,15 @@
<!-- 点赞和评论 -->
<view
class=
"like-and-comment"
>
<!-- 删除键,只有我的帖子可见该组件 -->
<text
class=
"del"
@
click=
"delPost"
v-if=
"
'6450da43e1a35c371b3699cc'
==postDetail.ownerId"
>
删除
</text>
<text
class=
"del"
@
click=
"delPost"
v-if=
"
userId
==postDetail.ownerId"
>
删除
</text>
<view
class=
"icon-and-num"
>
<image
class=
"like-icon"
:src=
"postDetail.islike==1?'../../static/post/喜欢2.png':'../../static/post/喜欢.png'"
style=
"width:
16px;height:16px
;"
@
click=
"changeLike"
/>
<text
style=
"font-size: 1
2px
;"
>
{{
postDetail
.
likes
}}
</text>
style=
"width:
20px;height:20px;float: left
;"
@
click=
"changeLike"
/>
<text
style=
"font-size: 1
5px;float: left
;"
>
{{
postDetail
.
likes
}}
</text>
<image
class=
"comment-icon"
:src=
"'../../static/post/评论.png'"
style=
"width:
16px;height: 16px;margin-left: 10px
;"
@
click=
"addComment()"
/>
<text
style=
"font-size: 1
2px
;"
>
{{
postDetail
.
comments
}}
</text>
style=
"width:
20px;height: 20px;margin-left: 10px;float: left
;"
@
click=
"addComment()"
/>
<text
style=
"font-size: 1
5px;float: left
;"
>
{{
postDetail
.
comments
}}
</text>
</view>
</view>
...
...
@@ -51,7 +51,7 @@
<!-- 点击进入评论 -->
<view
class=
"comment"
>
<image
:src=
"
'https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/becea65c-89d7-4fe0-9c3f-2e08cdf911e8.jpg'
"
:src=
"
icon
"
class=
"icon-small"
/>
<span
@
click=
"addComment"
class=
"comment-buttun"
><text
style=
"margin-left:8px;margin-top: 5px;float: left"
>
写评论
</text></span>
...
...
@@ -123,7 +123,8 @@
],
postDetail
:
[],
userId
:
''
,
icon
:
''
,
};
},
...
...
@@ -132,13 +133,15 @@
onLoad
(
e
)
{
//this.from=e.from;
this
.
postId
=
e
.
postId
;
this
.
userId
=
getApp
().
globalData
.
userId
;
this
.
icon
=
getApp
().
globalData
.
icon
;
this
.
getData
();
},
getData
()
{
uniCloud
.
callFunction
({
name
:
'
fe-college-postDetail
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
postId
},
})
...
...
@@ -188,7 +191,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-commentPost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
postId
,
content
:
value
},
...
...
@@ -242,7 +245,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
postId
,
},
})
...
...
@@ -261,7 +264,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
postId
,
},
})
...
...
@@ -288,7 +291,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likeComment
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
commentId
:
this
.
postDetail
.
commentList
[
index
].
commentId
},
})
...
...
@@ -308,7 +311,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likeComment
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
commentId
:
this
.
postDetail
.
commentList
[
index
].
commentId
},
})
...
...
@@ -341,7 +344,7 @@
.del
{
float
:
left
;
font-size
:
1
2
px
;
font-size
:
1
5
px
;
color
:
lightskyblue
;
}
...
...
teamwork/pages/post/post.vue
浏览文件 @
ea9fb418
...
...
@@ -45,11 +45,11 @@
<view
class=
"icon-and-num"
>
<image
class=
"like-icon"
:src=
"item.islike=='1'?'../../static/post/喜欢2.png':'../../static/post/喜欢.png'"
style=
"width:
16px;height:16px
;"
@
click.stop=
"changeAllPostLike(index)"
/>
<text
style=
"font-size: 15px;"
>
{{
item
.
likes
}}
</text>
style=
"width:
20px;height:20px;float: left
;"
@
click.stop=
"changeAllPostLike(index)"
/>
<text
style=
"font-size: 15px;
float: left;
"
>
{{
item
.
likes
}}
</text>
<image
class=
"comment-icon"
:src=
"'../../static/post/评论.png'"
style=
"width:
16px;height: 16px;margin-left: 10px
;"
/>
<text
style=
"font-size: 15px;"
>
{{
item
.
comments
}}
</text>
style=
"width:
20px;height: 20px;margin-left: 10px;float: left
;"
/>
<text
style=
"font-size: 15px;
float: left;
"
>
{{
item
.
comments
}}
</text>
</view>
</view>
...
...
@@ -90,11 +90,11 @@
<view
class=
"icon-and-num"
>
<image
class=
"like-icon"
:src=
"item.islike=='1'?'../../static/post/喜欢2.png':'../../static/post/喜欢.png'"
style=
"width:
16px;height:16px;"
@
click.stop=
"changeMy
PostLike(index)"
/>
<text
style=
"font-size: 15px;"
>
{{
item
.
likes
}}
</text>
style=
"width:
20px;height:20px;float: left;"
@
click.stop=
"changeAll
PostLike(index)"
/>
<text
style=
"font-size: 15px;
float: left;
"
>
{{
item
.
likes
}}
</text>
<image
class=
"comment-icon"
:src=
"'../../static/post/评论.png'"
style=
"width:
16px;height: 16px;margin-left: 10px
;"
/>
<text
style=
"font-size: 15px;"
>
{{
item
.
comments
}}
</text>
style=
"width:
20px;height: 20px;margin-left: 10px;float: left
;"
/>
<text
style=
"font-size: 15px;
float: left;
"
>
{{
item
.
comments
}}
</text>
</view>
</view>
...
...
@@ -113,6 +113,7 @@
onPullDownRefresh
()
{
this
.
getAllPost
();
this
.
getMyPost
();
uni
.
stopPullDownRefresh
();
},
onLoad
()
{
...
...
@@ -181,7 +182,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-postList
'
,
data
:
{
//向云函数中传入的数据
uid
:
"
6450da43e1a35c371b3699cc
"
uid
:
getApp
().
globalData
.
userId
},
})
.
then
(
res
=>
{
...
...
@@ -196,7 +197,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-myPostList
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
userId
:
getApp
().
globalData
.
userId
},
})
.
then
(
res
=>
{
...
...
@@ -226,7 +227,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
allPost
[
index
].
postId
,
},
})
...
...
@@ -244,7 +245,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
allPost
[
index
].
postId
,
},
})
...
...
@@ -271,7 +272,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
myPost
[
index
].
postId
,
},
})
...
...
@@ -289,7 +290,7 @@
uniCloud
.
callFunction
({
name
:
'
fe-college-likePost
'
,
data
:
{
//向云函数中传入的数据
userId
:
"
6450da43e1a35c371b3699cc
"
,
userId
:
getApp
().
globalData
.
userId
,
postId
:
this
.
myPost
[
index
].
postId
,
},
})
...
...
@@ -374,7 +375,7 @@
.one-img
{
float
:
left
;
width
:
32%
;
height
:
7
0px
;
height
:
8
0px
;
margin-left
:
2px
;
margin-top
:
2px
;
}
...
...
@@ -382,7 +383,7 @@
.single-pic
{
width
:
100%
;
border-radius
:
5px
;
height
:
2
0
0px
;
height
:
2
5
0px
;
}
.post-pic
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录