Commit 01a0c21c authored by wuwangwolihui's avatar wuwangwolihui

营地2.0-整合修改

parent e2bbcf67
...@@ -75,18 +75,20 @@ ...@@ -75,18 +75,20 @@
.el-message-box__title { .el-message-box__title {
color: red; color: red;
} }
.el-message-box__headerbtn {
.el-message-box__close { &:focus,
&:hover { &:hover {
color: var(--color); .el-message-box__close {
color: var(--color);
}
} }
} }
} }
.el-button { .el-button {
&:nth-child(1):hover { &:nth-child(1):hover {
color: #fff; color: var(--color);
background-color: var(--color); background-color: #ffffff;
border-color: var(--color); border-color: var(--color);
opacity: 0.6; opacity: 0.6;
} }
......
src/assets/img/logo_base.png

255 KB | W: | H:

src/assets/img/logo_base.png

2.67 KB | W: | H:

src/assets/img/logo_base.png
src/assets/img/logo_base.png
src/assets/img/logo_base.png
src/assets/img/logo_base.png
  • 2-up
  • Swipe
  • Onion skin
::v-deep .el-dialog {
.el-dialog__header {
.el-dialog__headerbtn {
&:focus,
&:hover {
.el-dialog__close {
color: var(--color);
}
}
}
}
.el-dialog__footer {
.el-button {
&:hover {
color: var(--color);
border-color: var(--color);
background-color: #ffffff;
}
}
.el-button--primary {
border-color: var(--color);
background-color: var(--color);
&:hover {
color: #ffffff;
border-color: var(--color);
background-color: var(--color);
}
}
}
}
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
<img v-if="type==1" :src="all_logo" alt=""/> <img v-if="type==1" :src="all_logo" alt=""/>
<img v-if="type==2" :src="system_logo" alt=""/> <img v-if="type==2" :src="system_logo" alt=""/>
<img v-if="type==3" :src="system_logo" alt="" @click="toRecruit"/> <img v-if="type==3" :src="system_logo" alt="" @click="toRecruit"/>
<img v-if="type==4" :src="system_logo?system_logo:all_logo" alt="" @click="toRecruit"/> <img v-if="type==4" :src="all_logo" alt=""/>
<!--<img v-if="type==4" :src="system_logo?system_logo:all_logo" alt=""/>-->
</div> </div>
<div class="right"> <div class="right">
<el-menu :default-active="$store.state.activeIndex" <el-menu :default-active="$store.state.activeIndex"
...@@ -198,10 +199,12 @@ ...@@ -198,10 +199,12 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.image img { .image{
// width: 318px; img {
height: 62px; height: 50px;
cursor: pointer; cursor: pointer;
vertical-align: top;
}
} }
.right { .right {
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
type: this.type type: this.type
}).then((res) => { }).then((res) => {
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.msg);
} }
this.activeList = res.data.data; this.activeList = res.data.data;
}) })
......
...@@ -99,226 +99,230 @@ ...@@ -99,226 +99,230 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
/* eslint-disable */ /* eslint-disable */
import { getProAndCity } from "r/index/signUp"; import {getProAndCity} from "r/index/signUp";
import { setAddress, getAddress } from "r/index/certificate"; import {setAddress, getAddress} from "r/index/certificate";
import validator from "common/validator"; import validator from "common/validator";
export default { export default {
name: "deliveryAddress", name: "deliveryAddress",
props: { props: {
dialogVisibleAddress: Boolean, dialogVisibleAddress: Boolean,
},
data() {
return {
dialogVisible: false, //确认收货地址对话框
addressRules: {
certificate_name: [
{ required: true, message: "姓名不能为空!", trigger: "blur" },
],
certificate_phone: [
{
required: true,
message: "手机号不能为空!",
trigger: "blur",
},
{ validator: validator.validatePhone, trigger: "blur" },
],
certificate_province: [
{
required: true,
message: "请选择所在省份!",
trigger: "change",
},
],
certificate_city: [
{
required: true,
message: "请选择所在城市!",
trigger: "change",
},
],
// county: [
// { required: true, message: "请选择所在区县!", trigger: "blur" },
// ],
certificate_address: [
{ required: true, message: "详细地址不能为空!", trigger: "blur" },
],
},
addressForm: {
certificate_name: "",
certificate_phone: "",
certificate_province: null,
certificate_city: null,
certificate_address: "",
},
county: "", //区县
certificate_address: "", //详细地址
selectProvince: [], //省份
CityName: {}, //根据省份筛选出所有城市的对象
selectCityJiguan: [], //籍贯城市列表
selectCitySchool: [], //就读中学-城市列表
jgProvinceCode: "", //省份id
jiguan_city: "", //城市id(和省份id拼接)
};
},
created() {
// this.getProAndCity();
},
watch: {
dialogVisibleAddress() {
this.dialogVisible = this.dialogVisibleAddress;
}, },
}, data() {
methods: { return {
// 确认,关闭弹框,修改父组件的值 dialogVisible: false, //确认收货地址对话框
cancelBtn() { addressRules: {
this.dialogVisible = false; certificate_name: [
this.$emit("closeAddressDialog", this.dialogVisible, false); {required: true, message: "姓名不能为空!", trigger: "blur"},
],
certificate_phone: [
{
required: true,
message: "手机号不能为空!",
trigger: "blur",
},
{validator: validator.validatePhone, trigger: "blur"},
],
certificate_province: [
{
required: true,
message: "请选择所在省份!",
trigger: "change",
},
],
certificate_city: [
{
required: true,
message: "请选择所在城市!",
trigger: "change",
},
],
// county: [
// { required: true, message: "请选择所在区县!", trigger: "blur" },
// ],
certificate_address: [
{required: true, message: "详细地址不能为空!", trigger: "blur"},
],
},
addressForm: {
certificate_name: "",
certificate_phone: "",
certificate_province: null,
certificate_city: null,
certificate_address: "",
},
county: "", //区县
certificate_address: "", //详细地址
selectProvince: [], //省份
CityName: {}, //根据省份筛选出所有城市的对象
selectCityJiguan: [], //籍贯城市列表
selectCitySchool: [], //就读中学-城市列表
jgProvinceCode: "", //省份id
jiguan_city: "", //城市id(和省份id拼接)
};
}, },
open() { created() {
this.getProAndCity(); // this.getProAndCity();
this.getAddress();
}, },
getAddress() { watch: {
console.log(111111) dialogVisibleAddress() {
getAddress({}).then((res) => { this.dialogVisible = this.dialogVisibleAddress;
// console.log(res, "getAddress"); },
if (res.data.code != 200) { },
return this.$message.error(res.data.message); methods: {
} // 确认,关闭弹框,修改父组件的值
console.log(res.data.info) cancelBtn() {
console.log(res.data.info.length==0 ) this.dialogVisible = false;
if (res.data.info.length==0) { this.$emit("closeAddressDialog", this.dialogVisible, false);
},
open() {
this.getProAndCity();
this.getAddress();
},
getAddress() {
console.log(111111)
getAddress({}).then((res) => {
// console.log(res, "getAddress");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
console.log(res.data.info)
console.log(res.data.info.length == 0)
if (res.data.info.length == 0) {
console.log(111111) console.log(111111)
return; return;
} else { } else {
// console.log(Object.keys(res.data.info),'info') // console.log(Object.keys(res.data.info),'info')
// if (Object.keys(res.data.info).length != 0) { // if (Object.keys(res.data.info).length != 0) {
// return this.$message.error("已保存地址"); // return this.$message.error("已保存地址");
// } // }
// this.dialogVisible = true; // this.dialogVisible = true;
this.addressForm.certificate_name = res.data.info.certificate_name; this.addressForm.certificate_name = res.data.info.certificate_name;
this.addressForm.certificate_phone = res.data.info.certificate_phone; this.addressForm.certificate_phone = res.data.info.certificate_phone;
this.addressForm.certificate_province = this.addressForm.certificate_province =
res.data.info.certificate_province; res.data.info.certificate_province;
this.addressForm.certificate_city = res.data.info.certificate_city; this.addressForm.certificate_city = res.data.info.certificate_city;
this.selectCitySchool = this.getCurrentCityLists( this.selectCitySchool = this.getCurrentCityLists(
this.addressForm.certificate_province this.addressForm.certificate_province
); );
if (res.data.info.certificate_address) { if (res.data.info.certificate_address) {
this.county = res.data.info.certificate_address.split("-")[0]; this.county = res.data.info.certificate_address.split("-")[0];
this.certificate_address = this.certificate_address =
res.data.info.certificate_address.split("-")[1]; res.data.info.certificate_address.split("-")[1];
}
} }
} });
}); },
},
// 获取省份城市 // 获取省份城市
getProAndCity() { getProAndCity() {
getProAndCity({}).then((res) => { getProAndCity({}).then((res) => {
// console.log(res, "getProAndCity"); // console.log(res, "getProAndCity");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
this.selectProvince = res.data.province_list; this.selectProvince = res.data.province_list;
this.CityName = res.data.city_list; this.CityName = res.data.city_list;
}); });
}, },
//选择籍贯省份change事件 //选择籍贯省份change事件
changeProvince(val, status) { changeProvince(val, status) {
console.log(val); console.log(val);
this.selectCitySchool = []; this.selectCitySchool = [];
this.selectCitySchool = this.getCurrentCityLists(val); //在此调用城市筛选列表 this.selectCitySchool = this.getCurrentCityLists(val); //在此调用城市筛选列表
if (!status) { if (!status) {
this.addressForm.certificate_city = ""; this.addressForm.certificate_city = "";
} }
}, },
//返回当前省份下的城市列表 //返回当前省份下的城市列表
getCurrentCityLists(val) { getCurrentCityLists(val) {
console.log(val); console.log(val);
let currentCity = []; let currentCity = [];
if ( if (
this.CityName == null || this.CityName == null ||
!this.CityName || !this.CityName ||
Object.values(this.CityName).length == 0 Object.values(this.CityName).length == 0
) { ) {
getProAndCity({}) getProAndCity({})
.then((res) => { .then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.CityName = res.data.city_list; this.CityName = res.data.city_list;
for (let key in this.CityName) { for (let key in this.CityName) {
if (this.CityName[key].parent_id == val) { if (this.CityName[key].parent_id == val) {
currentCity.push(this.CityName[key]); currentCity.push(this.CityName[key]);
}
} }
return currentCity;
} else {
this.$message.error(res.data.message);
} }
return currentCity; })
} else { .catch((err) => {
this.$message.error(res.data.message); this.$message.error(err);
});
} else {
for (let key in this.CityName) {
if (this.CityName[key].parent_id == val) {
currentCity.push(this.CityName[key]);
} }
})
.catch((err) => {
this.$message.error(err);
});
} else {
for (let key in this.CityName) {
if (this.CityName[key].parent_id == val) {
currentCity.push(this.CityName[key]);
} }
return currentCity;
} }
return currentCity; return currentCity;
} },
return currentCity; // 提交
}, setAddress() {
// 提交 this.addressForm.certificate_address =
setAddress() { this.county.toString() + "-" + this.certificate_address.toString();
this.addressForm.certificate_address = this.$refs["addressRef"].validate((valid, object) => {
this.county.toString() + "-" + this.certificate_address.toString(); console.log(valid, "valid");
this.$refs["addressRef"].validate((valid, object) => { if (!valid) {
console.log(valid, "valid"); return false;
if (!valid) { }
return false; });
}
});
setAddress(this.addressForm).then((res) => { setAddress(this.addressForm).then((res) => {
// console.log(res, "setAddress"); // console.log(res, "setAddress");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.dialogVisible = false; this.dialogVisible = false;
}); });
},
}, },
}, };
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep.el-form-item { @import "a/scss/dialog";
margin-bottom: 20px;
// item的验证红点点 ::v-deep.el-form-item {
.el-form-item__label { margin-bottom: 20px;
height: 32px;
line-height: 32px; // item的验证红点点
font-size: 12px; .el-form-item__label {
font-family: PingFang SC; height: 32px;
font-weight: 500; line-height: 32px;
color: #12141c; font-size: 12px;
} font-family: PingFang SC;
&.no_label .el-form-item__label { font-weight: 500;
width: 0 !important; color: #12141c;
} }
&.no_label .el-form-item__label::before {
content: "" !important; &.no_label .el-form-item__label {
} width: 0 !important;
}
&.no_label .el-form-item__label::before {
content: "" !important;
}
&.no_label .el-form-item__content { &.no_label .el-form-item__content {
margin-left: 0 !important; margin-left: 0 !important;
}
} }
} </style>
</style>
\ No newline at end of file
...@@ -52,11 +52,9 @@ ...@@ -52,11 +52,9 @@
methods: { methods: {
Lasting() { Lasting() {
signBack({}).then((res) => { signBack({}).then((res) => {
console.log(res, "signBack");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
// console.log(res.data.status, "signBack.status");
this.signBackStatus = res.data.status; this.signBackStatus = res.data.status;
this.$emit("getstatus", res.data.status); this.$emit("getstatus", res.data.status);
this.$message.success(res.data.message); this.$message.success(res.data.message);
...@@ -64,12 +62,8 @@ ...@@ -64,12 +62,8 @@
}, },
paying() { paying() {
this.$emit("is_next", 1); this.$emit("is_next", 1);
// console.log(is_next);
}, },
signUpInit(status_val) { signUpInit(status_val) {
// console.log(status_val, "11111");
// console.log(isNexts, "2222");
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
console.log(res, "signUpInit"); console.log(res, "signUpInit");
if (res.data.code != 200) { if (res.data.code != 200) {
...@@ -80,13 +74,11 @@ ...@@ -80,13 +74,11 @@
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
this.status = res.data.status; this.status = res.data.status;
console.log(this.status, "11111");
// 点击下一步传值给status,更新 // 点击下一步传值给status,更新
if (status_val != null) { if (status_val != null) {
this.status = status_val; this.status = status_val;
} else { } else {
this.status = res.data.status; this.status = res.data.status;
// console.log(this.status, "11111");
} }
// doubt_code,doubt_info,doubt_check。0为不填写,1为填写 // doubt_code,doubt_info,doubt_check。0为不填写,1为填写
if (this.status == 0) { if (this.status == 0) {
...@@ -101,7 +93,6 @@ ...@@ -101,7 +93,6 @@
this.status = 1; this.status = 1;
} }
} else if (this.status == 2) { } else if (this.status == 2) {
console.log(this.doubt_info, "doubt_info");
// 是否填写个人资料 // 是否填写个人资料
if (this.doubt_info == 0) { if (this.doubt_info == 0) {
this.type = "check"; this.type = "check";
...@@ -122,19 +113,13 @@ ...@@ -122,19 +113,13 @@
} else if (this.status == 4) { } else if (this.status == 4) {
this.type = "check"; this.type = "check";
this.status = 3; this.status = 3;
// console.log(this.status, "this.status ");
// console.log(this.isNexts ,'this.isNexts ')
if (this.isNexts == 1) { if (this.isNexts == 1) {
// console.log(11111);
if (res.data.examine_status == 1) { if (res.data.examine_status == 1) {
console.log(333);
this.type = "pay"; this.type = "pay";
this.status = 4; this.status = 4;
} else if (res.data.examine_status == 2) { } else if (res.data.examine_status == 2) {
this.type = "referInfo"; this.type = "referInfo";
this.status = 2; this.status = 2;
// return this.$message.error(res.data.examine_reason);
} }
} }
} else if (this.status == 5) { } else if (this.status == 5) {
...@@ -162,7 +147,6 @@ ...@@ -162,7 +147,6 @@
}; };
return obj; return obj;
}); });
const code = this.$store.state.indexIdentity;
window.localStorage.setItem("sign_up_file_" + window.localStorage.getItem("index-phone-all"), JSON.stringify(fileList)); //上传的图片 window.localStorage.setItem("sign_up_file_" + window.localStorage.getItem("index-phone-all"), JSON.stringify(fileList)); //上传的图片
} }
}); });
......
...@@ -775,7 +775,8 @@ ...@@ -775,7 +775,8 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "a/scss/btn"; @import "a/scss/btn";
@import "a/scss/dialog";
.btn { .btn {
padding-bottom: 0 !important; padding-bottom: 0 !important;
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
&emsp;&emsp;希望广大师生以营地招生简章为准,不要轻信有关宣传,以免自身利益受损。如遇类似上述情况,可发送邮件至service@campcenter.cn反映核实。特此声明! &emsp;&emsp;希望广大师生以营地招生简章为准,不要轻信有关宣传,以免自身利益受损。如遇类似上述情况,可发送邮件至service@campcenter.cn反映核实。特此声明!
</div> </div>
<div class="btn"> <div class="btn">
<el-button @click="toBackList">返回营地通知列表</el-button> <el-button type="primary" @click="toBackList">返回营地通知列表</el-button>
</div> </div>
</el-dialog> --> </el-dialog> -->
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
&emsp;&emsp;希望广大师生以营地招生简章为准,不要轻信有关宣传,以免自身利益受损。如遇类似上述情况,可发送邮件至service@campcenter.cn反映核实。特此声明! &emsp;&emsp;希望广大师生以营地招生简章为准,不要轻信有关宣传,以免自身利益受损。如遇类似上述情况,可发送邮件至service@campcenter.cn反映核实。特此声明!
</div> </div>
<div class="btn"> <div class="btn">
<el-button @click="dialogVisible = false">确 定</el-button> <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<a :href="yingdiHref">查看报名简章</a> <a :href="yingdiHref">查看报名简章</a>
</div> </div>
<div class="btn"> <div class="btn">
<el-button @click="dialogVisible = false">确 定</el-button> <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</div> </div>
</el-dialog> --> </el-dialog> -->
</div> </div>
...@@ -242,7 +242,6 @@ ...@@ -242,7 +242,6 @@
// 上一步回退 // 上一步回退
lasStep() { lasStep() {
signBack({}).then((res) => { signBack({}).then((res) => {
console.log(res, "signBack");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
...@@ -261,14 +260,13 @@ ...@@ -261,14 +260,13 @@
this.signUpInit(this.status_val); this.signUpInit(this.status_val);
}, },
// status=4,跳到审核页面;status=3时,根据doubt_check做判断 // status=4,跳到审核页面;status=3时,根据doubt_check做判断
signUpInit(status_val) { signUpInit(status_val = null) {
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
this.status = res.data.status;
// 点击下一步传值给status,更新 // 点击下一步传值给status,更新
if (status_val != null) { if (status_val && status_val != null && status_val != "") {
this.status = status_val; this.status = status_val;
} else { } else {
this.status = res.data.status; this.status = res.data.status;
...@@ -279,7 +277,6 @@ ...@@ -279,7 +277,6 @@
} else if (this.status == 1) { } else if (this.status == 1) {
// 是否填写邀请码 // 是否填写邀请码
if (this.doubt_code == 0) { if (this.doubt_code == 0) {
this.type = "referInfo"; this.type = "referInfo";
this.status = 2; this.status = 2;
} else { } else {
...@@ -344,7 +341,6 @@ ...@@ -344,7 +341,6 @@
}; };
return obj; return obj;
}); });
// let code = this.$store.state.indexIdentity;
window.localStorage.setItem("sign_up_file_" + window.localStorage.setItem("sign_up_file_" +
window.localStorage.getItem("index-phone-all") + window.localStorage.getItem("index-phone-all") +
code, code,
...@@ -402,9 +398,9 @@ ...@@ -402,9 +398,9 @@
.el-button { .el-button {
width: 120px; width: 120px;
height: 35px; height: 35px;
background: var(--color);
border-radius: 4px; border-radius: 4px;
border-color: var(--color); border-color: var(--color);
background: var(--color);
opacity: 0.8; opacity: 0.8;
line-height: 35px; line-height: 35px;
text-align: center; text-align: center;
...@@ -502,3 +498,7 @@ ...@@ -502,3 +498,7 @@
} }
} }
</style> </style>
<style lang="scss" scoped>
@import "a/scss/dialog";
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment