default.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view>
  3. <view class="pd16_15" style="margin-bottom: 80upx;">
  4. <view class="flex alcenter space" style="margin-bottom: 30upx;">
  5. <view class="flex alcenter">
  6. <image style="width: 40rpx;height: 40rpx;" :src="statics.zhuico[3]"></image>
  7. <text class="ft16 ftw600 cl-main ml15">最新热播</text>
  8. </view>
  9. <navigator url="/pages/client/tuan/ss">
  10. <view class="ft14 cl-notice">大家都在看的热播好剧</view>
  11. </navigator>
  12. </view>
  13. <view class="flex space" style="display:flex; flex-wrap:wrap;">
  14. <block v-for="(value,key) in datasa" :key="key">
  15. <view class="box pb10 mb15" style="width:31%; position: relative; border-radius:20rpx;" @click="detail(value.id,0)">
  16. <!-- <view class="btn-mini" style="position: absolute; top: 20upx; right: 20upx; border-radius: 10upx;font-size: 18upx;width: 60upx; height: 36upx; z-index: 1;" :style="getBtnStyle">{{value.lxname}}</view> -->
  17. <image class="integral-mall-goods" mode="aspectFill" :src="value.img"></image>
  18. <view class="mt8 plr10 ft14 ftw400 text-center text-over cl-main">{{value.name}}</view>
  19. </view>
  20. </block>
  21. </view>
  22. </view>
  23. <view class="home-main" style="height: 50upx;">
  24. <!-- <com-copyright></com-copyright> -->
  25. </view>
  26. <dialog-couponshareget @loginAct="showLoginCouponShareGet" v-if="showCouponShareGet" @closed="showCouponShareGet = false"></dialog-couponshareget>
  27. </view>
  28. </template>
  29. <script>
  30. export default{
  31. props: ['datasa'],
  32. data(){
  33. return {
  34. isLogin:false,
  35. showBirthday:false,
  36. showLogin:false,
  37. showQrcode:false,
  38. showCouponShareGet:false,
  39. }
  40. },
  41. created(){
  42. // uni.setNavigationBarTitle({
  43. // title: '夜趣小视频'
  44. // });
  45. // setTimeout(()=>{
  46. // this.showCouponShareGet = true;
  47. // },1000);
  48. },
  49. methods:{
  50. //'/pages/video/index?id='+value.id
  51. detail(vid,mid){
  52. uni.navigateTo({
  53. url:'/pages/video/index?vid='+vid+'&mid='+mid
  54. })
  55. },
  56. showLoginAct(){
  57. this.showLogin = true;
  58. },
  59. showLoginCouponShareGet(){
  60. this.showLogin = true;
  61. },
  62. loginYes(){
  63. }
  64. }
  65. }
  66. </script>
  67. <style>
  68. .home-header{
  69. height: 304rpx;
  70. width: 100%;
  71. position: relative;
  72. background: #363B4D;
  73. border-radius: 0rpx 0rpx 48rpx 48rpx;
  74. }
  75. .home-main{
  76. width: 100%;
  77. position: relative;
  78. margin-top: -156rpx;
  79. padding: 0 30rpx;
  80. }
  81. .home-mendian{
  82. width: 100%;
  83. height: 84rpx;
  84. background:rgba(255,255,255,0.1);
  85. border-radius: 42rpx;
  86. }
  87. .tuan-product-l{
  88. width: 320rpx;
  89. height: 240rpx;
  90. border-radius: 16rpx;
  91. background: #F2F2F2;
  92. }
  93. .integral-mall-goods{
  94. width: 100%;
  95. height: 280rpx;
  96. background: #F2F2F2;
  97. border-radius: 16upx;
  98. }
  99. .tuan-product-r{
  100. width: calc(100% - 320rpx);
  101. }
  102. </style>