message.wxml 967 B

123456789101112131415161718192021
  1. <view id="messageScroll">
  2. <view class="list" wx:for="{{list}}" >
  3. <view class="me" wx:if='{{item.user_id}}'>
  4. <image src="{{item.user_avatar}}" ></image>
  5. <view class="content">{{item.content}}</view>
  6. </view>
  7. <view class="wz" wx:else>
  8. <image src="../../images/wz.jpg" ></image>
  9. <view>
  10. <text class="name">顽主</text>
  11. <view class="content">{{item.reply_content}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="post">
  16. <input confirm-type='send' bindconfirm='post' value="{{comment}}" placeholder-style="color:#999" maxlength="500" bindinput="inputchange" type="text" placeholder="我要咨询"/>
  17. <button wx:if="{{!subscribe}}" disabled="{{disable}}" bindtap="subscribe">提交</button>
  18. <button wx:else bindtap="post" disabled="{{disable}}">提交</button>
  19. </view>
  20. <view style="clear: both;"></view>
  21. </view>