myAppeal.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div class="content">
  3. <div v-for="(otherAppeal, index) in otherAppealList" :key="index">
  4. <appealCard
  5. :otherAppeal="otherAppeal"
  6. @tap="toDetail(index)"
  7. ></appealCard>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. import appealCard from "./appealCard.vue";
  13. export default {
  14. components: {
  15. appealCard,
  16. },
  17. data() {
  18. return {
  19. otherAppealList: [
  20. {
  21. title: "航投大厦餐厅服务建议",
  22. state: 0,
  23. image: "/static/appeal/avator.png",
  24. msg: "正在处理中",
  25. },
  26. {
  27. title: "拉土车夜间噪音问题整改诉求",
  28. name: "市场服务与监督管理局",
  29. state: 1,
  30. msg: "尊敬的市民您好!收到您的留言,我们十分重视!正平大街开展拉土作业的车辆为西安(咸阳)机场三期扩建工程建设项目运输……",
  31. image: "/static/appeal/avator.png",
  32. },
  33. ],
  34. };
  35. },
  36. methods: {
  37. toDetail(index) {
  38. uni.navigateTo({
  39. url: "/pages/appeal/appeal_detail?id="+index,
  40. });
  41. },
  42. },
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .content {
  47. width: 100%;
  48. height: 100vh;
  49. }
  50. </style>