2 Commits

Author SHA1 Message Date
史典卓
1cd5363723 flat:暂存 2025-08-05 18:28:07 +08:00
史典卓
e698f0624f flat: yic 2025-05-06 16:13:25 +08:00
13 changed files with 2636 additions and 2375 deletions

View File

@@ -33,8 +33,13 @@ export async function uploadFile(file) {
'Authorization': `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`,
}
header[website.tokenName] = "bearer " + token
// 馆陶替换url
let url = `/api/jobslink-api/resource/file/save?bussinessType=5`
if (url.startsWith('/api')) {
url = url.replace(/^\/api/, '/api/gt');
}
uni.uploadFile({
url: `${baseUrl}/api/jobslink-api/resource/file/save?bussinessType=5`,
url: baseUrl + url,
header,
filePath: file.url,
// formData: formdata,

View File

@@ -79,7 +79,7 @@
{
"path": "pages/project/newProject",
"style": {
"navigationBarTitleText": "馆陶县灵活就业平台",
"navigationBarTitleText": "宜昌市灵活就业平台",
"navigationBarBackgroundColor": "#FFFFFF",
"enablePullDownRefresh": true
}

View File

@@ -7,18 +7,29 @@
<!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx; color: blue;" mode=""></image> -->
<view class="headd_left">
<u-icon name="search" color="#2297fa" size="24"></u-icon>
<input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords"
placeholder="搜零工岗位/搜全职岗位/搜政策" />
</view>
<view class="headd_right">
搜索
<input
placeholder-class="search_style"
type="text"
confirm-type="搜索"
v-model="keywords"
placeholder="搜零工岗位/搜全职岗位/搜政策"
/>
</view>
<view class="headd_right">搜索</view>
</view>
</uni-nav-bar>
<!-- <view class="homeHead"> -->
<view class="headSwiper">
<swiper :indicator-dots="true" indicator-active-color="#fff" indicator-color="rgba(255,255,255,0.80)"
:autoplay="true" :interval="3000" :duration="1000" class="yswiper" :circular="true">
<swiper
:indicator-dots="true"
indicator-active-color="#fff"
indicator-color="rgba(255,255,255,0.80)"
:autoplay="true"
:interval="3000"
:duration="1000"
class="yswiper"
:circular="true"
>
<swiper-item v-for="(item, index) in swiperList" :key="index" v-if="item.isShow !== '2'">
<view class="swiper-item">
<image :src="item.image" mode="" class="swiperImg"></image>
@@ -31,18 +42,29 @@
<view class="policyImgIndex">
<image src="../../static/img/index/newPolicy.png"></image>
</view>
<swiper style="width: 100%;height: 100rpx; line-height: 100rpx;margin-left: 164rpx;"
:indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :vertical="true"
:circular="true">
<swiper-item v-for="(item,index) in policyContentList" :key="index"
@click="goPolicyInfo(item.id)">
<swiper
style="width: 100%; height: 100rpx; line-height: 100rpx; margin-left: 164rpx"
:indicator-dots="true"
:autoplay="true"
:interval="3000"
:duration="1000"
:vertical="true"
:circular="true"
>
<swiper-item
v-for="(item, index) in policyContentList"
:key="index"
@click="goPolicyInfo(item.id)"
>
<view class="swiper-item">
<view class="policyText">
<view class="textTitle">{{ item.articleTitle }}</view>
<view class="textDate">{{ dateFormat(item.createTime) }}</view>
<image src="../../static/img/right.svg" mode=""
style="width: 18rpx;height: 32rpx;position:absolute;top: 12rpx;right:0;">
</image>
<image
src="../../static/img/right.svg"
mode=""
style="width: 18rpx; height: 32rpx; position: absolute; top: 12rpx; right: 0"
></image>
</view>
</view>
</swiper-item>
@@ -52,7 +74,6 @@
<!-- </view> -->
</view>
<view class="jobService">
<view class="cardTips">就业服务</view>
<view class="serviceItem" @click="goures()">
@@ -176,7 +197,7 @@
</view>
<view class="font24">就业帮助</view>
</view> -->
<view class="helpCardItem" style="border-right: 1px solid #F5F6F7;" @click="">
<view class="helpCardItem" style="border-right: 1px solid #f5f6f7" @click="">
<view class="cardItemIcon" @click="navTo('/pageMy/setUserBase/applicationsRecord')">
<image src="../../static/img/index/legal.png" mode=""></image>
</view>
@@ -203,27 +224,40 @@
</view> -->
<view class="latestMission">
<view class="cardTips"
style="margin: 0 26rpx;display: flex;align-items: center;justify-content: space-between;padding-bottom: 10rpx;">
<view
class="cardTips"
style="
margin: 0 26rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 10rpx;
"
>
<view>政策资讯</view>
<view style="display: flex;align-items: center;" @click="toNewProject">
<view style="color:#707070;font-size:26rpx;margin-right: 10rpx;">更多</view>
<image src="../../static/img/right.svg" mode="" style="width: 14rpx;height: 26rpx;"></image>
<view style="display: flex; align-items: center" @click="toNewProject">
<view style="color: #707070; font-size: 26rpx; margin-right: 10rpx">更多</view>
<image src="../../static/img/right.svg" mode="" style="width: 14rpx; height: 26rpx"></image>
</view>
</view>
<view class="newPeojectList">
<!-- <block v-if="companyList.length>0" v-for="(item, index) in companyList" :key="item.id">
<view class="baddd"></view>
<company-list :companyitem="item"></company-list>
</block> -->
<view style="background-color: #fff;padding: 20rpx 30rpx;">
<view v-for="(item,index) in policyContentList" :key="index"
style="display: flex;align-items: center;padding: 20rpx 0;" @click="toArticleDetail(item.id)">
<image :src="item.headPic"
style="width: 80rpx;height: 80rpx;margin-right: 20rpx;border-radius: 10rpx;" mode="">
</image>
<view style="flex: 1; font-size: 28rpx;">{{ item.articleTitle }}</view>
<view style="background-color: #fff; padding: 20rpx 30rpx">
<view
v-for="(item, index) in policyContentList"
:key="index"
style="display: flex; align-items: center; padding: 20rpx 0"
@click="toArticleDetail(item.id)"
>
<image
:src="item.headPic"
style="width: 80rpx; height: 80rpx; margin-right: 20rpx; border-radius: 10rpx"
mode=""
></image>
<view style="flex: 1; font-size: 28rpx">{{ item.articleTitle }}</view>
</view>
</view>
<view v-if="policyContentList.length <= 0">
@@ -232,10 +266,9 @@
<view class="baddd"></view>
</view>
</view>
</view>
<view class="homeFooter">
<view class="atBottom">馆陶县人力资源和社会保障局主办</view>
<view class="atBottom">宜昌市人力资源和社会保障局主办</view>
<!-- <image src="../../static/img/index/seeMore.png" mode="" @click="goMore()"></image> -->
</view>
<policy-content ref="pContent"></policy-content>
@@ -246,37 +279,20 @@
import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
import uniSearchBar from '@/components/uni-search-bar/uni-search-bar.vue';
import companyList from '@/components/companyList/companyList.vue';
import policyContent from '../user/policyContent.vue'
import {
labourUnionDetail
} from '@/api/federation.js'
import {
newMission,
recMission
} from '@/api/mission.js';
import {
mapGetters
} from 'vuex'
import {
setStore,
getStore
} from '@/untils/store.js'
import {
getSwiperList,
getPolicyContent
} from '@/api/newIndex.js'
import {
myResume,
} from '@/api/resume.js';
import {
dateFormat
} from "../../untils/format.js";
import policyContent from '../user/policyContent.vue';
import { labourUnionDetail } from '@/api/federation.js';
import { newMission, recMission } from '@/api/mission.js';
import { mapGetters } from 'vuex';
import { setStore, getStore } from '@/untils/store.js';
import { getSwiperList, getPolicyContent } from '@/api/newIndex.js';
import { myResume } from '@/api/resume.js';
import { dateFormat } from '../../untils/format.js';
export default {
components: {
uniNavBar,
uniSearchBar,
companyList,
policyContent
policyContent,
},
data() {
return {
@@ -292,44 +308,41 @@
isResume: true,
};
},
onLoad: function(options) {
},
onLoad: function (options) {},
onShow: function () {
if (!this.$store.state.user.token) {
uni.reLaunch({
url: '/pages/login/login'
})
return
url: '/pages/login/login',
});
return;
}
this.$store.dispatch('refreshAuthState').then((e) => {
var auth = this.$store.state.auth
var auth = this.$store.state.auth;
if (!auth.bankCardState) {
this.step()
this.step();
}
})
});
this.download()
this.getSwiperList()
this.getPolicy()
this.download();
this.getSwiperList();
this.getPolicy();
if (this.isResume) {
this.isResume = false
myResume().then(res => {
const data = res.data.data
this.isResume = false;
myResume().then((res) => {
const data = res.data.data;
if (!(data.education && data.telephone && data.wage && data.workplace)) {
this.goures()
this.goures();
this.$api.sleep(1000).then(() => {
this.$api.msg('请输入基本信息')
})
this.$api.msg('请输入基本信息');
});
}
})
});
}
},
onReady() {
uni.setNavigationBarTitle({
title: this.face.homeTitle
title: this.face.homeTitle,
});
},
/*下拉刷新*/
onPullDownRefresh: function () {
@@ -339,38 +352,39 @@
}, 1000);
},
computed: {
...mapGetters(['face', 'authInfo'])
...mapGetters(['face', 'authInfo']),
},
onShareAppMessage(obj) {
return {
title: '智慧就业',
path: '/pages/index/index',
}
};
},
methods: {
getPolicy() {
getPolicyContent(this.policyType).then(res => {
this.policyContentList = res.data.data.records
})
getPolicyContent(this.policyType).then((res) => {
this.policyContentList = res.data.data.records;
});
},
swiperItemSrc() {
/*
查看是否加入工会
加入数据记录长度不为0
*/
labourUnionDetail(this.authInfo.idNumber).then(res => {
labourUnionDetail(this.authInfo.idNumber).then((res) => {
const data = res.data.data.records;
if (data.length == 0) { //未查到数据,代表未加入工会
if (data.length == 0) {
//未查到数据,代表未加入工会
this.go('/pageMy/federation/forMembership/Notice');
} else {
this.go('/pageMy/federation/vip/information');
}
})
});
},
step() {
var that = this
that.open = true
var that = this;
that.open = true;
uni.showModal({
id: 'testModal',
title: '实名认证',
@@ -379,37 +393,37 @@
confirmText: '立即认证',
success: function (res) {
if (res.confirm) {
that.goSign(0)
that.goSign(0);
} else if (res.cancel) {
that.step()
}
that.open = false
that.step();
}
that.open = false;
},
});
},
// 步骤
goSign(active) {
uni.navigateTo({
url: `/pages/projectInfo/signContract?active=${active}`
})
url: `/pages/projectInfo/signContract?active=${active}`,
});
},
go(url) {
uni.navigateTo({
url
})
url,
});
},
download: function () {
this.isLogin = this.$store.state.user.token ? true : false;
newMission().then(res => {
newMission().then((res) => {
this.companyList = res.data.data;
});
if (this.$store.state.user.token) {
uni.$emit('newsReadChange')
this.$store.dispatch("getUnreadNum");
recMission().then(res => {
uni.$emit('newsReadChange');
this.$store.dispatch('getUnreadNum');
recMission().then((res) => {
this.recommendList = res.data.data;
})
};
});
}
},
goLocation: function () {
if (!this.$store.state.user.token) {
@@ -419,23 +433,23 @@
success: function (res) {
if (res.confirm) {
uni.redirectTo({
url: "/pages/login/login"
url: '/pages/login/login',
});
} else if (res.cancel) {
return
}
return;
}
},
});
} else {
uni.navigateTo({
url: '../mapSeach/mapSeach'
url: '../mapSeach/mapSeach',
});
}
},
goResume: function () {
uni.navigateTo({
url: '/pageMy/my/resume/addSkill'
})
url: '/pageMy/my/resume/addSkill',
});
},
goMore: function () {
uni.setStorageSync('active', 2);
@@ -451,39 +465,39 @@
success: function (res) {
if (res.confirm) {
uni.redirectTo({
url: "/pages/login/login"
url: '/pages/login/login',
});
} else if (res.cancel) {
return
}
return;
}
},
});
} else {
uni.navigateTo({
url: '/pageMy/my/resume/index'
url: '/pageMy/my/resume/index',
});
}
},
toNewTask() {
uni.navigateTo({
url: `/pages/project/newProject?tabIndex=${0}`
url: `/pages/project/newProject?tabIndex=${0}`,
});
},
toNewWork() {
uni.navigateTo({
url: `/pages/project/newProject?tabIndex=${1}`
url: `/pages/project/newProject?tabIndex=${1}`,
});
},
toNewProject() {
uni.navigateTo({
url: `/pages/project/newProject?tabIndex=${2}`
url: `/pages/project/newProject?tabIndex=${2}`,
});
},
toArticleDetail(id) {
if (id) {
uni.navigateTo({
url: `/pages/user/policyContent?id=${id}`
})
url: `/pages/user/policyContent?id=${id}`,
});
}
},
gouserSet: function () {
@@ -494,16 +508,16 @@
success: function (res) {
if (res.confirm) {
uni.redirectTo({
url: "/pages/login/login"
url: '/pages/login/login',
});
} else if (res.cancel) {
return
}
return;
}
},
});
} else {
uni.navigateTo({
url: '/pageMy/setUserBase/index'
url: '/pageMy/setUserBase/index',
});
}
},
@@ -515,27 +529,27 @@
success: function (res) {
if (res.confirm) {
uni.redirectTo({
url: '/pages/login/login'
})
url: '/pages/login/login',
});
} else if (res.cancel) {
return
}
return;
}
},
});
} else {
// if (this.keywords) {
uni.navigateTo({
url: '../seach/seach?keywords=' + this.keywords
url: '../seach/seach?keywords=' + this.keywords,
});
this.keywords = ''
this.keywords = '';
// }
}
},
getSwiperList() {
getSwiperList(this.swiperType).then(res => {
getSwiperList(this.swiperType).then((res) => {
const data = res.data.data;
this.swiperList = data;
})
});
},
dateFormat,
@@ -544,17 +558,16 @@
// var val=encodeURIComponent(data)
uni.navigateTo({
url: `/pages/user/policyContent?id=${data}`
})
url: `/pages/user/policyContent?id=${data}`,
});
} else {
// uni.showToast({
// title:'暂无内容',
// icon:'none'
// })
}
}
}
},
},
};
</script>
@@ -562,7 +575,7 @@
.info_market {
margin: 24rpx;
height: fit-content;
background-color: #FFFFFE;
background-color: #fffffe;
border-radius: 18rpx;
display: flex;
flex-direction: column;
@@ -582,12 +595,11 @@
background-size: cover;
height: 60rpx;
width: 450rpx;
}
.next_market {
font-size: 26rpx;
color: #FFFFFF;
color: #ffffff;
background: linear-gradient(to right, rgba(137, 168, 253, 1), rgba(87, 129, 250, 1));
width: 120rpx;
height: 60rpx;
@@ -608,12 +620,11 @@
view {
display: flex;
}
}
}
.home_logo {
background: url(@/static/img/index/inLogo.png) no-repeat center center;
background: url(@/static/img/index/inLogo3.png) no-repeat center center;
background-size: cover;
height: 76rpx;
width: 560rpx;
@@ -637,14 +648,14 @@
}
page {
background: #F5F6F7;
background: #f5f6f7;
padding: 0 !important;
}
.homeHead {
width: 100%;
height: auto;
background-color: #FFFFFF;
background-color: #ffffff;
margin-top: -20rpx;
padding-bottom: 32rpx;
}
@@ -687,7 +698,6 @@
width: 4rpx;
height: 30rpx;
background-color: #2297fa;
}
}
@@ -725,14 +735,13 @@
.newPolicy {
width: 690rpx;
height: 100rpx;
background: #FEFFFE;
background: #fefffe;
box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(0, 0, 0, 0.06);
border-radius: 16rpx;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.newPolicy .policyContent {
@@ -743,7 +752,6 @@
}
.swiper-item {
display: flex;
justify-content: space-between;
align-items: center;
@@ -796,13 +804,12 @@
.jobService {
width: 100%;
height: 440rpx;
background: #FEFFFE;
background: #fefffe;
// margin-top: 16rpx;
padding: 24rpx 0rpx 0rpx 32rpx;
}
.cardTips {
height: 50rpx;
font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC;
@@ -815,13 +822,12 @@
.serviceItem {
width: 338rpx;
height: 168rpx;
background: #FEFFFE;
background: #fefffe;
box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(0, 0, 0, 0.06);
border-radius: 8rpx;
float: left;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.serviceItem .serviceItemContent {
@@ -837,12 +843,11 @@
margin-left: 16rpx;
}
.hotFunction {
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
color: #ffffff;
position: absolute;
top: 0;
right: 0;
@@ -862,7 +867,6 @@
border-radius: 16rpx;
}
.serviceItem .itemIcon image,
.serviceItem .itemIcon {
width: 84rpx;
@@ -883,13 +887,12 @@
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: rgba(0, 0, 0, 0.85);
}
.helpSupport {
width: 100%;
height: auto;
background: #FEFFFE;
background: #fefffe;
padding: 24rpx 0rpx 36rpx 32rpx;
margin-top: 16rpx;
}
@@ -897,7 +900,7 @@
.helpCard {
width: 690rpx;
height: 144rpx;
background: #FEFFFF;
background: #feffff;
box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(0, 0, 0, 0.06);
border-radius: 8px;
display: flex;
@@ -930,10 +933,9 @@
.latestMission {
width: 100%;
height: auto;
background: #FEFFFE;
background: #fefffe;
margin-top: 16rpx;
padding: 24rpx 0 0 0;
}
.baddd {
@@ -976,7 +978,6 @@
line-height: 80rpx;
text-align: center;
margin-bottom: 20rpx;
}
.homeFooter image {

View File

@@ -31,13 +31,14 @@
</view>
<view class="conatiner_card">
<view class="row blod fs_34">馆陶县智慧就业市场</view>
<view class="row blod fs_34">宜昌市智慧就业市场</view>
<view class="row color_666 fs_30 marT_30">
<u-icon style="margin-right: 10rpx;" name="calendar" color="#666666" size="16"></u-icon>营业时间
<u-icon style="margin-right: 10rpx" name="calendar" color="#666666" size="16"></u-icon>
营业时间
</view>
<view class="row color_666 fs_30">上午9:00-12:00 下午14:00-18:00</view>
<view class="row color_666 fs_30 marT_30">
<u-icon style="margin-right: 10rpx;" name="map" color="#666666" size="16"></u-icon>
<u-icon style="margin-right: 10rpx" name="map" color="#666666" size="16"></u-icon>
四川省德阳市旌阳区天山南路1段108号
<!-- <u-icon style="margin-left: 10rpx;" name="arrow-right" color="#666666" size="16"></u-icon> -->
</view>
@@ -66,19 +67,15 @@
<script>
export default {
data() {
return {
}
return {};
},
methods: {
}
}
methods: {},
};
</script>
<style lang="scss" scoped>
@function designTo($num) {
@return ($num / 620rpx) * 750rpx
@return ($num / 620rpx) * 750rpx;
}
@for $i from 10 to 60 {
@@ -113,7 +110,7 @@
.container_head {
min-height: 300rpx;
padding: 28rpx;
background: linear-gradient(to bottom, rgba(69, 112, 250, 1), rgba(69, 112, 250, .0));
background: linear-gradient(to bottom, rgba(69, 112, 250, 1), rgba(69, 112, 250, 0));
.row {
display: flex;
@@ -121,12 +118,13 @@
justify-content: space-between;
.head_left {
color: #FFFFFF;
color: #ffffff;
display: flex;
align-items: flex-start;
flex-direction: column;
.left_title {}
.left_title {
}
.left_content {
height: designTo(87rpx);
@@ -173,7 +171,7 @@
.conatiner_card {
margin: 28rpx;
background-color: #FFFFFF;
background-color: #ffffff;
height: fit-content;
border-radius: 20rpx;
padding: designTo(28rpx);
@@ -198,7 +196,7 @@
display: flex;
justify-content: space-around;
align-items: center;
background-color: #FFFFFF;
background-color: #ffffff;
height: designTo(108rpx);
padding: 0 28rpx designTo(30rpx) 28rpx;
@@ -210,7 +208,7 @@
}
.chioe_btn {
color: #FFFFFF;
color: #ffffff;
background: linear-gradient(to right, #fbaf1a, #fbaf1a);
height: designTo(66rpx);
width: designTo(228rpx);

View File

@@ -12,7 +12,7 @@
</view>
<view class="navPosition" @click="navTo('/pages/project/map')">
<u-icon name="map" color="#2979ff" size="16"></u-icon>
<view class="positionText">馆陶县地图服务</view>
<view class="positionText">宜昌市地图服务</view>
<u-icon name="arrow-right" color="#666666" size="14"></u-icon>
</view>
<view class="content">

View File

@@ -16,33 +16,84 @@
<u-form-item label="法人身份证号" labelWidth="100" prop="masterIdentity" borderBottom ref="item1">
<u--input v-model="formData.masterIdentity" placeholder="请输入法人身份证号"></u--input>
</u-form-item>
<u-form-item label="所在地区" labelWidth="100" prop="cityId" borderBottom ref="item1"
@click="showAddress = true; hideKeyboard()">
<PickerList placeholder="请选择所在地区" :columns="dic.addressColumn" :visibel="showAddress"
v-model="formData.cityId" @cancel="showAddress = false">
</PickerList>
<u-form-item
label="所属机构"
labelWidth="100"
prop="cityId"
borderBottom
ref="item1"
@click="
showAddress = true;
hideKeyboard();
"
>
<PickerList
placeholder="请选择所属机构"
:columns="dic.addressColumn"
:visibel="showAddress"
v-model="formData.cityId"
@cancel="showAddress = false"
></PickerList>
</u-form-item>
<u-form-item label="详细地址" labelWidth="100" prop="companyAddress" borderBottom ref="item1">
<u--input v-model="formData.companyAddress" placeholder="请输入详细地址"></u--input>
</u-form-item>
<u-form-item label="用工单位性质" labelWidth="100" prop="nature" borderBottom ref="item1"
@click="showJobCompanyNature = true; hideKeyboard()">
<PickerList placeholder="请选择企业性质" :columns="[xzDic]" :visibel="showJobCompanyNature"
labelName="dictValue" valueName="dictKey" v-model="formData.nature"
@cancel="showJobCompanyNature = false">
</PickerList>
<u-form-item
label="用工单位性质"
labelWidth="100"
prop="nature"
borderBottom
ref="item1"
@click="
showJobCompanyNature = true;
hideKeyboard();
"
>
<PickerList
placeholder="请选择企业性质"
:columns="[xzDic]"
:visibel="showJobCompanyNature"
labelName="dictValue"
valueName="dictKey"
v-model="formData.nature"
@cancel="showJobCompanyNature = false"
></PickerList>
</u-form-item>
<u-form-item label="所属行业" labelWidth="100" prop="tradeId" borderBottom ref="item1"
@click="showjobCompanyIndustry = true; hideKeyboard()">
<PickerList placeholder="请选择所属行业" :columns="dic.tradeArr" labelName="name" valueName="id"
:visibel="showjobCompanyIndustry" v-model="formData.tradeId"
@cancel="showjobCompanyIndustry = false">
</PickerList>
<u-form-item
label="所属行业"
labelWidth="100"
prop="tradeId"
borderBottom
ref="item1"
@click="
showjobCompanyIndustry = true;
hideKeyboard();
"
>
<PickerList
placeholder="请选择所属行业"
:columns="dic.tradeArr"
labelName="name"
valueName="id"
:visibel="showjobCompanyIndustry"
v-model="formData.tradeId"
@cancel="showjobCompanyIndustry = false"
></PickerList>
</u-form-item>
<u-form-item label="用工单位介绍" labelWidth="100" labelPosition="top" prop="companyDesc" borderBottom
ref="item1">
<u--textarea v-model="formData.companyDesc" placeholder="请输入用工单位介绍" count
maxlength="200"></u--textarea>
<u-form-item
label="用工单位介绍"
labelWidth="100"
labelPosition="top"
prop="companyDesc"
borderBottom
ref="item1"
>
<u--textarea
v-model="formData.companyDesc"
placeholder="请输入用工单位介绍"
count
maxlength="200"
></u--textarea>
</u-form-item>
</view>
<view class="card">
@@ -59,17 +110,23 @@
<view class="card_title">证件资料</view>
<view class="card_content">
<u-form-item labelWidth="100" prop="identityUrl4Id">
<UploadIdNumber v-model="formData.identityUrl4Id" contentStyle="marginTop: 30rpx"
backImg="/static/img/idcard.png">
</UploadIdNumber>
<UploadIdNumber
v-model="formData.identityUrl4Id"
contentStyle="marginTop: 30rpx"
backImg="/static/img/idcard.png"
></UploadIdNumber>
</u-form-item>
<u-form-item labelWidth="100" prop="identityUrl5Id">
<UploadIdNumber v-model="formData.identityUrl5Id" backImg="/static/img/backidcard1.png">
</UploadIdNumber>
<UploadIdNumber
v-model="formData.identityUrl5Id"
backImg="/static/img/backidcard1.png"
></UploadIdNumber>
</u-form-item>
<u-form-item labelWidth="100" prop="authUrlId">
<UploadIdNumber v-model="formData.authUrlId" backImg="/static/img/businessLicense.jpg">
</UploadIdNumber>
<UploadIdNumber
v-model="formData.authUrlId"
backImg="/static/img/businessLicense.jpg"
></UploadIdNumber>
</u-form-item>
</view>
</view>
@@ -85,22 +142,16 @@
<script>
import UploadIdNumber from './uploadIdNumber.vue';
import dic from '@/common/dic.js'
import dic from '@/common/dic.js';
import PickerList from './pickerList.vue';
import {
addInviteCompanyAuth,
getInviteCompanyAuthInfo,
getDictionary2
} from '@/api/userrecruit.js'
import {
mapState
} from 'vuex'
import { addInviteCompanyAuth, getInviteCompanyAuthInfo, getDictionary2 } from '@/api/userrecruit.js';
import { mapState } from 'vuex';
const rules = {
comname: {
type: 'string',
required: true,
message: '请输入用工单位',
trigger: ['change']
trigger: ['change'],
},
companyTid: {
type: 'string',
@@ -108,88 +159,88 @@
max: 18,
min: 18,
message: '请输入18位统一信用代码',
trigger: ['change']
trigger: ['change'],
},
masterName: {
type: 'string',
required: true,
message: '请输入法人姓名',
trigger: ['change']
trigger: ['change'],
},
masterIdentity: {
type: 'string',
required: true,
pattern: /^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[Xx\d]$/,
message: '请输入法人身份证号',
trigger: ['change']
trigger: ['change'],
},
cityId: {
type: 'string',
required: true,
message: '请选择所在地区',
trigger: ['change']
trigger: ['change'],
},
companyAddress: {
type: 'string',
required: true,
message: '请输入详细地址',
trigger: ['change']
trigger: ['change'],
},
nature: {
type: 'string',
required: true,
message: '请选择企业性质',
trigger: ['change']
trigger: ['change'],
},
tradeId: {
type: 'string',
required: true,
message: '请选择行业',
trigger: ['change']
trigger: ['change'],
},
companyDesc: {
type: 'string',
min: 20,
required: true,
message: '请输入企业介绍最少20个字符',
trigger: ['change']
trigger: ['change'],
},
manager: {
type: 'string',
required: true,
message: '请输入联系人',
trigger: ['change']
trigger: ['change'],
},
telphone: {
type: 'string',
required: true,
pattern: /^1[3-9]{1}[0-9]{9}$/,
message: '请输入手机号码',
trigger: ['change']
trigger: ['change'],
},
identityUrl4Id: {
type: 'string',
required: true,
message: '请上传法人身份证(人像)',
trigger: ['change']
trigger: ['change'],
},
identityUrl5Id: {
type: 'string',
required: true,
message: '请上传法人身份证(国徽)',
trigger: ['change']
trigger: ['change'],
},
authUrlId: {
type: 'string',
required: true,
message: '请上传企业营业执照',
trigger: ['change']
trigger: ['change'],
},
}
};
export default {
components: {
UploadIdNumber,
PickerList
PickerList,
},
data() {
return {
@@ -199,28 +250,28 @@
dic,
xzDic: [],
formData: {},
rules
rules,
};
},
onLoad(options) {
if (options.reviewStatus === '9') {
this.getInfo()
this.getInfo();
}
this.getDictInfo()
this.getDictInfo();
},
computed: {
...mapState({
authInfo: (state) => state.auth.authInfo,
userInfo: (state) => state.user.userInfo
userInfo: (state) => state.user.userInfo,
}),
},
created() {
this.formData.manager = this.authInfo.realName
this.formData.idNumber = this.authInfo.idNumber
this.formData.manager = this.authInfo.realName;
this.formData.idNumber = this.authInfo.idNumber;
},
methods: {
hideKeyboard() {
uni.hideKeyboard()
uni.hideKeyboard();
},
async submit() {
let params = {
@@ -228,9 +279,11 @@
nature: Number(this.formData.nature),
cityId: Number(this.formData.cityId),
tradeId: Number(this.formData.tradeId),
}
const _this = this
this.$refs.formOne.validate().then(async (res) => {
};
const _this = this;
this.$refs.formOne
.validate()
.then(async (res) => {
let params = {
..._this.formData,
nature: Number(_this.formData.nature),
@@ -238,55 +291,56 @@
tradeId: Number(_this.formData.tradeId),
manager: _this.authInfo.realName,
idNumber: _this.authInfo.idNumber,
companyName: dic.addressColumn[0].filter((item) => item.value == _this
.formData.cityId)[0].label
}
console.log(params)
let resData = await addInviteCompanyAuth(params)
companyName: dic.addressColumn[0].filter((item) => item.value == _this.formData.cityId)[0]
.label,
};
console.log(params);
let resData = await addInviteCompanyAuth(params);
if (resData.data.code === 200) {
uni.navigateBack(1)
uni.navigateBack(1);
_this.$api.sleep(1000).then(() => {
_this.$api.msg('已完成企业信息认证')
})
_this.$api.msg('已完成企业信息认证');
});
}
}).catch(errors => {
})
.catch((errors) => {
if (/[\u4e00-\u9fff]/.test(errors.message)) {
_this.$api.msg(errors.message)
_this.$api.msg(errors.message);
}
})
});
},
async getInfo() {
let params = {
idNumber: this.authInfo.idNumber
}
let resData = await getInviteCompanyAuthInfo(params)
idNumber: this.authInfo.idNumber,
};
let resData = await getInviteCompanyAuthInfo(params);
if (resData.data.code === 200) {
console.log(resData.data.data)
console.log(resData.data.data);
this.formData = {
...resData.data.data,
nature: String(resData.data.data.nature),
cityId: String(resData.data.data.cityId),
tradeId: String(resData.data.data.tradeId),
}
};
}
},
reset() {
const _this = this
const _this = this;
uni.showModal({
content: '重置将清空表单,确定重置吗?',
success() {
_this.formData = {}
_this.formData = {};
},
})
});
},
async getDictInfo() {
let resData = await getDictionary2()
let resData = await getDictionary2();
if (resData.data.code === 200) {
this.xzDic = resData.data.data
}
this.xzDic = resData.data.data;
}
},
}
},
};
</script>
<style lang="scss" scoped>

View File

@@ -1,18 +1,27 @@
<template>
<view class="content_upload" :style="contentStyle">
<u-upload :fileList="ImgUrl" @afterRead="afterRead" :deletable="true" @delete="deletePic" name="6" :maxCount="1"
:width="width" :height="height">
<image :src="backImg" :style="`width: ${width}px;height: ${height}px;`"></image>
<image class="iconimg" src="/static/img/Takingpictures.png"
:style="`width: ${width/4}px;height: ${width/4}px;`"></image>
<u-upload
:fileList="ImgUrl"
@afterRead="afterRead"
:deletable="true"
@delete="deletePic"
name="6"
:maxCount="1"
:width="width"
:height="height"
>
<image :src="backImg" :style="{ width: width + 'px', height: height + 'px' }"></image>
<image
class="iconimg"
src="/static/img/Takingpictures.png"
:style="{ width: width / 4 + 'px', height: height / 4 + 'px' }"
></image>
</u-upload>
</view>
</template>
<script>
import {
uploadFile
} from '@/api/upload.js'
import { uploadFile } from '@/api/upload.js';
export default {
name: 'UploadIdNumber',
props: {
@@ -22,45 +31,45 @@
},
value: {
type: String,
default: null
default: null,
},
width: {
type: Number,
default: 280
default: 280,
},
height: {
type: Number,
default: 150
default: 150,
},
contentStyle: {
type: String,
default: ''
}
default: '',
},
},
computed: {
ImgUrl(val) {
return this.value ? [{
return this.value
? [
{
name: 'img.jpg',
url: this.value
}] : []
}
url: this.value,
},
]
: [];
},
},
methods: {
afterRead({
file,
index,
name
}) {
afterRead({ file, index, name }) {
// this.$emit("input", file);
uploadFile(file).then((url) => {
this.$emit("input", url);
})
this.$emit('input', url);
});
},
deletePic() {
this.$emit("input", null);
this.$emit('input', null);
},
}
}
},
};
</script>
<style scoped>

File diff suppressed because it is too large Load Diff

View File

@@ -308,7 +308,7 @@
<view
class="addressinfo"
@click="selectMap"
:style="`fontSize: 15px;color: ${info.address ? '#333333' : '#c0c4cc'}`"
:style="{ fontSize: '15px', color: info.address ? '#333333' : '#c0c4cc' }"
>
{{ info.address || '请选择' }}
</view>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@@ -86,6 +86,10 @@ async function DoAjax(options, config = {}) {
if (baseUrl) {
options.url = baseUrl + options.url
}
// 馆陶替换url
if (options.url.startsWith('/api')) {
options.url = options.url.replace(/^\/api/, '/api/gt');
}
options = Object.assign({}, options, {
header
});

View File

@@ -11,7 +11,7 @@ module.exports = {
target: 'http://39.98.44.136:80',
ws: true,
pathRewrite: {
'^/api': '/'
'^/api': '/api'
}
},
'/qq/map': {