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

111

parent 6c202cdb
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<script> <script>
/* eslint-disable */ /* eslint-disable */
import { getCam } from "r/index/login"; import { signUpInit } from "r/index/signUp";
export default { export default {
name: "Sucess", name: "Sucess",
...@@ -34,14 +34,13 @@ export default { ...@@ -34,14 +34,13 @@ export default {
created() {}, created() {},
methods: { methods: {
handleDownload() { handleDownload() {
getCam(this.$store.state.indexIdentity).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.$message.success(res.data.message);
if (res.data.is_dowload == 1) { if (res.data.is_dowload == 1) {
window.location.href = res.data.pdf_address; window.location.href = res.data.dowload_url;
}else{ } else {
return this.$message.error("营地下载证书还未开始"); return this.$message.error("营地下载证书还未开始");
} }
}); });
......
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