wish_detail.wxml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--parents/pages/wish_detail/wish_detail.wxml-->
  2. <import src="../../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper' wx:else>
  6. <view class='header'>
  7. <image class='header-img' src='{{vipInfo.photo ? baseImgUrl + vipInfo.photo : "../../../assets/default_headicon.png"}}'></image>
  8. <view class='header-col'>
  9. <view class='header-text-black' wx:if='{{vipInfo.childName}}'>{{vipInfo.childName}}</view>
  10. <view class='header-text-gray' wx:if='{{vipInfo.wishWords}}'>
  11. <image class='header-icon' src='../../../assets/arrow_left.png'></image>
  12. <text>{{vipInfo.wishWords}}</text>
  13. <image class='header-icon' src='../../../assets/arrow_right.png'></image>
  14. </view>
  15. </view>
  16. </view>
  17. <view class='list'>
  18. <view class='li'>
  19. <view class='book-container'>
  20. <view class='book-wrapper'>
  21. <view class='book-images'>
  22. <image class='book-image' mode='aspectFill' src='{{book.local_image ? baseImgUrl + book.local_image : "../../../assets/default_headicon.png"}}'></image>
  23. <view class='book-tip-two' wx:if='{{book.wish_day}}'>已加入{{book.wish_day}}天</view>
  24. </view>
  25. <view class='book-content'>
  26. <view class='book-title'>{{book.titile}}</view>
  27. <view class='book-text'>作者:{{book.author}}</view>
  28. <view class='book-context'>{{book.summary}}</view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class='li-progress'>
  33. <view class='li-row li-row-center'>
  34. <view class='li-icon-one'>
  35. <image src='../../../assets/circle_red.png'></image>
  36. <text>当前</text>
  37. </view>
  38. </view>
  39. <view class='li-row margin10'>
  40. <view class='li-circle-blue'></view>
  41. <image class='li-icon-two' src='../../../assets/arrow_two_blue.png'></image>
  42. <view class='li-circle-red'></view>
  43. <image class='li-icon-two' src='../../../assets/arrow_two_blue.png'></image>
  44. <view class='li-circle-blue'></view>
  45. <view class='li-line'></view>
  46. </view>
  47. <view class='li-row'>
  48. <view class='li-text-blue'>开始</view>
  49. <view class='li-text-red' wx:if='{{book.cishu > 0}}'>还差{{book.cishu}}人助力</view>
  50. <view class='li-text-red' wx:else>助力完成</view>
  51. <view class='li-text-blue'>达成</view>
  52. </view>
  53. </view>
  54. <view class='li-footer' wx:if='{{ishelp && book.cishu > 0}}'>
  55. <text class='li-footer-text' wx:if='{{ishelp == 2}}' bindtap='helpWishCtl'>为Ta助力</text>
  56. <text class='li-footer-text' wx:else='{{ishelp == 1}}' data-url='book' bindtap='redirectCtl'>去书库看看</text>
  57. </view>
  58. <view class='li-footer' wx:else>
  59. <text class='li-footer-text' data-url='book' bindtap='redirectCtl'>去书库看看</text>
  60. </view>
  61. </view>
  62. <view class='li li-reset' wx:if='{{userlist.length > 0}}'>
  63. <view class='li-title'>
  64. <image class='li-title-icon' src='../../../assets/heart_red.png'></image>
  65. <view class='li-title-text'>以下好友已为Ta助力</view>
  66. <image class='li-title-icon' src='../../../assets/heart_red.png'></image>
  67. </view>
  68. <view class='li-items'>
  69. <view class='li-item' wx:for='{{userlist}}' wx:key='{{index}}'>
  70. <image class='li-item-img' src='{{item.photo ? baseImgUrl + item.photo : "../../../assets/default_headicon.png"}}'></image>
  71. <view class='li-item-col'>
  72. <view class='li-item-text'>{{item.wx_name}}</view>
  73. <view class='li-item-text-small'>{{item.content}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>