Browse Source

1,新增保存

master
1263428893@qq.com 3 months ago
parent
commit
1abf2bb3a0
7 changed files with 163 additions and 81 deletions
  1. +5
    -1
      common/api.js
  2. +4
    -4
      pages/auth/index.vue
  3. +3
    -1
      pages/user/index.vue
  4. +26
    -18
      pages_subpack/enterprise/index.vue
  5. +7
    -0
      pages_subpack/master-detail/index.vue
  6. +26
    -17
      pages_subpack/person/index.vue
  7. +92
    -40
      pages_subpack/resume/index.vue

+ 5
- 1
common/api.js View File

@ -64,4 +64,8 @@ export const bindPhone = (params) => http.post('/employ-api/user/bindPhone', par
// 修改头像和昵称,传nickName和headimgurl
export const updateUserInfo = (params) => http.post('/employ-api/user/updateUserInfo', params)
// 公告详情
export const getNotice = (params) => http.get('/employ-api/index/getNotice', {params:params})
export const getNotice = (params) => http.get('/employ-api/index/getNotice', {params:params})
// 求职者修改信息 传id修改
export const updateRole = (params) => http.post('/employ-api/user/updateRole', params)
// 招聘方修改信息 传id修改
export const updateRoleBoss = (params) => http.post('/employ-api/user/updateRoleBoss', params)

+ 4
- 4
pages/auth/index.vue View File

@ -9,7 +9,7 @@
</view>
<view class="se-pb-200 se-pos-cb se-w-p-100">
<button @getuserinfo="onLogin" open-type="getUserInfo" class="se-mx-80 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32 se-c-white se-bgc-green">
<button @getuserinfo="onLogin" open-type="getUserInfo" class="se-mx-80 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32 se-c-white se-bgc-orange">
<image class="se-w-45 se-h-35" src="@/static/image/wechat.png" mode=""></image>
<text class="se-ml-10">微信登录</text>
</button>
@ -20,8 +20,8 @@
<u-checkbox-group @change="checkboxChange" v-model="checked">
<u-checkbox name="1" activeColor="#ff7a31" label-size="12" shape="circle" label="阅读并同意"></u-checkbox>
</u-checkbox-group>
<text class="se-c-green" @click="show=true">隐私政策</text>
<text class="se-c-green" @click="show=true">服务条款</text>
<text class="se-c-orange" @click="show=true">隐私政策</text>
<text class="se-c-orange" @click="show=true">服务条款</text>
</view>
</view>
@ -45,7 +45,7 @@
<view @click="onCancel" class="se-br-20 se-flex-1 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32 se-c-66 se-bgc-f5">
<text>不同意</text>
</view>
<view @click="onAgree" class="se-br-20 se-ml-20 se-flex-1 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32 se-c-white se-bgc-green">
<view @click="onAgree" class="se-br-20 se-ml-20 se-flex-1 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-32 se-c-white se-bgc-orange">
<text class="se-ml-10">同意</text>
</view>
</view>


+ 3
- 1
pages/user/index.vue View File

@ -166,7 +166,9 @@
this.worker=response.result.worker?response.result.worker:""
this.boss=response.result.boss?response.result.boss:""
this.company=response.result.company?response.result.company:""
uni.setStorageSync('company', response.result.company)
uni.setStorageSync('boss', response.result.boss)
uni.setStorageSync('worker', response.result.worker)
}).catch(error=>{
})


+ 26
- 18
pages_subpack/enterprise/index.vue View File

@ -46,7 +46,7 @@
<view class="se-px-20 se-pt-20">
<view class="se-px-20 se-pb-80 se-fs-20 se-flex">
<view @click="submit" class="se-mx-10 se-flex-1 se-br-40 se-flex-h-c se-h-60 se-lh-60 se-ta-c se-fs-28 se-c-white se-bgc-orange">
<text>提交审核</text>
<text>{{form.id?'保存':'提交审核'}}</text>
</view>
<!-- <view
class="se-mx-10 se-flex-1 se-b se-br-40 se-flex-h-c se-h-60 se-lh-60 se-ta-c se-fs-28 se-c-66 se-bgc-f5">
@ -60,7 +60,7 @@
</view>
</template>
<script>
import {roleBoss,industryList} from "@/common/api.js"
import {roleBoss,industryList,updateRoleBoss} from "@/common/api.js"
export default{
data(){
return{
@ -195,6 +195,7 @@
onRoleBoss(){
let that = this
let params={
id:that.form.id,
userName:that.form.name,
role:that.form.role,
phone:that.form.mobile,
@ -204,22 +205,29 @@
industryName:that.form.industryName,
businessLicense:that.form.businessLicenseFile.map(item => item.url).join(','),
}
roleBoss(params).then(response=>{
uni.$u.toast("提交成功,等待申请")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
}).catch(error=>{
// uni.$u.toast("")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
})
if(that.form.id){
updateRoleBoss(params).then(response=>{
uni.$u.toast("保存成功!")
setTimeout(()=>{
uni.navigateBack({
delta:1
})
},1500)
}).catch(error=>{
})
}else{
roleBoss(params).then(response=>{
uni.$u.toast("提交成功,等待申请")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
}).catch(error=>{
})
}
},
submit() {
let that = this


+ 7
- 0
pages_subpack/master-detail/index.vue View File

@ -73,6 +73,13 @@
</view>
</view>
</template>
<!--
1全日制大专以上学历艺术设计类相关专业;
2两年以上平面品牌视觉设计等相关工作经验能独立完成项目的设计工作 3C数码/个护健 类产品服务经验优先有乙方工作经验佳;
3具备一定的设计提案能力能完整的呈现设计思路与创意能清晰的表达设计逻辑与思考;
4热爱设计平面基本功扎实拥有优良的审美与创意想法对版式色彩把控能力强;对工作富有责任心具备团队沟通与协作能力;
5精通 PSAICDR 等平面设计软件能独立完成日常平面设计工作内容熟练使用 PPT/Keynote能完成提案内容的材料美化工作
-->
<script>
import {


+ 26
- 17
pages_subpack/person/index.vue View File

@ -44,7 +44,7 @@
<view class="se-px-20 se-pb-80 se-fs-20 se-flex">
<view @click="submit"
class="se-mx-10 se-flex-1 se-br-40 se-flex-h-c se-h-60 se-lh-60 se-ta-c se-fs-28 se-c-white se-bgc-orange">
<text>提交审核</text>
<text>{{form.id?'保存':'提交审核'}}</text>
</view>
<!-- <view class="se-mx-10 se-flex-1 se-b se-br-40 se-flex-h-c se-h-60 se-lh-60 se-ta-c se-fs-28 se-c-66 se-bgc-f5">
<text>联系我们</text>
@ -56,7 +56,7 @@
</view>
</template>
<script>
import {roleBoss,industryList} from "@/common/api.js"
import {roleBoss,industryList,updateRoleBoss} from "@/common/api.js"
export default{
data(){
return{
@ -192,6 +192,7 @@
onRoleBoss(){
let that = this
let params={
id:that.form.id,
userName:that.form.name,
role:that.form.role,
phone:that.form.mobile,
@ -199,21 +200,29 @@
industryName:that.form.industryName,
idCard:that.form.idCardFile.map(item => item.url).join(','),
}
roleBoss(params).then(response=>{
uni.$u.toast("提交成功,等待申请")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
}).catch(error=>{
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
})
if(that.form.id){
updateRoleBoss(params).then(response=>{
uni.$u.toast("保存成功!")
setTimeout(()=>{
uni.navigateBack({
delta:1
})
},1500)
}).catch(error=>{
})
}else{
roleBoss(params).then(response=>{
uni.$u.toast("提交成功,等待申请")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
}).catch(error=>{
})
}
},
deletePic(event) {
this.form.idCardFile.splice(e.index, 1)


+ 92
- 40
pages_subpack/resume/index.vue View File

@ -15,6 +15,9 @@
<u-form-item label="年龄" prop="age">
<u--input v-model="form.age" class="se-bgc-f5" placeholder="请输入年龄"></u--input>
</u-form-item>
<u-form-item label="地址" prop="address">
<u--input v-model="form.address" class="se-bgc-f5" placeholder="请输入地址"></u--input>
</u-form-item>
<u-form-item label="性别" prop="sex" @click="handleSexChange">
<u--input @click="handleSexChange" readonly v-model="form.sex" placeholder="请选择性别"
border="none"></u--input>
@ -32,7 +35,7 @@
</view>
</u-form-item>
<u-form-item label="个人介绍" prop="introduce">
<u--textarea v-model="form.introduce" count class="se-bgc-f5"
<u--textarea v-model="form.introduce" count maxlength="300" class="se-bgc-f5"
placeholder="请选择个人介绍"></u--textarea>
</u-form-item>
</view>
@ -48,8 +51,7 @@
</view>
</view>
<view class="se-py-20 se-w-p-100">
<u-upload :fileList="form.idCardFile" @afterRead="afterRead" @delete="deletePic"
name="1" multiple :maxCount="10"></u-upload>
<u-upload :fileList="form.idCardFile" @afterRead="afterRead" @delete="deletePic" name="1" multiple :maxCount="10"></u-upload>
</view>
</view>
</u-form-item>
@ -68,25 +70,24 @@
</view>
</u--form>
<!-- 性别 -->
<u-action-sheet :show="showSex" :actions="sexList" title="请选择性别" @close="showSex = false" @select="sexSelect">
</u-action-sheet>
<u-action-sheet :show="showSex" :actions="sexList" title="请选择性别" @close="showSex = false" @select="sexSelect"></u-action-sheet>
<!-- 种类 -->
<u-action-sheet :show="showType" :actions="typeList" title="请选择种类" @close="showType = false"
@select="typeSelect">
</u-action-sheet>
<u-action-sheet :show="showType" :actions="typeList" title="请选择种类" @close="showType = false" @select="typeSelect"></u-action-sheet>
</view>
</template>
<script>
import {
role,
industryList
industryList,
updateRole
} from "@/common/api.js"
export default {
data() {
return {
showSex: false,
sexList: [{
sexList: [
{
name: '男',
},
{
@ -97,23 +98,20 @@
typeList: [],
fileList: [],
form: {
name: '张三',
id:"",
name: '',
password: '',
mobile: '13189698114',
age: '23',
sex: '男',
industryId: '1865037318519398402',
industryName: "餐饮",
mobile: '',
address:"",
age: '',
sex: '',
industryId: '',
industryName: "",
salary: '',
salaryMin: '1800',
salaryMax: '2400',
introduce: '张三的个人简介',
idCard: '',
idCardFile: [
{
url:"https://tennis-oss.xzaiyp.top/2024-12-22/7af6b40f-96f9-4656-9eff-98dce2223699.png"
}
]
salaryMin: '',
salaryMax: '',
introduce: '',
idCardFile: []
},
rules: {
name: [{
@ -128,6 +126,14 @@
message: '请选择行业',
trigger: ['blur', 'change']
}],
address:[
{
type: 'string',
required: true,
message: '请选择地址',
trigger: ['blur', 'change']
}
],
// password: [{
// type: 'string',
// required: true,
@ -216,7 +222,39 @@
immediate: true
}
},
mounted() {
let worker = uni.getStorageSync("worker")
if(worker){
this.form.id = worker.id
this.form.name = worker.userName
this.form.mobile = worker.phone
this.form.age = worker.age
this.form.sex = worker.sex==1?'男':'女'
this.form.introduce = worker.detail
this.form.address = worker.address
this.form.industryId = worker.industryId
this.form.industryName = worker.industryName
this.form.salaryMin = worker.moneyMin
this.form.salaryMax = worker.moneyMax
this.form.idCardFile = this.stringToKeyValueArray(worker.idCard)
}
},
methods: {
stringToKeyValueArray(str, delimiter1 = ',') {
if(str){
let arro = str.split(delimiter1);
let arr = [];
arro.forEach(items=>{
let obj = {};
obj["url"] = items
arr.push(obj)
})
console.info(arr)
return arr
}else{
return []
}
},
handleIndChange() {
this.showType = true
},
@ -245,9 +283,11 @@
onRole() {
let that = this
let params = {
id: that.form.id,
userName: that.form.name,
industryId: that.form.industryId,
industryName: that.form.industryName,
address:that.form.address,
age: that.form.age,
gender: that.form.sex=="男"?1:2,
moneyMin: that.form.salaryMin,
@ -256,21 +296,33 @@
detail: that.form.introduce,
idCard: that.form.idCardFile.map(item => item.url).join(','),
}
role(params).then(response => {
uni.$u.toast("提交成功,等待申请")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
}).catch(error => {
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
})
if(this.form.id){
updateRole(params).then(response=>{
uni.$u.toast("保存成功!")
setTimeout(()=>{
uni.navigateBack({
delta:1
})
},1500)
}).catch(error=>{
})
}else{
role(params).then(response => {
uni.$u.toast("提交成功,等待申请")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
}).catch(error => {
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
})
}
},
submit() {
this.$refs.uForm.validate().then(res => {


Loading…
Cancel
Save