1

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