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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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/mailing_information?orderId=${state.data.orderId}&&applyId=${val.applyId}`
  114. // // )
  115. navTo(
  116. `/subpackage/after-sale/to-bookkeeping-card/choice-product-new?orderId=${state.data.orderId}&&applyId=${val.applyId}&&type=${state.data.type}&&agencyId=${state.data.agencyId}`
  117. )
  118. })
  119. // navTo(
  120. // `/subpackage/after-sale/to-bookkeeping-card/choice-product-new?orderId=1&&applyId=2&&type=2`
  121. // )
  122. }
  123. //申请
  124. const queryCckChangejzCardAction = () => {
  125. var data = {
  126. orderId: state.data.orderId,
  127. };
  128. const options = {
  129. type: 2,
  130. data: data,
  131. method: "POST",
  132. showLoading: true,
  133. };
  134. return new Promise(async (resolve, reject) => {
  135. const res = await request(cckChangejzCard, options);
  136. const data = stringToJson(res.bizContent);
  137. resolve(data);
  138. }).catch((error) => {
  139. reject(error);
  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>