You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
534 B
JavaScript
18 lines
534 B
JavaScript
9 months ago
|
import { fetchJSON, postForm } from '@/utils/request';
|
||
|
import { API_HOST } from '@/config';
|
||
|
|
||
|
/**
|
||
|
* 获取顾问签名
|
||
|
*/
|
||
|
export const salesSignature = async (opisn, lgc = 1) => {
|
||
|
try {
|
||
|
const html = await fetchJSON(`http://202.103.68.35/CustomerManager/english/mailsign.asp`, { WL_SN: opisn, LGC: lgc });
|
||
|
const parser = new DOMParser();
|
||
|
const doc = parser.parseFromString(html, 'text/html');
|
||
|
const bodyContent = doc.body.innerHTML;
|
||
|
return bodyContent;
|
||
|
} catch (error) {
|
||
|
return '';
|
||
|
}
|
||
|
};
|