Xiao_123 8 месяцев назад
Родитель
Сommit
3e6f451fa7
5 измененных файлов с 78 добавлено и 5 удалено
  1. 12 0
      api/user.js
  2. 19 0
      pages.json
  3. 15 5
      pages/index/my.vue
  4. 10 0
      pagesA/collect/position.vue
  5. 22 0
      pagesA/resume/index.vue

+ 12 - 0
api/user.js

@@ -11,4 +11,16 @@ export const getUserInfo = (params) => {
       auth: true
     }
   })
+}
+
+// 获取附件列表
+export const getPersonResumeCv = () => {
+  return request({
+    url: '/menduner/system/person/resume/get/person/cv',
+    method: 'GET',
+    custom: {
+      showLoading: false,
+      auth: true
+    }
+  })
 }

+ 19 - 0
pages.json

@@ -25,6 +25,25 @@
 			}
 		}
 	],
+	"subPackages": [
+		{
+			"root": "pagesA",
+			"pages": [
+				{
+					"path": "resume/index",
+					"style": {
+						"navigationBarTitleText": "我的简历"
+					}
+				},
+				{
+					"path": "collect/position",
+					"style": {
+						"navigationBarTitleText": "职位收藏"
+					}
+				}
+			]
+		}
+	],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "门墩儿招聘",

+ 15 - 5
pages/index/my.vue

@@ -17,7 +17,7 @@
 
       <view class="card">
       <uni-list>
-        <uni-list-item v-for="item in list" :key="item.title" :title="item.title" link showArrow :rightText="item.rightTex || ''"></uni-list-item>
+        <uni-list-item v-for="item in list" :clickable="true" :key="item.title" :title="item.title" showArrow :rightText="item.rightTex || ''" @click="handleToLink(item)"></uni-list-item>
       </uni-list>
     </view>
 
@@ -48,18 +48,28 @@ const grid = [
 ]
 
 const list = [
-	{	title:'我的简历',	path:''	},					
-	{ title:'职位订阅', path:'' },
-	{	title:'意见反馈',	path:'' },
-	{ title:'切换为招聘者', path:'', rightTex: '我要招人' }
+	{	title:'我的简历',	path:'/pagesA/resume/index'	},					
+	{ title:'职位收藏', path:'/pagesA/collect/position' },
+	{ title:'切换为招聘者', rightTex: '我要招人' }
 ]
 
+// 列表跳转
+const handleToLink = (item) => {
+  if (item.path) {
+    uni.navigateTo({
+      url: item.path
+    })
+  }
+}
+
+// 登录
 const handleLogin = () => {
   uni.navigateTo({
     url: '/pages/login/index'
   })
 }
 
+// 退出登录
 const handleLogout = () => {
   popup.value.open()
 }

+ 10 - 0
pagesA/collect/position.vue

@@ -0,0 +1,10 @@
+<template>
+  <div>position</div>
+</template>
+
+<script setup>
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 22 - 0
pagesA/resume/index.vue

@@ -0,0 +1,22 @@
+<template>
+  <view>
+    <button class="send-button">从微信导入简历</button>
+  </view>
+</template>
+
+<script setup>
+import { ref } from 'vue'
+import { getPersonResumeCv } from '@/api/user'
+
+// 获取附件
+const attachmentList = ref([])
+const getList = async () => {
+  const data = await getPersonResumeCv()
+  attachmentList.value = data
+}
+getList()
+</script>
+
+<style scoped lang="scss">
+
+</style>