mess.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
  2. <view slot="info" class="container main">
  3. <view class="zero 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="zero two">
  12. <scroll-view scroll-y="true" class="scroll-view">
  13. <view class="list-scroll-view">
  14. <view class="list" wx:for="{{list}}" wx:key="item">
  15. <view class="name">
  16. {{item.title||'暂无'}}
  17. </view>
  18. <view class="other">
  19. <view class="other_1">
  20. <text>资讯类型:</text>
  21. <text>{{typeList[item.type].label||'未知'}}</text>
  22. </view>
  23. <view class="other_1">
  24. <text>信息来源:</text>
  25. <text>{{item.origin||'暂无'}}</text>
  26. </view>
  27. <view class="other_1">
  28. <text>发布时间:</text>
  29. <text>{{item.create_time||'暂无'}}</text>
  30. </view>
  31. <view class="other_1">
  32. <text>是否公开:</text>
  33. <text>{{item.is_show=='0'?'公开':'不公开'}}</text>
  34. </view>
  35. </view>
  36. <view class="btn">
  37. <button size="mini" type="primary" bindtap="toEdit" data-id="{{item._id}}">信息维护</button>
  38. <button size="mini" type="warn" bindtap="toDel" data-id="{{item._id}}">信息删除</button>
  39. </view>
  40. </view>
  41. </view>
  42. </scroll-view>
  43. </view>
  44. </view>
  45. </mobile-main>