提交 17c37d60 作者: 翁进城

优化企业认证与加盟入驻代码

上级 4a87750f
...@@ -45,7 +45,7 @@ export default function JoinPolicy() { ...@@ -45,7 +45,7 @@ export default function JoinPolicy() {
className={styles.font1} className={styles.font1}
style={{ textAlign: "center", paddingTop: 40, paddingBottom: 30 }} style={{ textAlign: "center", paddingTop: 40, paddingBottom: 30 }}
> >
加盟入驻政策 加盟入驻福利
</div> </div>
<div <div
className={styles.font2} className={styles.font2}
......
...@@ -8,6 +8,7 @@ import Layout from "~/components/layout"; ...@@ -8,6 +8,7 @@ import Layout from "~/components/layout";
import api from "./api"; import api from "./api";
import styles from "./index.module.scss"; import styles from "./index.module.scss";
import gApi from '~/api'; import gApi from '~/api';
import Router from "next/router";
const beforeUpload = (file: RcFile) => { const beforeUpload = (file: RcFile) => {
const isJpgOrPng = file.type === "image/jpeg" || file.type === "image/png"; const isJpgOrPng = file.type === "image/jpeg" || file.type === "image/png";
...@@ -57,12 +58,14 @@ export default function Certification() { ...@@ -57,12 +58,14 @@ export default function Certification() {
.companyAuth({ .companyAuth({
...values, ...values,
licenseImg: imageUrl, licenseImg: imageUrl,
userAccountId: 1
}) })
.then((res) => { .then((res) => {
console.log('提交结果', res); console.log('提交结果', res);
if(res.result === '已通过'){ if(res.code === '200'){
window.messageApi.success(res.result); window.messageApi.success(res.result);
setTimeout(() => {
Router.push('/');
}, 1000)
} }
}); });
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论