index.vue 2.6 KB

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