message.wxml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <view id="messageScroll">
  2. <view class="list" wx:for="{{list}}">
  3. <view class="me" wx:if='{{item.user_id}}'>
  4. <image class="mehead" src="{{item.user_avatar}}" ></image>
  5. <view wx:if="{{item.width > 0}}">
  6. <image mode="widthFix" class="contentimage" src="{{item.content}}" catchtap="preview" data-urls='{{item.content}}'></image>
  7. </view>
  8. <view wx:else class="content">{{item.content}}</view>
  9. </view>
  10. <view class="wz" wx:else>
  11. <image class="wzhead" src="../../images/wz.jpg" ></image>
  12. <view>
  13. <!-- <text class="name">顽主</text> -->
  14. <view wx:if="{{item.width > 0}}">
  15. <image mode="widthFix" class="huipic" src="{{item.reply_content}}" catchtap="preview" data-urls='{{item.reply_content}}'></image>
  16. </view>
  17. <view wx:else class="content">{{item.reply_content}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="post">
  22. <image class="add" catchtap="uploadImg" src="../../images/add.png"></image>
  23. <input confirm-type='send' bindconfirm='post' value="{{comment}}" placeholder-style="color:#999" maxlength="500" bindinput="inputchange" type="text" placeholder="我要咨询"/>
  24. <button wx:if="{{!subscribe}}" disabled="{{disable}}" bindtap="subscribe">提交</button>
  25. <button wx:else bindtap="post" disabled="{{disable}}">提交</button>
  26. </view>
  27. <view style="clear: both;"></view>
  28. </view>