290144e9
易尊强
第一次
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<template>
<view class="page">
<!-- 头部 -->
<view class="head">
<view class="head_img">
<image :src="baseUrl + detailData.headImg[0].url" mode="widthFix"></image>
</view>
<view class="info">
<view class="top">
<view class="item name" style="margin-top: 15rpx;">
<span class="left">姓名:</span>
<span class="right">{{detailData.name}}</span>
</view>
<view class="item name" style="margin-top: 15rpx;">
<span class="left">姓别:</span>
<span class="right">{{detailData.gender}}</span>
</view>
<view class="item name" style="margin-top: 15rpx;">
<span class="left">年龄:</span>
<span class="right">{{detailData.age}}</span>
</view>
<view class="item nation" style="margin-top: 15rpx;">
<span class="left">民族:</span>
<span class="right">{{detailData.nation}}</span>
</view>
<view class="item policy" style="margin-top: 15rpx;">
<span class="left">政治面貌:</span>
<span class="right">{{detailData.politicalOutlook}}</span>
</view>
<view class="item education" style="margin-top: 15rpx;">
<span class="left">学历:</span>
<span class="right">{{detailData.education}}</span>
</view>
</view>
</view>
</view>
<view class="phone">
<view class="p_lef">
毕业院校
</view>
<view class="p_right">
{{detailData.graduationInstitution}}
</view>
</view>
<view class="phone">
<view class="p_lef">
电话号码
</view>
<view class="p_right">
{{detailData.phoneNumber}}
</view>
</view>
<view class="content">
<p class="title">工作经历</p>
<view class="detail" v-html="detailData.workExperience">
</view>
</view>
|
290144e9
易尊强
第一次
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
</view>
</template>
<script>
import request from '@/utils/request.js'
export default {
data() {
return {
gender:'男',
isAdmin:false,
id:'',
detailData:{},
baseUrl: "http://deyanggaoxin.fengshiyun.com",
}
},
onLoad(options) {
this.getUser()
console.log(JSON.parse(options.data))
this.id = JSON.parse(options.data)
this.getDetail()
},
methods: {
// 获取用户信息
getUser() {
if (uni.getStorageSync('user')) {
let userCode = uni.getStorageSync("user")
console.log(userCode)
if(userCode.userInfo.userId === 'admin'){
this.isAdmin = true
}
console.log('用户已登录!')
}
// else {
// uni.showToast({
// title: '请登录',
// icon: 'none'
// })
// setTimeout(() => {
// uni.reLaunch({
// url: '/pages/login/index'
// })
// })
// }
},
//获取详细信息
getDetail(){
let that = this
this.API.getRecommendInfo(this.id).then(res=>{
console.log(res)
if(res.code === 200){
this.detailData = res.data
}
})
},
// 跳转修改传递id
toUpdate(item){
uni.navigateTo({
url:`/pages/recommend/postRecommend/postRecommend?data=${JSON.stringify(item)}`
})
},
// 删除
del(id){
uni.showModal({
title: "提示",
content: "确定删除吗?",
success: (res) => {
request({
url: this.baseUrl + `/api/SubDev/basetalentrecommendation/${id}`,
method: 'delete',
data: {}
}).then(res => {
console.log(res)
if (res.code === 200) {
uni.showToast({
icon: "success",
title: '删除成功!'
}).then(()=>{
uni.navigateTo({
url:'/pages/recommend/recommend'
})
})
}
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
@import 'info.scss'
</style>
|