Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
c809a13c
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看板
提交
c809a13c
编写于
5月 26, 2023
作者:
0
052004122温宸杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
后台管理系统优化
上级
6528040b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
25 addition
and
7 deletion
+25
-7
alpha/admin/pages/content/mustgo-post/edit.vue
alpha/admin/pages/content/mustgo-post/edit.vue
+10
-4
alpha/admin/pages/content/mustgo-user/edit.vue
alpha/admin/pages/content/mustgo-user/edit.vue
+8
-2
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-college-likePost/index.js
...iCloud-aliyun/cloudfunctions/fe-college-likePost/index.js
+7
-1
未找到文件。
alpha/admin/pages/content/mustgo-post/edit.vue
浏览文件 @
c809a13c
...
...
@@ -5,19 +5,25 @@
<uni-easyinput
placeholder=
"帖子内容"
v-model=
"formData.content"
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"date"
label=
"发布时间"
>
<uni-easyinput
placeholder=
"帖子发布时间"
v-model=
"formData.date"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"帖子发布时间"
v-model=
"formData.date"
></uni-easyinput>
-->
<uni-datetime-picker
type=
"datetime"
v-model=
"formData.date"
/>
</uni-forms-item>
<uni-forms-item
name=
"likes"
label=
"点赞数"
>
<uni-easyinput
placeholder=
"帖子点赞数"
type=
"number"
v-model=
"formData.likes"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"帖子点赞数"
type=
"number"
v-model=
"formData.likes"
></uni-easyinput>
-->
<uni-number-box
:value=
"0"
:step=
"1"
max=
"100000"
value=
"100000"
v-model=
"formData.likes"
/>
</uni-forms-item>
<uni-forms-item
name=
"owner_id"
label=
"发帖人id"
>
<uni-easyinput
placeholder=
"发帖人id"
v-model=
"formData.owner_id"
></uni-easyinput>
<uni-easyinput
placeholder=
"发帖人id"
v-model=
"formData.owner_id"
disabled
></uni-easyinput>
</uni-forms-item>
<!--
<uni-forms-item
name=
"check_status"
label=
"审核状态"
>
<switch
@
change=
"binddata('check_status', $event.detail.value)"
:checked=
"formData.check_status"
></switch>
</uni-forms-item>
-->
<uni-forms-item
name=
"comment_num"
label=
"评论数"
>
<uni-easyinput
placeholder=
"帖子评论数"
type=
"number"
v-model=
"formData.comment_num"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"帖子评论数"
type=
"number"
v-model=
"formData.comment_num"
></uni-easyinput>
-->
<uni-number-box
:value=
"0"
:step=
"1"
max=
"100000"
value=
"100000"
v-model=
"formData.comment_num"
/>
</uni-forms-item>
<!--
<uni-forms-item
name=
"url"
label=
"图片url"
>
<uni-data-checkbox
:multiple=
"true"
v-model=
"formData.url"
></uni-data-checkbox>
...
...
alpha/admin/pages/content/mustgo-user/edit.vue
浏览文件 @
c809a13c
...
...
@@ -18,10 +18,13 @@
<uni-easyinput
v-model=
"formData.phone_num"
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"team_id"
label=
"小组 id"
>
<uni-easyinput
v-model=
"formData.team_id"
></uni-easyinput>
<uni-easyinput
v-model=
"formData.team_id"
disabled
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"school"
label=
"学校"
>
<uni-easyinput
v-model=
"formData.school"
></uni-easyinput>
<!--
<uni-easyinput
v-model=
"formData.school"
></uni-easyinput>
-->
<uni-data-select
v-model=
"formData.school"
:localdata=
"place"
>
</uni-data-select>
</uni-forms-item>
<uni-forms-item
name=
"type"
label=
"人员"
>
<uni-data-checkbox
:localdata=
"types"
v-model=
"formData.type"
/>
...
...
@@ -86,6 +89,9 @@
{
text
:
'
男
'
,
value
:
'
男
'
},
{
text
:
'
女
'
,
value
:
'
女
'
}
],
place
:
[
{
value
:
'
福州大学
'
,
text
:
'
福州大学
'
},
],
types
:
[
{
text
:
'
学生
'
,
value
:
'
644a64c228064a7587cd79bf
'
},
{
text
:
'
老师
'
,
value
:
'
644a64d2e766bb0085e6048e
'
}
...
...
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-college-likePost/index.js
浏览文件 @
c809a13c
...
...
@@ -24,7 +24,7 @@ exports.main = async (event, context) => {
owner_id
:
event
.
userId
})
const
res
4
=
await
message_table
.
add
({
const
res
5
=
await
message_table
.
add
({
state
:
false
,
types
:
"
点赞
"
,
content
:
""
,
...
...
@@ -49,6 +49,12 @@ exports.main = async (event, context) => {
likes
:
res
.
data
[
0
][
"
likes
"
]
-
1
,
})
const
deleteMessage
=
await
message_table
.
where
({
types
:
"
点赞
"
,
from_id
:
event
.
userId
,
post_id
:
event
.
postId
}).
remove
()
const
deleteLike
=
await
like_table
.
doc
(
islike
.
data
[
0
][
"
_id
"
]).
remove
()
if
(
deleteLike
.
deleted
===
1
){
return
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录