Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
49cf4561
提交
49cf4561
authored
8月 30, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改channel
上级
cf8d6e94
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
23 行增加
和
23 行删除
+23
-23
rightAside.vue
src/components/layout/components/rightAside.vue
+19
-20
index.vue
src/components/leavex/index.vue
+1
-1
main.js
src/main.js
+3
-2
没有找到文件。
src/components/layout/components/rightAside.vue
浏览文件 @
49cf4561
...
...
@@ -101,27 +101,26 @@ export default {
},
enrollQuery
()
{
const
params
=
{
channel
:
19960
,
channel
:
window
.
localStorage
.
getItem
(
'channel_num'
)
||
19960
,
project_id
:
this
.
formInfo
.
projectId
,
name
:
this
.
formInfo
.
name
,
phone
:
this
.
formInfo
.
phone
}
return
new
Promise
((
resolve
,
reject
)
=>
{
cAction
.
News
.
postNes
(
params
)
.
then
(
res
=>
{
if
(
res
&&
res
.
status
===
200
&&
res
.
error
===
0
)
{
resolve
({
type
:
'enroll'
,
state
:
'success'
})
}
else
{
reject
({
type
:
'enroll'
,
state
:
'fail'
,
msg
:
res
.
message
||
'报名提交失败'
})
}
})
cAction
.
News
.
postNes
(
params
).
then
(
res
=>
{
if
(
res
&&
res
.
status
===
200
&&
res
.
error
===
0
)
{
resolve
({
type
:
'enroll'
,
state
:
'success'
})
}
else
{
reject
({
type
:
'enroll'
,
state
:
'fail'
,
msg
:
res
.
message
||
'报名提交失败'
})
}
})
})
},
getSendCode
()
{
...
...
@@ -188,7 +187,7 @@ export default {
top
:
50%
;
right
:
10px
;
z-index
:
9999
;
transform
:translateY
(
-50
%
)
;
transform
:
translateY
(
-50%
);
.tab_btns
{
width
:
72px
;
height
:
136px
;
...
...
@@ -288,10 +287,10 @@ export default {
.right_bar
.sendcode
.el-input
{
width
:
170px
;
}
.right_bar
.el-button
{
.right_bar
.el-button
{
background
:
#ff8e1a
;
border
:
#ff8e1a
1px
solid
;
color
:
rgba
(
255
,
255
,
255
,
.9
);
border
:
#ff8e1a
1px
solid
;
color
:
rgba
(
255
,
255
,
255
,
0
.9
);
}
.sendcode
.el-button
{
width
:
94px
;
...
...
src/components/leavex/index.vue
浏览文件 @
49cf4561
...
...
@@ -39,7 +39,7 @@ export default {
ruleForm
:
{
name
:
''
,
phone
:
''
,
channel
:
19960
,
channel
:
window
.
localStorage
.
getItem
(
'channel_num'
)
||
19960
,
project_id
:
1005
},
isLoading
:
false
,
...
...
src/main.js
浏览文件 @
49cf4561
...
...
@@ -35,7 +35,6 @@ window.Promise = Promise
* 使用 vue自带事件 $emit 和 $on 进行发布订阅
*/
Vue
.
prototype
.
VueEvent
=
new
Vue
()
/* 创建实例之前,通过导航守卫,处理部分逻辑,如:是否直接进入系统 */
const
before
=
createBefore
()
/* 导航守卫 */
...
...
@@ -43,7 +42,9 @@ router.beforeEach(async (to, from, next) => {
await
store
.
dispatch
(
'generateRoutes'
)
before
.
update
(
to
,
from
,
next
)
})
if
(
window
.
location
.
search
.
includes
(
'channel_num'
))
{
window
.
localStorage
.
setItem
(
'channel_num'
,
window
.
location
.
search
.
slice
(
13
))
}
window
.
G
.
$instance_vue
=
new
Vue
({
router
,
store
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论