You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cardCancel.vue 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <!-- OBU注销 -->
  3. <view class="wrapper">
  4. <!-- 背景颜色充满屏 -->
  5. <view class="bg-color"></view>
  6. <view class="total-info"><text>卡签注销:</text><text class="text-space">2条</text></view>
  7. <view class="detail-list-box">
  8. <view class="detail-box" v-for="item in list" :key="item.id">
  9. <view class="detail-header">
  10. <text class="detail-name">卡签信息</text>
  11. <view class="header-right"><text>单号:</text><text class="text-space">11020009001</text></view>
  12. </view>
  13. <view class="detail-content">
  14. <view class="d-row">
  15. <text class="d-label">用户名称:</text>
  16. <text class="d-value">李某</text>
  17. </view>
  18. <view class="d-row">
  19. <text class="d-label">证件类型:</text>
  20. <text class="d-value">居民身份证</text>
  21. </view>
  22. <view class="d-row">
  23. <text class="d-label">证件号码:</text>
  24. <text class="d-value">440305200101129001</text>
  25. </view>
  26. <view class="d-row">
  27. <text class="d-label">订单车牌号:</text>
  28. <text class="d-value">贵A12345</text>
  29. </view>
  30. <view class="d-row">
  31. <text class="d-label">收费车型:</text>
  32. <text class="d-value">一类车型</text>
  33. </view>
  34. <view class="d-row">
  35. <text class="d-label">OBU号:</text>
  36. <text class="d-value">2001029001</text>
  37. </view>
  38. <view class="d-row">
  39. <text class="d-label">OBU状态:</text>
  40. <text class="d-value">XXX</text>
  41. </view>
  42. <view class="d-row">
  43. <text class="d-label">质保期:</text>
  44. <text class="d-value">2023-04-12</text>
  45. </view>
  46. <view class="post-sale">
  47. <!-- 后续接数据,如果没有售后信息,就用v-if控制除业务员、业务类型、注销时间三个非售后字段展示不展示。 -->
  48. <view class="d-row">
  49. <text class="d-label">售后单号:</text>
  50. <text class="d-value">341253463500001</text>
  51. </view>
  52. <view class="d-row">
  53. <text class="d-label">业务类型:</text>
  54. <text class="d-value">XXXXXX</text>
  55. </view>
  56. <view class="d-row">
  57. <text class="d-label">申请进度:</text>
  58. <text class="d-value">审核中</text>
  59. </view>
  60. <view class="d-row">
  61. <text class="d-label">创建时间:</text>
  62. <text class="d-value">2023.01.21</text>
  63. </view>
  64. <view class="d-row">
  65. <text class="d-label">注销时间:</text>
  66. <text class="d-value">2023.01.21</text>
  67. </view>
  68. <view class="d-row">
  69. <text class="d-label">退费类型:</text>
  70. <text class="d-value">余额补领</text>
  71. </view>
  72. <view class="d-row">
  73. <text class="d-label">补领金额:</text>
  74. <text class="d-value val-orange">112.00</text>
  75. </view>
  76. <view class="d-row">
  77. <text class="d-label">业务员:</text>
  78. <text class="d-value">李想</text>
  79. </view>
  80. </view>
  81. <view class="btn-status">
  82. <view class="btn-green" @click="comfireSure" v-if="item.status === 1">确认完成</view>
  83. <view class="btn-green width-num-1" @click="toNext('/subpackage/orders/order-evaluate', item)" v-if="item.status === 2">去评价</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </template>
  90. <script setup lang="ts">
  91. import {
  92. reactive
  93. } from "vue";
  94. const list = reactive([
  95. {
  96. id: 3,
  97. status: 3 // 已完成
  98. },
  99. {
  100. id: 1,
  101. status: 1 // 待确认
  102. },
  103. {
  104. id: 2,
  105. status: 2 // 待评价
  106. },
  107. ])
  108. function toNext(url, item) {
  109. uni.navigateTo({
  110. url: url
  111. });
  112. }
  113. // 确认完成
  114. function comfireSure() {}
  115. </script>
  116. <style lang="scss" scoped>
  117. .bg-color {
  118. position: fixed;
  119. top: 0;
  120. left: 0;
  121. right: 0;
  122. bottom: 0;
  123. background: #F3F3F3;
  124. z-index: -1;
  125. }
  126. .total-info {
  127. margin-top: 35rpx;
  128. margin-left: 30rpx;
  129. color: #777777;
  130. font-size: 28rpx;
  131. display: flex;
  132. align-items: center;
  133. .text-space {
  134. margin-left: 26rpx;
  135. }
  136. }
  137. .detail-list-box {
  138. margin: 0 30rpx;
  139. padding-bottom: 30rpx;
  140. }
  141. .detail-box {
  142. background: #FFFFFF;
  143. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  144. border-radius: 20rpx;
  145. margin-top: 30rpx;
  146. .detail-header {
  147. display: flex;
  148. border-bottom: 1rpx solid #DCDCDC;
  149. padding: 30rpx;
  150. align-items: center;
  151. justify-content: space-between;
  152. .detail-name {
  153. font-size: 30rpx;
  154. font-weight: 400;
  155. color: #333333;
  156. }
  157. .header-right {
  158. color: #777777;
  159. font-size: 28rpx;
  160. .text-space {
  161. margin-left: 26rpx;
  162. }
  163. }
  164. }
  165. .detail-content {
  166. padding: 28rpx 29rpx 10rpx 29rpx;
  167. .post-sale {
  168. border-top: 1rpx solid #DCDCDC;
  169. padding-top: 38rpx
  170. }
  171. .d-row {
  172. display: flex;
  173. margin-bottom: 32rpx;
  174. .d-label {
  175. font-size: 26rpx;
  176. //width: 178rpx;
  177. color: #999999;
  178. text-align: right;
  179. }
  180. .d-value {
  181. font-size: 26rpx;
  182. color: #333333;
  183. flex: 1;
  184. overflow: hidden;
  185. margin-left: 25rpx;
  186. word-wrap: normal;
  187. word-wrap: break-word;
  188. }
  189. .val-orange {
  190. color: #FF8000;
  191. }
  192. }
  193. .btn-status {
  194. display: flex;
  195. justify-content: flex-end;
  196. padding: 20rpx 0;
  197. border-top: 1rpx solid #DCDCDC;
  198. }
  199. .btn-green {
  200. border: 1px solid #00B38B;
  201. border-radius: 30rpx;
  202. color: #00B38B;
  203. height: 61rpx;
  204. width: 141rpx;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. font-size: 26rpx;
  209. }
  210. .width-num {
  211. width: 121rpx;
  212. }
  213. }
  214. }
  215. </style>