uFunction.vue 1.6 KB

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