setting.vue 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <multi-color-background top-height="2.7" show-go-back="1">
  3. <h1 class="title">安全设置</h1>
  4. <div class="main">
  5. <info-block v-for="item,index in infoData" :info-data="item" :key="index"></info-block>
  6. </div>
  7. </multi-color-background>
  8. </template>
  9. <script>
  10. import MultiColorBackground from "../components/multiColorBackground";
  11. import InfoBlock from "../components/infoBlock";
  12. export default {
  13. name: "setting",
  14. components: {InfoBlock, MultiColorBackground},
  15. data(){
  16. return{
  17. infoData:[
  18. {
  19. id:1,
  20. title:'124',
  21. content:'34567',
  22. },{
  23. id:2,
  24. title:'124',
  25. content:'34567',
  26. },{
  27. id:3,
  28. title:'124',
  29. content:'',
  30. }
  31. ]
  32. }
  33. }
  34. }
  35. </script>
  36. <style scoped>
  37. .main{
  38. margin: 0.4rem 0.4rem 0;
  39. }
  40. </style>