1

parent 767df028
...@@ -4,7 +4,7 @@ export const testLogin = params => instance.post("/user/smsLogin", params); ...@@ -4,7 +4,7 @@ export const testLogin = params => instance.post("/user/smsLogin", params);
export const getSmsCode = params => instance.postForm("/user/getSmsCode", params); export const getSmsCode = params => instance.postForm("/user/getSmsCode", params);
// 新华登录 // 新华登录
export const xinhuaMpLogin = params => instance.post("/user/appUser/xinhua/mpLogin", params); export const xinhuaMpLogin = params => instance.post("/user/xinhua/mpLogin", params);
// B端-获取登录用户 // B端-获取登录用户
export const getLoginUserApi = params => instance.post("/b/user/getLoginUser", params); export const getLoginUserApi = params => instance.post("/b/user/getLoginUser", params);
......
...@@ -109,7 +109,7 @@ const login = () => { ...@@ -109,7 +109,7 @@ const login = () => {
background-color: #1f86ff; background-color: #1f86ff;
} }
.unit-name { .unit-name {
margin-top: 240rpx; margin-top: 200rpx;
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
color: #1b2026; color: #1b2026;
......
...@@ -74,6 +74,7 @@ import { ref } from "vue"; ...@@ -74,6 +74,7 @@ import { ref } from "vue";
import jobSeekersCard from "@/components/jobSeekersCard/index.vue"; import jobSeekersCard from "@/components/jobSeekersCard/index.vue";
import { getJobListApi, getApplicationListApi, getRecommendedResumeListApi, getPositionListApi } from "@/api/postion"; import { getJobListApi, getApplicationListApi, getRecommendedResumeListApi, getPositionListApi } from "@/api/postion";
import { getTreeListApi } from "@/api/common"; import { getTreeListApi } from "@/api/common";
import { getLoginUserApi } from "@/api/user";
import { getEumData, getEnumText } from "@/utils/utils"; import { getEumData, getEnumText } from "@/utils/utils";
import { useAsync } from "@/hooks/useAsync"; import { useAsync } from "@/hooks/useAsync";
import _ from "lodash"; import _ from "lodash";
...@@ -306,7 +307,15 @@ const filterConfirm = data => { ...@@ -306,7 +307,15 @@ const filterConfirm = data => {
resetPageParams(); resetPageParams();
getResumeRecommendList(); getResumeRecommendList();
}; };
/* 获取用户信息 */
const getUserInfo = async () => {
const userRes = await getLoginUserApi();
// if (!userRes.companyName) {
// xma.navigateTo({
// url: `/pages/user/businessLicense/fillIn?steps=3`
// });
// }
};
onLoad(() => { onLoad(() => {
xma.xh.getSystemInfo({ xma.xh.getSystemInfo({
success(res) { success(res) {
...@@ -318,6 +327,7 @@ onLoad(() => { ...@@ -318,6 +327,7 @@ onLoad(() => {
contentHeight.value = (res.top + res.bottom) / 2 + 25 + "px"; contentHeight.value = (res.top + res.bottom) / 2 + 25 + "px";
} }
}); });
getUserInfo();
}); });
</script> </script>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<!-- 职位描述 --> <!-- 职位描述 -->
<form-row> <form-row>
<form-item title="职位描述" :border="false" icon=""> <form-item title="职位描述" :border="false" icon="">
<textarea v-model="item.positionDesc" placeholder="请输入你的职位描述"></textarea> <textarea maxlength="800" v-model="item.positionDesc" placeholder="请输入你的职位描述"></textarea>
</form-item> </form-item>
</form-row> </form-row>
<view class="transverse"> <view class="transverse">
......
...@@ -27,20 +27,25 @@ ...@@ -27,20 +27,25 @@
<view class="item"> <view class="item">
<view class="label"> 是否人资机构 </view> <view class="label"> 是否人资机构 </view>
<view class="content"> <view class="content">
<wd-radio-group v-model="pinias.formData.licenseValidityPeriod" shape="dot" inline> <wd-radio-group v-model="pinias.formData.humanResourcesLicensePath" shape="dot" inline>
<wd-radio value="true"></wd-radio> <wd-radio :value="pinias.formData.humanResourcesLicensePath"></wd-radio>
<wd-radio value=""></wd-radio> <wd-radio value=""></wd-radio>
</wd-radio-group> </wd-radio-group>
</view> </view>
</view> </view>
<view class="image-upload"> <view class="image-upload">
<image <image
v-if="pinias.formData.licenseValidityPeriod" v-if="pinias.formData.humanResourcesLicensePath"
:src="evn.APP_IMAGE_BASE_API + pinias.formData.humanResourcesLicensePath"
mode=""
/>
<image
v-else
@click="chooseImage('album')" @click="chooseImage('album')"
src="@/static/image/businessLicense/businessLicenseUpload2.png" src="@/static/image/businessLicense/businessLicenseUpload2.png"
mode="" mode=""
/> />
<image v-else :src="evn.APP_IMAGE_BASE_API + pinias.formData.licenseValidityPeriod" mode="" />
</view> </view>
<!-- <view class="item"> <!-- <view class="item">
<view class="label"> 有效期 </view> <view class="label"> 有效期 </view>
...@@ -100,7 +105,11 @@ ...@@ -100,7 +105,11 @@
</view> </view>
<view <view
class="btn flex-between" class="btn flex-between"
@tap="navigateTo(`/pages/user/businessLicense/appeal?name=${companyName}&companyCreditCode=${companyCreditCode}`)" @tap="
navigateTo(
`/pages/user/businessLicense/appeal?name=${companyName}&companyCreditCode=${companyCreditCode}`
)
"
> >
<view class="text"> <view class="text">
<view class="t1">申述资质被冒用</view> <view class="t1">申述资质被冒用</view>
...@@ -118,6 +127,7 @@ ...@@ -118,6 +127,7 @@
<script setup> <script setup>
import evn from "@/utils/config"; import evn from "@/utils/config";
import { useDefineStore } from "./store"; import { useDefineStore } from "./store";
import { uploadFiles } from "@/utils/fileUpload";
import { ref } from "vue"; import { ref } from "vue";
import { registerCompanyApi, companyCheck } from "@/api/user"; import { registerCompanyApi, companyCheck } from "@/api/user";
...@@ -140,7 +150,7 @@ const chooseImage = sourceType => { ...@@ -140,7 +150,7 @@ const chooseImage = sourceType => {
count: 1, count: 1,
success: async ({ tempFiles }) => { success: async ({ tempFiles }) => {
const res = await uploadFiles(tempFiles); const res = await uploadFiles(tempFiles);
pinias.setFormDataKey("licenseValidityPeriod", res[0].key); pinias.setFormDataKey("humanResourcesLicensePath", res[0].key);
} }
}); });
}; };
...@@ -165,7 +175,7 @@ const submit = () => { ...@@ -165,7 +175,7 @@ const submit = () => {
} else { } else {
show.value = true; show.value = true;
// id.value = company.data.id; // id.value = company.data.id;
companyCreditCode.value = creditCode companyCreditCode.value = creditCode;
companyName.value = name; companyName.value = name;
} }
} }
......
...@@ -201,6 +201,11 @@ const getUserInfo = async () => { ...@@ -201,6 +201,11 @@ const getUserInfo = async () => {
name.value = userRes.data.companyName; name.value = userRes.data.companyName;
id.value = userRes.data.companyId; id.value = userRes.data.companyId;
} }
// if (!userRes.companyName) {
// xma.navigateTo({
// url: `/pages/user/businessLicense/fillIn?steps=3`
// });
// }
const { status } = userRes.data; const { status } = userRes.data;
switch (status) { switch (status) {
case 0: case 0:
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<formItem title="企业名称"> <formItem title="企业名称">
<input <input
type="text" type="text"
:disabled="[1].includes(companyInfo.status)" :disabled="[1, 0].includes(companyInfo.status)"
v-model="params.companyName" v-model="params.companyName"
placeholder="请输入企业名称" placeholder="请输入企业名称"
/> />
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
@confirm="handleConfirmCity" @confirm="handleConfirmCity"
use-default-slot use-default-slot
> >
<p :class="{ placeholder: !params.location }" class="text-single"> <p :class="{ placeholder: !params.location }" style="margin-left: 20rpx">
{{ params.location || "请选择公司所在地" }} {{ params.location || "请选择公司所在地" }}
</p> </p>
</wd-col-picker> </wd-col-picker>
...@@ -309,7 +309,7 @@ const validateForm = (formData, requiredFields) => { ...@@ -309,7 +309,7 @@ const validateForm = (formData, requiredFields) => {
} }
textarea { textarea {
box-sizing: border-box; box-sizing: border-box;
width: 343px; width: 100%;
height: 136px; height: 136px;
padding: 16px; padding: 16px;
margin-top: 8px; margin-top: 8px;
......
import axios from "axios"; import axios from "axios";
import { getToken,removeToken } from "@/utils/token"; import { getToken,removeToken } from "@/utils/token";
// const baseURL = "https://lygsh-api.wjzpgz.com/"; const baseURL = "https://lygsh-api.wjzpgz.com/";
const baseURL = "http://192.168.11.48:8080/"; // const baseURL = "http://192.168.11.48:8080/";
// 创建一个 axios 实例 // 创建一个 axios 实例
const instance = axios.create({ const instance = axios.create({
baseURL, // 设置基础 URL baseURL, // 设置基础 URL
......
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