flat: 审核

This commit is contained in:
Apcallover
2024-04-18 20:50:22 +08:00
parent c5e9bd09f3
commit dced4cf379
12 changed files with 1679 additions and 1611 deletions

View File

@@ -1,226 +1,230 @@
<template> <template>
<view class="body" @click="goInfo(companyitem)"> <view class="body" @click="goInfo(companyitem)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }} {{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
<view style="flex:1;"></view> <view style="flex:1;"></view>
<u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag> <u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag>
<u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag> <u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag>
<u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag> <u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag>
</view> </view>
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view>
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view>
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import dictionary from '@/common/textdata.js';
export default {
beforeCreate: function () { }, export default {
props: { beforeCreate: function() {},
companyitem: { props: {
type: Object, companyitem: {
default() { return [] } type: Object,
}, default () {
comment: { return []
type: Boolean, }
default: false },
}, comment: {
noApply: { type: Boolean,
type: Boolean, default: false
default: true },
}, noApply: {
near: { type: Boolean,
type: Boolean, default: true
default: false },
} near: {
}, type: Boolean,
data() { default: false
return { }
...dictionary, },
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.missionTitle + data() {
"</div>" return {
}; ...dictionary,
}, string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
computed: { .missionTitle +
skillNames() { "</div>"
return this.companyitem.skillNames?.split(',') };
} },
}, computed: {
methods: { skillNames() {
goComment: function (no) { return this.companyitem.skillNames?.split(',')
uni.navigateTo({ }
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` },
}) methods: {
}, goComment: function(no) {
goInfo: function (item) { uni.navigateTo({
// const isCan = this.noApply === false ? '0' : '1' url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
if(item.type == 0) { })
uni.navigateTo({ },
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1` goInfo: function(item) {
}) // const isCan = this.noApply === false ? '0' : '1'
} else if(item.type == 1) { if (item.type == 0) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1` url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`
}) })
} } else if (item.type == 1) {
}, uni.navigateTo({
getCity: function (val) { url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`
if (val) { })
let areas = this.$store.getters.getAreaParents(val) }
if (areas.length === 3) { },
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label getCity: function(val) {
} if (val) {
} let areas = this.$store.getters.getAreaParents(val)
}, if (areas.length === 3) {
toDoller, return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
dateFormat }
} }
} },
</script> toDoller,
dateFormat
<style> }
.commentimg_image { }
width: 40rpx; </script>
height: 40rpx;
} <style>
.commentimg_image {
.commentimg { width: 40rpx;
display: flex; height: 40rpx;
align-items: center; }
justify-content: flex-end;
} .commentimg {
display: flex;
.gocomment { align-items: center;
font-size: 26rpx !important; justify-content: flex-end;
border-radius: 5rpx; }
border: 1rpx solid #c3c3c3;
width: 160rpx; .gocomment {
text-align: center; font-size: 26rpx !important;
float: right; border-radius: 5rpx;
height: 50rpx; border: 1rpx solid #c3c3c3;
line-height: 50rpx; width: 160rpx;
} text-align: center;
float: right;
.timeAddress { height: 50rpx;
display: flex; line-height: 50rpx;
align-items: center; }
justify-content: space-between;
font-family: PingFangSC-Regular; .timeAddress {
font-size: 24rpx; display: flex;
color: #999999; align-items: center;
margin: 10rpx 0; justify-content: space-between;
padding: 10rpx 0; font-family: PingFangSC-Regular;
} font-size: 24rpx;
color: #999999;
.allName { margin: 10rpx 0;
font-family: PingFangSC-Regular; padding: 10rpx 0;
font-size: 28rpx; }
color: #666666;
} .allName {
font-family: PingFangSC-Regular;
.askList { font-size: 28rpx;
/* width: 14%; */ color: #666666;
font-family: PingFangSC-Regular; }
font-size: 24rpx;
color: #666666; .askList {
background-color: #f6f6f6; /* width: 14%; */
padding: 5rpx 15rpx; font-family: PingFangSC-Regular;
margin-right: 10rpx; font-size: 24rpx;
margin-bottom: 10rpx; color: #666666;
} background-color: #f6f6f6;
padding: 5rpx 15rpx;
.ask { margin-right: 10rpx;
overflow: hidden; margin-bottom: 10rpx;
width: 100%; }
display: flex;
align-items: center; .ask {
flex-wrap: wrap; overflow: hidden;
justify-content: flex-start; width: 100%;
margin: 20rpx 0; display: flex;
} align-items: center;
flex-wrap: wrap;
.head_right { justify-content: flex-start;
ont-family: PingFangSC-Medium; margin: 20rpx 0;
font-size: 28rpx; }
color: #F46161;
font-weight: bold; .head_right {
} ont-family: PingFangSC-Medium;
font-size: 28rpx;
.head_left { color: #F46161;
font-family: PingFangSC-Medium; font-weight: bold;
font-size: 32rpx; }
font-weight: bold;
color: #333333; .head_left {
width: 350rpx; font-family: PingFangSC-Medium;
overflow: hidden; font-size: 32rpx;
white-space: nowrap; font-weight: bold;
/*不换行*/ color: #333333;
text-overflow: ellipsis; width: 350rpx;
/*超出部分文字以...显示*/ overflow: hidden;
} white-space: nowrap;
/*不换行*/
.highlight { text-overflow: ellipsis;
color: #F46161; /*超出部分文字以...显示*/
} }
.body { .highlight {
width: 690rpx; color: #F46161;
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .body {
box-sizing: border-box; width: 690rpx;
padding: 20rpx; margin: 0rpx auto;
padding-bottom: 0; background-color: #fefefe;
border-radius: 20rpx; overflow: hidden;
margin-top: 20rpx; box-sizing: border-box;
} padding: 20rpx;
padding-bottom: 0;
.heads { border-radius: 20rpx;
display: flex; margin-top: 20rpx;
align-items: center; }
justify-content: space-between;
} .heads {
</style> display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -1,236 +1,244 @@
<template> <template>
<view class="body" @click="goInfo(companyitem)"> <view class="body" @click="goInfo(companyitem)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }} {{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
<view style="flex:1;"></view> <view style="flex:1;"></view>
<u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag> <u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag>
<u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag> <u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag>
<u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag> <u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag>
</view> </view>
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view>
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view>
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import { defaults } from "lodash"; import dictionary from '@/common/textdata.js';
import {
export default { defaults
beforeCreate: function () { }, } from "lodash";
props: {
companyitem: { export default {
type: Object, beforeCreate: function() {},
default() { return [] } props: {
}, companyitem: {
comment: { type: Object,
type: Boolean, default () {
default: false return []
}, }
noApply: { },
type: Boolean, comment: {
default: true type: Boolean,
}, default: false
near: { },
type: Boolean, noApply: {
default: false type: Boolean,
} default: true
}, },
data() { near: {
return { type: Boolean,
...dictionary, default: false
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.missionTitle + }
"</div>" },
}; data() {
}, return {
computed: { ...dictionary,
skillNames() { string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
if(this.companyitem.skillNames) { .missionTitle +
return this.companyitem.skillNames?.split(',') "</div>"
} else { };
return [] },
} computed: {
} skillNames() {
}, if (this.companyitem.skillNames) {
methods: { return this.companyitem.skillNames?.split(',')
goComment: function (no) { } else {
uni.navigateTo({ return []
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` }
}) }
}, },
goInfo: function (item) { methods: {
// const isCan = this.noApply === false ? '0' : '1' goComment: function(no) {
switch(item.type) { uni.navigateTo({
case 0: url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
this.navTo(`/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`) })
break },
case 1: goInfo: function(item) {
this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`) // const isCan = this.noApply === false ? '0' : '1'
break switch (item.type) {
case 2: case 0:
this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`) this.navTo(
break `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`
default: )
this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`) break
} case 1:
this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`)
}, break
getCity: function (val) { case 2:
if (val) { this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`)
let areas = this.$store.getters.getAreaParents(val) break
if (areas.length === 3) { default:
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label this.navTo(`/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`)
} }
}
}, },
toDoller, getCity: function(val) {
dateFormat if (val) {
} let areas = this.$store.getters.getAreaParents(val)
} if (areas.length === 3) {
</script> return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
}
<style> }
.commentimg_image { },
width: 40rpx; toDoller,
height: 40rpx; dateFormat
} }
}
.commentimg { </script>
display: flex;
align-items: center; <style>
justify-content: flex-end; .commentimg_image {
} width: 40rpx;
height: 40rpx;
.gocomment { }
font-size: 26rpx !important;
border-radius: 5rpx; .commentimg {
border: 1rpx solid #c3c3c3; display: flex;
width: 160rpx; align-items: center;
text-align: center; justify-content: flex-end;
float: right; }
height: 50rpx;
line-height: 50rpx; .gocomment {
} font-size: 26rpx !important;
border-radius: 5rpx;
.timeAddress { border: 1rpx solid #c3c3c3;
display: flex; width: 160rpx;
align-items: center; text-align: center;
justify-content: space-between; float: right;
font-family: PingFangSC-Regular; height: 50rpx;
font-size: 24rpx; line-height: 50rpx;
color: #999999; }
margin: 10rpx 0;
padding: 10rpx 0; .timeAddress {
} display: flex;
align-items: center;
.allName { justify-content: space-between;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 28rpx; font-size: 24rpx;
color: #666666; color: #999999;
} margin: 10rpx 0;
padding: 10rpx 0;
.askList { }
/* width: 14%; */
font-family: PingFangSC-Regular; .allName {
font-size: 24rpx; font-family: PingFangSC-Regular;
color: #666666; font-size: 28rpx;
background-color: #f6f6f6; color: #666666;
padding: 5rpx 15rpx; }
margin-right: 10rpx;
margin-bottom: 10rpx; .askList {
} /* width: 14%; */
font-family: PingFangSC-Regular;
.ask { font-size: 24rpx;
overflow: hidden; color: #666666;
width: 100%; background-color: #f6f6f6;
display: flex; padding: 5rpx 15rpx;
align-items: center; margin-right: 10rpx;
flex-wrap: wrap; margin-bottom: 10rpx;
justify-content: flex-start; }
margin: 20rpx 0;
} .ask {
overflow: hidden;
.head_right { width: 100%;
ont-family: PingFangSC-Medium; display: flex;
font-size: 28rpx; align-items: center;
color: #F46161; flex-wrap: wrap;
font-weight: bold; justify-content: flex-start;
} margin: 20rpx 0;
}
.head_left {
font-family: PingFangSC-Medium; .head_right {
font-size: 32rpx; ont-family: PingFangSC-Medium;
font-weight: bold; font-size: 28rpx;
color: #333333; color: #F46161;
width: 350rpx; font-weight: bold;
overflow: hidden; }
white-space: nowrap;
/*不换行*/ .head_left {
text-overflow: ellipsis; font-family: PingFangSC-Medium;
/*超出部分文字以...显示*/ font-size: 32rpx;
} font-weight: bold;
color: #333333;
.highlight { width: 350rpx;
color: #F46161; overflow: hidden;
} white-space: nowrap;
/*不换行*/
.body { text-overflow: ellipsis;
width: 690rpx; /*超出部分文字以...显示*/
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .highlight {
box-sizing: border-box; color: #F46161;
padding: 20rpx; }
padding-bottom: 0;
border-radius: 20rpx; .body {
margin-top: 20rpx; width: 690rpx;
} margin: 0rpx auto;
background-color: #fefefe;
.heads { overflow: hidden;
display: flex; box-sizing: border-box;
align-items: center; padding: 20rpx;
justify-content: space-between; padding-bottom: 0;
} border-radius: 20rpx;
</style> margin-top: 20rpx;
}
.heads {
display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -1,222 +1,226 @@
<template> <template>
<view class="body" @click="goInfo(companyitem.missionNo)"> <view class="body" @click="goInfo(companyitem.missionNo)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }} {{ companyitem.wage }} {{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
</view> </view>
<!-- <view class="allName"> <!-- <view class="allName">
{{ companyitem.companyName }} {{ companyitem.companyName }}
</view> --> </view> -->
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view>
<!-- <view v-if="near"> </view>
{{ companyitem.distanceStr }}km <!-- <view v-if="near">
</view> {{ companyitem.distanceStr }}km
<view v-else> </view>
{{ getCity(companyitem.cityId) }} <view v-else>
</view> --> {{ getCity(companyitem.cityId) }}
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view> -->
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import dictionary from '@/common/textdata.js';
export default {
beforeCreate: function () { }, export default {
props: { beforeCreate: function() {},
companyitem: { props: {
type: Object, companyitem: {
default() { return [] } type: Object,
}, default () {
comment: { return []
type: Boolean, }
default: false },
}, comment: {
noApply: { type: Boolean,
type: Boolean, default: false
default: true },
}, noApply: {
near: { type: Boolean,
type: Boolean, default: true
default: false },
} near: {
}, type: Boolean,
data() { default: false
return { }
...dictionary, },
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.missionTitle + data() {
"</div>" return {
}; ...dictionary,
}, string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
computed: { .missionTitle +
skillNames() { "</div>"
return this.companyitem.skillNames.split(',') };
} },
}, computed: {
methods: { skillNames() {
goComment: function (no) { return this.companyitem.skillNames.split(',')
uni.navigateTo({ }
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` },
}) methods: {
}, goComment: function(no) {
goInfo: function (no) { uni.navigateTo({
const isCan = this.noApply === false ? '0' : '1' url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
uni.navigateTo({ })
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=${isCan}` },
}) goInfo: function(no) {
}, const isCan = this.noApply === false ? '0' : '1'
getCity: function (val) { uni.navigateTo({
if (val) { url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=${isCan}`
let areas = this.$store.getters.getAreaParents(val) })
if (areas.length === 3) { },
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label getCity: function(val) {
} if (val) {
} let areas = this.$store.getters.getAreaParents(val)
}, if (areas.length === 3) {
toDoller, return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
dateFormat }
} }
} },
</script> toDoller,
dateFormat
<style> }
.commentimg_image { }
width: 40rpx; </script>
height: 40rpx;
} <style>
.commentimg_image {
.commentimg { width: 40rpx;
display: flex; height: 40rpx;
align-items: center; }
justify-content: flex-end;
} .commentimg {
display: flex;
.gocomment { align-items: center;
font-size: 26rpx !important; justify-content: flex-end;
border-radius: 5rpx; }
border: 1rpx solid #c3c3c3;
width: 160rpx; .gocomment {
text-align: center; font-size: 26rpx !important;
float: right; border-radius: 5rpx;
height: 50rpx; border: 1rpx solid #c3c3c3;
line-height: 50rpx; width: 160rpx;
} text-align: center;
float: right;
.timeAddress { height: 50rpx;
display: flex; line-height: 50rpx;
align-items: center; }
justify-content: space-between;
font-family: PingFangSC-Regular; .timeAddress {
font-size: 24rpx; display: flex;
color: #999999; align-items: center;
margin: 10rpx 0; justify-content: space-between;
padding: 10rpx 0; font-family: PingFangSC-Regular;
} font-size: 24rpx;
color: #999999;
.allName { margin: 10rpx 0;
font-family: PingFangSC-Regular; padding: 10rpx 0;
font-size: 28rpx; }
color: #666666;
} .allName {
font-family: PingFangSC-Regular;
.askList { font-size: 28rpx;
/* width: 14%; */ color: #666666;
font-family: PingFangSC-Regular; }
font-size: 24rpx;
color: #666666; .askList {
background-color: #f6f6f6; /* width: 14%; */
padding: 5rpx 15rpx; font-family: PingFangSC-Regular;
margin-right: 10rpx; font-size: 24rpx;
margin-bottom: 10rpx; color: #666666;
} background-color: #f6f6f6;
padding: 5rpx 15rpx;
.ask { margin-right: 10rpx;
overflow: hidden; margin-bottom: 10rpx;
width: 100%; }
display: flex;
align-items: center; .ask {
flex-wrap: wrap; overflow: hidden;
justify-content: flex-start; width: 100%;
margin: 20rpx 0; display: flex;
} align-items: center;
flex-wrap: wrap;
.head_right { justify-content: flex-start;
ont-family: PingFangSC-Medium; margin: 20rpx 0;
font-size: 28rpx; }
color: #F46161;
font-weight: bold; .head_right {
} ont-family: PingFangSC-Medium;
font-size: 28rpx;
.head_left { color: #F46161;
font-family: PingFangSC-Medium; font-weight: bold;
font-size: 32rpx; }
font-weight: bold;
color: #333333; .head_left {
width: 350rpx; font-family: PingFangSC-Medium;
overflow: hidden; font-size: 32rpx;
white-space: nowrap; font-weight: bold;
/*不换行*/ color: #333333;
text-overflow: ellipsis; width: 350rpx;
/*超出部分文字以...显示*/ overflow: hidden;
} white-space: nowrap;
/*不换行*/
.highlight { text-overflow: ellipsis;
color: #F46161; /*超出部分文字以...显示*/
} }
.body { .highlight {
width: 690rpx; color: #F46161;
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .body {
box-sizing: border-box; width: 690rpx;
padding: 20rpx; margin: 0rpx auto;
padding-bottom: 0; background-color: #fefefe;
border-radius: 20rpx; overflow: hidden;
margin-top: 20rpx; box-sizing: border-box;
} padding: 20rpx;
padding-bottom: 0;
.heads { border-radius: 20rpx;
display: flex; margin-top: 20rpx;
align-items: center; }
justify-content: space-between;
} .heads {
</style> display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -1,226 +1,230 @@
<template> <template>
<view class="body" @click="goInfo(companyitem)"> <view class="body" @click="goInfo(companyitem)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }} {{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
<view style="flex:1;"></view> <view style="flex:1;"></view>
<u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag> <u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag>
<u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag> <u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag>
<u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag> <u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag>
</view> </view>
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.jobCompanyName }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.jobCompanyName }}</view>
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view>
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import dictionary from '@/common/textdata.js';
export default {
beforeCreate: function () { }, export default {
props: { beforeCreate: function() {},
companyitem: { props: {
type: Object, companyitem: {
default() { return [] } type: Object,
}, default () {
comment: { return []
type: Boolean, }
default: false },
}, comment: {
noApply: { type: Boolean,
type: Boolean, default: false
default: true },
}, noApply: {
near: { type: Boolean,
type: Boolean, default: true
default: false },
} near: {
}, type: Boolean,
data() { default: false
return { }
...dictionary, },
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.jobName + data() {
"</div>" return {
}; ...dictionary,
}, string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
computed: { .jobName +
skillNames() { "</div>"
return this.companyitem.skillNames.split(',') };
} },
}, computed: {
methods: { skillNames() {
goComment: function (no) { return this.companyitem.skillNames.split(',')
uni.navigateTo({ }
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` },
}) methods: {
}, goComment: function(no) {
goInfo: function (item) { uni.navigateTo({
// const isCan = this.noApply === false ? '0' : '1' url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
// if(item.type == 0) { })
// uni.navigateTo({ },
// url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1` goInfo: function(item) {
// }) // const isCan = this.noApply === false ? '0' : '1'
// } else if(item.type == 1) { // if(item.type == 0) {
uni.navigateTo({ // uni.navigateTo({
url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1` // url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`
}) // })
// } // } else if(item.type == 1) {
}, uni.navigateTo({
getCity: function (val) { url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`
if (val) { })
let areas = this.$store.getters.getAreaParents(val) // }
if (areas.length === 3) { },
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label getCity: function(val) {
} if (val) {
} let areas = this.$store.getters.getAreaParents(val)
}, if (areas.length === 3) {
toDoller, return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
dateFormat }
} }
} },
</script> toDoller,
dateFormat
<style> }
.commentimg_image { }
width: 40rpx; </script>
height: 40rpx;
} <style>
.commentimg_image {
.commentimg { width: 40rpx;
display: flex; height: 40rpx;
align-items: center; }
justify-content: flex-end;
} .commentimg {
display: flex;
.gocomment { align-items: center;
font-size: 26rpx !important; justify-content: flex-end;
border-radius: 5rpx; }
border: 1rpx solid #c3c3c3;
width: 160rpx; .gocomment {
text-align: center; font-size: 26rpx !important;
float: right; border-radius: 5rpx;
height: 50rpx; border: 1rpx solid #c3c3c3;
line-height: 50rpx; width: 160rpx;
} text-align: center;
float: right;
.timeAddress { height: 50rpx;
display: flex; line-height: 50rpx;
align-items: center; }
justify-content: space-between;
font-family: PingFangSC-Regular; .timeAddress {
font-size: 24rpx; display: flex;
color: #999999; align-items: center;
margin: 10rpx 0; justify-content: space-between;
padding: 10rpx 0; font-family: PingFangSC-Regular;
} font-size: 24rpx;
color: #999999;
.allName { margin: 10rpx 0;
font-family: PingFangSC-Regular; padding: 10rpx 0;
font-size: 28rpx; }
color: #666666;
} .allName {
font-family: PingFangSC-Regular;
.askList { font-size: 28rpx;
/* width: 14%; */ color: #666666;
font-family: PingFangSC-Regular; }
font-size: 24rpx;
color: #666666; .askList {
background-color: #f6f6f6; /* width: 14%; */
padding: 5rpx 15rpx; font-family: PingFangSC-Regular;
margin-right: 10rpx; font-size: 24rpx;
margin-bottom: 10rpx; color: #666666;
} background-color: #f6f6f6;
padding: 5rpx 15rpx;
.ask { margin-right: 10rpx;
overflow: hidden; margin-bottom: 10rpx;
width: 100%; }
display: flex;
align-items: center; .ask {
flex-wrap: wrap; overflow: hidden;
justify-content: flex-start; width: 100%;
margin: 20rpx 0; display: flex;
} align-items: center;
flex-wrap: wrap;
.head_right { justify-content: flex-start;
ont-family: PingFangSC-Medium; margin: 20rpx 0;
font-size: 28rpx; }
color: #F46161;
font-weight: bold; .head_right {
} ont-family: PingFangSC-Medium;
font-size: 28rpx;
.head_left { color: #F46161;
font-family: PingFangSC-Medium; font-weight: bold;
font-size: 32rpx; }
font-weight: bold;
color: #333333; .head_left {
width: 350rpx; font-family: PingFangSC-Medium;
overflow: hidden; font-size: 32rpx;
white-space: nowrap; font-weight: bold;
/*不换行*/ color: #333333;
text-overflow: ellipsis; width: 350rpx;
/*超出部分文字以...显示*/ overflow: hidden;
} white-space: nowrap;
/*不换行*/
.highlight { text-overflow: ellipsis;
color: #F46161; /*超出部分文字以...显示*/
} }
.body { .highlight {
width: 690rpx; color: #F46161;
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .body {
box-sizing: border-box; width: 690rpx;
padding: 20rpx; margin: 0rpx auto;
padding-bottom: 0; background-color: #fefefe;
border-radius: 20rpx; overflow: hidden;
margin-top: 20rpx; box-sizing: border-box;
} padding: 20rpx;
padding-bottom: 0;
.heads { border-radius: 20rpx;
display: flex; margin-top: 20rpx;
align-items: center; }
justify-content: space-between;
} .heads {
</style> display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -1,226 +1,230 @@
<template> <template>
<view class="body" @click="goInfo(companyitem)"> <view class="body" @click="goInfo(companyitem)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }} {{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
<view style="flex:1;"></view> <view style="flex:1;"></view>
<u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag> <u-tag text="任务" v-if="companyitem.type == 0" plain size="mini" type="warning"></u-tag>
<u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag> <u-tag text="岗位" v-if="companyitem.type == 1" plain size="mini"></u-tag>
<u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag> <u-tag text="招工" v-if="companyitem.type == 2" plain size="mini"></u-tag>
</view> </view>
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.missionCompanyName }}</view>
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view>
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import dictionary from '@/common/textdata.js';
export default {
beforeCreate: function () { }, export default {
props: { beforeCreate: function() {},
companyitem: { props: {
type: Object, companyitem: {
default() { return [] } type: Object,
}, default () {
comment: { return []
type: Boolean, }
default: false },
}, comment: {
noApply: { type: Boolean,
type: Boolean, default: false
default: true },
}, noApply: {
near: { type: Boolean,
type: Boolean, default: true
default: false },
} near: {
}, type: Boolean,
data() { default: false
return { }
...dictionary, },
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.missionTitle + data() {
"</div>" return {
}; ...dictionary,
}, string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
computed: { .missionTitle +
skillNames() { "</div>"
return this.companyitem.skillNames.split(',') };
} },
}, computed: {
methods: { skillNames() {
goComment: function (no) { return this.companyitem.skillNames.split(',')
uni.navigateTo({ }
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` },
}) methods: {
}, goComment: function(no) {
goInfo: function (item) { uni.navigateTo({
// const isCan = this.noApply === false ? '0' : '1' url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
// if(item.type == 0) { })
uni.navigateTo({ },
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1` goInfo: function(item) {
}) // const isCan = this.noApply === false ? '0' : '1'
// } else if(item.type == 1) { // if(item.type == 0) {
// uni.navigateTo({ uni.navigateTo({
// url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1` url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(item.missionNo)}&isCan=1`
// }) })
// } // } else if(item.type == 1) {
}, // uni.navigateTo({
getCity: function (val) { // url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(item.id)}&isCan=1`
if (val) { // })
let areas = this.$store.getters.getAreaParents(val) // }
if (areas.length === 3) { },
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label getCity: function(val) {
} if (val) {
} let areas = this.$store.getters.getAreaParents(val)
}, if (areas.length === 3) {
toDoller, return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
dateFormat }
} }
} },
</script> toDoller,
dateFormat
<style> }
.commentimg_image { }
width: 40rpx; </script>
height: 40rpx;
} <style>
.commentimg_image {
.commentimg { width: 40rpx;
display: flex; height: 40rpx;
align-items: center; }
justify-content: flex-end;
} .commentimg {
display: flex;
.gocomment { align-items: center;
font-size: 26rpx !important; justify-content: flex-end;
border-radius: 5rpx; }
border: 1rpx solid #c3c3c3;
width: 160rpx; .gocomment {
text-align: center; font-size: 26rpx !important;
float: right; border-radius: 5rpx;
height: 50rpx; border: 1rpx solid #c3c3c3;
line-height: 50rpx; width: 160rpx;
} text-align: center;
float: right;
.timeAddress { height: 50rpx;
display: flex; line-height: 50rpx;
align-items: center; }
justify-content: space-between;
font-family: PingFangSC-Regular; .timeAddress {
font-size: 24rpx; display: flex;
color: #999999; align-items: center;
margin: 10rpx 0; justify-content: space-between;
padding: 10rpx 0; font-family: PingFangSC-Regular;
} font-size: 24rpx;
color: #999999;
.allName { margin: 10rpx 0;
font-family: PingFangSC-Regular; padding: 10rpx 0;
font-size: 28rpx; }
color: #666666;
} .allName {
font-family: PingFangSC-Regular;
.askList { font-size: 28rpx;
/* width: 14%; */ color: #666666;
font-family: PingFangSC-Regular; }
font-size: 24rpx;
color: #666666; .askList {
background-color: #f6f6f6; /* width: 14%; */
padding: 5rpx 15rpx; font-family: PingFangSC-Regular;
margin-right: 10rpx; font-size: 24rpx;
margin-bottom: 10rpx; color: #666666;
} background-color: #f6f6f6;
padding: 5rpx 15rpx;
.ask { margin-right: 10rpx;
overflow: hidden; margin-bottom: 10rpx;
width: 100%; }
display: flex;
align-items: center; .ask {
flex-wrap: wrap; overflow: hidden;
justify-content: flex-start; width: 100%;
margin: 20rpx 0; display: flex;
} align-items: center;
flex-wrap: wrap;
.head_right { justify-content: flex-start;
ont-family: PingFangSC-Medium; margin: 20rpx 0;
font-size: 28rpx; }
color: #F46161;
font-weight: bold; .head_right {
} ont-family: PingFangSC-Medium;
font-size: 28rpx;
.head_left { color: #F46161;
font-family: PingFangSC-Medium; font-weight: bold;
font-size: 32rpx; }
font-weight: bold;
color: #333333; .head_left {
width: 350rpx; font-family: PingFangSC-Medium;
overflow: hidden; font-size: 32rpx;
white-space: nowrap; font-weight: bold;
/*不换行*/ color: #333333;
text-overflow: ellipsis; width: 350rpx;
/*超出部分文字以...显示*/ overflow: hidden;
} white-space: nowrap;
/*不换行*/
.highlight { text-overflow: ellipsis;
color: #F46161; /*超出部分文字以...显示*/
} }
.body { .highlight {
width: 690rpx; color: #F46161;
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .body {
box-sizing: border-box; width: 690rpx;
padding: 20rpx; margin: 0rpx auto;
padding-bottom: 0; background-color: #fefefe;
border-radius: 20rpx; overflow: hidden;
margin-top: 20rpx; box-sizing: border-box;
} padding: 20rpx;
padding-bottom: 0;
.heads { border-radius: 20rpx;
display: flex; margin-top: 20rpx;
align-items: center; }
justify-content: space-between;
} .heads {
</style> display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -1,230 +1,234 @@
<template> <template>
<view class="body" @click="goInfo(companyitem.id)"> <view class="body" @click="goInfo(companyitem.id)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }} {{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
</view> </view>
<!-- <view class="allName"> <!-- <view class="allName">
{{ companyitem.jobCompanyName }} {{ companyitem.jobCompanyName }}
</view> --> </view> -->
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<!-- <view v-if="companyitem.missionCompanyName"> <!-- <view v-if="companyitem.missionCompanyName">
{{ companyitem.missionCompanyName }} {{ companyitem.missionCompanyName }}
</view> --> </view> -->
<!-- <view> <!-- <view>
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
{{ companyitem.jobCompanyName }} {{ companyitem.jobCompanyName }}
</view> --> </view> -->
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.jobCompanyName }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.jobCompanyName }}</view>
<!-- <view v-if="near"> </view>
{{ companyitem.distanceStr }}km <!-- <view v-if="near">
</view> {{ companyitem.distanceStr }}km
<view v-else> </view>
{{ getCity(companyitem.cityId) }} <view v-else>
</view> --> {{ getCity(companyitem.cityId) }}
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view> -->
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import dictionary from '@/common/textdata.js';
export default {
beforeCreate: function () { }, export default {
props: { beforeCreate: function() {},
companyitem: { props: {
type: Object, companyitem: {
default() { return [] } type: Object,
}, default () {
comment: { return []
type: Boolean, }
default: false },
}, comment: {
noApply: { type: Boolean,
type: Boolean, default: false
default: true },
}, noApply: {
near: { type: Boolean,
type: Boolean, default: true
default: false },
} near: {
}, type: Boolean,
data() { default: false
return { }
...dictionary, },
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.jobName + data() {
"</div>" return {
}; ...dictionary,
}, string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
computed: { .jobName +
skillNames() { "</div>"
return this.companyitem.skillNames.split(',') };
} },
}, computed: {
methods: { skillNames() {
goComment: function (no) { return this.companyitem.skillNames.split(',')
uni.navigateTo({ }
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` },
}) methods: {
}, goComment: function(no) {
goInfo: function (no) { uni.navigateTo({
console.log('11111') url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
const isCan = this.noApply === false ? '0' : '1' })
uni.navigateTo({ },
url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(no)}&isCan=${isCan}` goInfo: function(no) {
}) console.log('11111')
}, const isCan = this.noApply === false ? '0' : '1'
getCity: function (val) { uni.navigateTo({
if (val) { url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(no)}&isCan=${isCan}`
let areas = this.$store.getters.getAreaParents(val) })
if (areas.length === 3) { },
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label getCity: function(val) {
} if (val) {
} let areas = this.$store.getters.getAreaParents(val)
}, if (areas.length === 3) {
toDoller, return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
dateFormat }
} }
} },
</script> toDoller,
dateFormat
<style> }
.commentimg_image { }
width: 40rpx; </script>
height: 40rpx;
} <style>
.commentimg_image {
.commentimg { width: 40rpx;
display: flex; height: 40rpx;
align-items: center; }
justify-content: flex-end;
} .commentimg {
display: flex;
.gocomment { align-items: center;
font-size: 26rpx !important; justify-content: flex-end;
border-radius: 5rpx; }
border: 1rpx solid #c3c3c3;
width: 160rpx; .gocomment {
text-align: center; font-size: 26rpx !important;
float: right; border-radius: 5rpx;
height: 50rpx; border: 1rpx solid #c3c3c3;
line-height: 50rpx; width: 160rpx;
} text-align: center;
float: right;
.timeAddress { height: 50rpx;
display: flex; line-height: 50rpx;
align-items: center; }
justify-content: space-between;
font-family: PingFangSC-Regular; .timeAddress {
font-size: 24rpx; display: flex;
color: #999999; align-items: center;
margin: 10rpx 0; justify-content: space-between;
padding: 10rpx 0; font-family: PingFangSC-Regular;
} font-size: 24rpx;
color: #999999;
.allName { margin: 10rpx 0;
font-family: PingFangSC-Regular; padding: 10rpx 0;
font-size: 28rpx; }
color: #666666;
} .allName {
font-family: PingFangSC-Regular;
.askList { font-size: 28rpx;
/* width: 14%; */ color: #666666;
font-family: PingFangSC-Regular; }
font-size: 24rpx;
color: #666666; .askList {
background-color: #f6f6f6; /* width: 14%; */
padding: 5rpx 15rpx; font-family: PingFangSC-Regular;
margin-right: 10rpx; font-size: 24rpx;
margin-bottom: 10rpx; color: #666666;
} background-color: #f6f6f6;
padding: 5rpx 15rpx;
.ask { margin-right: 10rpx;
overflow: hidden; margin-bottom: 10rpx;
width: 100%; }
display: flex;
align-items: center; .ask {
flex-wrap: wrap; overflow: hidden;
justify-content: flex-start; width: 100%;
margin: 20rpx 0; display: flex;
} align-items: center;
flex-wrap: wrap;
.head_right { justify-content: flex-start;
ont-family: PingFangSC-Medium; margin: 20rpx 0;
font-size: 28rpx; }
color: #F46161;
font-weight: bold; .head_right {
} ont-family: PingFangSC-Medium;
font-size: 28rpx;
.head_left { color: #F46161;
font-family: PingFangSC-Medium; font-weight: bold;
font-size: 32rpx; }
font-weight: bold;
color: #333333; .head_left {
width: 350rpx; font-family: PingFangSC-Medium;
overflow: hidden; font-size: 32rpx;
white-space: nowrap; font-weight: bold;
/*不换行*/ color: #333333;
text-overflow: ellipsis; width: 350rpx;
/*超出部分文字以...显示*/ overflow: hidden;
} white-space: nowrap;
/*不换行*/
.highlight { text-overflow: ellipsis;
color: #F46161; /*超出部分文字以...显示*/
} }
.body { .highlight {
width: 690rpx; color: #F46161;
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .body {
box-sizing: border-box; width: 690rpx;
padding: 20rpx; margin: 0rpx auto;
padding-bottom: 0; background-color: #fefefe;
border-radius: 20rpx; overflow: hidden;
margin-top: 20rpx; box-sizing: border-box;
} padding: 20rpx;
padding-bottom: 0;
.heads { border-radius: 20rpx;
display: flex; margin-top: 20rpx;
align-items: center; }
justify-content: space-between;
} .heads {
</style> display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -33,6 +33,7 @@ const msg = (title, duration = 1500, mask = false, icon = 'none') => {
icon icon
}); });
} }
const sleep = (time) => new Promise(resolve => setTimeout(resolve, time))
// 注册全局组件 // 注册全局组件
import JlButton from "@/components/jl-button/main.vue" import JlButton from "@/components/jl-button/main.vue"
@@ -45,7 +46,8 @@ Vue.component('jl-form-item', JlFormItem)
Vue.component('cs-button', CSButton) Vue.component('cs-button', CSButton)
Vue.component('empty', empty) Vue.component('empty', empty)
Vue.prototype.$api = { Vue.prototype.$api = {
msg msg,
sleep
} }
Vue.prototype.$config = config Vue.prototype.$config = config
Vue.prototype.navTo = navTo Vue.prototype.navTo = navTo

View File

@@ -1,230 +1,234 @@
<template> <template>
<view class="body" @click="goInfo(companyitem.id)"> <view class="body" @click="goInfo(companyitem.id)">
<view class="heads"> <view class="heads">
<view class="head_left"> <view class="head_left">
<rich-text :nodes="string"> <rich-text :nodes="string">
</rich-text> </rich-text>
</view> </view>
<view class="head_right"> <view class="head_right">
{{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }} {{ companyitem.wage }}{{ wageUnit[companyitem.wageUnitCategory] }}
</view> </view>
</view> </view>
<view class="ask"> <view class="ask">
<view class="askList"> <view class="askList">
{{ companyitem.tradeNames }} {{ companyitem.tradeNames }}
</view> </view>
<view class="askList" v-for="(item, index) in skillNames" :key="index"> <view class="askList" v-for="(item, index) in skillNames" :key="index">
{{ item }} {{ item }}
</view> </view>
</view> </view>
<!-- <view class="allName"> <!-- <view class="allName">
{{ companyitem.jobCompanyName }} {{ companyitem.jobCompanyName }}
</view> --> </view> -->
<view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view> <view style="width: 100%;height: 1rpx;background-color: #999;margin: 0 auto;opacity: .5;"></view>
<view class="timeAddress" style="position: relative;"> <view class="timeAddress" style="position: relative;">
<!-- <view v-if="companyitem.missionCompanyName"> <!-- <view v-if="companyitem.missionCompanyName">
{{ companyitem.missionCompanyName }} {{ companyitem.missionCompanyName }}
</view> --> </view> -->
<!-- <view> <!-- <view>
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
{{ companyitem.jobCompanyName }} {{ companyitem.jobCompanyName }}
</view> --> </view> -->
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode=""></image> <image src="../../static/img/city.png" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;" mode="">
<view style="font-size: 26rpx;color:#333;">{{ companyitem.jobAddress }}</view> </image>
</view> <view style="font-size: 26rpx;color:#333;">{{ companyitem.jobAddress }}</view>
<!-- <view v-if="near"> </view>
{{ companyitem.distanceStr }}km <!-- <view v-if="near">
</view> {{ companyitem.distanceStr }}km
<view v-else> </view>
{{ getCity(companyitem.cityId) }} <view v-else>
</view> --> {{ getCity(companyitem.cityId) }}
<view style="display: flex;align-items: center;position:absolute;right:0;"> </view> -->
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image> <view style="display: flex;align-items: center;position:absolute;right:0;">
<view>2.2km</view> <image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
</view> <view>2.2km</view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> </view>
<view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">
<image class="commentimg_image" src="../../static/img/star.full.svg" v-for="index1 in companyitem.scoreAll" <view class="comment_content commentimg" v-if='companyitem.scoreAll > 0'>
mode="" :key="index1"></image> <image class="commentimg_image" src="../../static/img/star.full.svg"
<image class="commentimg_image" src="../../static/img/star.empty.svg" v-for="index1 in companyitem.scoreAll" mode="" :key="index1"></image>
v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image> <image class="commentimg_image" src="../../static/img/star.empty.svg"
</view> v-for="index2 in (5 - companyitem.scoreAll)" mode="" :key="index2"></image>
<view class="comment_content allName gocomment" v-else> </view>
评价 <view class="comment_content allName gocomment" v-else>
</view> 评价
</view> </view>
</view> </view>
</template> </view>
</template>
<script>
import { <script>
toDoller, import {
dateFormat toDoller,
} from "../../untils/format.js"; dateFormat
import dictionary from '@/common/textdata.js'; } from "../../untils/format.js";
import dictionary from '@/common/textdata.js';
export default {
beforeCreate: function () { }, export default {
props: { beforeCreate: function() {},
companyitem: { props: {
type: Object, companyitem: {
default() { return [] } type: Object,
}, default () {
comment: { return []
type: Boolean, }
default: false },
}, comment: {
noApply: { type: Boolean,
type: Boolean, default: false
default: true },
}, noApply: {
near: { type: Boolean,
type: Boolean, default: true
default: false },
} near: {
}, type: Boolean,
data() { default: false
return { }
...dictionary, },
string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem.jobName + data() {
"</div>" return {
}; ...dictionary,
}, string: "<div style='overflow: hidden;white-space: nowrap;text-overflow: ellipsis;'>" + this.companyitem
computed: { .jobName +
skillNames() { "</div>"
return this.companyitem.skillNames.split(',') };
} },
}, computed: {
methods: { skillNames() {
goComment: function (no) { return this.companyitem.skillNames.split(',')
uni.navigateTo({ }
url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}` },
}) methods: {
}, goComment: function(no) {
goInfo: function (no) { uni.navigateTo({
console.log('11111') url: `../../pageMy/mycomment/mycomment?missionNo=${encodeURIComponent(no)}`
const isCan = this.noApply === false ? '0' : '1' })
uni.navigateTo({ },
url: `/pages/projectInfo/userrecruitInfo?workId=${encodeURIComponent(no)}&isCan=${isCan}` goInfo: function(no) {
}) console.log('11111')
}, const isCan = this.noApply === false ? '0' : '1'
getCity: function (val) { uni.navigateTo({
if (val) { url: `/pages/projectInfo/userrecruitInfo?workId=${encodeURIComponent(no)}&isCan=${isCan}`
let areas = this.$store.getters.getAreaParents(val) })
if (areas.length === 3) { },
return areas[0].label + '-' + areas[1].label + '-' + areas[2].label getCity: function(val) {
} if (val) {
} let areas = this.$store.getters.getAreaParents(val)
}, if (areas.length === 3) {
toDoller, return areas[0].label + '-' + areas[1].label + '-' + areas[2].label
dateFormat }
} }
} },
</script> toDoller,
dateFormat
<style> }
.commentimg_image { }
width: 40rpx; </script>
height: 40rpx;
} <style>
.commentimg_image {
.commentimg { width: 40rpx;
display: flex; height: 40rpx;
align-items: center; }
justify-content: flex-end;
} .commentimg {
display: flex;
.gocomment { align-items: center;
font-size: 26rpx !important; justify-content: flex-end;
border-radius: 5rpx; }
border: 1rpx solid #c3c3c3;
width: 160rpx; .gocomment {
text-align: center; font-size: 26rpx !important;
float: right; border-radius: 5rpx;
height: 50rpx; border: 1rpx solid #c3c3c3;
line-height: 50rpx; width: 160rpx;
} text-align: center;
float: right;
.timeAddress { height: 50rpx;
display: flex; line-height: 50rpx;
align-items: center; }
justify-content: space-between;
font-family: PingFangSC-Regular; .timeAddress {
font-size: 24rpx; display: flex;
color: #999999; align-items: center;
margin: 10rpx 0; justify-content: space-between;
padding: 10rpx 0; font-family: PingFangSC-Regular;
} font-size: 24rpx;
color: #999999;
.allName { margin: 10rpx 0;
font-family: PingFangSC-Regular; padding: 10rpx 0;
font-size: 28rpx; }
color: #666666;
} .allName {
font-family: PingFangSC-Regular;
.askList { font-size: 28rpx;
/* width: 14%; */ color: #666666;
font-family: PingFangSC-Regular; }
font-size: 24rpx;
color: #666666; .askList {
background-color: #f6f6f6; /* width: 14%; */
padding: 5rpx 15rpx; font-family: PingFangSC-Regular;
margin-right: 10rpx; font-size: 24rpx;
margin-bottom: 10rpx; color: #666666;
} background-color: #f6f6f6;
padding: 5rpx 15rpx;
.ask { margin-right: 10rpx;
overflow: hidden; margin-bottom: 10rpx;
width: 100%; }
display: flex;
align-items: center; .ask {
flex-wrap: wrap; overflow: hidden;
justify-content: flex-start; width: 100%;
margin: 20rpx 0; display: flex;
} align-items: center;
flex-wrap: wrap;
.head_right { justify-content: flex-start;
font-family: PingFangSC-Medium; margin: 20rpx 0;
font-size: 28rpx; }
color: #F46161;
font-weight: bold; .head_right {
} font-family: PingFangSC-Medium;
font-size: 28rpx;
.head_left { color: #F46161;
font-family: PingFangSC-Medium; font-weight: bold;
font-size: 32rpx; }
font-weight: bold;
color: #333333; .head_left {
width: 350rpx; font-family: PingFangSC-Medium;
overflow: hidden; font-size: 32rpx;
white-space: nowrap; font-weight: bold;
/*不换行*/ color: #333333;
text-overflow: ellipsis; width: 350rpx;
/*超出部分文字以...显示*/ overflow: hidden;
} white-space: nowrap;
/*不换行*/
.highlight { text-overflow: ellipsis;
color: #F46161; /*超出部分文字以...显示*/
} }
.body { .highlight {
width: 690rpx; color: #F46161;
margin: 0rpx auto; }
background-color: #fefefe;
overflow: hidden; .body {
box-sizing: border-box; width: 690rpx;
padding: 20rpx; margin: 0rpx auto;
padding-bottom: 0; background-color: #fefefe;
border-radius: 20rpx; overflow: hidden;
margin-top: 20rpx; box-sizing: border-box;
} padding: 20rpx;
padding-bottom: 0;
.heads { border-radius: 20rpx;
display: flex; margin-top: 20rpx;
align-items: center; }
justify-content: space-between;
} .heads {
</style> display: flex;
align-items: center;
justify-content: space-between;
}
</style>

View File

@@ -23,7 +23,12 @@
import { import {
mapState mapState
} from 'vuex' } from 'vuex'
let reviewStatus = {
'-1': '全部',
'0': "待审",
'1': "已审",
'9': "驳回",
};
export default { export default {
data() { data() {
return {} return {}
@@ -60,13 +65,29 @@
}) })
uni.hideLoading() uni.hideLoading()
if (resData.data.code === 200) { if (resData.data.code === 200) {
if (resData.data.data) { if (resData.data.data.haveCode) {
resolve() resolve()
} else { } else {
// this.$api.msg('您未申请开通该功能,请联系工作人员') switch (resData.data.data.reviewStatus) {
this.navTo( case 0:
'/pages/recruit/subPage/enterpriceCertification/enterpriceCertification' this.$api.msg('您的企业信息正在审核,请稍后再试')
) break
case 1:
this.$api.msg('您的企业信息已经通过审核但未启用,请联系工作人员')
break
case 9:
this.navTo(
'/pages/recruit/subPage/enterpriceCertification/enterpriceCertification'
)
this.$api.sleep(1000).then(() => {
this.$api.msg('您的企业信息已被系统驳回,请重新上传')
})
break
default: // -1 未提交
this.navTo(
'/pages/recruit/subPage/enterpriceCertification/enterpriceCertification'
)
}
} }
} else { } else {
reject() reject()

View File

@@ -216,11 +216,6 @@
cityId: Number(this.formData.cityId), cityId: Number(this.formData.cityId),
tradeId: Number(this.formData.tradeId), tradeId: Number(this.formData.tradeId),
} }
let resData = await addInviteCompanyAuth(params)
console.log(resData)
if (resData.data.code === 200) {
_this.$api.msg('已完成企业信息认证')
}
const _this = this const _this = this
this.$refs.formOne.validate().then(async (res) => { this.$refs.formOne.validate().then(async (res) => {
let params = { let params = {
@@ -233,8 +228,10 @@
} }
let resData = await addInviteCompanyAuth(params) let resData = await addInviteCompanyAuth(params)
if (resData.data.code === 200) { if (resData.data.code === 200) {
_this.$api.msg('已完成企业信息认证') uni.navigateBack(1)
uni.navigateBack() _this.$api.sleep(1000).then(() => {
_this.$api.msg('已完成企业信息认证')
})
} }
}).catch(errors => { }).catch(errors => {
console.log(errors) console.log(errors)

View File

@@ -120,6 +120,12 @@
<u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1"> <u-form-item label="座机" prop="callNumber" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input> <u--input v-model="info.callNumber" border="none" placeholder="请输入座机"></u--input>
</u-form-item> </u-form-item>
<!-- <u-form-item label="工作地址" labelWidth="80" prop="jobAddress" borderBottom ref="item1"
@click="showjobAddress = true; hideKeyboard()">
<PickerList placeholder="请选择行业" :columns="dic.tradeArr" labelName="name" valueName="id"
:visibel="showjobAddress" v-model="info.jobAddress" @cancel="showjobAddress = false">
</PickerList>
</u-form-item> -->
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1"> <u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.address" border="none" placeholder="请输入详细地址"></u--input> <u--input v-model="info.address" border="none" placeholder="请输入详细地址"></u--input>
</u-form-item> </u-form-item>
@@ -158,12 +164,17 @@
<script> <script>
import dic from '@/common/dic.js' import dic from '@/common/dic.js'
// import area from '@/untils/area.js'
import { import {
submitInfo, submitInfo,
getWorktypesBaseList, getWorktypesBaseList,
findTradeList, findTradeList,
getDictionary getDictionary
} from '@/api/userrecruit.js' } from '@/api/userrecruit.js'
import PickerList from './enterpriceCertification/pickerList.vue'
import {
mapGetters
} from 'vuex'
export default { export default {
data() { data() {
return { return {
@@ -185,6 +196,7 @@
showCalendar: false, showCalendar: false,
showStime: false, showStime: false,
showEtime: false, showEtime: false,
showjobAddress: false,
info: { info: {
jobName: '', // 招工名称 jobName: '', // 招工名称
stime: '', // 发布时间 stime: '', // 发布时间
@@ -365,6 +377,9 @@
default: null, default: null,
} }
}, },
components: {
PickerList
},
created() { created() {
const { const {
id: staId, id: staId,
@@ -372,6 +387,7 @@
} = dic.wageUnitCategoryState[0].filter(item => item.id == 3)[0] } = dic.wageUnitCategoryState[0].filter(item => item.id == 3)[0]
this.info.wageUnitCategory = staId this.info.wageUnitCategory = staId
this.info.wageUnitCategoryName = staLabel this.info.wageUnitCategoryName = staLabel
// console.log(area)
this.getWorkTypes() this.getWorkTypes()
this.dictionary() this.dictionary()
if (this.company) { if (this.company) {

View File

@@ -3,7 +3,7 @@ module.exports = {
port: 1887, port: 1887,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8000', target: 'http://192.168.1.106:8000',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'