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.

confirm.vue 5.8KB

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