Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

log-off-confirm.vue 6.6KB

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