diff --git a/api/user.js b/api/user.js index 6288c9f..8eed690 100644 --- a/api/user.js +++ b/api/user.js @@ -17,6 +17,7 @@ let userInfo = {// 用户信息模块 user_updateInviteId: "/assistant/circle/agency/agreeManualAdd",// 批量通过关注信息 user_getTeamList: "/yishoudan/agency/group/user/listByUser",// 获取登录人团队列表 user_toggleTeam: "/yishoudan/agency/group/user/changeGroup",// 切换团队 + get_supplier_info: "/agency/getCompanyAuth",// 获取认证信息 /** * 团队成员相关 @@ -33,7 +34,7 @@ let userInfo = {// 用户信息模块 order_getNewApplyNum: "/yishoudan/agency/group/user/apply/getNewApplyNum",// 获取申请加入的成员数量 order_getUserApplyList: "/yishoudan/agency/group/user/apply/userApplyList",// 获取申请加入的成员列表 order_userApplyApprove: "/yishoudan/agency/group/user/apply/approve",// 申请加入审批 - + } export default userInfo; \ No newline at end of file diff --git a/pages/person/index.vue b/pages/person/index.vue index 4f7babb..eb97e82 100644 --- a/pages/person/index.vue +++ b/pages/person/index.vue @@ -11,66 +11,6 @@ }" @clickCard="goPage('/root/person/info')" /> - - - - - 我的发单账号 - - {{ userInfo.agencyName }} - - - - - - - - - - - {{ item.num }} - - - - {{ item.name }} - - - - - - - - - - {{ item.name }} - - - - - - - - --> - + 仅项目方可见: @@ -77,6 +77,7 @@ export default { globalData: getApp().globalData, showService: false, isLogin: false, + authInfo: {}, // 认证信息 userInfo: {}, agencyInfo: {}, upNum: 0, @@ -179,7 +180,8 @@ export default { console.log("that.agencyInfo", that.agencyInfo); that.isLogin = uni.getStorageSync("apply-token") ? true : false; // if (that.userInfo.agencyStatus == 1) { - this.getData(); + this.getAuthInfo(); + // this.getData(); this.getJobList(); this.getCompanyInfo(); // } @@ -199,6 +201,14 @@ export default { created() {}, methods: { + getAuthInfo() { + let that = this; + console.log("this.agencyInfo.id", this.agencyInfo); + this.G.Get(this.api.get_supplier_info, { agencyId: this.agencyInfo.id || "" }, (res) => { + console.log("resresresresresres", res); + that.authInfo = res; + }); + }, getJobList($type = "init") { let that = this; this.G.Get(this.api.get_user_supplieraccount_data, {}, (res) => {