graceBanner.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template name="graceBanner">
  2. <view style="margin-top:20px;">
  3. <grace-sup text="graceui" textColor="#A5A7B2" textSize="24px" sup="2.0" supSize="14px" :isBold="true"></grace-sup>
  4. <view class="grace-banner">
  5. <view class="logo">
  6. <image src="https://graceui.oss-cn-beijing.aliyuncs.com/logo.png" mode="widthFix"></image>
  7. </view>
  8. <view class="body">
  9. <view class="title">{{title}}</view>
  10. <view class="desc">{{desc}}</view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import graceSup from './graceSup.vue';
  17. export default {
  18. components:{
  19. 'grace-sup' : graceSup
  20. },
  21. props: {
  22. title:{
  23. type : String,
  24. default : "..."
  25. },
  26. desc:{
  27. type : String,
  28. default : "再出发 更轻快 更漂亮 更丰富"
  29. },
  30. }
  31. }
  32. </script>
  33. <style scoped>
  34. .grace-banner{display:flex; flex-wrap:nowrap; justify-content:center; background:#FFFFFF; padding:30upx; box-shadow:0px 0px 8px #D5D6D8; margin-top:20px; border-radius:8px;}
  35. .grace-banner .logo{width:100upx; height:100upx; margin-right:30upx; font-size:0;}
  36. .grace-banner .logo image{width:100upx; height:100upx;}
  37. .grace-banner .body{width:auto; display:inline-block; margin-right:30px;}
  38. .grace-banner .body .title{font-size:32upx; font-weight:700; color:#3688FF; line-height:1.5em;}
  39. .grace-banner .body .desc{font-size:22upx; color:#A5A7B2; line-height:1.5em; margin-top:5px;}
  40. </style>