zhengkaixin 3 years ago
parent
commit
e8e6258cea
2 changed files with 6 additions and 4 deletions
  1. 3 3
      pages/friend/personal.vue
  2. 3 1
      pages/index/index.vue

+ 3 - 3
pages/friend/personal.vue

@@ -24,11 +24,11 @@
 				</view>
 			</u-modal>
 
-			<view class="personalHead" :style="'height: 375px;background: url('+detail.faceImage+') no-repeat  top center  ;background-size: 100%;'">
+			<view class="personalHead" :style="'margin-top: 80px;height: 375px;background: url('+detail.faceImage+') no-repeat  top center  ;background-size: 100%;'">
 				<u-navbar :border-bottom="false" :background="navbarBg" ></u-navbar>
 			
  			</view>
-			<view class="personal-main"  v-if="detail.realName">
+			<view class="personal-main"  v-if="detail.id">
 				<view class="personal-name">
 					<span v-text="detail.realName"></span>
 					<u-icon custom-prefix="custom-icon" :name="detail.gender?'women-line':'men-line'" color="#1677FF"></u-icon>
@@ -156,7 +156,7 @@
 				
 			
 			</view>
-			<template v-if="detail.realName">
+			<template v-if="detail.id">
 				<view class="personal-btn"  v-if="!islogin">
 					<u-button type="error" @click="gotoUrl('pagesA/pages/login/index')" shape="circle" :custom-style="customStyle">
 						<span>注册 / 登录</span>

+ 3 - 1
pages/index/index.vue

@@ -25,7 +25,9 @@
 			<u-swiper :list="wrapList" @click="clickBanner" :img-mode="'aspectFit'" :name="'picUrl'" height="300" border-radius="24"></u-swiper>
 		</view>
 		<view class="homeUser">
-			<view class="homeUser-item" v-for="(item ,index) in list" :key="item.id" >
+			<view class="homeUser-item" 
+			@click="gotoUrl('pages/friend/personal?id='+item.id)"
+			v-for="(item ,index) in list" :key="item.id" >
 				<view class="homeUser-add">
 					<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
 					<span>{{item.workplaceN}}</span>