default.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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;"
  16. @click="detail(value.id,0)">
  17. <!-- <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> -->
  18. <image class="integral-mall-goods" mode="aspectFill" :src="value.img"></image>
  19. <view class="mt8 plr10 ft14 ftw400 text-center text-over cl-main">{{value.name}}</view>
  20. </view>
  21. </block>
  22. </view>
  23. </view>
  24. <view class="home-main" style="height: 50upx;">
  25. <!-- <com-copyright></com-copyright> -->
  26. </view>
  27. <dialog-couponshareget @loginAct="showLoginCouponShareGet" v-if="showCouponShareGet"
  28. @closed="showCouponShareGet = false"></dialog-couponshareget>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. props: ['datasa'],
  34. data() {
  35. return {
  36. isLogin: false,
  37. showBirthday: false,
  38. showLogin: false,
  39. showQrcode: false,
  40. showCouponShareGet: false,
  41. }
  42. },
  43. created() {
  44. },
  45. methods: {
  46. detail(vid, mid) {
  47. uni.navigateTo({
  48. url: '/pages/video/index?vid=' + vid + '&mid=' + mid
  49. })
  50. },
  51. showLoginAct() {
  52. this.showLogin = true;
  53. },
  54. showLoginCouponShareGet() {
  55. this.showLogin = true;
  56. },
  57. loginYes() {
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .home-header {
  64. height: 304rpx;
  65. width: 100%;
  66. position: relative;
  67. background: #363B4D;
  68. border-radius: 0rpx 0rpx 48rpx 48rpx;
  69. }
  70. .home-main {
  71. width: 100%;
  72. position: relative;
  73. margin-top: -156rpx;
  74. padding: 0 30rpx;
  75. }
  76. .home-mendian {
  77. width: 100%;
  78. height: 84rpx;
  79. background: rgba(255, 255, 255, 0.1);
  80. border-radius: 42rpx;
  81. }
  82. .tuan-product-l {
  83. width: 320rpx;
  84. height: 240rpx;
  85. border-radius: 16rpx;
  86. background: #F2F2F2;
  87. }
  88. .integral-mall-goods {
  89. width: 100%;
  90. height: 280rpx;
  91. background: #F2F2F2;
  92. border-radius: 16upx;
  93. }
  94. .tuan-product-r {
  95. width: calc(100% - 320rpx);
  96. }
  97. </style>