gui-demo-banner.vue 997 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view class="gui-banner">
  3. <image :src="img" class="gui-banner-img"></image>
  4. <view class="gui-banner-in gui-flex gui-columns gui-justify-content-center">
  5. <text class="gui-block-text gui-h3 gui-color-white gui-bold gui-text-center">{{title}}</text>
  6. <text class="gui-block-text gui-text-small gui-color-white gui-text-center" style="margin-top:8rpx;">{{desc}}</text>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default{
  12. name : "gui-demo-banner",
  13. props : {
  14. title:{type:String, default:''},
  15. img:{type:String, default:''},
  16. desc:{type:String, default:'漂亮 丰富 高效的跨平台 UI 框架'}
  17. }
  18. }
  19. </script>
  20. <style scoped>
  21. .gui-banner{height:228rpx; border-radius:10rpx; font-size:0; position:relative; margin-top:15rpx;}
  22. .gui-banner-img{width:690rpx; height:228rpx; border-radius:10rpx; opacity:0.92;}
  23. .gui-banner-in{height:228rpx; border-radius:10rpx; position:absolute; z-index:1; left:0; top:0;}
  24. .gui-h3{font-size:38rpx;}
  25. .gui-text-center{width:690rpx;}
  26. </style>