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.

confirm.vue 6.0KB

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