index.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <view class="page-content complaintsdetails">
  3. <view class="complaintsdetails-content">
  4. <view class="complaintsdetails-item complaintsdetails-plauser">
  5. <view class="item-content">
  6. <view class="item-text">
  7. <view class="item-textlable">
  8. <text class="item-lable">真实姓名:</text>
  9. </view>
  10. <view class="item-textvalue">
  11. <text class="item-value">{{ complaintsDetailsObj.plaUser }}</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="complaintsdetails-item complaintsdetails-plaphone">
  17. <view class="item-content">
  18. <view class="item-text">
  19. <view class="item-textlable">
  20. <text class="item-lable">手机号码:</text>
  21. </view>
  22. <view class="item-textvalue">
  23. <text
  24. class="item-value"
  25. >{{ complaintsDetailsObj.plaPhone.replace(/^(.{3})(.*)(.{4})$/, '$1-$2-$3') }}</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="complaintsdetails-item complaintsdetails-planame">
  31. <view class="item-content">
  32. <view class="item-text">
  33. <view class="item-textlable">
  34. <text class="item-lable">投诉标题:</text>
  35. </view>
  36. <view class="item-textvalue">
  37. <text class="item-value">{{ complaintsDetailsObj.plaName }}</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="complaintsdetails-placontent">
  43. <view class="placontent-text">
  44. <view class="placontent-textlable">
  45. <text class="placontent-lable">投诉内容:</text>
  46. </view>
  47. <view class="placontent-textvalue">
  48. <text class="placontent-textarea">{{ complaintsDetailsObj.plaContent }}</text>
  49. </view>
  50. </view>
  51. </view>
  52. <template v-if="complaintsDetailsObj.plaRes != null && complaintsDetailsObj.plaRes != ''">
  53. <view class="complaintsdetails-plares">
  54. <view class="plares-text">
  55. <view class="plares-textlable">
  56. <text class="plares-lable">反馈内容:</text>
  57. </view>
  58. <view class="plares-textvalue">
  59. <text class="plares-textarea">{{ complaintsDetailsObj.plaRes }}</text>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <template v-else>
  65. <view class="complaintsdetails-plares">
  66. <view class="plares-text">
  67. <view class="plares-textlable">
  68. <text class="plares-lable">反馈内容:</text>
  69. </view>
  70. <view class="plares-textnovalue">
  71. <text class="plares-value">暂无</text>
  72. </view>
  73. </view>
  74. </view>
  75. </template>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. import {
  81. complaintsViewData
  82. } from '@/agrcloud-api/complaints';
  83. export default {
  84. name: 'complaintsdetails',
  85. data() {
  86. return {
  87. complaintsDetailsObj: {},
  88. custLabelStyle: {
  89. 'height': '42rpx',
  90. 'font-size': '30rpx',
  91. 'font-family': 'PingFangSC-Regular, PingFang SC',
  92. 'font-weight': '400',
  93. 'color': '#666666',
  94. 'line-height': '42rpx'
  95. },
  96. custPlaceholderStyle: 'font-size: 34rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;'
  97. };
  98. },
  99. onLoad() {
  100. this.initData();
  101. },
  102. methods: {
  103. /** 初始化数据 */
  104. initData() {
  105. const currComplaintsDetailsItem = (this.$store.getters || {}).complaintsDetailsObj || {};
  106. complaintsViewData({
  107. id: currComplaintsDetailsItem.plaId
  108. }).then(res => {
  109. this.complaintsDetailsObj = res.data || {};
  110. }).catch(() => {
  111. this.complaintsDetailsObj = {};
  112. });
  113. }
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .complaintsdetails {
  119. padding: 0;
  120. .complaintsdetails-content {
  121. width: 100%;
  122. padding-top: 24rpx;
  123. .complaintsdetails-item {
  124. height: 138rpx;
  125. padding-left: 24rpx;
  126. background-color: #ffffff;
  127. .item-content {
  128. height: 138rpx;
  129. border-bottom: 1px solid #eeeeee;
  130. .item-text {
  131. padding: 24rpx 24rpx 24rpx 0;
  132. .item-textlable {
  133. height: 42rpx;
  134. line-height: 42rpx;
  135. .item-lable {
  136. height: 42rpx;
  137. font-size: 30rpx;
  138. font-family: PingFangSC-Regular, PingFang SC;
  139. font-weight: 400;
  140. color: #666666;
  141. line-height: 42rpx;
  142. }
  143. }
  144. .item-textvalue {
  145. height: 48rpx;
  146. line-height: 48rpx;
  147. .item-value {
  148. height: 48rpx;
  149. font-size: 34rpx;
  150. font-family: PingFangSC-Regular, PingFang SC;
  151. font-weight: 400;
  152. color: #333333;
  153. line-height: 48rpx;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. .complaintsdetails-placontent {
  160. margin-top: 24rpx;
  161. background-color: #ffffff;
  162. min-height: 154rpx;
  163. .placontent-text {
  164. padding: 24rpx;
  165. .placontent-textlable {
  166. height: 42rpx;
  167. line-height: 42rpx;
  168. .placontent-lable {
  169. height: 42rpx;
  170. font-size: 30rpx;
  171. font-family: PingFangSC-Regular, PingFang SC;
  172. font-weight: 400;
  173. color: #666666;
  174. line-height: 42rpx;
  175. }
  176. }
  177. .placontent-textvalue {
  178. .placontent-textarea {
  179. min-height: 48rpx;
  180. font-size: 34rpx;
  181. font-family: PingFangSC-Regular, PingFang SC;
  182. font-weight: 400;
  183. color: #333333;
  184. }
  185. }
  186. }
  187. }
  188. .complaintsdetails-plares {
  189. margin-top: 24rpx;
  190. background-color: #ffffff;
  191. min-height: 154rpx;
  192. .plares-text {
  193. padding: 24rpx;
  194. .plares-textlable {
  195. height: 42rpx;
  196. line-height: 42rpx;
  197. .plares-lable {
  198. height: 42rpx;
  199. font-size: 30rpx;
  200. font-family: PingFangSC-Regular, PingFang SC;
  201. font-weight: 400;
  202. color: #666666;
  203. line-height: 42rpx;
  204. }
  205. }
  206. .plares-textvalue {
  207. .plares-textarea {
  208. min-height: 48rpx;
  209. font-size: 34rpx;
  210. font-family: PingFangSC-Regular, PingFang SC;
  211. font-weight: 400;
  212. color: #333333;
  213. }
  214. }
  215. .plares-textnovalue {
  216. height: 48rpx;
  217. line-height: 48rpx;
  218. .plares-value {
  219. height: 48rpx;
  220. font-size: 34rpx;
  221. font-family: PingFangSC-Regular, PingFang SC;
  222. font-weight: 400;
  223. color: #333333;
  224. line-height: 48rpx;
  225. }
  226. }
  227. }
  228. }
  229. }
  230. }
  231. </style>