|
|
|
@ -74,17 +74,15 @@ export function getBaseInfo(data = {}, refresh = false) { |
|
|
|
if (!refresh && baseInfo) { |
|
|
|
resolve(baseInfo) |
|
|
|
} else { |
|
|
|
http |
|
|
|
.get({ url: '/yyt-uec/get/base-info', data }, { hideLoading: true }) |
|
|
|
.then((res) => { |
|
|
|
if (res) { |
|
|
|
baseInfo = res |
|
|
|
syncStore(res) |
|
|
|
resolve(res) |
|
|
|
} else { |
|
|
|
resolve(null) |
|
|
|
} |
|
|
|
}) |
|
|
|
http.get({ url: '/yyt-uec/get/base-info', data }, { hideLoading: true }).then((res) => { |
|
|
|
if (res) { |
|
|
|
baseInfo = res |
|
|
|
syncStore(res) |
|
|
|
resolve(res) |
|
|
|
} else { |
|
|
|
resolve(null) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
@ -95,9 +93,7 @@ export function getBaseInfo(data = {}, refresh = false) { |
|
|
|
*/ |
|
|
|
export function getVerifyUrl(data = {}) { |
|
|
|
return http.post({ |
|
|
|
url: |
|
|
|
'/yyt-uec/get/fdd-enterprise-verify-url?enterpriseId=' + |
|
|
|
data.enterpriseId, |
|
|
|
url: '/yyt-uec/get/fdd-enterprise-verify-url?enterpriseId=' + data.enterpriseId, |
|
|
|
data |
|
|
|
}) |
|
|
|
} |
|
|
|
@ -108,9 +104,7 @@ export function getVerifyUrl(data = {}) { |
|
|
|
*/ |
|
|
|
export function getGuaranteeContract(data = {}) { |
|
|
|
return http.post({ |
|
|
|
url: |
|
|
|
'/yyt-uec/create/supplier/guarantee-contract?mallSupplierId=' + |
|
|
|
data.mallSupplierId, |
|
|
|
url: '/yyt-uec/create/supplier/guarantee-contract?mallSupplierId=' + data.mallSupplierId, |
|
|
|
data |
|
|
|
}) |
|
|
|
} |
|
|
|
|