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.

replace-equipment-confirm.vue 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. console.log("id",option)
  129. queryOrderDetail(option.id).then((val: any) => {
  130. console.log("val",val)
  131. state.data = val
  132. })
  133. });
  134. onUnload(() => {
  135. });
  136. /*下一步*/
  137. const nextACtion = () => {
  138. navTo(
  139. `/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}`
  140. )
  141. }
  142. const queryOrderDetail = (id) => {
  143. return new Promise(async (resolve, reject) => {
  144. const res = await request(orderDetail, {
  145. type: 2,
  146. data: {
  147. id: id
  148. },
  149. method: "POST",
  150. showLoading: true,
  151. });
  152. const data = stringToJson(res.bizContent);
  153. resolve(data);
  154. }).catch((error) => {
  155. reject(error);
  156. });
  157. }
  158. </script>
  159. <style>
  160. page {
  161. width: 100%;
  162. height: 100%;
  163. background-color: #fff;
  164. }
  165. </style>
  166. <style lang="scss" scoped>
  167. .selectCar-box {
  168. // width: 100%;
  169. // height: 100%;
  170. padding: 30rpx;
  171. .title {
  172. font-size: 30rpx;
  173. font-family: Microsoft YaHei UI;
  174. font-weight: 400;
  175. color: #333333;
  176. margin-bottom: 30rpx;
  177. }
  178. .details {
  179. .title {
  180. font-size: 30rpx;
  181. font-family: Microsoft YaHei UI;
  182. font-weight: 400;
  183. color: #333333;
  184. margin-bottom: 30rpx;
  185. }
  186. .details-item {
  187. display: flex;
  188. font-size: 26rpx;
  189. font-family: Noto Sans S Chinese;
  190. font-weight: 400;
  191. color: #999999;
  192. margin-bottom: 30rpx;
  193. text {
  194. font-size: 26rpx;
  195. font-family: Noto Sans S Chinese;
  196. font-weight: 400;
  197. color: #333333;
  198. }
  199. }
  200. }
  201. .card {
  202. height: 150rpx;
  203. background: #FFFFFF;
  204. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  205. border-radius: 20rpx;
  206. padding: 30rpx;
  207. display: flex;
  208. justify-content: space-between;
  209. align-items: center;
  210. margin-bottom: 60rpx;
  211. .card-left {
  212. display: flex;
  213. align-items: center;
  214. image {
  215. width: 100rpx;
  216. height: 90rpx;
  217. }
  218. .card-center {
  219. margin-left: 30rpx;
  220. .card-center-head {
  221. font-size: 32rpx;
  222. font-family: Noto Sans S Chinese;
  223. font-weight: 400;
  224. color: #333333;
  225. }
  226. .tips {
  227. font-size: 26rpx;
  228. font-family: Noto Sans S Chinese;
  229. font-weight: 400;
  230. color: #666666;
  231. .tips-card {
  232. width: 70rpx;
  233. height: 40rpx;
  234. background: #D3F2EF;
  235. border-radius: 6rpx;
  236. font-size: 20rpx;
  237. font-family: Noto Sans S Chinese;
  238. font-weight: 400;
  239. color: #0A8F8A;
  240. padding: 5rpx 10rpx;
  241. margin-left: 20rpx;
  242. }
  243. }
  244. }
  245. }
  246. .choose-item {
  247. margin-right: 20rpx;
  248. width: 50rpx;
  249. height: 50rpx;
  250. border: 1rpx solid #00B38B;
  251. border-radius: 50%;
  252. display: flex;
  253. justify-content: center;
  254. align-items: center;
  255. .active {
  256. width: 38rpx;
  257. height: 38rpx;
  258. background: #00B38B;
  259. border-radius: 50%;
  260. }
  261. }
  262. }
  263. .remark {
  264. font-size: 26rpx;
  265. font-family: Microsoft YaHei UI;
  266. font-weight: 400;
  267. color: #666666;
  268. text-indent: 30rpx;
  269. margin-bottom: 30rpx;
  270. }
  271. .submit {
  272. margin-top: 100rpx;
  273. width: 670rpx;
  274. height: 80rpx;
  275. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  276. border-radius: 40rpx;
  277. font-size: 32rpx;
  278. font-family: Noto Sans S Chinese;
  279. font-weight: 400;
  280. color: #FFFFFF;
  281. line-height: 80rpx;
  282. }
  283. }
  284. </style>