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.

2 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <view class="selectCar-box">
  3. <view class="details">
  4. <view class="title">
  5. 基础信息
  6. </view>
  7. <view class="details-item">
  8. <view>
  9. 订单编号:
  10. </view>
  11. <text>{{state.data.orderId}}</text>
  12. </view>
  13. <view class="details-item">
  14. <view>
  15. 用户名称:
  16. </view>
  17. <text>{{state.data.customerName}}</text>
  18. </view>
  19. <view class="details-item">
  20. <view>
  21. 用户证件类型:
  22. </view>
  23. <text>{{getCredentialType(state.data.customerIdtype)}}</text>
  24. </view>
  25. <view class="details-item">
  26. <view>
  27. 用户证件号:
  28. </view>
  29. <text>{{state.data.customerIdnum}}</text>
  30. </view>
  31. <view class="details-item">
  32. <view>
  33. 订单车牌号:
  34. </view>
  35. <text style="color: #00B38B;;">{{state.data.vehiclePlate}}</text>
  36. </view>
  37. <view class="details-item">
  38. <view>
  39. 收费车型:
  40. </view>
  41. <text>{{state.data.vehicleType}}</text>
  42. </view>
  43. </view>
  44. <view class="">
  45. <view class="title">
  46. 卡信息
  47. </view>
  48. <view class="card">
  49. <view class="card-left">
  50. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  51. <view class="card-center">
  52. <view class="card-center-head">
  53. {{state.data.cardId}}
  54. </view>
  55. <view class="tips">
  56. <text>储蓄卡</text>
  57. <text class="tips-card">{{getEtcCardStatus(state.data.cardStatus)}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <button class="submit" @click="nextACtion">下一步</button>
  64. </view>
  65. </template>
  66. <script lang="ts" setup>
  67. import {
  68. reactive,
  69. ref
  70. } from "vue"
  71. import {
  72. navTo
  73. } from "@/utils/utils"
  74. import {
  75. onLoad,
  76. onUnload
  77. } from "@dcloudio/uni-app";
  78. import {
  79. request
  80. } from "@/utils/network/request.js";
  81. import {
  82. orderDetail,
  83. CardlossStatus,
  84. cckChangejzCard
  85. } from "@/utils/network/api.js";
  86. import {
  87. msg
  88. } from "@/utils/utils";
  89. import {
  90. getCredentialType
  91. } from "@/datas/credentialType.js";
  92. import {
  93. getEtcCardStatus
  94. } from "@/datas/etcCardStatus.js";
  95. import {
  96. getObuStatus
  97. } from "@/datas/obuStatus.js";
  98. import {
  99. stringToJson
  100. } from "@/utils/network/encryption";
  101. const state = reactive({
  102. data: {
  103. cardStatus: undefined,
  104. obuStatus: undefined,
  105. },
  106. type: undefined
  107. });
  108. /*视图进入后操作*/
  109. onLoad((option) => {
  110. queryOrderDetail(option.id).then((val: any) => {
  111. state.data = val
  112. })
  113. });
  114. onUnload(() => {
  115. });
  116. /*下一步*/
  117. const nextACtion = () => {
  118. navTo(
  119. `/after-sale/to-bookkeeping-card/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}`)
  120. }
  121. const queryOrderDetail = (id) => {
  122. return new Promise(async (resolve, reject) => {
  123. const res = await request(orderDetail, {
  124. type: 2,
  125. data: {
  126. id: id
  127. },
  128. method: "POST",
  129. showLoading: true,
  130. });
  131. const data = stringToJson(res.bizContent);
  132. resolve(data);
  133. }).catch((error) => {
  134. reject(error);
  135. });
  136. }
  137. </script>
  138. <style>
  139. page {
  140. width: 100%;
  141. height: 100%;
  142. background-color: #fff;
  143. }
  144. </style>
  145. <style lang="scss" scoped>
  146. .selectCar-box {
  147. // width: 100%;
  148. // height: 100%;
  149. padding: 30rpx;
  150. .title {
  151. font-size: 30rpx;
  152. font-family: Microsoft YaHei UI;
  153. font-weight: 400;
  154. color: #333333;
  155. margin-bottom: 30rpx;
  156. }
  157. .details {
  158. .title {
  159. font-size: 30rpx;
  160. font-family: Microsoft YaHei UI;
  161. font-weight: 400;
  162. color: #333333;
  163. margin-bottom: 30rpx;
  164. }
  165. .details-item {
  166. display: flex;
  167. font-size: 26rpx;
  168. font-family: Noto Sans S Chinese;
  169. font-weight: 400;
  170. color: #999999;
  171. margin-bottom: 30rpx;
  172. text {
  173. font-size: 26rpx;
  174. font-family: Noto Sans S Chinese;
  175. font-weight: 400;
  176. color: #333333;
  177. }
  178. }
  179. }
  180. .card {
  181. height: 150rpx;
  182. background: #FFFFFF;
  183. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  184. border-radius: 20rpx;
  185. padding: 30rpx;
  186. display: flex;
  187. justify-content: space-between;
  188. align-items: center;
  189. margin-bottom: 60rpx;
  190. .card-left {
  191. display: flex;
  192. align-items: center;
  193. image {
  194. width: 100rpx;
  195. height: 90rpx;
  196. }
  197. .card-center {
  198. margin-left: 30rpx;
  199. .card-center-head {
  200. font-size: 32rpx;
  201. font-family: Noto Sans S Chinese;
  202. font-weight: 400;
  203. color: #333333;
  204. }
  205. .tips {
  206. font-size: 26rpx;
  207. font-family: Noto Sans S Chinese;
  208. font-weight: 400;
  209. color: #666666;
  210. .tips-card {
  211. width: 70rpx;
  212. height: 40rpx;
  213. background: #D3F2EF;
  214. border-radius: 6rpx;
  215. font-size: 20rpx;
  216. font-family: Noto Sans S Chinese;
  217. font-weight: 400;
  218. color: #0A8F8A;
  219. padding: 5rpx 10rpx;
  220. margin-left: 20rpx;
  221. }
  222. }
  223. }
  224. }
  225. .choose-item {
  226. margin-right: 20rpx;
  227. width: 50rpx;
  228. height: 50rpx;
  229. border: 1rpx solid #00B38B;
  230. border-radius: 50%;
  231. display: flex;
  232. justify-content: center;
  233. align-items: center;
  234. .active {
  235. width: 38rpx;
  236. height: 38rpx;
  237. background: #00B38B;
  238. border-radius: 50%;
  239. }
  240. }
  241. }
  242. .remark {
  243. font-size: 26rpx;
  244. font-family: Microsoft YaHei UI;
  245. font-weight: 400;
  246. color: #666666;
  247. text-indent: 30rpx;
  248. margin-bottom: 30rpx;
  249. }
  250. .submit {
  251. margin-top: 100rpx;
  252. width: 670rpx;
  253. height: 80rpx;
  254. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  255. border-radius: 40rpx;
  256. font-size: 32rpx;
  257. font-family: Noto Sans S Chinese;
  258. font-weight: 400;
  259. color: #FFFFFF;
  260. line-height: 80rpx;
  261. }
  262. }
  263. </style>