uDesc.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. letter-spacing: 2rpx;
  46. }
  47. .memo{
  48. font-family: PingFangSC, PingFang SC;
  49. font-weight: 400;
  50. font-size: 26rpx;
  51. color: #FFFFFF;
  52. line-height: 42rpx;
  53. margin-top: 13rpx;
  54. letter-spacing: 2rpx;
  55. }
  56. }
  57. </style>