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.

replace-equipment-confirm.vue 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. <view class="">
  64. <view class="title">
  65. OBU设备信息
  66. </view>
  67. <view class="card">
  68. <view class="card-left">
  69. <image :src="`${$imgUrl}card1.png`" mode=""></image>
  70. <view class="card-center">
  71. <view class="card-center-head">
  72. {{state.data.obuId}}
  73. </view>
  74. <view class="tips">
  75. <!-- <text>储蓄卡</text> -->
  76. <text class="tips-card">{{getObuStatus(state.data.obuStatus)}}</text>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <button class="submit" @click="nextACtion">下一步</button>
  83. </view>
  84. </template>
  85. <script lang="ts" setup>
  86. import {
  87. reactive,
  88. ref
  89. } from "vue"
  90. import {
  91. navTo
  92. } from "@/utils/utils"
  93. import {
  94. onLoad,
  95. onUnload
  96. } from "@dcloudio/uni-app";
  97. import {
  98. request
  99. } from "@/utils/network/request.js";
  100. import {
  101. orderDetail,
  102. CardlossStatus
  103. } from "@/utils/network/api.js";
  104. import {
  105. msg
  106. } from "@/utils/utils";
  107. import {
  108. getCredentialType
  109. } from "@/datas/credentialType.js";
  110. import {
  111. getEtcCardStatus
  112. } from "@/datas/etcCardStatus.js";
  113. import {
  114. getObuStatus
  115. } from "@/datas/obuStatus.js";
  116. import {
  117. stringToJson
  118. } from "@/utils/network/encryption";
  119. const state = reactive({
  120. data: {
  121. cardStatus: undefined,
  122. obuStatus: undefined,
  123. },
  124. type: undefined
  125. });
  126. /*视图进入后操作*/
  127. onLoad((option) => {
  128. queryOrderDetail(option.id).then((val: any) => {
  129. state.data = val
  130. })
  131. });
  132. onUnload(() => {
  133. });
  134. /*下一步*/
  135. const nextACtion = () => {
  136. navTo(
  137. `/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}`
  138. )
  139. }
  140. const queryOrderDetail = (id) => {
  141. return new Promise(async (resolve, reject) => {
  142. const res = await request(orderDetail, {
  143. type: 2,
  144. data: {
  145. id: id
  146. },
  147. method: "POST",
  148. showLoading: true,
  149. });
  150. const data = stringToJson(res.bizContent);
  151. resolve(data);
  152. }).catch((error) => {
  153. reject(error);
  154. });
  155. }
  156. </script>
  157. <style>
  158. page {
  159. width: 100%;
  160. height: 100%;
  161. background-color: #fff;
  162. }
  163. </style>
  164. <style lang="scss" scoped>
  165. .selectCar-box {
  166. // width: 100%;
  167. // height: 100%;
  168. padding: 30rpx;
  169. .title {
  170. font-size: 30rpx;
  171. font-family: Microsoft YaHei UI;
  172. font-weight: 400;
  173. color: #333333;
  174. margin-bottom: 30rpx;
  175. }
  176. .details {
  177. .title {
  178. font-size: 30rpx;
  179. font-family: Microsoft YaHei UI;
  180. font-weight: 400;
  181. color: #333333;
  182. margin-bottom: 30rpx;
  183. }
  184. .details-item {
  185. display: flex;
  186. font-size: 26rpx;
  187. font-family: Noto Sans S Chinese;
  188. font-weight: 400;
  189. color: #999999;
  190. margin-bottom: 30rpx;
  191. text {
  192. font-size: 26rpx;
  193. font-family: Noto Sans S Chinese;
  194. font-weight: 400;
  195. color: #333333;
  196. }
  197. }
  198. }
  199. .card {
  200. height: 150rpx;
  201. background: #FFFFFF;
  202. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  203. border-radius: 20rpx;
  204. padding: 30rpx;
  205. display: flex;
  206. justify-content: space-between;
  207. align-items: center;
  208. margin-bottom: 60rpx;
  209. .card-left {
  210. display: flex;
  211. align-items: center;
  212. image {
  213. width: 100rpx;
  214. height: 90rpx;
  215. }
  216. .card-center {
  217. margin-left: 30rpx;
  218. .card-center-head {
  219. font-size: 32rpx;
  220. font-family: Noto Sans S Chinese;
  221. font-weight: 400;
  222. color: #333333;
  223. }
  224. .tips {
  225. font-size: 26rpx;
  226. font-family: Noto Sans S Chinese;
  227. font-weight: 400;
  228. color: #666666;
  229. .tips-card {
  230. width: 70rpx;
  231. height: 40rpx;
  232. background: #D3F2EF;
  233. border-radius: 6rpx;
  234. font-size: 20rpx;
  235. font-family: Noto Sans S Chinese;
  236. font-weight: 400;
  237. color: #0A8F8A;
  238. padding: 5rpx 10rpx;
  239. margin-left: 20rpx;
  240. }
  241. }
  242. }
  243. }
  244. .choose-item {
  245. margin-right: 20rpx;
  246. width: 50rpx;
  247. height: 50rpx;
  248. border: 1rpx solid #00B38B;
  249. border-radius: 50%;
  250. display: flex;
  251. justify-content: center;
  252. align-items: center;
  253. .active {
  254. width: 38rpx;
  255. height: 38rpx;
  256. background: #00B38B;
  257. border-radius: 50%;
  258. }
  259. }
  260. }
  261. .remark {
  262. font-size: 26rpx;
  263. font-family: Microsoft YaHei UI;
  264. font-weight: 400;
  265. color: #666666;
  266. text-indent: 30rpx;
  267. margin-bottom: 30rpx;
  268. }
  269. .submit {
  270. margin-top: 100rpx;
  271. width: 670rpx;
  272. height: 80rpx;
  273. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  274. border-radius: 40rpx;
  275. font-size: 32rpx;
  276. font-family: Noto Sans S Chinese;
  277. font-weight: 400;
  278. color: #FFFFFF;
  279. line-height: 80rpx;
  280. }
  281. }
  282. </style>