1

parent f34edca1
<template>
<div class="page">
<NavBar :showIcon="false" :showTitle="true" title="登录"></NavBar>
<!-- pages/login/login.wxml -->
<view class="login-page">
<!-- <view class="login-page">
<view></view>
<view class="title">
<text class="t1">乐业观山湖</text>
......@@ -10,6 +9,17 @@
</view>
<view class="unit-name">观山湖区人力资源和社会保障局</view>
<button class="login-btn" @click="login">授权手机号登录</button>
</view> -->
<view class="login-page">
<NavBar :showIcon="false" :showTitle="true" title="登录"></NavBar>
<view class="title">
<text class="t1">乐业观山湖</text>
<text class="t2">安全、便捷的就业、创业服务平台</text>
</view>
<view class="box">
<text class="box-text">观山湖区人力资源和社会保障局</text>
<button class="login-btn" @click="login">授权手机号登录</button>
</view>
</view>
<!-- {{ res }} -->
</div>
......@@ -63,16 +73,13 @@ const login = () => {
.page {
height: 100%;
background-color: #eaf5ff;
}
.login-page {
height: 100%;
background-image: url("https://lygsh-image.wjzpgz.com/login/loginBG.png");
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: auto 100%;
}
.login-page {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.student {
font-size: 36rpx;
font-weight: 600;
......@@ -84,6 +91,10 @@ const login = () => {
flex-direction: column;
margin-top: 176rpx;
text-align: center;
img {
width: 368rpx;
margin: 0 auto;
}
.t1 {
font-size: 80rpx;
font-weight: normal;
......@@ -92,27 +103,30 @@ const login = () => {
}
.t2 {
font-size: 24rpx;
font-weight: 500;
color: #1b2026;
margin-top: 28rpx;
}
}
.box {
position: fixed;
bottom: 336rpx;
left: 0;
text-align: center;
width: 100%;
.box-text {
font-size: 28rpx;
color: #0e2761;
font-family: 苹方-;
}
.login-btn {
// position: fixed;
// bottom: 336rpx;
// left: 50%;
width: 640rpx;
height: 96rpx;
font-size: 34rpx;
margin-top: 100rpx;
line-height: 96rpx;
color: #ffffff;
background-color: #1f86ff;
margin-top: 60rpx;
}
.unit-name {
margin-top: 421 * 2rpx;
font-size: 24rpx;
font-weight: 500;
color: #1b2026;
}
}
</style>
......@@ -124,7 +124,7 @@
>
</view>
</form-item>
<form-item title="身份" icon="">
<form-item title="人员类别" icon="">
<wd-picker
:columns="identityPostion"
value-key="code"
......@@ -135,7 +135,7 @@
>
<view :class="`inner flex-between ${item.identityText ? '' : 'placeholder'}`">
<view class="flex-align-center">
{{ item.identityText || "请选择身份" }}
{{ item.identityText || "请选择人员类别" }}
</view>
</view>
</wd-picker>
......@@ -480,13 +480,14 @@ function deleteItem(index) {
jobForm.value.splice(index, 1);
}
const initageColumns = () => {
const temp = [
{
value: "不限",
label: "不限",
next: false
}
];
// const temp = [
// {
// value: "不限",
// label: "不限",
// next: false
// }
// ];
const temp = [];
for (let i = 16; i < 81; i++) {
temp.push({
value: i,
......@@ -793,7 +794,7 @@ const submitFrom = () => {
});
} else {
xma.showToast({
title: "请完善岗位信息",
title: "请完善相关信息",
icon: "none"
});
}
......
......@@ -5,7 +5,8 @@
<div class="top">
<img v-if="params.logoPath" :src="evn.APP_IMAGE_BASE_API + params.logoPath" @click="chooseImage" />
<img v-else src="@/static/image/temp/defaultCompany.png" alt="" @click="chooseImage" />
<div class="name">{{ companyInfo.companyName }}</div>
<div class="name1" @click="chooseImage">更换企业头像</div>
<div class="name">{{ companyInfo.companyName || companyInfo.name }}</div>
<formItem style="margin-top: 80rpx" title="营业执照" arrow :border="false" @click="jupmLicenseInfo">
<p :class="`status${companyInfo?.status}`">{{ auditStatus }}</p>
</formItem>
......@@ -263,21 +264,6 @@ const submit = () => {
console.log("params", params);
if (
// validateForm(params, [
// "location",
// "cityCode",
// "cityName",
// "companyName",
// "creditCode",
// "introduction",
// "districtCode",
// "districtName",
// "id",
// "logoPath",
// "provinceCode",
// "provinceName",
// "industry"
// ])
validateForm(params, [
"location",
"cityCode",
......@@ -286,7 +272,6 @@ const submit = () => {
"introduction",
"districtCode",
"id",
"logoPath",
"provinceCode",
"industry"
])
......@@ -319,10 +304,8 @@ const validateForm = (formData, requiredFields) => {
const value = formData[field];
// 排除 0 和 "0" 的值,不作为空值校验
if (value === undefined || value === null || value === "") {
console.log("field", field);
uni.showToast({
title: `请填写完整表单`,
title: `请完善相关信息`,
icon: "none",
duration: 2000
});
......@@ -341,17 +324,22 @@ const validateForm = (formData, requiredFields) => {
.content {
flex: 1;
.top {
padding: 0 16px;
padding: 0 32rpx;
text-align: center;
border-bottom: 8px solid #f3f4f8;
border-bottom: 16rpx solid #f3f4f8;
img {
width: 80px;
height: 80px;
margin-top: 14px;
width: 160rpx;
height: 160rpx;
margin-top: 28rpx;
border-radius: 50%;
}
.name {
margin-top: 16px;
margin-top: 32rpx;
}
.name1 {
margin-top: 20rpx;
font-size: 24rpx;
color: #77818f;
}
.status0 {
color: #1f86ff;
......@@ -367,7 +355,7 @@ const validateForm = (formData, requiredFields) => {
text-align: left;
}
.form-wrap {
padding: 0 16px;
padding: 0 32rpx;
:deep(.wd-col-picker__cell) {
padding: 0 !important;
}
......@@ -382,20 +370,20 @@ const validateForm = (formData, requiredFields) => {
margin-left: 50rpx;
}
.textarea-wrap {
padding: 16px 0;
padding: 32rpx 0;
.label {
font-size: 12px;
font-size: 24rpx;
font-weight: normal;
color: #77818f;
}
textarea {
box-sizing: border-box;
width: 100%;
height: 136px;
padding: 16px;
margin-top: 8px;
height: 272rpx;
padding: 32rpx;
margin-top: 16rpx;
background: #f2f5fb;
border-radius: 4px;
border-radius: 8rpx;
}
}
}
......
......@@ -113,9 +113,10 @@ export const validateForm = (formData, requiredFields, type) => {
return false;
}
} else if (fieldValue === null || fieldValue === undefined || fieldValue === "") {
const title = fieldMapping[field] || (type === "post" ? "岗位信息" : "表单");
// const title = fieldMapping[field] || (type === "post" ? "岗位信息" : "表单");
const title = fieldMapping[field] || (type === "post" ? "相关信息" : "相关信息");
uni.showToast({
title: `请${type === "post" ? "完善" : "填写"}${title}!`,
title: `请${type === "post" ? "完善" : "完善"}${title}!`,
icon: "none",
duration: 2000
});
......
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