Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
alumni-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
alumni-show-h5
Commits
aa8a3bc6
提交
aa8a3bc6
authored
10月 13, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
933999da
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
34 行增加
和
7 行删除
+34
-7
index.js
src/api/index.js
+2
-2
icon_success2.png
src/assets/img/icon_success2.png
+0
-0
Item.vue
src/views/group/Item.vue
+32
-5
没有找到文件。
src/api/index.js
浏览文件 @
aa8a3bc6
...
...
@@ -202,8 +202,8 @@ export function updateGroup(id, data) {
}
// 加入组织
export
function
joinGroup
(
id
)
{
return
httpRequest
.
post
(
`/api/alumni/v1/organization/join/
${
id
}
`
)
export
function
joinGroup
(
id
,
data
)
{
return
httpRequest
.
post
(
`/api/alumni/v1/organization/join/
${
id
}
`
,
data
)
}
// 退出组织
...
...
src/assets/img/icon_success2.png
0 → 100644
浏览文件 @
aa8a3bc6
6.9 KB
src/views/group/Item.vue
浏览文件 @
aa8a3bc6
...
...
@@ -39,7 +39,7 @@
type=
"button"
class=
"button button-primary"
value=
"申请加入"
@
click=
"
joinGroup
"
@
click=
"
showJoinGroup = true
"
v-if=
"detail.button_show === 1"
/>
<input
...
...
@@ -50,7 +50,7 @@
@
click=
"onCancelJoin"
/>
</div>
<van-overlay
:show=
"show
"
@
click=
"show
= false"
>
<van-overlay
:show=
"show
JoinGroup"
@
click=
"showJoinGroup
= false"
>
<div
class=
"dialog-group"
@
click
.
stop
>
<div
class=
"dialog-group-hd"
>
申请理由
</div>
<div
class=
"dialog-group-bd"
>
...
...
@@ -61,6 +61,29 @@
</div>
</div>
</van-overlay>
<van-overlay
:show=
"showJoinGroup"
@
click=
"showJoinGroup = false"
>
<div
class=
"dialog-group"
@
click
.
stop
>
<div
class=
"dialog-group-hd"
>
申请理由
</div>
<div
class=
"dialog-group-bd"
>
<van-form
@
submit=
"joinGroup"
>
<van-field
type=
"textarea"
v-model=
"remark"
name=
"remark"
/>
<van-button
round
type=
"primary"
native-type=
"joinGroup"
>
提交
</van-button>
</van-form>
</div>
</div>
</van-overlay>
<van-overlay
:show=
"showJoinGroupSuccess"
@
click=
"showJoinGroupSuccess = false"
>
<div
class=
"dialog-group"
@
click
.
stop
>
<div
class=
"dialog-group-hd"
>
<div><img
src=
"../../assets/img/icon_success2.png"
width=
"60px"
/></div>
<p
style=
"margin-top: 18px"
>
提交成功
</p>
</div>
<div
class=
"dialog-group-bd"
>
<p>
请您等待管理员审核,审核
<br
/>
结果会在24小时内在我的消
<br
/>
息显示
</p>
<van-button
round
type=
"primary"
@
click=
"showJoinGroupSuccess = false"
>
确定
</van-button>
</div>
</div>
</van-overlay>
</div>
</template>
...
...
@@ -86,8 +109,9 @@ export default {
{
name
:
'rules'
,
label
:
'组织章程'
},
{
name
:
'plan'
,
label
:
'活动计划'
}
],
show
:
false
,
remark
:
''
showJoinGroup
:
false
,
remark
:
''
,
showJoinGroupSuccess
:
false
}
},
computed
:
{
...
...
@@ -104,7 +128,10 @@ export default {
},
// 加入组织
joinGroup
()
{
api
.
joinGroup
(
this
.
pid
).
then
(()
=>
{
api
.
joinGroup
(
this
.
pid
,
{
remark
:
this
.
remark
}).
then
(()
=>
{
this
.
showJoinGroup
=
false
this
.
showJoinGroupSuccess
=
true
this
.
remark
=
''
this
.
getDetail
()
})
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论