Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
70e9ac6d
Commit
70e9ac6d
authored
May 20, 2025
by
‘yangmengxue’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
19b95886
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
14 deletions
+61
-14
src/assets/scss/SignUp/referInfo.scss
src/assets/scss/SignUp/referInfo.scss
+15
-1
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+24
-1
src/config/server.js
src/config/server.js
+6
-6
src/router/index.js
src/router/index.js
+9
-1
src/store/index.js
src/store/index.js
+7
-5
No files found.
src/assets/scss/SignUp/referInfo.scss
View file @
70e9ac6d
...
...
@@ -252,7 +252,6 @@
}
}
.vertical-steps
{
position
:
absolute
;
right
:
4%
;
...
...
@@ -343,4 +342,19 @@
border-left
:
1
.5px
dotted
var
(
--
color
);
z-index
:
1
;
}
}
// 下载附件
.annex
{
>
div
{
margin-bottom
:
10px
;
}
.annex_remarks
{
color
:
red
;
font-size
:
18px
;
}
.annex_urls_name
{
color
:
var
(
--
color
);
}
}
\ No newline at end of file
src/components/index/SignUp/referInfo.vue
View file @
70e9ac6d
...
...
@@ -1315,7 +1315,12 @@
</div>
</div>
</div>
<!-- 下载附件 -->
<div
class=
"annex"
v-show=
"$store.state.annex_key == 1"
>
<div
class=
"cont_title"
>
下载附件
</div>
<div
class=
"annex_remarks"
>
{{
$store
.
state
.
annex_notice
}}
</div>
<div
class=
"annex_urls_name"
>
{{
annex_urls_name
}}
</div>
</div>
<div
class=
"btn"
>
<el-button
@
click=
"confirm"
>
提交资料
</el-button>
</div>
...
...
@@ -1833,6 +1838,7 @@ export default {
resultPicture
:
""
,
disabled
:
false
,
//限制输入框
isOffline
:
false
,
//活动形式是否包含线下字段
// 报名流程提示
steps
:
[
"
登录报名系统
"
,
"
提交报名信息,等待审核
"
,
...
...
@@ -1842,6 +1848,8 @@ export default {
"
下载入营通知书,完成报名
"
,
],
isShowStepsTips
:
false
,
// 下载附件
annex_urls_name
:
null
,
};
},
created
()
{
...
...
@@ -1903,6 +1911,12 @@ export default {
}
});
}
// 下载附件
let
annex_urls
=
this
.
$store
.
state
.
annex_urls
;
if
(
annex_urls
!=
null
)
{
this
.
annex_urls_name
=
this
.
getSubstringAfterFourthSlash
(
annex_urls
);
}
},
watch
:
{
referForm
(
val
)
{
...
...
@@ -1987,6 +2001,15 @@ export default {
},
mounted
()
{},
methods
:
{
//正则-截取附件名称
getSubstringAfterFourthSlash
(
str
)
{
const
parts
=
str
.
split
(
"
/
"
);
// 使用斜杠分割字符串
if
(
parts
.
length
>
4
)
{
// 确保有四个或更多的斜杠
return
parts
.
slice
(
4
).
join
(
"
/
"
);
// 返回第四个斜杠后的所有部分,用斜杠重新连接
}
return
""
;
// 如果没有足够的斜杠,返回空字符串
},
toShowSteps
()
{
this
.
isShowStepsTips
=
!
this
.
isShowStepsTips
;
},
...
...
src/config/server.js
View file @
70e9ac6d
...
...
@@ -4,11 +4,11 @@
// export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
// 正式
export
const
SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
//开发环境
export
const
SERVER_WS_URL
=
"
wss://gwapi.campcenter.cn
"
;
// websocket
//
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
//
export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
//
export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// 测试
// export const SERVER_URL = "http://192.168.1.146
:8088/modules-campsite"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "http://192.168.1.146
:8088/modules-campsite"; //开发环境
// export const SERVER_WS_URL = "wss://192.168.1.146
:8088"; // websocket
export
const
SERVER_URL
=
"
http://192.168.1.145
:8088/modules-campsite
"
;
// 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
http://192.168.1.145
:8088/modules-campsite
"
;
//开发环境
export
const
SERVER_WS_URL
=
"
wss://192.168.1.145
:8088
"
;
// websocket
src/router/index.js
View file @
70e9ac6d
...
...
@@ -151,7 +151,7 @@ function checkCam(code, cb) {
getCam
(
code
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
"
50018
"
)
{
return
return
}
let
root
=
document
.
querySelector
(
"
:root
"
);
root
.
style
.
setProperty
(
"
--color
"
,
res
.
data
.
system_color
);
...
...
@@ -210,6 +210,14 @@ function checkCam(code, cb) {
if
(
res
.
data
.
registration_end
!=
null
)
{
store
.
state
.
registrationEnd
=
parseTime
(
res
.
data
.
registration_end
);
}
// 是否下载附件
if
(
res
.
data
.
annex_urls
!=
null
)
{
store
.
state
.
annex_key
=
res
.
data
.
annex_key
;
// if (annex_notice != null) {
store
.
state
.
annex_notice
=
res
.
data
.
annex_notice
;
// }
store
.
state
.
annex_urls
=
res
.
data
.
annex_urls
;
}
cb
&&
cb
(
true
);
}).
catch
(()
=>
{
...
...
src/store/index.js
View file @
70e9ac6d
...
...
@@ -27,11 +27,13 @@ let state = {
isLogin
:
localStorage
.
getItem
(
"
isLogin
"
)
||
"
0
"
,
// 只有1为已登录
activeIndex
:
window
.
localStorage
.
getItem
(
'
index-active-path
'
)
||
"
0
"
,
query
:
{},
open_certificate
:
0
,
//是否替换原有结营证书
finish_certificate_address
:
null
,
isPost
:
0
,
//是否隐藏填写邮寄地址
registrationEnd
:
null
,
//缴费截止时间
open_certificate
:
0
,
//是否替换原有结营证书
finish_certificate_address
:
null
,
isPost
:
0
,
//是否隐藏填写邮寄地址
registrationEnd
:
null
,
//缴费截止时间
annex_key
:
null
,
//是否下载附件
annex_notice
:
null
,
annex_key
:
null
,
};
export
default
new
Vuex
.
Store
({
...
...
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