replay.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <wxs module="price">
  2. var caclPrice = function (d) {
  3. var str = d;
  4. if(d) {
  5. d = d.toString();
  6. var len = d.length;
  7. str = d.slice(0, len-2) + '.' + d.slice(-2);
  8. }
  9. return str;
  10. }
  11. module.exports = {
  12. caclPrice : caclPrice,
  13. }
  14. </wxs>
  15. <i-navigation-bar back="{{showBackBtn}}" color="#FFFFFF" background="transparent" style="position:absolute;z-index:10000;top:0;">
  16. <view slot="left">
  17. <view bindtap='_backhome' class="nav-btn i-flex i-flex-alc">
  18. <image class="img" src="/lionfish_comshop/images/zhuye.png"></image>
  19. </view>
  20. </view>
  21. </i-navigation-bar>
  22. <view class="main">
  23. <video autoplay loop autoPauseIfOpenNative="true" controls="{{false}}" direction="0" id="myVideo" objectFit="contain" showFullscreenBtn="{{false}}" src="{{replayInfo[0].media_url}}"></video>
  24. </view>
  25. <view class="live-page">
  26. <view class="operation i-flex-col" hidden="{{showStore}}">
  27. <button class="item i-flex i-flex-alc operation--mode-filter-black" open-type="share">
  28. <text class="iconfont icon-fenxiang3"></text>
  29. </button>
  30. <view class="item i-flex i-flex-alc" bindtap="clickStore">
  31. <text class="iconfont icon-gouwudai"></text>
  32. </view>
  33. </view>
  34. <view class="store__mask" bindtap="clickStore" hidden="{{!showStore}}"></view>
  35. <view class="store">
  36. <view class="store-list {{showStore?'fadeIn':''}}">
  37. <view class="mode-filter-black">
  38. <view class="store-list__inner" style="max-height: 287px">
  39. <view class="store-list__header">
  40. <view class="store-list__title">直播商品</view>
  41. </view>
  42. <view class="store-list__body">
  43. <scroll-view class="store-list__body__inner" style="max-height:230px;" scroll-y wx:if="{{roominfo.goods_list.length}}">
  44. <view class="store-list__item" wx:for="{{roominfo.goods_list}}" wx:key="id">
  45. <view data-link="/{{item.url}}" class="store-list__item__inner" bindtap="goDetails">
  46. <view class="store-list__item__header">
  47. <image class="store-list__item__avatar" mode="aspectFill" src="{{item.cover_img}}"></image>
  48. <view class="store-list__item__index">{{index+1}}</view>
  49. </view>
  50. <view class="store-list__item__body">
  51. <view class="store-list__item__title">{{item.name}}</view>
  52. <view class="store-list__item__price__container">
  53. <view class="store-list__item__price" wx:if="{{item.price}}">¥ {{price.caclPrice(item.price)}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </scroll-view>
  59. <view class="store-list__empty" wx:else>暂无商品</view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>