Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

car-submit-record.vue 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!-- 车辆提交记录 -->
  2. <template>
  3. <view class="hint">电子标签请到线下网点领取</view>
  4. <view class="list">
  5. <view class="item" v-for="(item, index) in state.list">
  6. <view class="head">
  7. <view class="name">
  8. <image
  9. :src="`${$imgUrl}issueActivation/icon-car.png`"
  10. class="icon"
  11. ></image>
  12. <text class="title">{{ item.name }}</text>
  13. </view>
  14. <view class="status text-green">{{ item.statusTxt }}</view>
  15. </view>
  16. <view class="detail">
  17. <view class="orders">
  18. <view class="order-text">
  19. <text class="type">申请时间:</text>
  20. <text class="value">{{ item.time }}</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="btns" v-if="item.status === 3 || item.status === 4">
  25. <view
  26. class="btn btn-primary as-gravity-center"
  27. @click="btnClick(item)"
  28. >{{ item.status === 3 ? "去支付" : "去激活" }}</view
  29. >
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 支付承诺popup -->
  34. <u-popup v-model="state.showPayPopup" mode="center">
  35. <pay-undertake @paySuccess="state.showPayPopup = false"></pay-undertake>
  36. </u-popup>
  37. </template>
  38. <script setup lang="ts">
  39. import { reactive } from "vue";
  40. import { msg, navTo } from "@/utils/utils";
  41. import payUndertake from "./components/popup-pay-undertake";
  42. const state = reactive({
  43. //显示支付承诺弹窗
  44. showPayPopup: false,
  45. //记录列表 status: 1-审核中 2-制卡中 3-待支付 4-待激活 5-已完成
  46. list: [
  47. {
  48. name: "贵AJ1234",
  49. status: 1,
  50. statusTxt: "审核中",
  51. time: "2022-10-22 17:50:23",
  52. },
  53. {
  54. name: "贵FB1234",
  55. status: 2,
  56. statusTxt: "制卡中",
  57. time: "2022-11-20 17:50:23",
  58. },
  59. {
  60. name: "贵JC1234",
  61. status: 3,
  62. statusTxt: "待支付",
  63. time: "2022-12-12 17:50:23",
  64. },
  65. {
  66. name: "贵HD1234",
  67. status: 4,
  68. statusTxt: "待激活",
  69. time: "2022-02-08 17:50:23",
  70. },
  71. {
  72. name: "贵KE1234",
  73. status: 5,
  74. statusTxt: "已完成",
  75. time: "2022-09-06 17:50:23",
  76. },
  77. ],
  78. });
  79. const btnClick = (item) => {
  80. if (item.status === 3) {
  81. //去支付
  82. state.showPayPopup = true;
  83. } else if (item.status === 4) {
  84. //去激活
  85. navTo("/pages/bluetooth/bluetooth");
  86. }
  87. };
  88. </script>
  89. <style>
  90. page {
  91. background-color: #eef7f7;
  92. }
  93. :deep(.u-mode-center-box) {
  94. border-radius: 20rpx;
  95. }
  96. </style>
  97. <style lang="scss" scoped>
  98. .hint {
  99. font-size: 26rpx;
  100. color: #ff8000;
  101. padding: 37rpx 34rpx 8rpx;
  102. }
  103. .list {
  104. padding: 30rpx 30rpx 0rpx;
  105. display: flex;
  106. flex-direction: column;
  107. }
  108. .list .item {
  109. background: #ffffff;
  110. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  111. border-radius: 20rpx;
  112. box-sizing: border-box;
  113. display: flex;
  114. flex-direction: column;
  115. margin-bottom: 30rpx;
  116. min-height: 260rpx;
  117. }
  118. .list .item .head {
  119. display: flex;
  120. justify-content: space-between;
  121. align-items: center;
  122. padding: 20rpx 28rpx;
  123. border-bottom: 1px solid #dcdcdc;
  124. }
  125. .list .item .head .icon {
  126. width: 48rpx;
  127. height: 48rpx;
  128. }
  129. .list .item .head .name {
  130. display: flex;
  131. align-items: center;
  132. }
  133. .list .text-green {
  134. font-size: 26rpx;
  135. color: #00b38b;
  136. }
  137. .list .text-orange {
  138. font-size: 26rpx;
  139. color: #ff8000;
  140. }
  141. .list .title {
  142. font-size: 30rpx;
  143. color: #333;
  144. padding-left: 13rpx;
  145. }
  146. .list .detail {
  147. display: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. padding: 30rpx 32rpx;
  151. }
  152. .list .detail .type {
  153. font-size: 26rpx;
  154. color: #999;
  155. }
  156. .list .detail .value {
  157. font-size: 26rpx;
  158. color: #333;
  159. }
  160. .list .finished .detail .value {
  161. color: #999;
  162. }
  163. .list .detail .odd {
  164. margin: 20rpx 0;
  165. }
  166. .list .cny {
  167. font-size: 26rpx;
  168. color: #333;
  169. }
  170. .list .finished .cny {
  171. color: #999;
  172. }
  173. .list .amount {
  174. font-size: 40rpx;
  175. font-weight: bold;
  176. }
  177. .list .finished .amount {
  178. color: #999;
  179. }
  180. .list .btns {
  181. display: flex;
  182. align-items: center;
  183. justify-content: flex-end;
  184. border-top: 1px solid #dcdcdc;
  185. margin: 0 30rpx;
  186. padding: 20rpx 0;
  187. }
  188. .list .btn {
  189. height: 60rpx;
  190. // line-height: 60rpx;
  191. border-radius: 30rpx;
  192. padding: 0 24rpx;
  193. font-size: 26rpx;
  194. box-sizing: border-box;
  195. margin-right: 20rpx;
  196. }
  197. .list .btns .btn:last-child {
  198. margin: 0;
  199. }
  200. .list .btn-primary {
  201. border: 1px solid #00b38b;
  202. color: #00b38b;
  203. }
  204. .list .btn-normal {
  205. border: 1px solid #dcdcdc;
  206. color: #333;
  207. }
  208. </style>