瀏覽代碼

谁看过我

Xiao_123 8 月之前
父節點
當前提交
c225c8f66e
共有 7 個文件被更改,包括 102 次插入11 次删除
  1. 1 1
      pages.json
  2. 15 6
      pages/index/my.vue
  3. 32 1
      pagesA/seenMe/index.vue
  4. 26 1
      static/style/index.css
  5. 0 0
      static/style/index.min.css
  6. 27 1
      static/style/index.scss
  7. 1 1
      utils/request.js

+ 1 - 1
pages.json

@@ -38,7 +38,7 @@
 				{
 					"path": "resume/index",
 					"style": {
-						"navigationBarTitleText": "我的简历"
+						"navigationBarTitleText": "附件简历"
 					}
 				},
 				{

+ 15 - 6
pages/index/my.vue

@@ -43,6 +43,7 @@
 import { ref, computed } from 'vue'
 import { userStore } from '@/store/user'
 import { getUserAvatar } from '@/utils/avatar'
+import { getAccessToken } from '@/utils/request'
 
 const useUserStore = userStore()
 const userInfo = computed(() => useUserStore.userInfo)
@@ -53,18 +54,26 @@ const itemList = [
 ]
 
 const list = [
-	{	title:'我的简历',	path:'/pagesA/resume/index'	},					
+	{	title:'附件简历',	path:'/pagesA/resume/index'	},					
 	{ title:'职位收藏', path:'/pagesA/collect/position' },
 	{ title:'切换为招聘者', rightTex: '我要招人' }
 ]
 
 // 列表跳转
 const handleToLink = (item) => {
-  if (item.path) {
-    uni.navigateTo({
-      url: item.path
-    })
-  }
+	if (!item.path) return
+  if (!getAccessToken()) {
+		uni.showToast({
+			title: '请先登录'
+		})
+		uni.navigateTo({
+			url: '/pages/login/index'
+		})
+		return
+	}
+	uni.navigateTo({
+		url: item.path
+	})
 }
 
 // 登录

+ 32 - 1
pagesA/seenMe/index.vue

@@ -1,11 +1,42 @@
 <template>
-  <div>看过我</div>
+  <view>
+    <view v-if="list.length > 0">
+			<uni-card v-for="(item,index) in list" :key="index" :is-shadow="true" :border='false' shadow="0px 0px 3px 1px rgba(0,0,0,0.1)" >
+        <view class="f-horizon">
+          <image class="avatar" :src="item.enterprise.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
+          <view class="f-straight" style="width:60vw;">
+            <view class="title-des">{{ item.enterprise.name }}</view>
+            <view class="s-word">
+              <span class="dis">
+                <view class="show-more" :style="{'width': item.enterprise.industryName == '' ? '15vw' : '30vw'}">
+                  {{ item.enterprise.industryName ? item.enterprise.industryName : '行业未知' }}
+                </view>
+                <span class="divider ss-m-10"> | </span>
+                <span>{{ item.enterprise.scaleName || '规模未知' }}</span>
+              </span>
+            </view>
+          </view>
+        </view>
+        <view style="border-bottom: 1px dashed #ccc;"></view>
+        <view class="ss-m-t-20 d-flex align-center justify-end">
+          <image class="r-avatar" :src="getUserAvatar(item.contact.avatar, item.contact.sex)"></image>
+          <text class="ss-m-l-20">
+            {{ item.contact.name }} | {{ item.post.nameCn }}
+          </text>
+        </view>
+      </uni-card>
+		</view>
+		<view v-else class="nodata-img-parent">
+			<image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
+		</view>
+  </view>
 </template>
 
 <script setup>
 import { ref } from 'vue'
 import { getInterestedMePage } from '@/api/user'
 import { dealDictObjData } from '@/utils/position'
+import { getUserAvatar } from '@/utils/avatar'
 
 const queryParams = ref({
   pageNo: 1,

+ 26 - 1
static/style/index.css

@@ -174,7 +174,6 @@
   justify-content: space-between;
   align-items: center;
   flex-direction: row;
-  margin: 15rpx;
 }
 
 .f-horizon-center {
@@ -9105,3 +9104,29 @@
   color: #b3aeae;
   font-size: 28rpx;
 }
+
+.r-avatar {
+  width: 40px;
+  height: 40px;
+  border-radius: 50%;
+}
+
+.avatar {
+  width: 80px;
+  height: 80px;
+  border-radius: 50%;
+  margin: auto;
+}
+
+.r-avatar-small {
+  width: 25px;
+  height: 25px;
+  border-radius: 50%;
+  margin: 20rpx;
+}
+
+.title-des {
+  color: #3f424f;
+  font-size: 19px;
+  margin: 10px 0;
+}

文件差異過大導致無法顯示
+ 0 - 0
static/style/index.min.css


+ 27 - 1
static/style/index.scss

@@ -76,7 +76,7 @@
 	justify-content: space-between;
 	align-items: center;
 	flex-direction: row;
-	margin:15rpx;
+	// margin:15rpx;
 }
 // 水平居中
 .f-horizon-center{
@@ -483,4 +483,30 @@
   background-color: #fff !important;
   color: #b3aeae;
   font-size: 28rpx;
+}
+
+// 头像
+.r-avatar {
+	width: 40px;
+	height: 40px;
+	border-radius: 50%;
+	// margin: 25rpx;
+}
+.avatar{
+	width: 80px;
+	height: 80px;
+	border-radius: 50%;
+	margin: auto;
+}
+.r-avatar-small {
+	width: 25px;
+	height: 25px;
+	border-radius: 50%;
+	margin: 20rpx;
+}
+
+.title-des {
+  color: #3f424f;
+  font-size: 19px;
+  margin: 10px 0;
 }

+ 1 - 1
utils/request.js

@@ -296,7 +296,7 @@ const handleAuthorized = () => {
 }
 
 /** 获得访问令牌 */
-const getAccessToken = () => {
+export const getAccessToken = () => {
   return uni.getStorageSync('token');
 }
 

部分文件因文件數量過多而無法顯示