home-serviceTrait.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="serviceTraitContainer">
  3. <view class="title">
  4. 服务特点
  5. </view>
  6. <view class="info">
  7. <view class="box" v-for="(item, index) in dataList" :key="index">
  8. <view class="box_icon">
  9. <image :src="item.icon" mode="aspectFit"></image>
  10. </view>
  11. <view class="box_name">
  12. {{ item.name }}
  13. </view>
  14. <view class="box_describe">
  15. {{ item.describe }}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. dataList: [{'icon':'/static/home/home_service1.png', 'name':'易于上手', 'describe':'无需学习,立即上手'},
  26. {'icon':'/static/home/home_service2.png', 'name':'功能强大', 'describe':'精准、快速进行信息搜索'},
  27. {'icon':'/static/home/home_service3.png', 'name':'多语言识别', 'describe':'支持多语言文字识别'},
  28. {'icon':'/static/home/home_service4.png', 'name':'个性化服务', 'describe':'量身打造个性化服务'}]
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. .serviceTraitContainer{
  35. display: flex;
  36. box-sizing: border-box;
  37. flex-direction: column;
  38. width: 100%;
  39. padding: 20px;
  40. .title {
  41. display: flex;
  42. font-size: 25px;
  43. color: #2A2832;
  44. justify-content: center;
  45. margin-bottom: 15px;
  46. }
  47. .info{
  48. display: flex;
  49. box-sizing: border-box;
  50. flex-direction: row;
  51. .box{
  52. display: flex;
  53. box-sizing: border-box;
  54. flex-direction: column;
  55. width: 25%;
  56. height: 170px;
  57. align-items: center;
  58. // background-color: red;
  59. .box_icon{
  60. width: 90px;
  61. height: 90px;
  62. image{
  63. width: 100%;
  64. height: 100%;
  65. }
  66. }
  67. .box_name{
  68. margin-top: 0px;
  69. font-size: 22px;
  70. font-weight: 700;
  71. color: #000000;
  72. }
  73. .box_describe{
  74. margin-top: 10px;
  75. font-size: 20px;
  76. font-weight: 500;
  77. color: #000000;
  78. }
  79. }
  80. }
  81. }
  82. </style>