appeal.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="appeal-main">
  3. <view v-for="item in list" :key="item.key" class="appeal-item">
  4. <view class="appeal-user-box">
  5. <view class="appeal-user">
  6. <up-avatar :src="item.avatar" shape="square"></up-avatar>
  7. <view class="user-name">{{ item.name }}</view>
  8. </view>
  9. </view>
  10. <view class="appeal-text">
  11. {{ item.value }}
  12. </view>
  13. <view class="appeal-image">
  14. <view class="appeal-image-item" v-for="(baseListItem, baseListIndex) in [{}, {}, {}, {}, {}, {}, {}, {}]" :key="baseListIndex">
  15. 1
  16. </view>
  17. </view>
  18. <view class="appeal-order">
  19. <view class="appeal-avatar">
  20. <up-avatar :src="item.avatar" shape="square"></up-avatar>
  21. </view>
  22. <view class="appeal-order-box">
  23. <view class="appeal-order-text">标题:订单</view>
  24. <view class="appeal-order-text">简介:订单详情撒大师大师的十大</view>
  25. <view class="appeal-order-text">价格:200</view>
  26. </view>
  27. </view>
  28. <view class="appeal-text-box">
  29. <view class="font-title">申诉内容</view>
  30. <up-textarea v-model="textareaValue" placeholder="请输入申述内容" count ></up-textarea>
  31. </view>
  32. <view class="appeal-btn-box">
  33. <up-button type="primary" text="提交申述" @click="onAppeal"></up-button>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script setup>
  39. import { ref } from 'vue';
  40. const list = [
  41. {
  42. name: '张三',
  43. avatar: '/static/img/报事报修@6x.png',
  44. status: 1,
  45. key: 1,
  46. value: '浔阳江头夜送客,枫叶荻花秋瑟瑟。主人下马客在船,举酒欲饮无管弦。醉不成欢惨将别,别时茫茫江浸月。',
  47. }
  48. ]
  49. const textareaValue = ref('');
  50. const load = () => {
  51. }
  52. const onAppeal = () => {
  53. console.log('提交申述',textareaValue.value);
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .appeal-main {
  58. position: fixed;
  59. top: 0px;
  60. left: 0px;
  61. right: 0px;
  62. bottom: 0px;
  63. background: rgba(245, 245, 245, 1);
  64. padding: 12px;
  65. overflow: auto;
  66. .appeal-item {
  67. border-radius: 8px;
  68. background: rgba(255, 255, 255, 1);
  69. padding: 12px;
  70. margin-bottom: 12px;
  71. .appeal-user-box {
  72. display: flex;
  73. align-items: center;
  74. justify-content: space-between;
  75. .appeal-user {
  76. display: flex;
  77. align-items: center;
  78. }
  79. .user-name {
  80. margin-left: 8px;
  81. font-size: 18px;
  82. font-weight: 700;
  83. line-height: 21.09px;
  84. color: rgba(51, 51, 51, 1);
  85. margin-left: 12px;
  86. }
  87. .appeal-status {
  88. font-size: 14px;
  89. }
  90. }
  91. .appeal-text {
  92. font-size: 14px;
  93. font-weight: 500;
  94. line-height: 20.27px;
  95. color: rgba(51, 51, 51, 1);
  96. padding: 12px 0;
  97. }
  98. .appeal-image {
  99. margin: 12px 0;
  100. display: grid;
  101. grid-template-columns: repeat(3, 1fr); // 4列布局
  102. gap: 12px; // 网格间距
  103. .appeal-image-item {
  104. background: #f9f9f9;
  105. height: 80px;
  106. width: 100px;
  107. }
  108. }
  109. .appeal-order {
  110. border-radius: 8px;
  111. background: #f9f9f9;
  112. margin: 12px 0;
  113. padding: 12px;
  114. display: flex;
  115. align-content: center;
  116. .appeal-avatar {
  117. margin-right: 12px;
  118. }
  119. .appeal-order-box {
  120. flex: 1;
  121. .appeal-order-text {
  122. font-size: 14px;
  123. font-weight: 500;
  124. line-height: 20.27px;
  125. color: rgba(153, 153, 153, 1);
  126. }
  127. }
  128. }
  129. .appeal-text-box {
  130. margin: 12px 0;
  131. .font-title {
  132. margin-bottom: 12px;
  133. }
  134. }
  135. .appeal-btn-box {
  136. display: flex;
  137. align-items: center;
  138. justify-content: flex-end;
  139. .appeal-btn {
  140. color: rgba(255, 87, 4, 1);
  141. font-size: 14px;
  142. width: 100%;
  143. height: 45px;
  144. border-radius: 16px;
  145. border: 1px solid rgba(255, 87, 4, 1);
  146. }
  147. }
  148. }
  149. }
  150. </style>