办公室配套

This commit is contained in:
weicw
2023-09-04 17:59:29 +08:00
parent a45034680e
commit d93010e6fc
4 changed files with 27 additions and 20 deletions

View File

@@ -98,13 +98,8 @@
<view class="title">
办公室配套
</view>
<view class="field-list">
<u-grid :border="false" col="5" @click="click">
<u-grid-item v-for="(baseListItem,baseListIndex) in form.supporting" :key="baseListIndex">
<u-icon :customStyle="{paddingTop:20+'rpx'}" :name="baseListItem.name" :size="22"></u-icon>
<text class="grid-text">{{baseListItem.title}}</text>
</u-grid-item>
</u-grid>
<view class="about">
{{form.supporting}}
</view>
</view>
@@ -329,7 +324,7 @@
})
}
getUser().then(res=>{
this.isManager = res.data.gradeId == 15
this.isManager = res.data.gradeId == 16
}).catch((err)=>{
console.log(err);
})
@@ -355,6 +350,14 @@
app.form.houseLabel = JSON.parse(res.data.houseLabel) || []
// app.form.supporting = JSON.parse(res.data.supporting) || []
try{
app.form.supporting = JSON.parse(app.form.supporting)
console.log('app.form.supporting: ',app.form.supporting);
}catch(e){
console.log(e);
//TODO handle the exception
}
uni.$u.mpShare = {
title: `${app.form.houseTitle} ${app.form.monthlyRent}元/月 ${app.form.houseType} ${app.form.extent}`,
path: `sub_pages/house/detail?houseId=${app.form.houseId}&user_id=${uni.getStorageSync('userId')}`