<view class="floorselect">
<block wx:for="{{companyList}}" wx:for-index="idx" wx:for-item="row" wx:key="key">
<navigator url="detail?id={{row.id}}">
<view class="beijing">
<image class="moren" src="{{row.logo_path?row.logo_path:'/images/moren.png'}}"></image>
<view class="companyname" >{{row.name}}</view>
<view class="companyroom" >房间号:{{row.office}} | 状态:{{row.resident_status}}</view>
<image class="jiantou" src="/images/jiantou.png"></image>
</view>
</navigator>
</block>
</view>
同一目录建议前面添加 " ./ "
跳转的页面位于TabBar中。这种情况不会在控制台弹出错误,需要自己去检查,解决的办法是将navigator改成switchtab即可
<view class="floorselect">
<block wx:for="{{roomList}}" wx:for-index="idx" wx:for-item="row" wx:key="key">
<navigator class="beijing" url="detail">
<view class="room" >房间号:{{row.number}} [{{row.area}}]</view>
<view class="statu" >{{row.status}} | {{row.name}}</view>
<image class="jiantou" src="../../../images/jiantou.png"></image>
</navigator>
</block>
</view>
相对路径和绝对路径的问题,建议用绝对路径