mess.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.name}}" 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="info">
  16. <view class="list_2">
  17. <view class="other">
  18. <view class="name">
  19. <text>{{item.title||'暂无'}}</text>
  20. </view>
  21. <view class="other_1">
  22. <text>资讯类型:</text>
  23. <text>{{typeList[item.type].label}}</text>
  24. </view>
  25. <view class="other_1">
  26. <text>信息来源:</text>
  27. <text>{{item.origin||'暂无'}}</text>
  28. </view>
  29. <view class="other_1">
  30. <text>发布时间:</text>
  31. <text>{{item.create_time||'暂无'}}</text>
  32. </view>
  33. <view class="other_1">
  34. <text>是否公开:</text>
  35. <text>{{item.is_show=='0'?'公开':'不公开'}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="btn">
  41. <button size="mini" type="primary" bindtap="toEdit" data-id="{{item._id}}">信息维护</button>
  42. <button size="mini" type="warn" bindtap="toDel" data-id="{{item._id}}">信息删除</button>
  43. </view>
  44. </view>
  45. </view>
  46. </scroll-view>
  47. </view>
  48. </view>
  49. </mobile-main>