list.wxml 1.3 KB

12345678910111213141516171819202122232425262728
  1. <view class="search">
  2. <input bindinput='search' placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
  3. <image mode="widthFix" src="../images/search.png"></image>
  4. </view>
  5. <block wx:for='{{list}}' >
  6. <navigator wx:if='{{item.wxcode}}' url="../journalDetail/journalDetail?id={{item.id}}" class="list" wx:key="journals{{index}}">
  7. <image src="{{item.img}}"></image>
  8. <view>
  9. <view class="title">{{item.name}}</view>
  10. <text>微信号:{{item.wxcode}}</text>
  11. <text>主编:{{item.editor}}</text>
  12. <text class="">主办单位:{{item.organizers}}</text>
  13. </view>
  14. </navigator>
  15. </block>
  16. <view wx:if='{{nowx.length>0}}' style="color:#999;padding:20rpx 0 0;">以下期刊未开通公众号</view>
  17. <block wx:for='{{list}}'>
  18. <navigator wx:if='{{!item.wxcode}}' url="../journalDetail/journalDetail?id={{item.id}}" class="list" wx:key="journals{{index}}">
  19. <image mode="widthFix" src="{{item.img}}"></image>
  20. <view>
  21. <view class="title">{{item.name}}</view>
  22. <text>微信号:{{item.wxcode}}</text>
  23. <text>主编:{{item.editor}}</text>
  24. <text class="">主办单位:{{item.organizers}}</text>
  25. </view>
  26. </navigator>
  27. </block>