Commit e288dd4a authored by 杨梦雪's avatar 杨梦雪

修改

parent dbc54e23
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
}, },
]; ];
let arr = []; let arr = [];
console.log(newArr, "newArr"); // console.log(newArr, "newArr");
for (let i = 0; i < newArr.length; i++) { for (let i = 0; i < newArr.length; i++) {
const item = newArr[i]; const item = newArr[i];
if ( if (
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
}, },
watch: { watch: {
statusNum(val) { statusNum(val) {
console.log(val, "statusNum"); // console.log(val, "statusNum");
this.status = val; this.status = val;
}, },
}, },
......
...@@ -79,7 +79,6 @@ export default { ...@@ -79,7 +79,6 @@ export default {
this.isShowqr = false; this.isShowqr = false;
return; return;
} }
this.isShowqr = true; this.isShowqr = true;
this.createQrCode(res.code_url); this.createQrCode(res.code_url);
//初始化 websocket 链接 //初始化 websocket 链接
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div> <div>
4、对于多次缴费的考生,除生效一笔之外其他重复支付的得用会在缴费结束阶段统一退款。 4、对于多次缴费的考生,除生效一笔之外其他重复支付的得用会在缴费结束阶段统一退款。
</div> </div>
<div>5、网上缴费如有问题,请致电项目组工作人员:XXX-XXXXXXXXX。</div> <!-- <div>5、网上缴费如有问题,请致电项目组工作人员:XXX-XXXXXXXXX。</div> -->
</div> </div>
</div> </div>
<!-- 支付扫码框 --> <!-- 支付扫码框 -->
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
/* eslint-disable */ /* eslint-disable */
import ConfirmSignUp from "c/index/SignUp/ConfirmSignUp"; import ConfirmSignUp from "c/index/SignUp/ConfirmSignUp";
import { getAccount } from "r/index/signUp"; import { getAccount } from "r/index/signUp";
import { parseTime } from "common/utils";
import { signUpInit } from "r/index/signUp"; import { signUpInit } from "r/index/signUp";
import { getWxConfig } from "r/index/pay";
export default { export default {
name: "Paying", name: "Paying",
...@@ -78,6 +78,9 @@ export default { ...@@ -78,6 +78,9 @@ export default {
personalInfo: {}, personalInfo: {},
camp_name: "", //营地名称 camp_name: "", //营地名称
has_amount: "", //支付金额 has_amount: "", //支付金额
status: "", //状态
status_wx: "", //状态
type: "", //状态
}; };
}, },
created() { created() {
...@@ -94,23 +97,52 @@ export default { ...@@ -94,23 +97,52 @@ export default {
clearInterval(this.timer); clearInterval(this.timer);
} }
}, },
paying() { paying() {
getWxConfig({
pay_type: 1,
}).then((res) => {
console.log(res, "getWxConfig");
// this.status_wx = res.data.status;
this.$emit("getstatus", res.data.status);
console.log(this.status_wx, " this.status_wx");
this.signUpInit(this.status_wx);
});
// return;
},
signUpInit(status_wx) {
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
console.log(res, "signUpInit"); console.log(res, "signUpInit");
if (res.data.code != 200) { if (res.data.code != 200) {
if (res.data.code == 400001) {
this.status = 6;
this.type = "success";
}
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, "this.status");
// 点击下一步传值给status,更新 // 点击下一步传值给status,更新
if (this.status == 5) { if (status_wx) {
this.type = "pay"; this.status = status_wx;
console.log(this.status, "status_wx");
} else {
this.status = res.data.status;
// console.log(this.status, "11111");
}
// return;
// 点击下一步传值给status,更新
if (this.status == 4) {
this.type = "check";
this.status = 3;
if (this.isNexts == 1) {
if (res.data.examine_status == 1) {
console.log(333);
this.type = "pay";
this.status = 4;
} else if (res.data.examine_status == 2) {
this.type = "referInfo";
this.status = 2;
}
}
this.confirmSignUpDialogFu = true; this.confirmSignUpDialogFu = true;
} else if (this.status == 5) {
this.type = "pay";
} else if (this.status == 6) { } else if (this.status == 6) {
this.type = "success"; this.type = "success";
} }
......
...@@ -284,7 +284,9 @@ ...@@ -284,7 +284,9 @@
prop="backgroundPicture" prop="backgroundPicture"
class="bgPic" class="bgPic"
> >
<div class="bgInfo">1、资料包括:XXXXXXXXXXXXX;</div> <div class="bgInfo">
1、资料包括:近期校级考试的成绩单、在校期间获得证书等相关证明;
</div>
<div class="bgInfo"> <div class="bgInfo">
2、请上传1-10张图片,支持JPG、JPEG、PNG等格式,每张图片不超过10M 2、请上传1-10张图片,支持JPG、JPEG、PNG等格式,每张图片不超过10M
</div> </div>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="btn"> <div class="btn">
<el-button @click="handleDownload">下载录取通知书</el-button> <el-button @click="handleDownload">下载入营通知书</el-button>
</div> </div>
</div> </div>
......
...@@ -28,7 +28,7 @@ import Pass from "c/index/SignUp/pass"; ...@@ -28,7 +28,7 @@ import Pass from "c/index/SignUp/pass";
import Paying from "c/index/SignUp/paying"; import Paying from "c/index/SignUp/paying";
import Success from "c/index/SignUp/success"; import Success from "c/index/SignUp/success";
import { signUpInit } from "r/index/signUp"; import { signUpInit } from "r/index/signUp";
import Cookie from "js-cookie"; import { getWxConfig } from "r/index/pay";
export default { export default {
name: "signUp", name: "signUp",
...@@ -58,6 +58,12 @@ export default { ...@@ -58,6 +58,12 @@ export default {
// console.log(this.$route, "router"); // console.log(this.$route, "router");
this.statuss(); this.statuss();
// this.signUpInit(); // this.signUpInit();
// getWxConfig({
// pay_type: 1,
// }).then((res) => {
// console.log(res);
// this.status = res.data.status;
// });
}, },
watch: { watch: {
...@@ -72,13 +78,13 @@ export default { ...@@ -72,13 +78,13 @@ export default {
deep: true, deep: true,
}, },
status(val) { status(val) {
console.log(val, "status"); // console.log(val, "status");
}, },
}, },
methods: { methods: {
is_nextevent(val) { is_nextevent(val) {
this.isNexts = val; this.isNexts = val;
console.log(val, "isNexts"); // console.log(val, "isNexts");
// this.signUpInit( this.isNexts ); // this.signUpInit( this.isNexts );
this.signUpInit(this.status_val); this.signUpInit(this.status_val);
}, },
...@@ -90,17 +96,15 @@ export default { ...@@ -90,17 +96,15 @@ export default {
}, },
// status=4,跳到审核页面;status=3时,根据doubt_check做判断 // status=4,跳到审核页面;status=3时,根据doubt_check做判断
signUpInit(status_val) { signUpInit(status_val) {
console.log(11111);
// console.log(status_val, "11111"); // console.log(status_val, "11111");
// console.log(isNexts, "2222"); // console.log(isNexts, "2222");
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
// console.log(22222); // console.log(res, "signUpInit");
console.log(res, "signUpInit");
if (res.data.code != 200) { if (res.data.code != 200) {
// if (res.data.code == 400001) { // if (res.data.code == 400001) {
// this.status = 6; // this.status = 6;
// this.type = "success"; // this.type = "success";
// } // }
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
this.status = res.data.status; this.status = res.data.status;
...@@ -170,12 +174,18 @@ export default { ...@@ -170,12 +174,18 @@ export default {
// console.log(res.data.examine_status, "res.data.examine_status"); // console.log(res.data.examine_status, "res.data.examine_status");
//订单支付金额 //订单支付金额
let code =this.$store.state.indexIdentity let code = this.$store.state.indexIdentity;
window.localStorage.setItem("has_amount"+code, res.data.has_amount); window.localStorage.setItem("has_amount" + code, res.data.has_amount);
window.localStorage.setItem("campsite_id"+code, res.data.campsite_id); window.localStorage.setItem("campsite_id" + code, res.data.campsite_id);
window.localStorage.setItem("order_no"+code, res.data.order_no); window.localStorage.setItem("order_no" + code, res.data.order_no);
window.localStorage.setItem("examine_status"+code, res.data.examine_status); //返回错误原因 window.localStorage.setItem(
window.localStorage.setItem("examine_reason"+code, res.data.examine_reason); //资料审核状态 "examine_status" + code,
res.data.examine_status
); //返回错误原因
window.localStorage.setItem(
"examine_reason" + code,
res.data.examine_reason
); //资料审核状态
// window.localStorage.setItem("achievement_path", res.data.achievement_path); //上传的图片 // window.localStorage.setItem("achievement_path", res.data.achievement_path); //上传的图片
const aPath = res.data.achievement_path; const aPath = res.data.achievement_path;
if (aPath) { if (aPath) {
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
</el-form-item> </el-form-item>
<div class="box"> <div class="box">
<div class="fr" @click="register()">还没有账号?立即注册</div> <div class="fr" @click="register()">还没有账号?立即注册</div>
<div class="fc">忘记密码请联系管理员邮箱:ydhdservice@163.com</div>
<!-- <div class="fl" @click="forgetPwd()">忘记密码?</div> --> <!-- <div class="fl" @click="forgetPwd()">忘记密码?</div> -->
</div> </div>
</el-form> </el-form>
...@@ -164,10 +165,10 @@ export default { ...@@ -164,10 +165,10 @@ export default {
window.localStorage.setItem("index-token" + code, res.data.token); window.localStorage.setItem("index-token" + code, res.data.token);
window.localStorage.setItem("phone" + code, this.loginForm.phone); window.localStorage.setItem("phone" + code, this.loginForm.phone);
// 报名信息 // 报名信息
window.localStorage.setItem("camp_name"+code, res.data.cam.name); window.localStorage.setItem("camp_name" + code, res.data.cam.name);
//获取主题色 //获取主题色
window.localStorage.setItem( window.localStorage.setItem(
"system_color"+code, "system_color" + code,
res.data.cam.system_color res.data.cam.system_color
); );
...@@ -256,9 +257,23 @@ export default { ...@@ -256,9 +257,23 @@ export default {
} }
.box { .box {
height: 18px; height: 18px;
display: block; // display: block;
.fl { display: flex;
float: right; flex-direction: column;
// .fl {
// float: right;
// height: 18px;
// line-height: 18px;
// color: #999999;
// margin-top: -10px;
// cursor: pointer;
// &:hover {
// color: #563279;
// text-decoration: underline;
// }
// }
.fr {
float: left;
height: 18px; height: 18px;
line-height: 18px; line-height: 18px;
color: #999999; color: #999999;
...@@ -269,17 +284,18 @@ export default { ...@@ -269,17 +284,18 @@ export default {
text-decoration: underline; text-decoration: underline;
} }
} }
.fr { .fc{
float: left; font-size: 4px;
height: 18px; float: right;
// height: 18px;
line-height: 18px; line-height: 18px;
color: #999999; color: #999999;
margin-top: -10px; margin-top: 10px;
cursor: pointer; // cursor: pointer;
&:hover { // &:hover {
color: #563279; // color: #563279;
text-decoration: underline; // text-decoration: underline;
} // }
} }
} }
} }
......
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