提交 d69668b1 编写于 作者: zhongyao.qiao's avatar zhongyao.qiao

feat 入口查询用户信息

上级 3c805ce1
...@@ -72,3 +72,16 @@ export const taiBaoUserInfo = (externalOrderNo) => { ...@@ -72,3 +72,16 @@ export const taiBaoUserInfo = (externalOrderNo) => {
withCredentials: true, withCredentials: true,
}); });
}; };
/**
* 查询用户信息(通用)
* @returns
*/
export const queryUserInfo = (data) => {
return request({
url: '/tis/insurance/common/queryUserInfo',
method: 'post',
data,
withCredentials: true,
});
};
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
import { getBanner, getCardTypes } from '@/api/entitlement'; import { getBanner, getCardTypes } from '@/api/entitlement';
import { import {
createOrderSzV2, createOrderSzV2,
taiBaoUserInfo, queryUserInfo,
uploadPointData, uploadPointData,
} from '@/api/question'; } from '@/api/question';
import { isWeixin } from '@/utils/index'; import { isWeixin } from '@/utils/index';
...@@ -335,12 +335,9 @@ export default { ...@@ -335,12 +335,9 @@ export default {
// this.$loading.show(); // this.$loading.show();
this.getBanner(7, rightsNo || projectEquityNo); this.getBanner(7, rightsNo || projectEquityNo);
this.loadCardTypes(); this.loadCardTypes();
if (
this.projectEquityNo === 'TB202309151004000001' && this.getUserInfo();
this.externalOrderNo
) {
this.getTaiBaoUserInfo();
}
this.initInsurancePath(); this.initInsurancePath();
this.$sendBuriedData( this.$sendBuriedData(
{ {
...@@ -357,10 +354,15 @@ export default { ...@@ -357,10 +354,15 @@ export default {
); );
}, },
methods: { methods: {
getTaiBaoUserInfo() { getUserInfo() {
taiBaoUserInfo(this.externalOrderNo) const params = {
projectEquityNo: this.projectEquityNo,
externalOrderNo: this.externalOrderNo,
rightsNo: this.rightsNo,
};
queryUserInfo(params)
.then((res) => { .then((res) => {
console.log('taibao userinfo', res); console.log('userinfo =>', res);
if (!res?.data) return; if (!res?.data) return;
const { data } = res; const { data } = res;
// const data = { // const data = {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册