uDesc.vue 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="desc" :style="'background: url('+bg+') no-repeat'">
  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. box-sizing: border-box;
  37. .title{
  38. font-family: PingFang-SC, PingFang-SC;
  39. font-weight: bold;
  40. font-size: 40rpx;
  41. color: #FFFFFF;
  42. line-height: 56rpx;
  43. }
  44. .memo{
  45. font-family: PingFangSC, PingFang SC;
  46. font-weight: 400;
  47. font-size: 26rpx;
  48. color: #FFFFFF;
  49. line-height: 42rpx;
  50. margin-top: 13rpx;
  51. }
  52. }
  53. </style>