添加页面

This commit is contained in:
2025-11-05 17:07:17 +08:00
parent 328721e6e9
commit 886b27218c
29 changed files with 1691 additions and 829 deletions

View File

@@ -1,19 +1,19 @@
<!--
* @Date: 2024-10-08 14:29:36
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-04 14:04:39
* @LastEditTime: 2025-11-04 17:16:49
-->
<template>
<view class="page" style="background-image: url('../../../packageRc/static/pageBg.png');">
<!-- 需求新增 -->
<view class="tab-list" v-if="showTab != 1">
<view class="tab" :class="{active: activeType == 1}" @click="canChangeType ? changeType(1) : ''">求职<br>需求
<view class="tab" :class="{active: activeType == 1}" @click="canChangeType ? changeType(1, options) : ''">求职<br>需求
</view>
<view class="tab" :class="{active: activeType == 3}" @click="canChangeType ? changeType(3) : ''">创业<br>需求
<view class="tab" :class="{active: activeType == 3}" @click="canChangeType ? changeType(3, options) : ''">创业<br>需求
</view>
<view class="tab" :class="{active: activeType == 4}" @click="canChangeType ? changeType(4) : ''">培训<br>需求
<view class="tab" :class="{active: activeType == 4}" @click="canChangeType ? changeType(4, options) : ''">培训<br>需求
</view>
<view class="tab" :class="{active: activeType == 5}" @click="canChangeType ? changeType(5) : ''">其他<br>需求
<view class="tab" :class="{active: activeType == 5}" @click="canChangeType ? changeType(5, options) : ''">其他<br>需求
</view>
</view>
<jobService v-if="activeType == 1" :needId="id" :name="name" ref="type1" />
@@ -44,12 +44,14 @@
canChangeType: true,
id: '',
name:"",
options: {}
}
},
onLoad(options) {
this.showTab = options.showTab
this.id = options.id
this.name = options.name
this.options=options
if (options.id && options.type) {
this.isAdd = false
this.activeType = options.type
@@ -59,15 +61,15 @@
})
} else {
// 添加需求的时候根据传入的类型 判断对应的表单
this.changeType(options.activeType || 1)
this.changeType(options.activeType || 1, options)
}
},
methods: {
changeType(type) {
changeType(type, options) {
this.activeType = type
this.$nextTick(() => {
this.$refs['type' + type].addOne()
this.$refs['type' + type].addOne(options.userId)
})
},
goBack() {