list.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="container main">
  3. <view class="one">
  4. <view class="one_1">
  5. <input type="text" value="{{searchInfo.title}}" bindconfirm="onSearch" placeholder="请输入话题名称" />
  6. </view>
  7. <view class="one_2">
  8. <button type="primary" bindtap="toAdd">添加</button>
  9. </view>
  10. </view>
  11. <view class="two">
  12. <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
  13. <view class="list-scroll-view">
  14. <view class="list" wx:for="{{list}}" wx:key="item">
  15. <view class="name">{{item.title||'暂无'}}</view>
  16. <view class="other">
  17. <view class="other_1">
  18. <text>来源:</text>
  19. <text>{{item.origin||'暂无'}}</text>
  20. </view>
  21. <view class="other_1">
  22. <text>发布时间:</text>
  23. <text>{{item.create_time||'暂无'}}</text>
  24. </view>
  25. <view class="other_1">
  26. <text>是否公开:</text>
  27. <text>{{item.is_show=='0'?'公开':'不公开'}}</text>
  28. </view>
  29. </view>
  30. <view class="btn">
  31. <button type="primary" bindtap="toEdit" data-id="{{item._id}}" size="mini">信息维护</button>
  32. <button size="mini" type="warn" bindtap="toDel" data-id="{{item._id}}">信息删除</button>
  33. </view>
  34. </view>
  35. </view>
  36. </scroll-view>
  37. </view>
  38. </view>
  39. </mobile-main>