|
|
|
@ -26,12 +26,26 @@ |
|
|
|
</view> |
|
|
|
<view class="info-content"> |
|
|
|
<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) in list" :key="index"> |
|
|
|
<view class="lf-row-between lf-m-t-30" v-for="(item, index) in basic_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> |
|
|
|
</view> |
|
|
|
<view class="lf-p-l-32 lf-p-r-32 info-tag"> |
|
|
|
<view class="info-content lf-m-t-30" v-if="member.is_auth"> |
|
|
|
<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) in family_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> |
|
|
|
</view> |
|
|
|
<view class="info-content lf-m-t-30" v-if="member.is_auth"> |
|
|
|
<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) in require_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> |
|
|
|
</view> |
|
|
|
<view class="lf-p-l-32 lf-p-r-32 info-tag" v-if="!member.is_auth"> |
|
|
|
<view class="lf-color-222 lf-font-32 lf-m-b-30 authen-title lf-p-l-20">家庭与房车</view> |
|
|
|
<view class="lf-color-333 lf-font-28"> |
|
|
|
了解Ta的购车、住房情况和家庭成员资料 |
|
|
|
@ -40,7 +54,7 @@ |
|
|
|
实名认证后可查看>> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="lf-p-l-32 lf-p-r-32 info-tag" style="margin-bottom: 130rpx;"> |
|
|
|
<view class="lf-p-l-32 lf-p-r-32 info-tag" v-if="!member.is_auth"> |
|
|
|
<view class="lf-color-222 lf-font-32 lf-m-b-30 authen-title lf-p-l-20">择偶要求</view> |
|
|
|
<view class="lf-color-333 lf-font-28"> |
|
|
|
了解Ta的婚史、身高、年龄等各项择偶要求 |
|
|
|
@ -49,6 +63,7 @@ |
|
|
|
实名认证后可查看>> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="height: 130rpx;"></view> |
|
|
|
<view class="tabbar-bottom"> |
|
|
|
<view class="lf-row-between"> |
|
|
|
<view class="lf-flex-column" style="align-items: center;" @click="$url('/pages/my/service')"> |
|
|
|
@ -95,7 +110,9 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
list: [], |
|
|
|
basic_list: [], |
|
|
|
family_list: [], |
|
|
|
require_list: [], |
|
|
|
number_id: 0, |
|
|
|
member: {} |
|
|
|
} |
|
|
|
@ -103,57 +120,100 @@ |
|
|
|
onLoad(options){ |
|
|
|
this.number_id = options.id || 0; |
|
|
|
this.getMemberDetail(); |
|
|
|
// todo 对接实名认证后才能看的信息 |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getMemberDetail(){ |
|
|
|
this.$http(this.API.API_MEMBERS_DETAIL, { |
|
|
|
number: this.number_id |
|
|
|
}).then(res => { |
|
|
|
let list = []; |
|
|
|
let basic_list = []; |
|
|
|
let family_list = []; |
|
|
|
let require_list = []; |
|
|
|
let member = res.data.member; |
|
|
|
this.member = member; |
|
|
|
|
|
|
|
for(let i in member){ |
|
|
|
if(i == 'number_nickname' && member[i]){ |
|
|
|
list.push({title: '编号', content: member[i]}); |
|
|
|
// 基本信息 |
|
|
|
if(i == 'number' && member[i]){ |
|
|
|
basic_list.push({title: '编号', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'gender' && member[i]){ |
|
|
|
list.push({title: '性别', content: member[i]}); |
|
|
|
basic_list.push({title: '性别', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'marital_status' && member[i]){ |
|
|
|
list.push({title: '婚史', content: member[i]}); |
|
|
|
basic_list.push({title: '婚史', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'age' && member[i]){ |
|
|
|
list.push({title: '年龄', content: member[i] +'岁'}); |
|
|
|
basic_list.push({title: '年龄', content: member[i] +'岁'}); |
|
|
|
} |
|
|
|
if(i == 'height' && member[i]){ |
|
|
|
list.push({title: '身高', content: member[i]}); |
|
|
|
basic_list.push({title: '身高', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'weight' && member[i]){ |
|
|
|
list.push({title: '体重', content: member[i]}); |
|
|
|
basic_list.push({title: '体重', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'zodiac' && member[i]){ |
|
|
|
list.push({title: '属相', content: member[i]}); |
|
|
|
basic_list.push({title: '属相', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'constellation' && member[i]){ |
|
|
|
list.push({title: '星座', content: member[i]}); |
|
|
|
basic_list.push({title: '星座', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'education' && this.$isRight(member[i])){ |
|
|
|
list.push({title: '学历', content: member[i].name}); |
|
|
|
basic_list.push({title: '学历', content: member[i].name}); |
|
|
|
} |
|
|
|
if(i == 'enterprise' && this.$isRight(member[i])){ |
|
|
|
list.push({title: '单位性质', content: member[i].name}); |
|
|
|
basic_list.push({title: '单位性质', content: member[i].name}); |
|
|
|
} |
|
|
|
if(i == 'salary' && this.$isRight(member[i])){ |
|
|
|
list.push({title: '年薪', content: member[i].name}); |
|
|
|
basic_list.push({title: '年薪', content: member[i].name}); |
|
|
|
} |
|
|
|
if(i == 'area' && this.$isRight(member[i])){ |
|
|
|
list.push({title: '居住地区', content: member[i].name}); |
|
|
|
basic_list.push({title: '居住地区', content: member[i].name}); |
|
|
|
} |
|
|
|
// TODO basic_list 缺少户籍和所属行业 |
|
|
|
|
|
|
|
// 家庭与房车信息 |
|
|
|
if(i == 'housing' && this.$isRight(member[i])){ |
|
|
|
family_list.push({title: '住房情况', content: member[i].name}); |
|
|
|
} |
|
|
|
if(i == 'car' && this.$isRight(member[i])){ |
|
|
|
family_list.push({title: '购车情况', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'family' && this.$isRight(member[i])){ |
|
|
|
let familys = member[i].map(item => item.name); |
|
|
|
let str = familys.join(','); |
|
|
|
family_list.push({title: '家庭成员', content: str}); |
|
|
|
} |
|
|
|
// TODO family_list 缺少现居地址 |
|
|
|
|
|
|
|
// 择偶要求 |
|
|
|
if(i == 'marital_status' && this.$isRight(member[i])){ |
|
|
|
require_list.push({title: '婚史要求', content: member[i]}); |
|
|
|
} |
|
|
|
if(i == 'selection' && this.$isRight(member[i].height)){ |
|
|
|
require_list.push({title: '最低身高', content: member[i].height}); |
|
|
|
} |
|
|
|
if(i == 'selection' && this.$isRight(member[i].min_age)){ |
|
|
|
require_list.push({title: '最低年龄要求', content: member[i].min_age}); |
|
|
|
} |
|
|
|
if(i == 'education' && this.$isRight(member[i])){ |
|
|
|
require_list.push({title: '最低学历要求', content: member[i].name}); |
|
|
|
} |
|
|
|
if(i == 'salary' && this.$isRight(member[i])){ |
|
|
|
require_list.push({title: '最低年薪要求', content: member[i].name}); |
|
|
|
} |
|
|
|
if(i == 'housing' && this.$isRight(member[i].selection_request)){ |
|
|
|
require_list.push({title: '住房要求', content: member[i].selection_request}); |
|
|
|
} |
|
|
|
if(i == 'selection' && this.$isRight(member[i].car)){ |
|
|
|
require_list.push({title: '购车要求', content: member[i].car}); |
|
|
|
} |
|
|
|
// TODO 缺少户籍和所属行业 |
|
|
|
// TODO require_list 缺少行业要求、体重要求、子女要求、户籍要求、 |
|
|
|
// 家庭要求、外貌要求、是否喝酒、是否抽烟、性格要求、其他要求 |
|
|
|
} |
|
|
|
this.list = list; |
|
|
|
this.basic_list = basic_list; |
|
|
|
this.family_list = family_list; |
|
|
|
this.require_list = require_list; |
|
|
|
}) |
|
|
|
}, |
|
|
|
share(){ |
|
|
|
|