|
@@ -184,7 +184,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 底部操作 -->
|
|
<!-- 底部操作 -->
|
|
|
<view class="caozuo flex justify-center align-center">
|
|
<view class="caozuo flex justify-center align-center">
|
|
|
- <view v-if="info&&info.isDue==1" class="caozuo-box-l flex justify-center align-center" @click="oneClickApply">
|
|
|
|
|
|
|
+ <view v-if="info&&info.isDue==1" class="caozuo-box-l flex justify-center align-center" @click="attachmentShow=true">
|
|
|
一键投递
|
|
一键投递
|
|
|
</view>
|
|
</view>
|
|
|
<view class="caozuo-box-r flex justify-center align-center" @click="bindphone(2)">
|
|
<view class="caozuo-box-r flex justify-center align-center" @click="bindphone(2)">
|
|
@@ -266,13 +266,16 @@
|
|
|
</view>
|
|
</view>
|
|
|
-->
|
|
-->
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
-
|
|
|
|
|
|
|
+ <u-popup v-model="attachmentShow" z-index="99999" mode="bottom" border-radius="14" height="auto" :closeable="true">
|
|
|
|
|
+ <attachment @select="selectAttachment" :content="content"></attachment>
|
|
|
|
|
+ </u-popup>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import config from '../../../common/config.js'
|
|
import config from '../../../common/config.js'
|
|
|
|
|
+ import attachment from '../../../components/attachment.vue'
|
|
|
export default {
|
|
export default {
|
|
|
//分享
|
|
//分享
|
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
@@ -292,11 +295,15 @@
|
|
|
title: this.info.stationName,
|
|
title: this.info.stationName,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ components: {
|
|
|
|
|
+ attachment
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
statusBarHeight: 0, // 状态栏高度
|
|
statusBarHeight: 0, // 状态栏高度
|
|
|
loading: true,
|
|
loading: true,
|
|
|
shows: false,
|
|
shows: false,
|
|
|
|
|
+ attachmentShow:false,
|
|
|
postPushId: '',
|
|
postPushId: '',
|
|
|
info: {}, //岗位详情
|
|
info: {}, //岗位详情
|
|
|
token: uni.getStorageSync('token'),
|
|
token: uni.getStorageSync('token'),
|
|
@@ -319,6 +326,7 @@
|
|
|
}],
|
|
}],
|
|
|
sharType: 0,
|
|
sharType: 0,
|
|
|
sharMsg: '',
|
|
sharMsg: '',
|
|
|
|
|
+ content:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -352,6 +360,13 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ this.$Request.get("/app/resumes/getAttachment").then(res => {
|
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
|
+ this.content=res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ uni.hideLoading();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
title: '加载中'
|
|
|
})
|
|
})
|
|
@@ -472,6 +487,8 @@
|
|
|
},
|
|
},
|
|
|
//在线联系
|
|
//在线联系
|
|
|
bindphone(phone, index) {
|
|
bindphone(phone, index) {
|
|
|
|
|
+ if(!this.info.user||!this.info.user.userId)
|
|
|
|
|
+ return this.$queue.showToast('岗位发布者已不知所踪,请联系管理员')
|
|
|
if (uni.getStorageSync('token')) {
|
|
if (uni.getStorageSync('token')) {
|
|
|
this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
|
|
this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -605,8 +622,13 @@
|
|
|
url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.info.company.companyId
|
|
url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.info.company.companyId
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ selectAttachment(item){
|
|
|
|
|
+ //console.log(item)
|
|
|
|
|
+ this.attachmentShow=false
|
|
|
|
|
+ this.oneClickApply(item)
|
|
|
|
|
+ },
|
|
|
//一键投递
|
|
//一键投递
|
|
|
- oneClickApply() {
|
|
|
|
|
|
|
+ oneClickApply(item) {
|
|
|
if (uni.getStorageSync('token')) {
|
|
if (uni.getStorageSync('token')) {
|
|
|
this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
|
|
this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -629,7 +651,8 @@
|
|
|
// 执行一键投递逻辑
|
|
// 执行一键投递逻辑
|
|
|
this.$Request.postT("/app/sendRecord/addSendRecord", {
|
|
this.$Request.postT("/app/sendRecord/addSendRecord", {
|
|
|
postPushId: this.postPushId,
|
|
postPushId: this.postPushId,
|
|
|
- resumesId: res.data.resumesId
|
|
|
|
|
|
|
+ resumesId: res.data.resumesId,
|
|
|
|
|
+ resumesAttachmentId:item.resumesAttachmentId
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|