|
|
|
@ -1,19 +1,20 @@ |
|
|
|
<template> |
|
|
|
<view class="lf-w-100 lf-h-100"> |
|
|
|
<view class="content lf-bg-white lf-m-b-30"> |
|
|
|
<view class="content lf-bg-white lf-m-b-30" v-if="$isRight(member)"> |
|
|
|
<swiper class="swiper"> |
|
|
|
<swiper-item> |
|
|
|
<lf-image src="https://picsum.photos/200"></lf-image> |
|
|
|
<lf-image :src="member.avatar"></lf-image> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
<view class="list lf-p-l-32 lf-p-r-32"> |
|
|
|
<!-- <lf-image class="avatar" src="@/static/logo.png"></lf-image> --> |
|
|
|
<view class="info"> |
|
|
|
<view class="lf-flex-1"> |
|
|
|
<text>编号:83927</text> |
|
|
|
<text class="lf-iconfont icon-nan lf-m-l-10" style="color: #1E77F4;"></text> |
|
|
|
<text>{{ member.member.number_nickname }}</text> |
|
|
|
<text class="lf-iconfont icon-nv lf-m-l-10 lf-color-primary" v-if="member.member.gender == '女'"></text> |
|
|
|
<text class="lf-iconfont icon-nan lf-m-l-10 color-nan" v-else></text> |
|
|
|
</view> |
|
|
|
<view class="lf-flex-1 lf-m-t-16">24岁·牛·180cm·本科·未婚</view> |
|
|
|
<view class="lf-flex-1 lf-m-t-16">{{ member.member.age }}岁·{{ member.member.zodiac }}·{{ member.member.height }}cm·{{ member.member.education_id }}·{{ member.member.marital_status }}</view> |
|
|
|
<view class="lf-flex-1 lf-m-t-16">自有公司·金融/证券/保险·50万以上</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="star"> |
|
|
|
@ -22,9 +23,9 @@ |
|
|
|
</view> |
|
|
|
<!-- <view class="sketch">大家好,我是私人订制红娘-笑笑。如果你不想在平台上面曝光,需要我为你全程服务,精准高效,速配脱单的加我微信:18399999999</view> --> |
|
|
|
</view> |
|
|
|
<view class="info-content"> |
|
|
|
<view class="info-content" v-if="$isRight(member)"> |
|
|
|
<view class="lf-color-222 lf-font-32 authen-title lf-p-l-20">信息资料</view> |
|
|
|
<view class="lf-row-between lf-m-t-30" v-for="(item,index) of list" :key="index"> |
|
|
|
<view class="lf-row-between lf-m-t-30" v-for="(item, index) of list" :key="index"> |
|
|
|
<view class="lf-color-333 lf-font-28">{{item.title}}</view> |
|
|
|
<view class="lf-color-333 lf-font-28">{{item.content}}</view> |
|
|
|
</view> |
|
|
|
@ -49,7 +50,7 @@ |
|
|
|
</view> |
|
|
|
<view class="tabbar-bottom"> |
|
|
|
<view class="lf-row-between"> |
|
|
|
<view class="lf-flex-column" style="align-items: center;"> |
|
|
|
<view class="lf-flex-column" style="align-items: center;" @click="$url('/pages/my/service')"> |
|
|
|
<view> |
|
|
|
<u-icon name="kefu-ermai lf-font-32 lf-color-555"></u-icon> |
|
|
|
</view> |
|
|
|
@ -57,7 +58,7 @@ |
|
|
|
客服 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="lf-flex-column" style="align-items: center;margin-left: 50rpx;"> |
|
|
|
<view class="lf-flex-column" style="align-items: center;margin-left: 50rpx;" @click="share"> |
|
|
|
<view> |
|
|
|
<u-icon name="share lf-font-32 lf-color-555"></u-icon> |
|
|
|
</view> |
|
|
|
@ -91,22 +92,74 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
list: [ |
|
|
|
{title: '编号',content: '839748'}, |
|
|
|
{title: '性别',content: '男'}, |
|
|
|
{title: '婚史',content: '未婚'}, |
|
|
|
{title: '年龄',content: '24岁(1996-10)'}, |
|
|
|
{title: '身高',content: '180'}, |
|
|
|
{title: '体重',content: '70'}, |
|
|
|
{title: '属相',content: '鼠'}, |
|
|
|
{title: '星座',content: '天秤座'}, |
|
|
|
{title: '户籍',content: '其他省市'}, |
|
|
|
{title: '学历',content: '本科'}, |
|
|
|
{title: '单位性质',content: '私企'}, |
|
|
|
{title: '所属行业',content: '广告/设计/传媒'}, |
|
|
|
{title: '年薪',content: '6万-8万'}, |
|
|
|
{title: '居住地区',content: '其他省市'}, |
|
|
|
] |
|
|
|
list: [], |
|
|
|
number_id: 0, |
|
|
|
member: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
this.number_id = options.id || 0; |
|
|
|
this.getMemberDetail(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getMemberDetail(){ |
|
|
|
this.$http(this.API.API_MEMBERS_DETAIL, { |
|
|
|
number: this.number_id |
|
|
|
}).then(res => { |
|
|
|
let list = []; |
|
|
|
let member = res.data.member; |
|
|
|
this.member = member; |
|
|
|
|
|
|
|
for(let i in member){ |
|
|
|
if(member[i].number_nickname){ |
|
|
|
list.push({title: '编号', content: member[i].number_nickname}); |
|
|
|
} |
|
|
|
if(member[i].gender){ |
|
|
|
list.push({title: '性别', content: member[i].gender}); |
|
|
|
} |
|
|
|
if(member[i].marital_status){ |
|
|
|
list.push({title: '婚史', content: member[i].marital_status}); |
|
|
|
} |
|
|
|
if(member[i].age){ |
|
|
|
list.push({title: '年龄', content: member[i].age +'岁'}); |
|
|
|
} |
|
|
|
if(member[i].height){ |
|
|
|
list.push({title: '身高', content: member[i].height}); |
|
|
|
} |
|
|
|
if(member[i].weight){ |
|
|
|
list.push({title: '体重', content: member[i].weight}); |
|
|
|
} |
|
|
|
if(member[i].zodiac){ |
|
|
|
list.push({title: '属相', content: member[i].zodiac}); |
|
|
|
} |
|
|
|
if(member[i].constellation){ |
|
|
|
list.push({title: '星座', content: member[i].constellation}); |
|
|
|
} |
|
|
|
if(this.$isRight(member[i].education)){ |
|
|
|
list.push({title: '学历', content: member[i].education.name}); |
|
|
|
} |
|
|
|
if(this.$isRight(member[i].enterprise)){ |
|
|
|
list.push({title: '单位性质', content: member[i].enterprise.name}); |
|
|
|
} |
|
|
|
if(this.$isRight(member[i].salary)){ |
|
|
|
list.push({title: '年薪', content: member[i].salary.name}); |
|
|
|
} |
|
|
|
if(this.$isRight(member[i].area)){ |
|
|
|
list.push({title: '居住地区', content: member[i].area.name}); |
|
|
|
} |
|
|
|
// TODO 缺少户籍和所属行业 |
|
|
|
} |
|
|
|
this.list = list; |
|
|
|
}) |
|
|
|
}, |
|
|
|
share(){ |
|
|
|
this.$msg('复制链接成功!') |
|
|
|
uni.setClipboardData({ |
|
|
|
data: 'a', |
|
|
|
complete: () => { |
|
|
|
console.log("aaa") |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|