bug修复

parent b65764e8
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<view class="postion-card1" @tap="jump(data.id)"> <view class="postion-card1" @tap="jump(data.id)">
<view class="flex-between"> <view class="flex-between">
<view class="postion-name">{{ data.jobName }}</view> <view class="postion-name">{{ data.jobName }}</view>
<view class="salary">{{ data.minSalary / 1000 }}k-{{ data.maxSalary / 1000 }}k<text>/月</text></view> <view v-if="data.minSalary > 0" class="salary"
>{{ data.minSalary / 1000 }}k-{{ data.maxSalary / 1000 }}k<text>/月</text></view
>
<view v-else class="salary2">面议</view>
</view> </view>
<view class="benefits"> <view class="benefits">
<text v-for="(v, i) in data.benefits?.split(',')" :key="i">{{ v }}</text> <text v-for="(v, i) in data.benefits?.split(',')" :key="i">{{ v }}</text>
...@@ -59,6 +62,17 @@ const jump = id => { ...@@ -59,6 +62,17 @@ const jump = id => {
font-size: 14px; font-size: 14px;
} }
} }
.salary2 {
font-size: 16px;
font-weight: 500;
line-height: 12px;
color: #1f86ff;
text-align: center;
letter-spacing: 0;
text {
font-size: 14px;
}
}
.benefits { .benefits {
display: flex; display: flex;
gap: 4px; gap: 4px;
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
} }
}, },
"pages": [ "pages": [
{
"path": "pages/login/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/postionList/index", "path": "pages/postionList/index",
"style": { "style": {
...@@ -155,12 +161,7 @@ ...@@ -155,12 +161,7 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/login/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/login/test", "path": "pages/login/test",
"style": { "style": {
......
<template> <template>
<view style="padding-bottom: 40px"> <view style="height: 100%; padding-bottom: 40px">
<NavBar :showIcon="false" backgroundBox="#ffffff" :showTitle="true" title="动态"></NavBar> <NavBar :showIcon="false" backgroundBox="#ffffff" :showTitle="true" title="动态"></NavBar>
<div class="policy"> <div class="policy">
<div class="tab-name" :enable-flex="true" :scroll-x="true"> <div class="tab-name" :enable-flex="true" :scroll-x="true">
......
...@@ -19,8 +19,18 @@ ...@@ -19,8 +19,18 @@
<script setup> <script setup>
import NavBar from "@/components/navBar/index.vue"; import NavBar from "@/components/navBar/index.vue";
import { xinhuaMpLogin } from "@/api/user.js"; import { xinhuaMpLogin } from "@/api/user.js";
import { setToken } from "@/utils/token"; import { setToken, getToken } from "@/utils/token";
import { getLoginUserApi } from "@/api/user";
const res = ref(""); const res = ref("");
onLoad(() => {
const token = getToken();
if (token) {
uni.switchTab({
url: "/pages/postionList/index"
});
}
});
const login = () => { const login = () => {
xma.xh.getUserProfile({ xma.xh.getUserProfile({
range: ["ACCOUNT", "MOBILE"], range: ["ACCOUNT", "MOBILE"],
...@@ -28,7 +38,14 @@ const login = () => { ...@@ -28,7 +38,14 @@ const login = () => {
xinhuaMpLogin({ encryptedData: info.data.uMobile, userType: "consumer" }) xinhuaMpLogin({ encryptedData: info.data.uMobile, userType: "consumer" })
.then(data => { .then(data => {
res.value = data; res.value = data;
setToken(data.token); console.log("datadatadata", data);
setToken(data.data.token);
getLoginUserApi().then(res => {
uni.setStorageSync("userInfo", res.data);
});
uni.switchTab({
url: "/pages/postionList/index"
});
}) })
.catch(err => { .catch(err => {
res.value = err; res.value = err;
......
<template> <template>
<view style="padding-bottom: 40px"> <view style="height: 100%; padding-bottom: 40px">
<NavBar :showIcon="false" backgroundBox="#ffffff" :showTitle="true" title="消息"></NavBar> <NavBar :showIcon="false" backgroundBox="#ffffff" :showTitle="true" title="消息"></NavBar>
<div class="message-list"> <div class="message-list">
<scroll-view :scroll-y="true" @scrolltolower="getList"> <scroll-view :scroll-y="true" @scrolltolower="getList">
<view class="system"> <view class="system">
<view class="item flex-between" v-for="(v, i) in list" :key="i"> <view class="item flex-between" v-for="(v, i) in list" :key="i" @tap="toDetail(v.id)">
<img src="@/static/image/user/default-avatar.png" alt="" /> <img src="@/static/image/user/default-avatar.png" alt="" />
<view class="content"> <view class="content">
<view class="name-date flex-between"> <view class="name-date flex-between">
...@@ -59,6 +59,12 @@ const getList = () => { ...@@ -59,6 +59,12 @@ const getList = () => {
list.value = _.concat(list.value, res.data); list.value = _.concat(list.value, res.data);
}); });
}; };
const toDetail = id => {
uni.navigateTo({
url: `/pages/user/feedbackDetails/index?id=${id}`
});
};
onReachBottom(() => { onReachBottom(() => {
pageNo++; pageNo++;
getList(); getList();
......
<template> <template>
<view style="padding-bottom: 40px"> <view style="height: 100%; padding-bottom: 40px">
<NavBar :showIcon="false" backgroundBox="#ffffff" :showTitle="true" title="政策"></NavBar> <NavBar :showIcon="false" backgroundBox="#ffffff" :showTitle="true" title="政策"></NavBar>
<div class="policy"> <div class="policy">
<div class="tab-name" :enable-flex="true" :scroll-x="true"> <div class="tab-name" :enable-flex="true" :scroll-x="true">
......
...@@ -54,6 +54,19 @@ const showPopup = item => { ...@@ -54,6 +54,19 @@ const showPopup = item => {
show.value = true; show.value = true;
}; };
const submit = () => { const submit = () => {
const userInfo = uni.getStorageSync("userInfo");
if (!userInfo.citizenId) {
uni.showToast({
title: "请先实名认证",
icon: "none"
});
setTimeout(() => {
uni.navigateTo({
url: "/pages/user/resume/realNameAuthentication/index"
});
}, 1500);
return;
}
needRegisterApi(tempItem.needId).then(res => { needRegisterApi(tempItem.needId).then(res => {
if (res.code == 200) { if (res.code == 200) {
tempItem.userId = true; tempItem.userId = true;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<input placeholder="搜索职位,公司" placeholder-class="log-input-p" type="text"></input> <input placeholder="搜索职位,公司" placeholder-class="log-input-p" type="text"></input>
</view> </view>
</nav-bar> --> </nav-bar> -->
<view style="padding-bottom: 40px"> <view style="height: 100%; padding-bottom: 40px">
<NavBar :showIcon="false" backgroundBox="#ffffff"> <NavBar :showIcon="false" backgroundBox="#ffffff">
<view class="search-form"> <view class="search-form">
<wd-icon class="search-icon" name="search"></wd-icon> <wd-icon class="search-icon" name="search"></wd-icon>
...@@ -168,11 +168,13 @@ import { getjobListApi } from "@/api/postion.js"; ...@@ -168,11 +168,13 @@ import { getjobListApi } from "@/api/postion.js";
import { getTreeListApi, dictJobTypeApi, getBannerListApi } from "@/api/common.js"; import { getTreeListApi, dictJobTypeApi, getBannerListApi } from "@/api/common.js";
import postionCard1 from "@/components/postionCard1/index.vue"; import postionCard1 from "@/components/postionCard1/index.vue";
import { getEumData } from "@/utils/utils.js"; import { getEumData } from "@/utils/utils.js";
import { getToken } from "@/utils/token";
import evn from "@/utils/config.js"; import evn from "@/utils/config.js";
/* 轮播 */ /* 轮播 */
const swiperList = ref([]); const swiperList = ref([]);
let swiperListData = []; let swiperListData = [];
let contentHeight = ref(null); let contentHeight = ref(null);
onShow(() => { onShow(() => {
getTreeData(); getTreeData();
dictJobType(); dictJobType();
......
...@@ -17,10 +17,13 @@ ...@@ -17,10 +17,13 @@
<text class="unit">元/{{ partTimeJobData.paymentType }}</text> <text class="unit">元/{{ partTimeJobData.paymentType }}</text>
</view> </view>
<view class="salary" v-else> <view class="salary" v-else>
<text class="number" <view v-if="partTimeJobData.minSalary > 0">
>{{ partTimeJobData.minSalary / 1000 }}k-{{ partTimeJobData.maxSalary / 1000 }}k</text <text class="number"
> >{{ partTimeJobData.minSalary / 1000 }}k-{{ partTimeJobData.maxSalary / 1000 }}k</text
<text class="unit">/月</text> >
<text class="unit">/月</text>
</view>
<text v-else class="number">面议</text>
</view> </view>
</view> </view>
<view v-if="partTimeJobData.isSalaryNego == 1"> <view v-if="partTimeJobData.isSalaryNego == 1">
......
...@@ -45,6 +45,7 @@ import { getUserResumeApi, getLoginUserApi } from "@/api/user"; ...@@ -45,6 +45,7 @@ import { getUserResumeApi, getLoginUserApi } from "@/api/user";
import { ref } from "vue"; import { ref } from "vue";
import { getEnumText } from "@/utils/utils.js"; import { getEnumText } from "@/utils/utils.js";
import evn from "@/utils/config.js"; import evn from "@/utils/config.js";
import { removeToken } from "@/utils/token";
const test = ref(); const test = ref();
onShow(() => { onShow(() => {
...@@ -55,6 +56,10 @@ const navigateTo = url => { ...@@ -55,6 +56,10 @@ const navigateTo = url => {
uni.navigateTo({ uni.navigateTo({
url url
}); });
if (url === "/pages/login/index") {
removeToken();
uni.removeStorageSync("userInfo");
}
}; };
const navList = [ const navList = [
{ {
......
...@@ -133,7 +133,6 @@ const submit = () => { ...@@ -133,7 +133,6 @@ const submit = () => {
} }
.inner { .inner {
height: 88rpx; height: 88rpx;
padding: 0 32rpx;
font-size: 24rpx; font-size: 24rpx;
line-height: 88rpx; line-height: 88rpx;
} }
......
...@@ -186,7 +186,7 @@ const userInfo = ref({ ...@@ -186,7 +186,7 @@ const userInfo = ref({
birthDate: "", birthDate: "",
identityType: 2, identityType: 2,
educationLevel: 6, educationLevel: 6,
workExperience: 11, workExperience: null,
personalTags: null, personalTags: null,
verified: 1, verified: 1,
loginTime: "", loginTime: "",
......
...@@ -162,13 +162,7 @@ const salaryValue = ref([]); ...@@ -162,13 +162,7 @@ const salaryValue = ref([]);
const salaryText = ref(""); const salaryText = ref("");
let salarySelectedItems = []; let salarySelectedItems = [];
const initSalaryOpstion = () => { const initSalaryOpstion = () => {
let temp = [ let temp = [];
{
label: "面议",
value: "",
next: false
}
];
for (let i = 1; i < 50; i++) { for (let i = 1; i < 50; i++) {
temp.push({ temp.push({
value: i * 1000, value: i * 1000,
......
import axios from "axios"; import axios from "axios";
import { getToken } from "./token"; import { getToken } from "./token";
// const baseURL = "https://lygsh-api.wjzpgz.com/"; const baseURL = "https://lygsh-api.wjzpgz.com/";
const baseURL = "http://192.168.11.181:8080/"; // const baseURL = "http://192.168.11.181: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