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.

transfer-confirm.vue 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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>{{getCodeName('CERTIFICATE_TYPE',state.data.customerIdtype)}}</text>
  24. </view>
  25. <view class="details-item">
  26. <view>
  27. 用户证件号:
  28. </view>
  29. <text>{{desensitization(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="title">
  45. 卡信息
  46. </view>
  47. <view class="card">
  48. <view class="card-left">
  49. <image :src="`${$imgUrl}card2.png`" mode="aspectFill"></image>
  50. <view class="card-center">
  51. <view class="card-center-head">
  52. {{state.data.cardId}}
  53. </view>
  54. <view class="tips">
  55. <text>{{state.cardType=="23"?'记账卡':'储值卡'}}</text>
  56. <text class="tips-card">{{getCodeName('CARD_STATE_TYPE',state.data.cardStatus)}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="title">
  62. OBU设备信息
  63. </view>
  64. <view class="card">
  65. <view class="card-left">
  66. <image :src="`${$imgUrl}card1.png`" mode="aspectFill"></image>
  67. <view class="card-center">
  68. <view class="card-center-head">
  69. {{state.data.obuId}}
  70. </view>
  71. <view class="tips">
  72. <text class="tips-card">{{getCodeName('OBU_STATE_TYPE',state.data.obuStatus)}}</text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <button class="submit" @click="nextACtion">下一步</button>
  78. </view>
  79. </template>
  80. <script lang="ts" setup>
  81. import {
  82. reactive,
  83. ref
  84. } from "vue"
  85. import {
  86. navTo,desensitization
  87. } from "@/utils/utils"
  88. import {
  89. onLoad,
  90. onUnload
  91. } from "@dcloudio/uni-app";
  92. import {
  93. request
  94. } from "@/utils/network/request.js";
  95. import {
  96. orderDetail,
  97. queryGuoHu
  98. } from "@/utils/network/api.js";
  99. import {
  100. getCodeName
  101. } from "@/datas/queryKey.js";
  102. import {
  103. stringToJson
  104. } from "@/utils/network/encryption";
  105. import {
  106. getItem,
  107. StorageKeys,
  108. } from "@/utils/storage";
  109. const state = reactive({
  110. data: {
  111. cardStatus: undefined,
  112. obuStatus: undefined,
  113. orderId: undefined,
  114. },
  115. cardType:""
  116. });
  117. /*视图进入后操作*/
  118. onLoad((option) => {
  119. queryOrderDetail(option.id).then((val : any) => {
  120. state.data = val
  121. state.cardType=val.cardId.substring(8,10)
  122. })
  123. /*监听手机号验证后的回调*/
  124. uni.$on('queryCardlossStatus', function (type) {
  125. console.log(type)
  126. queryCardlossStatusType(type.type).then((val : any) => {
  127. console.log("val", val)
  128. navTo(
  129. `/subpackage/after-sale/transfer-ownership/card-result`
  130. )
  131. });
  132. })
  133. });
  134. onUnload(() => {
  135. /*移除监听*/
  136. uni.$off('queryCardlossStatus')
  137. });
  138. /*下一步*/
  139. const nextACtion = () => {
  140. uni.showModal({
  141. title: 'ETC过户',
  142. content: '确认是否ETC过户操作',
  143. success: function (res) {
  144. if (res.confirm) {
  145. navTo(
  146. `/subpackage/after-sale/transfer-ownership/transfer-verification?mobile=${state.data.customerTel}`
  147. )
  148. }
  149. }
  150. });
  151. }
  152. const queryOrderDetail = (id) => {
  153. return new Promise(async (resolve, reject) => {
  154. const res = await request(orderDetail, {
  155. type: 2,
  156. data: {
  157. id: id
  158. },
  159. method: "POST",
  160. showLoading: true,
  161. });
  162. const data = stringToJson(res.bizContent);
  163. resolve(data);
  164. }).catch((error) => {
  165. reject(error);
  166. });
  167. }
  168. const queryCardlossStatusType = (val : any) => {
  169. var data = {
  170. openId: getItem(StorageKeys.OpenId),
  171. orderSource: 'WECHAT',
  172. serviceType: val,
  173. orderId: state.data.orderId
  174. };
  175. const options = {
  176. type: 2,
  177. data: data,
  178. method: "POST",
  179. showLoading: true,
  180. };
  181. return new Promise(async (resolve, reject) => {
  182. const res = await request(queryGuoHu, options);
  183. const data = stringToJson(res.bizContent);
  184. resolve(data);
  185. }).catch((error) => {
  186. reject(error);
  187. });
  188. }
  189. </script>
  190. <style>
  191. page {
  192. width: 100%;
  193. height: 100%;
  194. background-color: #fff;
  195. }
  196. </style>
  197. <style lang="scss" scoped>
  198. .selectCar-box {
  199. padding: 30rpx;
  200. .title {
  201. font-size: 30rpx;
  202. font-family: Microsoft YaHei UI;
  203. font-weight: 400;
  204. color: #333333;
  205. margin-bottom: 30rpx;
  206. }
  207. .details {
  208. .title {
  209. font-size: 30rpx;
  210. font-family: Microsoft YaHei UI;
  211. font-weight: 400;
  212. color: #333333;
  213. margin-bottom: 30rpx;
  214. }
  215. .details-item {
  216. display: flex;
  217. font-size: 26rpx;
  218. font-family: Noto Sans S Chinese;
  219. font-weight: 400;
  220. color: #999999;
  221. margin-bottom: 30rpx;
  222. text {
  223. font-size: 26rpx;
  224. font-family: Noto Sans S Chinese;
  225. font-weight: 400;
  226. color: #333333;
  227. }
  228. }
  229. }
  230. .card {
  231. height: 150rpx;
  232. background: #FFFFFF;
  233. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  234. border-radius: 20rpx;
  235. padding: 30rpx;
  236. display: flex;
  237. justify-content: space-between;
  238. align-items: center;
  239. margin-bottom: 60rpx;
  240. .card-left {
  241. display: flex;
  242. align-items: center;
  243. image {
  244. width: 100rpx;
  245. height: 90rpx;
  246. }
  247. .card-center {
  248. margin-left: 30rpx;
  249. .card-center-head {
  250. font-size: 32rpx;
  251. font-family: Noto Sans S Chinese;
  252. font-weight: 400;
  253. color: #333333;
  254. }
  255. .tips {
  256. font-size: 26rpx;
  257. font-family: Noto Sans S Chinese;
  258. font-weight: 400;
  259. color: #666666;
  260. .tips-card {
  261. width: 70rpx;
  262. height: 40rpx;
  263. background: #D3F2EF;
  264. border-radius: 6rpx;
  265. font-size: 20rpx;
  266. font-family: Noto Sans S Chinese;
  267. font-weight: 400;
  268. color: #0A8F8A;
  269. padding: 5rpx 10rpx;
  270. margin-left: 20rpx;
  271. }
  272. }
  273. }
  274. }
  275. .choose-item {
  276. margin-right: 20rpx;
  277. width: 50rpx;
  278. height: 50rpx;
  279. border: 1rpx solid #00B38B;
  280. border-radius: 50%;
  281. display: flex;
  282. justify-content: center;
  283. align-items: center;
  284. .active {
  285. width: 38rpx;
  286. height: 38rpx;
  287. background: #00B38B;
  288. border-radius: 50%;
  289. }
  290. }
  291. }
  292. .remark {
  293. font-size: 26rpx;
  294. font-family: Microsoft YaHei UI;
  295. font-weight: 400;
  296. color: #666666;
  297. text-indent: 30rpx;
  298. margin-bottom: 30rpx;
  299. }
  300. .submit {
  301. margin-top: 100rpx;
  302. width: 670rpx;
  303. height: 80rpx;
  304. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  305. border-radius: 40rpx;
  306. font-size: 32rpx;
  307. font-family: Noto Sans S Chinese;
  308. font-weight: 400;
  309. color: #FFFFFF;
  310. line-height: 80rpx;
  311. }
  312. }
  313. </style>