index.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!--pages/index/goodsdetails/goodsdetails.wxml-->
  2. <view>
  3. <view class="indextop {{scrollTop > 220 ? 'navstyl':'unnavstyl'}}">
  4. <view style="height:{{statusBarHeight}};"></view>
  5. <view style="height:{{navheight}};padding:6px 0;display: flex;line-height: 32px;width: 100%;">
  6. <view style="width:80rpx;">
  7. <view wx:if="{{isshare==0}}" class="li {{scrollTop > 150 ? '':'unxiangqi'}}" bindtap="back"></view>
  8. <view wx:if="{{isshare==1}}" class="li2 icon-home {{scrollTop > 150 ? '':'unxiangqi backHomeTop'}}" bindtap="backHome"></view>
  9. </view>
  10. <view class="xiangqi {{scrollTop > 150 ? '':'unxiangqi'}}">往期精彩</view>
  11. <view style="width:80rpx"></view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="image_box">
  16. <view wx:if="{{isshare==1&&scrollTop < 120}}" bindtap='backHome' class='icon-home backHome'></view>
  17. <!-- wx:if="{{scrollTop <320}}" -->
  18. <view wx:if="{{isshare==0&&scrollTop < 120}}" class='leftBack' bindtap="backJT"></view>
  19. <image class="{{scrollTop > 100 ? 'unxiangqi':'xiangqi'}} TopImage" src="{{topImgText.historyBgImage}}" mode="widthFix"></image>
  20. <view class="title">
  21. <!-- <view class="type">夏令营</view> -->
  22. <view>{{topImgText.historyTitle}}</view>
  23. </view>
  24. </view>
  25. <!-- -->
  26. <view class="content">
  27. <!-- tabs -->
  28. <view class="{{scrollTop>220 ? 'tabsTop' : 'tabs'}}">
  29. <view bindtap="changeType" data-key="1" class="{{key==1?'BigLeft Big':'Small'}}">活动相册</view>
  30. <view style="margin-left: 50rpx;" class="{{key==2?'Big':'Small'}}" bindtap="changeType" data-key="2">精彩文章</view>
  31. </view>
  32. <!-- 第一个tabs时展示 rightImage -->
  33. <view wx:if="{{key==1}}" class="allImage ">
  34. <view wx:for="{{activePhoto}}" wx:key="index" class="{{[index%15==0?'bigImage':'image_Bigbox',((index%9==0&&(index/9)%2!=0&&index!=0)||(index==9))?'rightImage':'']}}">
  35. <!-- oms视频 -->
  36. <image mode="aspectFill" class='image' bindtap="previewVideo" src='{{item.logo}}' wx:if='{{item.type==2}}' data-vdurl="{{item.content}}" bindtap='previewVideo' data-id='{{index}}'></image>
  37. <video style="display: none;" class="image" bindtap="previewVideo" data-vdurl="{{item.content}}" wx:if="{{item.type==2}}" src="{{item.content}}"></video>
  38. <!-- 视频号 -->
  39. <image mode="aspectFill" class="image" bindtap="channelVideo" data-uname="{{item.title}}" data-vdNum="{{item.content}}" wx:if="{{item.type==3}}" src="{{item.logo}}"></image>
  40. <!-- 图片 -->
  41. <image mode="aspectFill" bindtap="previewImage" data-index="{{index}}" wx:if="{{item.type==4}}" data-imgurl="{{item.logo}}" class="image" src="{{item.logo}}?x-oss-process=image/resize,m_fill,w_400,h_400"></image>
  42. <view wx:if="{{item.type==3||item.type==2}}" class="{{[index%15==0?'icon icon-video-play iconAdd2':'icon icon-video-play iconAdd']}}"></view>
  43. <!-- <image wx:if="{{item.type==4}}" class="{{[index%15==0?'lfImg':'img']}}" src="https://img.bbztx.com/image_test/upload/thumbs/20230227/logo/1677472021719085091.png" mode="" /> -->
  44. </view>
  45. <view class="box"></view>
  46. </view>
  47. <!-- 第二个tabs时展示 -->
  48. <view wx:if="{{key==2}}" class="two">
  49. <view class="box_two" wx:for="{{activityRecord}}" wx:key="index">
  50. <image mode="aspectFill" class="imgTwo" data-content="{{item.content}}" data-title="{{item.title}}" bindtap="tweet" src="{{item.logo}}"></image>
  51. <view class="text">{{item.title}}</view>
  52. </view>
  53. </view>
  54. </view>