@@ -55,8 +57,11 @@ export default {
this.$router.push('/')
// 全局存储token
window.sessionStorage['token'] = res.data.data.data.id
+ window.sessionStorage['name'] = res.data.data.data.name
+ window.sessionStorage['party_id'] = res.data.data.data.party_id
+ window.sessionStorage['party_name'] = res.data.data.data.party_name
} else {
- this.$message.error('请求数据有问题!')
+ alert('登入失败!')
}
})
// eslint-disable-next-line handle-callback-err
@@ -80,7 +85,17 @@ export default {
justify-content: center;
align-items: center;
+ #img{
+ position: fixed;
+ left: 0%;
+ top: 0%;
+ width: 100vw;
+ height: 100vh;
+ z-index: -1;
+ }
+
.box {
+ z-index: 999;
width: 736px;
height: 489px;
background-color: rgba($color: #fff, $alpha: 0.5);
@@ -115,7 +130,7 @@ export default {
font-stretch: normal;
letter-spacing: 0px;
color: #ffffff;
-
+ cursor: pointer;
outline: none;
}
}
@@ -134,6 +149,7 @@ export default {
font-stretch: normal;
letter-spacing: 0px;
color: #666666;
+ cursor: pointer;
}
}
diff --git a/src/views/home/ApplyFor.vue b/src/views/home/ApplyFor.vue
index 5b4bdad..3e32e28 100644
--- a/src/views/home/ApplyFor.vue
+++ b/src/views/home/ApplyFor.vue
@@ -24,7 +24,7 @@
-
@@ -259,59 +263,75 @@ export default {
btn(n) {
let s = this.sub;
s = n;
- this.sub = s;
- if (this.sub == 2) {
- let sid = sessionStorage.token
- let _this = this
- // console.log(_this.type,
- // _this.reg_manage, _this.supervisor, _this.work_person, _this.flow_party_person,
- // _this.party_person, _this.is_reg_party, _this.is_reg_fun_party,
- // _this.party_name, _this.party_pname, _this.sec_name,
- // _this.sec_sex, _this.sec_job, _this.sec_age,
- // _this.sec_study, _this.near_party_person,
- // _this.major_party_person, _this.is_reg_group,
- // _this.is_choice_instructor, _this.year_money, _this.active_year
- // )
- this.$http({
- method: 'post',
- url: 'v1/user/apply',
- data: {
- sid: sid,
- type: _this.type,
- supervisor: _this.supervisor,
- reg_manage: _this.reg_manage,
- work_person: _this.work_person,
- flow_party_person: _this.flow_party_person,
- party_person: _this.party_person,
- is_reg_party: _this.is_reg_party,
- is_reg_fun_party: _this.is_reg_fun_party,
- party_name: _this.party_name,
- party_pname: _this.party_pname,
- sec_name: _this.sec_name,
- sec_sex: _this.sec_sex,
- sec_job: _this.sec_job,
- sec_age: _this.sec_age,
- sec_study: _this.sec_study,
- near_party_person: _this.near_party_person,
- major_party_person: _this.major_party_person,
- is_reg_group: _this.is_reg_group,
- is_choice_instructor: _this.is_choice_instructor,
- year_money: _this.year_money,
- active_year: _this.active_year
+ if (s == 1) {
+ if (this.type == '' || this.flow_party_person == '' || this.party_person == '' || this.work_person == '' ||
+ this.party_name == '' || this.is_reg_party == '' || this.is_reg_fun_party == '' ||
+ this.reg_manage == '' || this.supervisor == '' || this.party_pname == ''
+ ) {
+ alert('以上内容不可为空!')
+ } else {
+ if(this.flow_party_person < 0 || this.party_person < 0 || this.work_person < 0){
+ alert('不能出现负数呦!')
+ }else{
+ this.sub = s;
}
- }).then(res => {
- console.log(res);
-
- // if (res.code === 200) {
- // console.log(res.data)
- // } else {
- // _this.$message.error('请求数据有问题!')
- // }
- })
- // eslint-disable-next-line handle-callback-err
- .catch(err => {
- console.log(err)
+ }
+ }
+ if (s == 2) {
+ if (this.sec_name == '' || this.sec_sex == '' || this.sec_age == '' || this.sec_job == '' ||
+ this.sec_study == '' || this.near_party_person == '' || this.is_reg_group == '' ||
+ this.major_party_person == '' || this.is_choice_instructor == '' || this.year_money == '' ||
+ this.active_year == ''
+ ) {
+ alert('以上内容不可为空!')
+ } else {
+ let sid = sessionStorage.token
+ let _this = this
+ this.$http({
+ method: 'post',
+ url: 'v1/user/apply',
+ data: {
+ sid: sid,
+ type: _this.type,
+ supervisor: _this.supervisor,
+ reg_manage: _this.reg_manage,
+ work_person: _this.work_person,
+ flow_party_person: _this.flow_party_person,
+ party_person: _this.party_person,
+ is_reg_party: _this.is_reg_party,
+ is_reg_fun_party: _this.is_reg_fun_party,
+ party_name: _this.party_name,
+ party_pname: _this.party_pname,
+ sec_name: _this.sec_name,
+ sec_sex: _this.sec_sex,
+ sec_job: _this.sec_job,
+ sec_age: _this.sec_age,
+ sec_study: _this.sec_study,
+ near_party_person: _this.near_party_person,
+ major_party_person: _this.major_party_person,
+ is_reg_group: _this.is_reg_group,
+ is_choice_instructor: _this.is_choice_instructor,
+ year_money: _this.year_money,
+ active_year: _this.active_year
+ }
+ }).then(res => {
+ if (res.data.code === 200) {
+ if (res.data.data.code !== 200) {
+ alert(res.data.data.msg)
+ return
+ }
+ _this.sub = s
+ } else {
+ _this.$message.error('请求数据有问题!')
+ }
})
+ // eslint-disable-next-line handle-callback-err
+ .catch(err => {
+ console.log(err)
+ })
+ }
+
+
}
},
getData() {
@@ -334,6 +354,7 @@ export default {
}
},
created() {
+ this.name = sessionStorage.name
this.getData()
},
mounted() { }
@@ -400,6 +421,10 @@ export default {
margin-bottom: 58px;
}
+ input[type="submit"] {
+ outline: none;
+ }
+
label input[type="radio"] {
width: 17px;
height: 17px;
diff --git a/src/views/home/HomePage.vue b/src/views/home/HomePage.vue
index 959df04..110e138 100644
--- a/src/views/home/HomePage.vue
+++ b/src/views/home/HomePage.vue
@@ -9,7 +9,7 @@
-
+
{{banner.title}}
@@ -26,7 +26,7 @@
@@ -53,7 +53,7 @@
区域化党建
- 更多>>
+ 更多>>
@@ -67,13 +67,14 @@
党组织信息
-
更多>>
+
更多>>