Commit a82b4252 authored by lvweichao's avatar lvweichao

Merge branch 'dev' of https://git.yidian-inc.com:8021/bp/op-web-service into dev

parents 3a5861bb 413b17ad
...@@ -206,6 +206,7 @@ ...@@ -206,6 +206,7 @@
<script> <script>
import { postBusiness, opCommit } from "@/service/enterprise"; import { postBusiness, opCommit } from "@/service/enterprise";
import { API_INTERNAL_URI } from "../../../../server/config";
export default { export default {
props: { props: {
enterpriseId: { type: Number }, enterpriseId: { type: Number },
...@@ -272,14 +273,6 @@ export default { ...@@ -272,14 +273,6 @@ export default {
} }
callback(); callback();
}; };
// 区分测试或正常环境域名
const API_INTERNAL_URI = {
development: "http://bp-dev.ini.yidian-inc.com",
test: "http://bp-test.ini.yidian-inc.com",
production: "http://bp-test.go2yd.com"
};
const env = process.env.NODE_ENV || "development";
const API_INTERNAL_URL = API_INTERNAL_URI[env];
return { return {
// 表单输入项 // 表单输入项
establishForm: { establishForm: {
...@@ -344,7 +337,7 @@ export default { ...@@ -344,7 +337,7 @@ export default {
}, },
// 域名选择 // 域名选择
domainName: `${API_INTERNAL_URL}/merchant/lifeinner/upload` domainName: `${API_INTERNAL_URI}/merchant/lifeinner/upload`
}; };
}, },
...@@ -419,7 +412,6 @@ export default { ...@@ -419,7 +412,6 @@ export default {
user_id user_id
} = this.establishForm; } = this.establishForm;
/** /**
* 第一步 企业信息提交 * 第一步 企业信息提交
* @param enterpriseQuery * @param enterpriseQuery
...@@ -435,13 +427,15 @@ export default { ...@@ -435,13 +427,15 @@ export default {
}; };
const res = await postBusiness(enterpriseQuery); const res = await postBusiness(enterpriseQuery);
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
this.establishForm.enterprise_id = res.result.enterprise_auth_record_id this.establishForm.enterprise_id = res.result.enterprise_auth_record_id;
/** /**
* 第二步 法人(经营者信息提交) * 第二步 法人(经营者信息提交)
*/ */
// 法人信息提交参数 // 法人信息提交参数
const legalQuery = { const legalQuery = {
record_id: this.enterpriseId ? this.enterpriseId : this.establishForm.enterprise_id, record_id: this.enterpriseId
? this.enterpriseId
: this.establishForm.enterprise_id,
front_img, front_img,
bak_img, bak_img,
front_completeness: 0, front_completeness: 0,
......
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