当前位置:   article > 正文

uinapp短剧短视频h5小程序app系统_uniapp 短剧 h5

uniapp 短剧 h5

技术栈:mysql+uinapp+php

banner.vue:

  1. <template>
  2. <view>
  3. <swiper class="home-swiper-banner" indicator-color="rgba(255, 255, 255, 0.3)" indicator-active-color="#FFFFFF" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="500">
  4. <swiper-item v-for="(item,index) in banners" :key="index">
  5. <navigator :url="item.link">
  6. <image :src="item.src" mode="aspectFill" style="border-radius: 16rpx"></image>
  7. </navigator>
  8. </swiper-item>
  9. </swiper>
  10. </view>
  11. </template>
  12. <script>
  13. export default{
  14. props: ['banners'],
  15. data(){
  16. return {
  17. banners1:[],
  18. }
  19. },
  20. }
  21. </script>
  22. <style>
  23. .home-swiper-banner{
  24. height: 250rpx;
  25. box-shadow: 0rpx 4rpx 32rpx 0rpx rgba(0, 0, 0, 0.04);
  26. border-radius: 10rpx;
  27. overflow: hidden;
  28. }
  29. .home-swiper-banner image{
  30. width: 100%;
  31. height: 250rpx;
  32. }
  33. </style>

  1. <template>
  2. <view class="home-header" style="background-color: #f75444">
  3. <view class="pd24_20">
  4. <view v-if="isLogin == false" @click="showLoginAct" class="flex alcenter space">
  5. <view class="flex alcenter">
  6. <view class="member-face">
  7. <image class="face" :src="statics.defaultFace"></image>
  8. </view>
  9. <view class="ml15">
  10. <view class="ft16 cl-main">暂未登录</view>
  11. <view class="mt12 ft12 cl-notice">点击登录 享受更多会员特惠</view>
  12. </view>
  13. </view>
  14. <text class="iconfont iconicon_arrow_small ft12 cl-notice"></text>
  15. </view>
  16. <view v-else class="flex alcenter space">
  17. <view class="flex alcenter" @click="opsets">
  18. <view class="member-face">
  19. <image class="face" :src="avatar"></image>
  20. <image class="vip-level" :src="userinfo.group_id>1?statics.vipLevelImg[0]:''"></image>
  21. </view>
  22. <view class="ml15">
  23. <view class="ft16 cl-main">{{ userinfo.nickname || '' }}</view>
  24. <view class="mt12 ft12 cl-notice">ID:{{ userinfo.user_id || '' }}</view>
  25. </view>
  26. </view>
  27. <view class="btn-mini opsetads" @click="opset">
  28. <image mode="aspectFit" style="width: 100%; height: 100%;" :src="staticUrl + 'sz.png?v=1'">
  29. </view>
  30. </view>
  31. <view style="width: 100%; height: 30upx;"></view>
  32. <home-vipcard :userinfo="userinfo" @loginAct="showLoginAct" @qrcode="showQrcode = true"></home-vipcard>
  33. <view class="mt24">
  34. <home-banner :banners="banners"></home-banner>
  35. </view>
  36. <view class="flex wrap space mt16">
  37. <view v-for="(item,index) in getMenus" :key="index" :class="index > 1 ? 'mt16': ''">
  38. <view v-if="item.type == 'link'" :data-index="index" @click="memberLinkTo" class="box pd16_15 flex alcenter" style="width: 320rpx;" >
  39. <image :src="item.icon" style="width: 64rpx;height: 64rpx;"></image>
  40. <text class="ml15 ft14 ftw500 cl-main">{{item.name}}</text>
  41. </view>
  42. <view v-else style="width: 320rpx;">
  43. <button class="box pd16_15 flex alcenter" :open-type="item.type" style="padding: 32rpx 30rpx; margin: 0;">
  44. <image :src="item.icon" style="width: 64rpx;height: 64rpx;"></image>
  45. <text class="ml15 ft14 ftw500 cl-main">{{item.name}}</text>
  46. </button>
  47. </view>
  48. </view>
  49. </view>

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/1015717
推荐阅读
相关标签
  

闽ICP备14008679号