手机可以正常显示,开发工具不能正常显示,每次都是部署到手机上看效果。累死了。
我的代码是这样的
<view class="petition-item">
<view class="index-desc"> 给{{sug.attributes.toWhom}}的建议</view>
<view class="item-title" style="margin-bottom: 20rpx;margin-top: 10rpx;"> {{sug.attributes.title}}</view>
<image mode="aspectFill" class="{{sug.attributes.pic?'show item-image':'hide'}}" src="{{sug.attributes.pic}}"></image>
<wxc-elip line="3" class="item-content" _pid="{{_pid}}">{{sug.attributes.content}}</wxc-elip>
<view class="{{sug.attributes.anonymous&sug.attributes.mSupport.zan==0?'show height_blank':'hide'}}"></view>
<wxc-flex main="around" cross="center" class="{{sug.attributes.anonymous&sug.attributes.mSupport.zan==0?'hide':'show item-bottom'}}" _pid="{{_pid}}">
<wxc-flex class="{{sug.attributes.anonymous?'hide':'show avatar-name'}}" cross="center">
<wxc-avatar class="{{sug.attributes.mUser.attributes.avatarUrl?'show avatar':'hide'}}" src="{{sug.attributes.mUser.attributes.avatarUrl}}" _pid="{{_pid}}"></wxc-avatar>
<text class="item-name"> {{sug.attributes.realName?sug.attributes.realName:sug.attributes.mUser.attributes.nickName}}</text>
<text class='{{!isCreator?"hide":(sug.tel?"show tel":"hide")}}'>{{sug.tel}}</text>
</wxc-flex>
<wxc-flex class="{{sug.attributes.anonymous?'show avatar-name':'hide'}}" cross="center">
<wxc-avatar class="avatar" src="" _pid="{{_pid}}"></wxc-avatar>
<text class="item-name"></text>
<text class='{{sug.attributes.tel?"show tel":"hide"}}'>{{sug.tel}}</text>
</wxc-flex>
<wxc-flex class="{{sug.attributes.mSupport.attributes.zan==0?'hide':'showup'}}" cross="center">
<image class="item-supporters" src="../../images/supporters1.png"></image>
<view> {{sug.attributes.mSupport.attributes.zan}} 支持</view>
</wxc-flex>
</wxc-flex>