修复部分问题

This commit is contained in:
java110 2020-06-05 15:30:08 +08:00
parent ffae8fbd89
commit 0a7533f0ad
2 changed files with 5 additions and 4 deletions

View File

@ -5,8 +5,8 @@
<van-cell title="名称" value="{{ownerInfo.appUserName}}" /> <van-cell title="名称" value="{{ownerInfo.appUserName}}" />
<van-cell title="身份证" value="{{ownerInfo.idCard}}" /> <van-cell title="身份证" value="{{ownerInfo.idCard}}" />
<van-cell title="联系方式" value="{{ownerInfo.link}}" /> <van-cell title="联系方式" value="{{ownerInfo.link}}" />
<van-cell title="年龄" value="{{userInfo.age}}" /> <!-- <van-cell title="年龄" value="{{userInfo.age}}" /> -->
<van-cell title="性别" value="{{userInfo.sex == '0' ? '女' : '男'}}" /> <van-cell title="性别" value="{{userInfo.sex == '0' ? '男' : '女'}}" />
</van-cell-group> </van-cell-group>
<view class="block__title">房屋信息</view> <view class="block__title">房屋信息</view>
<van-cell-group> <van-cell-group>

View File

@ -96,9 +96,10 @@ Page({
let _that = this; let _that = this;
context.getOwner(function(_ownerInfo){ context.getOwner(function(_ownerInfo){
if(_ownerInfo){ if(_ownerInfo){
let _active = _ownerInfo.state == '10000'?1:2 let _active = _ownerInfo.state == '10000'?1:2;
let _areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
_that.setData({ _that.setData({
areaName: '西宁市城东区', areaName: _areaName,
communityId: _ownerInfo.communityId, communityId: _ownerInfo.communityId,
communityName: _ownerInfo.communityName, communityName: _ownerInfo.communityName,
appUserName: _ownerInfo.appUserName, appUserName: _ownerInfo.appUserName,