vehicleMaintainDetails.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <template>
  2. <view class="vehicleMaintainDetails">
  3. <!-- 导航栏 -->
  4. <navigationBar title="车辆维修">
  5. </navigationBar>
  6. <view class="main">
  7. <view class="scroll-view-item">
  8. <view class="list topList">
  9. <view class="name">
  10. 能耀新能源有限公司汽车服务分公司
  11. </view>
  12. <view class="btn">
  13. 纠错
  14. </view>
  15. </view>
  16. <view class="list imgList">
  17. <image src="../../static/images/detailsImg.png" class="img" mode=""></image>
  18. <view class="label">
  19. <p>综合性车辆</p>
  20. </view>
  21. </view>
  22. <view class="list">
  23. <view class="time">
  24. <text style="color: #00B312;margin-right: 10.53rpx;">营业时间</text>
  25. <text>08:30-16:30</text>
  26. </view>
  27. <view class="phone">
  28. <u-icon name="phone-fill" color="#2979ff" size="35"></u-icon>
  29. <text>0574-51101889</text>
  30. </view>
  31. </view>
  32. <u-divider></u-divider>
  33. <view class="list">
  34. <view class="site">
  35. <text>宁波市海曙区环城西路北段377号</text>
  36. <text style="color: #7F7F7F;">距您0.12Km</text>
  37. </view>
  38. <view class="location">
  39. <image src="../../static/images/location.png" class="img" mode=""></image>
  40. <text>去这里</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. import {
  49. errorHint
  50. } from "@/api/list.js"
  51. export default {
  52. data() {
  53. return {
  54. // 纠错
  55. errorShow: false,
  56. errorData: {
  57. serveModule: 1,
  58. serveId: null,
  59. feedbackType: null,
  60. feedbackContent: "",
  61. feedbackBy: null,
  62. },
  63. feedbackContent: '',
  64. // 激活
  65. active: null,
  66. // 纠错提示
  67. errorHintData: []
  68. };
  69. },
  70. onLoad(data) {
  71. // console.log(data.id);
  72. },
  73. methods: {
  74. // 纠错
  75. errorCorrection(data) {
  76. this.active = null
  77. this.errorData.feedbackType = null
  78. this.errorData.feedbackContent = null
  79. this.feedbackContent = null
  80. this.errorData.serveId = data.id
  81. errorHint("feedback_type").then(res => {
  82. this.errorHintData = res.data
  83. // this.errorData = data
  84. this.errorShow = true
  85. })
  86. },
  87. // 提交反馈
  88. submitFeedback() {
  89. this.errorData.feedbackContent = this.feedbackContent
  90. setErrorCorrection(this.errorData).then(res => {
  91. this.errorShow = false
  92. this.$refs.uToast.show({
  93. icon: false,
  94. type: 'success',
  95. message: '反馈成功'
  96. })
  97. })
  98. }
  99. }
  100. }
  101. </script>
  102. <style lang="scss" scoped>
  103. .vehicleMaintainDetails {
  104. height: 100%;
  105. .main {
  106. .scroll-view-item {
  107. height: 100%;
  108. .list {
  109. display: flex;
  110. justify-content: space-between;
  111. margin-bottom: 21.05rpx;
  112. .time {
  113. font-size: 25.26rpx;
  114. }
  115. .phone {
  116. display: flex;
  117. font-size: 25.26rpx;
  118. }
  119. .site {
  120. display: flex;
  121. flex-direction: column;
  122. font-size: 25.26rpx;
  123. }
  124. .location {
  125. width: 84.21rpx;
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. font-size: 21.05rpx;
  130. .img {
  131. width: 42.11rpx;
  132. height: 42.11rpx;
  133. }
  134. }
  135. }
  136. .topList {
  137. .name {
  138. font-size: 33.68rpx;
  139. color: #000A15;
  140. }
  141. .btn {
  142. width: 92.63rpx;
  143. height: 40rpx;
  144. line-height: 40rpx;
  145. text-align: center;
  146. border: 2.11rpx solid #4C81CF;
  147. color: #4C81CF;
  148. border-radius: 105.26rpx;
  149. font-size: 21.05rpx;
  150. }
  151. }
  152. .imgList {
  153. display: flex;
  154. .img {
  155. width: 305.26rpx;
  156. height: 231.58rpx;
  157. border-radius: 21.05rpx;
  158. }
  159. .label {
  160. flex: 1;
  161. padding-left: 21.05rpx;
  162. p {
  163. font-size: 25.26rpx;
  164. &:before {
  165. content: "";
  166. display: inline-block;
  167. width: 10.53rpx;
  168. height: 10.53rpx;
  169. border-radius: 105.26rpx;
  170. background-color: #FFD540;
  171. margin-right: 12.63rpx;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. }
  178. .errorBox {
  179. padding: 33.68rpx 25.26rpx;
  180. .headline {
  181. color: #000A15;
  182. text-align: center;
  183. font-weight: 600;
  184. }
  185. .title {
  186. color: #000A15;
  187. font-weight: 600;
  188. font-size: 29.47rpx;
  189. margin: 42.11rpx 0 21.05rpx 0;
  190. }
  191. .fast {
  192. display: flex;
  193. flex-wrap: wrap;
  194. justify-content: space-between;
  195. .li {
  196. width: 48%;
  197. height: 80rpx;
  198. line-height: 80rpx;
  199. font-size: 29.47rpx;
  200. border-radius: 50px;
  201. color: #798C9B;
  202. text-align: center;
  203. margin-bottom: 20rpx;
  204. background-color: rgba(222, 238, 252, 0.3);
  205. }
  206. .active {
  207. background-color: #D7ECFF;
  208. color: #000A15;
  209. }
  210. }
  211. .btn {
  212. margin-top: 21.05rpx;
  213. display: flex;
  214. justify-content: center;
  215. .sBtn {
  216. padding: 10rpx 50rpx;
  217. font-size: 29.47rpx;
  218. border-radius: 105.26rpx;
  219. background-color: #D7ECFF;
  220. margin-right: 50rpx;
  221. }
  222. .qBtn {
  223. padding: 10rpx 50rpx;
  224. font-size: 29.47rpx;
  225. border-radius: 105.26rpx;
  226. border: 1px solid #D7ECFF;
  227. }
  228. }
  229. }
  230. }
  231. </style>