uDesc.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="desc" :style="{'background-image': 'url('+bg+')'}">
  3. <view class="title">{{title}}</view>
  4. <view class="memo">{{description}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. props:{
  10. title:{
  11. typeof:String,
  12. default:''
  13. },
  14. bg:{
  15. typeof:String,
  16. default:'../../static/imgs/fmcs_xtbg.png'
  17. },
  18. description:{
  19. typeof:String,
  20. default:''
  21. }
  22. },
  23. data(){
  24. return {
  25. }
  26. },
  27. methods:{
  28. }
  29. }
  30. </script>
  31. <style scoped lang="less">
  32. .desc{
  33. width: 100%;
  34. height: 400rpx;
  35. padding: 42rpx 24rpx 0;
  36. background-repeat: no-repeat;
  37. background-size: 100% 100%;
  38. box-sizing: border-box;
  39. .title{
  40. font-family: PingFang-SC, PingFang-SC;
  41. font-weight: bold;
  42. font-size: 40rpx;
  43. color: #FFFFFF;
  44. line-height: 56rpx;
  45. }
  46. .memo{
  47. font-family: PingFangSC, PingFang SC;
  48. font-weight: 400;
  49. font-size: 26rpx;
  50. color: #FFFFFF;
  51. line-height: 42rpx;
  52. margin-top: 13rpx;
  53. }
  54. }
  55. </style>