index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="content">
  3. <div class="banner">
  4. <img :src="bannerSrc" alt="banner" />
  5. </div>
  6. <div class="menus flex">
  7. <div class="menu">
  8. <p class="logo">
  9. <img src="/static/appeal/myappeal.png" />
  10. </p>
  11. <div class="desc">我的诉求</div>
  12. </div>
  13. <div class="menu">
  14. <p class="logo">
  15. <img src="/static/appeal/putappeal.png" />
  16. </p>
  17. <div class="desc">提出诉求</div>
  18. </div>
  19. </div>
  20. <div class="otherAppealList">
  21. <div v-for="(otherAppeal,index) in otherAppealList" :key="index">
  22. <appealCard :otherAppeal="otherAppeal"></appealCard>
  23. </div>
  24. </div>
  25. </view>
  26. </template>
  27. <script>
  28. import appealCard from './appealCard.vue'
  29. export default {
  30. components:{
  31. appealCard
  32. },
  33. data() {
  34. return {
  35. bannerSrc: "/static/appeal/banner.png",
  36. otherAppealList: [
  37. {
  38. title: "航投大厦餐厅服务建议",
  39. name: "市场服务与监督管理局",
  40. msg: "尊敬的市民您好!空港市场监管分局已与餐厅负责人取得了电话联系,根据您所提出的建议,餐厅将有针对性的进行整改,加强……",
  41. image: "/static/appeal/avator.png",
  42. },
  43. {
  44. title: "拉土车夜间噪音问题整改诉求",
  45. name: "市场服务与监督管理局",
  46. msg: "尊敬的市民您好!收到您的留言,我们十分重视!正平大街开展拉土作业的车辆为西安(咸阳)机场三期扩建工程建设项目运输……",
  47. image: "/static/appeal/avator.png",
  48. },
  49. ],
  50. };
  51. },
  52. onLoad() {},
  53. methods: {},
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. .flex {
  58. display: flex;
  59. }
  60. .content {
  61. width: 100%;
  62. height: 100vh;
  63. .banner {
  64. height: 25%;
  65. img {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. }
  70. .menus {
  71. width: 80%;
  72. height: 15%;
  73. justify-content: space-evenly;
  74. align-items: center;
  75. margin: 0 auto;
  76. background-color: #fff;
  77. border-radius: 25rpx;
  78. transform: translateY(-60%);
  79. box-shadow: 0rpx 10rpx 5rpx rgb(212, 212, 212);
  80. .menu {
  81. .desc {
  82. font-weight: bolder;
  83. text-align: center;
  84. }
  85. .logo {
  86. text-align: center;
  87. img {
  88. width: 100rpx;
  89. height: 100rpx;
  90. }
  91. }
  92. }
  93. }
  94. .otherAppealList {
  95. transform: translateY(-15%);
  96. .otherAppeal {
  97. margin: 5% 9%;
  98. .title {
  99. margin-bottom: 5%;
  100. font-size: 35rpx;
  101. }
  102. .details {
  103. .name {
  104. font-size: 30rpx;
  105. color: red;
  106. }
  107. .msg {
  108. font-size: 30rpx;
  109. }
  110. .icon {
  111. width: 60rpx;
  112. height: 60rpx;
  113. position: absolute;
  114. left: 1%;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. </style>