roomRecord.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template name="row">
  2. <view class="row-bg">
  3. <view class="row-num-text">{{rank}}</view>
  4. <image class="row-avatar" src="{{headImg}}"></image>
  5. <view class="row-name-bg">
  6. <view class="row-name">{{nickName}}</view>
  7. <view class="row-count">{{pointC}}分</view>
  8. </view>
  9. <view class="row-bonus">{{tools.awardFee(awardFee)}}元</view>
  10. <image class="row-num-img" src="{{image}}" mode="aspectFit"></image>
  11. </view>
  12. <view class="list-header-line"></view>
  13. </template>
  14. <scroll-view scroll-y>
  15. <view class="head-bg"></view>
  16. <view class="self-bg ">
  17. <image class="self-avatar" src="{{avatar}}"></image>
  18. <view class="self-title">{{tips}}</view>
  19. <view class="self-bonus-bg" hidden="{{status != 0}}">
  20. <view class="self-bonus">
  21. <view class="self-bonus-small">奖金</view>
  22. <view class="self-bonus-big">{{bonus}}</view>
  23. <view class="self-bonus-small">元</view>
  24. </view>
  25. </view>
  26. <view class="self-bonus-tips" hidden="{{status != 0}}">此奖励由 {{tools.desc(desc)}} 赞助</view>
  27. <view class="self-get-tips" hidden="{{status != 1}}">抢奖励指南:答得越快、答对越多,奖金越多</view>
  28. </view>
  29. <view class="list-header">
  30. <view class="list-header-title">共{{numOfPeople}}人参与,领取现金奖励{{getNumber}}/{{awardUser}}个</view>
  31. <view class="list-header-line"></view>
  32. </view>
  33. <template is="row" wx:for="{{list}}" wx:for-index="i" wx:key=" " data="{{...list[i]}}" />
  34. <view class="list-header-line" style="margin-left: 0px;background-color: white;"></view>
  35. <view class="list-tips-view" hidden="{{listTipsView}}">支付通道会收取1%的服务费,不足1分按1分收取</view>
  36. <view class="list-bottom-view"></view>
  37. <view class="bottom-view">
  38. <view class="bottom-button-left-view" bindtap="{{bottom.action}}">{{bottom.button}}</view>
  39. <view class="bottom-button-right-view">邀好友一起来玩
  40. <button class="bottom-button-right" open-type="share" hover-class="none" plain="true" style="border-color: rgba(0, 0, 0, 0)"></button>
  41. </view>
  42. </view>
  43. </scroll-view>
  44. <wxs module="tools">
  45. var awardFee = function(a) {
  46. return (a / 100)toFixed(2)
  47. }
  48. var desc = function(desc) {
  49. if (desc.length > 12) {
  50. return desc.substring(0, 12)
  51. }
  52. return desc
  53. }
  54. module.exports.awardFee = awardFee
  55. module.exports.desc = desc
  56. </wxs>