Commit 7c01e522 by zhangzhen

细节优化

parent 0e472f79
......@@ -174,7 +174,7 @@ import moment from "@/common/moment";
this.list = list.map(item=>{
return {
...item,
roolList: item.roolList.length ? item.roolList.map(val=>{
roolList: item.roolList && item.roolList.length ? item.roolList.map(val=>{
return {
...val,
colorStatus: val.recordsStatus>=0&& val.recordsStatus=== 0? 3: val.recordsStatus >= 0&& val.recordsStatus=== 1? 4: val.status
......
......@@ -66,7 +66,7 @@
</view>
</view>
<view class="facilitie-box">
<view v-for="(val,i) in item.facilities" :key="i" v-if="i<7" class='cu-tag radius bg-brown'>
<view v-for="(val,i) in item.facilities" :key="i" v-if="i<=7" class='cu-tag radius bg-brown'>
<text>{{facilitieList[val]}}</text>
</view>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment