home-serviceTrait.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. background-color: #ffffff;
  41. .title {
  42. display: flex;
  43. font-size: 25px;
  44. color: #2A2832;
  45. justify-content: center;
  46. margin-bottom: 15px;
  47. }
  48. .info{
  49. display: flex;
  50. box-sizing: border-box;
  51. flex-direction: row;
  52. .box{
  53. display: flex;
  54. box-sizing: border-box;
  55. flex-direction: column;
  56. width: 25%;
  57. height: 170px;
  58. align-items: center;
  59. // background-color: red;
  60. .box_icon{
  61. width: 90px;
  62. height: 90px;
  63. image{
  64. width: 100%;
  65. height: 100%;
  66. }
  67. }
  68. .box_name{
  69. margin-top: 0px;
  70. font-size: 22px;
  71. font-weight: 700;
  72. color: #000000;
  73. }
  74. .box_describe{
  75. margin-top: 10px;
  76. font-size: 20px;
  77. font-weight: 500;
  78. color: #000000;
  79. }
  80. }
  81. }
  82. }
  83. </style>