list.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="feedback-list">
  3. <view class="oa-list">
  4. <view class="oa-list-item" @tap="navTo(`/pages/set/feedback/detail?id=1`)">
  5. <view class="wrapper">
  6. <view class="address-box">
  7. <text class="tag" :class="'text-' + themeColor.name">{{ 1 | feedbackFilter }}</text>
  8. <text class="address in1line">UI无法直视,丑哭了</text>
  9. </view>
  10. <view class="u-box">
  11. <text class="name">{{ '管理员未回复' }}</text>
  12. <text class="mobile">联系方式:{{ '暂无' }}</text>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="oa-list-item" @tap="navTo(`/pages/set/feedback/detail?id=1`)">
  17. <view class="wrapper">
  18. <view class="address-box">
  19. <text class="tag" :class="'text-' + themeColor.name">{{ 2 | feedbackFilter }}</text>
  20. <text class="address in1line">UI界面显示错乱</text>
  21. </view>
  22. <view class="u-box">
  23. <text class="name">{{ '管理员未回复' }}</text>
  24. <text class="mobile">联系方式:{{ '暂无' }}</text>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="oa-list-item" @tap="navTo(`/pages/set/feedback/detail?id=1`)">
  29. <view class="wrapper">
  30. <view class="address-box">
  31. <text class="tag" :class="'text-' + themeColor.name">{{ 3| feedbackFilter }}</text>
  32. <text class="address in1line">业务合作,怎么联系?</text>
  33. </view>
  34. <view class="u-box">
  35. <text class="name">加群咨询群主</text>
  36. <text class="mobile">联系方式:{{ '暂无' }}</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="add-btn-wrapper">
  42. <button class="add-btn" :class="'bg-' + themeColor.name" @tap="navTo(`/pages/set/feedback/feedback`)">
  43. 意见反馈
  44. </button>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. filters: {
  51. feedbackFilter(type) {
  52. const feedbackType = ['', '功能建议', 'BUG反馈', '业务咨询'];
  53. return feedbackType[parseInt(type, 10)];
  54. }
  55. },
  56. onShow() {
  57. this.initData();
  58. },
  59. methods: {
  60. // 数据初始化
  61. initData() {
  62. uni.setNavigationBarColor({
  63. frontColor: '#ffffff',
  64. backgroundColor: this.themeColor.color,
  65. animation: {
  66. duration: 400,
  67. timingFunc: 'easeIn'
  68. }
  69. })
  70. },
  71. navTo(route) {
  72. this.$mRouter.push({
  73. route
  74. });
  75. }
  76. }
  77. };
  78. </script>
  79. <style lang="scss">
  80. page {
  81. background-color: $page-color-base;
  82. }
  83. .feedback-list {
  84. position: relative;
  85. .wrapper {
  86. display: flex;
  87. flex-direction: column;
  88. flex: 1;
  89. }
  90. .address-box {
  91. display: flex;
  92. align-items: center;
  93. .tag {
  94. font-size: 24upx;
  95. margin-right: 10upx;
  96. border: 1px solid;
  97. border-radius: 4upx;
  98. padding: 4upx 10upx;
  99. line-height: 1;
  100. }
  101. .address {
  102. font-size: 30upx;
  103. color: $font-color-dark;
  104. }
  105. }
  106. .u-box {
  107. font-size: 28upx;
  108. color: $font-color-light;
  109. margin-top: 16upx;
  110. .name {
  111. margin-right: 30upx;
  112. }
  113. }
  114. }
  115. </style>