Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

car-submit-record.vue 4.1KB

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