uFunction.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="item">
  3. <view class="i_title" v-if="showTitle">
  4. <image src="../../static/imgs/fmcs_title.png"></image>
  5. <text>{{title}}</text>
  6. </view>
  7. <view v-if="list.length" class="i_pre" v-for="(item,index) in list" :key="index">
  8. <view class="ip_title">{{item.title}}</view>
  9. <view class="ip_nr">{{item.desc}}</view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. props:{
  16. showTitle:{
  17. typeof:Boolean,
  18. default:true
  19. },
  20. title:{
  21. typeof:String,
  22. default:''
  23. },
  24. list:{
  25. typeof:Array,
  26. default:[]
  27. }
  28. },
  29. data(){
  30. return {
  31. }
  32. },
  33. methods:{
  34. }
  35. }
  36. </script>
  37. <style scoped lang="less">
  38. .item{
  39. margin-top: 48rpx;
  40. .i_title{
  41. display: flex;
  42. align-items: center;
  43. image{
  44. width: 50rpx;
  45. height: 24rpx;
  46. }
  47. text{
  48. font-family: PingFang-SC, PingFang-SC;
  49. font-weight: bold;
  50. font-size: 36rpx;
  51. color: #134F99;
  52. line-height: 50rpx;
  53. margin-left: 8rpx;
  54. }
  55. }
  56. .i_pre{
  57. margin-top: 48rpx;
  58. .ip_title{
  59. padding-left: 18rpx;
  60. font-family: PingFang-SC, PingFang-SC;
  61. font-weight: bold;
  62. font-size: 32rpx;
  63. color: #111111;
  64. line-height: 45rpx;
  65. position: relative;
  66. &:before{
  67. content: '';
  68. width: 6rpx;
  69. height: 36rpx;
  70. background: #1460CA;
  71. position: absolute;
  72. left: 0;
  73. top: 50%;
  74. margin-top: -18rpx;
  75. }
  76. }
  77. .ip_nr{
  78. font-family: PingFangSC, PingFang SC;
  79. font-weight: 400;
  80. font-size: 24rpx;
  81. color: #666666;
  82. line-height: 34rpx;
  83. margin-top: 16rpx;
  84. letter-spacing: 2rpx;
  85. padding-left: 18rpx;
  86. }
  87. }
  88. }
  89. </style>