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
faec603d
Commit
faec603d
authored
Dec 16, 2024
by
‘yangmengxue’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
西交考试通知
parent
d5d480ff
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
415 additions
and
353 deletions
+415
-353
dist.rar
dist.rar
+0
-0
src/assets/img/paying/notice.png
src/assets/img/paying/notice.png
+0
-0
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+52
-1
src/config/server.js
src/config/server.js
+6
-6
src/router/index.js
src/router/index.js
+5
-0
src/store/index.js
src/store/index.js
+1
-0
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+351
-346
No files found.
dist.rar
deleted
100644 → 0
View file @
d5d480ff
File deleted
src/assets/img/paying/notice.png
0 → 100644
View file @
faec603d
3.67 KB
src/components/index/SignUp/paying.vue
View file @
faec603d
<
template
>
<
template
>
<div
class=
"paying"
>
<div
class=
"paying"
>
<div>
<div>
<div
class=
"notify flex"
v-if=
"
$store.state.indexIdentity == 'b670c2faa285477ea6a2fb1efeaf03a4' ||
$store.state.indexIdentity == '303c738d07b24a5b881d03d5177409a0' ||
$store.state.indexIdentity == 'd1a331f0140e4e49b1f3751c0cbf9660'
"
>
<div
class=
"flex"
>
<img
alt=
""
class=
"notify_img"
src=
"../../../assets/img/paying/notice.png"
/>
</div>
<div>
缴费截止时间:
{{
$store
.
state
.
registrationEnd
}}
</div>
</div>
<span
class=
"pay_titile"
>
报名信息
</span>
<span
class=
"pay_titile"
>
报名信息
</span>
<div
class=
"pay_top"
>
<div
class=
"pay_top"
>
<div>
营地名称:
{{
$store
.
state
.
info
.
name
}}
</div>
<div>
营地名称:
{{
$store
.
state
.
info
.
name
}}
</div>
...
@@ -178,7 +195,16 @@
...
@@ -178,7 +195,16 @@
<div><span>
收款单位:
</span>
{{
payee
}}
</div>
<div><span>
收款单位:
</span>
{{
payee
}}
</div>
<div><span>
账号:
</span>
{{
bank_idcard
}}
</div>
<div><span>
账号:
</span>
{{
bank_idcard
}}
</div>
<div><span>
开户行:
</span>
{{
bank_first
}}
</div>
<div><span>
开户行:
</span>
{{
bank_first
}}
</div>
<div
v-if=
"transfer_back_up"
>
<div
v-if=
"transfer_back_up"
:class=
"
$store.state.indexIdentity == 'b670c2faa285477ea6a2fb1efeaf03a4' ||
$store.state.indexIdentity == '303c738d07b24a5b881d03d5177409a0' ||
$store.state.indexIdentity == 'd1a331f0140e4e49b1f3751c0cbf9660'
? 'redFont'
: ''
"
>
<span>
转账请备注:
</span>
{{
transfer_back_up
}}
<span>
转账请备注:
</span>
{{
transfer_back_up
}}
</div>
</div>
<span>
上传带有订单编号的转账截图
</span>
<span>
上传带有订单编号的转账截图
</span>
...
@@ -762,6 +788,31 @@ export default {
...
@@ -762,6 +788,31 @@ export default {
.paying
{
.paying
{
padding
:
0
56px
65px
56px
;
padding
:
0
56px
65px
56px
;
.redFont
{
color
:
rgb
(
223
,
67
,
67
);
}
.notify
{
position
:
absolute
;
background-color
:
#e1a840
;
height
:
23px
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
left
:
0
;
top
:
27%
;
padding
:
0
;
.notify_img
{
width
:
16px
;
margin-right
:
5px
;
}
div
{
color
:
#fff
;
font-size
:
12px
;
}
}
.pay_titile
{
.pay_titile
{
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
500
;
font-weight
:
500
;
...
...
src/config/server.js
View file @
faec603d
// 测试
// 测试
export
const
SERVER_URL
=
"
https://tgwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
//
export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://tgwapi.campcenter.cn/modules-campsite
"
;
//开发环境
//
export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境
export
const
SERVER_WS_URL
=
"
wss://tgwapi.campcenter.cn
"
;
// websocket
//
export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
// 正式
// 正式
//
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
export
const
SERVER_URL
=
"
https://gwapi.campcenter.cn/modules-campsite
"
;
// 正式环境
//
export const DEVELOPMENT_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_WS_URL
=
"
wss://gwapi.campcenter.cn
"
;
// websocket
// 测试
// 测试
// export const SERVER_URL = "http://192.168.1.146:8088/modules-campsite"; // 正式环境
// export const SERVER_URL = "http://192.168.1.146:8088/modules-campsite"; // 正式环境
...
...
src/router/index.js
View file @
faec603d
...
@@ -12,6 +12,7 @@ import indexCamp from './index/camp'
...
@@ -12,6 +12,7 @@ import indexCamp from './index/camp'
import
personalInfo
from
'
./index/personalInfo
'
import
personalInfo
from
'
./index/personalInfo
'
import
{
getCam
,
getCamInfo
}
from
"
r/index/login
"
;
import
{
getCam
,
getCamInfo
}
from
"
r/index/login
"
;
import
{
Message
}
from
'
element-ui
'
;
import
{
Message
}
from
'
element-ui
'
;
import
{
parseTime
}
from
'
../common/utils
'
;
Vue
.
prototype
.
$message
=
Message
;
Vue
.
prototype
.
$message
=
Message
;
...
@@ -201,6 +202,10 @@ function checkCam(code, cb) {
...
@@ -201,6 +202,10 @@ function checkCam(code, cb) {
if
(
res
.
data
.
is_post
!=
null
)
{
if
(
res
.
data
.
is_post
!=
null
)
{
store
.
state
.
isPost
=
res
.
data
.
is_post
;
store
.
state
.
isPost
=
res
.
data
.
is_post
;
}
}
// 缴费截止时间
if
(
res
.
data
.
registration_end
!=
null
)
{
store
.
state
.
registrationEnd
=
parseTime
(
res
.
data
.
registration_end
);
}
cb
&&
cb
(
true
);
cb
&&
cb
(
true
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
cb
&&
cb
(
false
);
cb
&&
cb
(
false
);
...
...
src/store/index.js
View file @
faec603d
...
@@ -30,6 +30,7 @@ let state = {
...
@@ -30,6 +30,7 @@ let state = {
open_certificate
:
0
,
//是否替换原有结营证书
open_certificate
:
0
,
//是否替换原有结营证书
finish_certificate_address
:
null
,
finish_certificate_address
:
null
,
isPost
:
0
,
//是否隐藏填写邮寄地址
isPost
:
0
,
//是否隐藏填写邮寄地址
registrationEnd
:
null
,
//缴费截止时间
};
};
export
default
new
Vuex
.
Store
({
export
default
new
Vuex
.
Store
({
...
...
src/views/index/recruit/Index.vue
View file @
faec603d
...
@@ -4,9 +4,13 @@
...
@@ -4,9 +4,13 @@
<Header
:typeFu=
"2"
></Header>
<Header
:typeFu=
"2"
></Header>
<div
class=
"notify flex"
v-if=
"$store.state.isDisplay_num == 1"
>
<div
class=
"notify flex"
v-if=
"$store.state.isDisplay_num == 1"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<img
alt=
""
class=
"notify_img"
src=
"../../../assets/img/notify.png"
/>
<img
alt=
""
class=
"notify_img"
src=
"../../../assets/img/notify.png"
/>
</div>
<div>
注意:本次活动报名有人数限制,当前共有
{{
info
.
order_num
}}
人申请,剩余名额为
{{
info
.
student_num
}}
人
</div>
</div>
<div>
注意:本次活动报名有人数限制,当前共有
{{
info
.
order_num
}}
人申请,剩余名额为
{{
info
.
student_num
}}
人
</div>
</div>
</div>
<div
class=
"bg-top"
></div>
<div
class=
"bg-top"
></div>
</el-header>
</el-header>
...
@@ -18,18 +22,21 @@
...
@@ -18,18 +22,21 @@
<!--
<el-button
@
click=
"toLogin()"
>
立即报名
</el-button>
-->
<!--
<el-button
@
click=
"toLogin()"
>
立即报名
</el-button>
-->
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"active-area"
>
<div
class=
"active-area"
>
<div
class=
"left-area card-box"
v-if=
"anchorList.length
>
0"
>
<div
class=
"left-area card-box"
v-if=
"anchorList.length
>
0"
>
<div
class=
"left-area-box"
>
<div
class=
"left-area-box"
>
<ul
class=
"left"
>
<ul
class=
"left"
>
<li
:key=
"index"
v-for=
"(item,index) in anchorList"
>
<li
:key=
"index"
v-for=
"(item,
index) in anchorList"
>
<a
@
click=
"anchorSkip(item.id)"
>
{{
item
.
name
}}
</a>
<a
@
click=
"anchorSkip(item.id)"
>
{{
item
.
name
}}
</a>
</li>
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
:style=
"
{
<div
'min-height':minHeight+'px'
:style=
"
{
}" class="center-area card-box">
'min-height': minHeight + 'px',
}"
class="center-area card-box"
>
<div
class=
"center-area-cont"
>
<div
class=
"center-area-cont"
>
<div
v-html=
"info.student_recruitment_brochure"
></div>
<div
v-html=
"info.student_recruitment_brochure"
></div>
</div>
</div>
...
@@ -41,26 +48,26 @@
...
@@ -41,26 +48,26 @@
</el-container>
</el-container>
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Header
from
"
@/components/Header.vue
"
;
import
Header
from
"
@/components/Header.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
{
getCamInfo
}
from
"
r/index/login
"
;
import
{
getCamInfo
}
from
"
r/index/login
"
;
export
default
{
export
default
{
name
:
"
recruit
"
,
name
:
"
recruit
"
,
data
()
{
data
()
{
return
{
return
{
info
:
{},
info
:
{},
anchorList
:
[],
anchorList
:
[],
minHeight
:
'
339
'
,
minHeight
:
"
339
"
,
};
};
},
},
created
()
{
created
()
{
this
.
info
=
this
.
$store
.
state
.
info
;
this
.
info
=
this
.
$store
.
state
.
info
;
console
.
log
(
this
.
info
)
console
.
log
(
this
.
info
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
anchorList
=
this
.
getAnchor
(
this
.
info
.
student_recruitment_brochure
);
this
.
anchorList
=
this
.
getAnchor
(
this
.
info
.
student_recruitment_brochure
);
},
1000
)
},
1000
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
//判断是否关闭了营地(关闭了不需要调用setlog)
//判断是否关闭了营地(关闭了不需要调用setlog)
let
isCloseCamp
=
this
.
$store
.
state
.
info
.
on_off
;
let
isCloseCamp
=
this
.
$store
.
state
.
info
.
on_off
;
...
@@ -69,9 +76,8 @@
...
@@ -69,9 +76,8 @@
document
.
title
=
res
.
data
.
name
;
document
.
title
=
res
.
data
.
name
;
return
false
;
return
false
;
});
});
this
.
commonApi
(
29
)
this
.
commonApi
(
29
);
}
}
},
},
methods
:
{
methods
:
{
toLogin
()
{
toLogin
()
{
...
@@ -81,49 +87,53 @@
...
@@ -81,49 +87,53 @@
path
:
"
/login
"
,
path
:
"
/login
"
,
query
:
{
query
:
{
...
this
.
$store
.
state
.
query
,
...
this
.
$store
.
state
.
query
,
code
:
code
code
:
code
,
}
},
});
});
}
else
{
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"
/signUp/undefined
"
,
path
:
"
/signUp/undefined
"
,
query
:
{
query
:
{
...
this
.
$store
.
state
.
query
,
...
this
.
$store
.
state
.
query
,
code
:
code
code
:
code
,
}
},
});
});
}
}
},
},
// 锚点跳转方法
// 锚点跳转方法
anchorSkip
(
id
)
{
anchorSkip
(
id
)
{
document
.
querySelector
(
id
).
scrollIntoView
({
document
.
querySelector
(
id
).
scrollIntoView
({
behavior
:
'
smooth
'
,
behavior
:
"
smooth
"
,
block
:
'
center
'
block
:
"
center
"
,
});
});
},
},
// 分离获取html中的锚点
// 分离获取html中的锚点
getAnchor
(
content
)
{
getAnchor
(
content
)
{
if
(
!
content
)
return
[];
if
(
!
content
)
return
[];
let
attrAndValueArr
=
content
.
match
(
/<a id=
\"(
.*
?)\"
><
\/
a>/g
);
let
attrAndValueArr
=
content
.
match
(
/<a id=
\"(
.*
?)\"
><
\/
a>/g
);
let
valueArr
=
[]
// 放所有该属性的值
let
valueArr
=
[];
// 放所有该属性的值
let
anchorList
=
[];
let
anchorList
=
[];
if
(
attrAndValueArr
&&
attrAndValueArr
.
length
>
0
)
{
if
(
attrAndValueArr
&&
attrAndValueArr
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
attrAndValueArr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
attrAndValueArr
.
length
;
i
++
)
{
valueArr
.
push
(
attrAndValueArr
[
i
]
valueArr
.
push
(
.
replace
(
/<a id=/g
,
''
)
attrAndValueArr
[
i
]
.
replace
(
/
\"
/g
,
''
)
.
replace
(
/<a id=/g
,
""
)
.
replace
(
/><
\/
a>/g
,
''
));
.
replace
(
/
\"
/g
,
""
)
.
replace
(
/><
\/
a>/g
,
""
)
);
}
}
valueArr
.
forEach
((
item
,
index
)
=>
{
valueArr
.
forEach
((
item
,
index
)
=>
{
let
father
=
document
.
getElementById
(
item
).
parentNode
;
let
father
=
document
.
getElementById
(
item
).
parentNode
;
let
value
=
father
.
innerHTML
.
replace
(
/<
(
.*
?)
>/g
,
''
).
replace
(
/<
\/(
.*
?)
>/g
,
''
);
let
value
=
father
.
innerHTML
.
replace
(
/<
(
.*
?)
>/g
,
""
)
.
replace
(
/<
\/(
.*
?)
>/g
,
""
);
if
(
value
&&
value
.
length
<
10
)
{
if
(
value
&&
value
.
length
<
10
)
{
anchorList
.
push
({
anchorList
.
push
({
id
:
'
#
'
+
item
,
id
:
"
#
"
+
item
,
name
:
value
,
name
:
value
,
})
});
}
}
})
});
return
anchorList
;
return
anchorList
;
}
}
return
[];
return
[];
...
@@ -133,16 +143,28 @@
...
@@ -133,16 +143,28 @@
Header
,
Header
,
Footer
,
Footer
,
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
@import
"a/scss/common"
;
@import
"a/scss/common"
;
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
.notify
{
background-color
:
#fbf8fb
;
height
:
38px
;
align-items
:
center
;
padding-left
:
5%
;
.notify_img
{
width
:
20px
;
margin-right
:
5px
;
}
}
}
.el-container
{
.el-container
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
min-height
:
100%
;
min-height
:
100%
;
...
@@ -155,18 +177,6 @@
...
@@ -155,18 +177,6 @@
padding
:
0
;
padding
:
0
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
z-index
:
2000
;
z-index
:
2000
;
.notify
{
background-color
:
#fbf8fb
;
height
:
38px
;
align-items
:
center
;
padding-left
:
5%
;
}
.notify_img
{
width
:
20px
;
margin-right
:
5px
;
}
}
}
.el-container
{
.el-container
{
...
@@ -235,12 +245,11 @@
...
@@ -235,12 +245,11 @@
margin
:
30px
0
0
0
;
margin
:
30px
0
0
0
;
}
}
}
}
}
}
}
}
}
}
.active-area
{
.active-area
{
display
:
flex
;
display
:
flex
;
flex-flow
:
row
;
flex-flow
:
row
;
align-items
:
self-start
;
align-items
:
self-start
;
...
@@ -286,9 +295,7 @@
...
@@ -286,9 +295,7 @@
border-left
:
4px
solid
var
(
--
all_color
);
border-left
:
4px
solid
var
(
--
all_color
);
}
}
}
}
}
}
}
}
.center-area
{
.center-area
{
...
@@ -340,7 +347,6 @@
...
@@ -340,7 +347,6 @@
min-width
:
320px
;
min-width
:
320px
;
.question-area
{
.question-area
{
.question-area-title
{
.question-area-title
{
text-align
:
center
;
text-align
:
center
;
font-size
:
22px
;
font-size
:
22px
;
...
@@ -404,11 +410,11 @@
...
@@ -404,11 +410,11 @@
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
border-radius
:
4px
;
border-radius
:
4px
;
transition
:
all
.5s
;
transition
:
all
0
.5s
;
-webkit-transition
:
all
.5s
;
-webkit-transition
:
all
0
.5s
;
.el-image__error
{
.el-image__error
{
background-color
:
#D8D8D
8
;
background-color
:
#d8d8d
8
;
}
}
}
}
}
}
...
@@ -429,7 +435,7 @@
...
@@ -429,7 +435,7 @@
}
}
&
.color_3
{
&
.color_3
{
color
:
#EC808D
;
color
:
#ec808d
;
}
}
.sign-box
{
.sign-box
{
...
@@ -447,7 +453,6 @@
...
@@ -447,7 +453,6 @@
}
}
}
}
}
}
}
}
}
}
...
@@ -466,5 +471,5 @@
...
@@ -466,5 +471,5 @@
}
}
}
}
}
}
}
}
</
style
>
</
style
>
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