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.

order-details-recharge.vue 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <!-- 单位账户充值开户-订单详情 -->
  2. <template>
  3. <view>
  4. <image :src="`${$imgUrl}applyCard/bg-nav.png`" style='height: 300rpx;width: 100%;'></image>
  5. <view class="props-txt-wrap">
  6. <view class="pro-txt" :class="{'pro-txt-primary':state.step >= 1}">发起业务</view>
  7. <view class="pro-txt pro-center" :class="{'pro-txt-primary':state.step >= 2}">审核中</view>
  8. <view class="pro-txt" :class="{'pro-txt-primary':state.step >= 3}">完成</view>
  9. </view>
  10. <view class="pros-wrap">
  11. <view :class="state.step >= 1 ? 'item-circle' : 'item-circle-no'">1</view>
  12. <view :class="state.step >= 2 ? 'item-line-solid' : 'item-line'"></view>
  13. <view :class="state.step >= 2 ? 'item-circle' : 'item-circle-no'">2</view>
  14. <view :class="state.step >= 3 ? 'item-line-solid' : 'item-line'"></view>
  15. <view :class="state.step >= 3 ? 'item-circle' : 'item-circle-no'">3</view>
  16. </view>
  17. </view>
  18. <view class="content">
  19. <view class="title">基础信息</view>
  20. <view class="content-box" v-for="(item,index) in state.orderBaseInfo" :key="index">
  21. <order-info-item :label="item.label" :value="item.value"></order-info-item>
  22. </view>
  23. <view class="title">卡/OBU设备信息</view>
  24. <view class="card-box as-layout-horizontal as-gravity-center-start">
  25. <image :src="`${$imgUrl}card2.png`" mode="" class="left"></image>
  26. <view class="right">
  27. <view class="number">2023022700012</view>
  28. <view class="info as-layout-horizontal">
  29. <view class="card-type">储蓄卡</view>
  30. <view class="card-status">正常</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="card-box as-layout-horizontal as-gravity-center-start">
  35. <image :src="`${$imgUrl}card1.png`" mode="" class="left"></image>
  36. <view class="right">
  37. <view class="number">2023022700012</view>
  38. <view class="info as-layout-horizontal">
  39. <view class="card-status">正常</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="title">图片信息</view>
  44. <view class="imgs">
  45. <image v-for="(img,index) in state.imgList" :key="index" :src="img" @click="checkBigImg(index,state.imgList)" mode="aspectFill"></image>
  46. </view>
  47. <view class="title">其他信息</view>
  48. <view class="content-box" v-for="(item,index) in state.otherInfo" :key="index">
  49. <order-info-item :label="item.label" :value="item.value"></order-info-item>
  50. </view>
  51. <view style="height: 30rpx;"></view>
  52. </view>
  53. </template>
  54. <script setup lang="ts">
  55. import {onLoad,onUnload} from "@dcloudio/uni-app";
  56. import {reactive} from "vue";
  57. import orderInfoItem from "./components/order-info-item";
  58. import {checkBigImg, msg} from "@/utils/utils";
  59. import {request} from "@/utils/network/request";
  60. import {stringToJson} from "@/utils/network/encryption";
  61. import {orderDetail} from "@/utils/network/api";
  62. const state = reactive({
  63. //当前步骤
  64. step: 2,
  65. //订单信息
  66. orderInfo:{} as any,
  67. //基本信息
  68. orderBaseInfo: [{
  69. label: '审核进度:',
  70. value: '',
  71. field:'orderStep'
  72. },
  73. {
  74. label: '审核时间:',
  75. value: '',
  76. field:'insertTime'
  77. },
  78. {
  79. label: '审核不通过原因:',
  80. value: '',
  81. field:'cancelReason'
  82. },
  83. {
  84. label: '用户名称:',
  85. value: '',
  86. field:'customerName'
  87. },
  88. {
  89. label: '用户证件类型:',
  90. value: '',
  91. field:'customerIdtype'
  92. },
  93. {
  94. label: '用户证件号:',
  95. value: '',
  96. field:'customerIdnum'
  97. },
  98. {
  99. label: '收费类型:',
  100. value: '',
  101. field:'vehicleClass'
  102. },
  103. {
  104. label: '订单车牌号:',
  105. value: '',
  106. field:'vehiclePlate'
  107. },
  108. ],
  109. //其他信息
  110. otherInfo: [{
  111. label: '登录用户名:',
  112. value: '',
  113. field:'customerName'
  114. },{
  115. label: '公司证件类型:',
  116. value: '',
  117. field:'customerIdtype'
  118. },{
  119. label: '公司证件编码:',
  120. value: '',
  121. field:'customerIdnum'
  122. },{
  123. label: '公司名称:',
  124. value: '',
  125. field:'customerDepartment'
  126. },{
  127. label: '经办人姓名:',
  128. value: '',
  129. field:'agentName'
  130. },
  131. {
  132. label: '经办人手机号:',
  133. value: '',
  134. field:'agentIdnum'
  135. },
  136. {
  137. label: '付款账户:',
  138. value: '',
  139. field:'bankId'
  140. },
  141. {
  142. label: '开户行名称:',
  143. value: '',
  144. field:'channelId'
  145. },
  146. ],
  147. //图片信息
  148. imgList:[
  149. "https://ss1.baidu.com/-4o3dSag_xI4khGko9WTAnF6hhy/baike/s=220/sign=31ede97caf51f3dec7b2be66a4eff0ec/6609c93d70cf3bc733c6ec5ad100baa1cc112a45.jpg",
  150. "https://img0.baidu.com/it/u=1850313341,1939718576&fm=253&fmt=auto&app=138&f=JPG?w=707&h=500",
  151. "https://p6.itc.cn/q_70/images03/20220911/e5f32181a5dc4ac4a3834123a559b4e5.jpeg",
  152. "https://image2.sina.com.cn/dy/o/2005-02-01/1107213262_.haWGD.jpg",
  153. ]
  154. });
  155. //获取订单详情
  156. const getOrderDetails = (id) => {
  157. if(!id) {
  158. msg('无效的订单id');
  159. return;
  160. }
  161. const options = {
  162. type: 2,
  163. data: {"id": id},
  164. method: 'POST',
  165. showLoading: true,
  166. }
  167. request(orderDetail, options).then((res) => {
  168. state.orderInfo = stringToJson(res.bizContent);
  169. setOrderData();
  170. })
  171. }
  172. //设置订单数据
  173. const setOrderData = () =>{
  174. state.orderBaseInfo.map((item) => {
  175. item.value = state.orderInfo[item.field];
  176. })
  177. state.otherInfo.map((item)=>{
  178. item.value = (state.orderInfo.orderInfoExt as {})[item.field];
  179. })
  180. }
  181. onLoad((options)=>{
  182. getOrderDetails(options.id);
  183. })
  184. onUnload(()=>{
  185. })
  186. </script>
  187. <style lang="scss" scoped>
  188. .props-txt-wrap {
  189. position: absolute;
  190. top: -50rpx;
  191. left: 30rpx;
  192. right: 30rpx;
  193. height: 200rpx;
  194. display: flex;
  195. justify-content: space-between;
  196. align-items: center;
  197. .pro-txt {
  198. font-size: 28rpx;
  199. color: #333333;
  200. }
  201. .pro-txt-primary {
  202. color: #ffffff;
  203. }
  204. .pro-center {
  205. margin-left: -50rpx;
  206. }
  207. }
  208. .pros-wrap {
  209. position: absolute;
  210. top: 20rpx;
  211. left: 30rpx;
  212. right: 30rpx;
  213. height: 180rpx;
  214. display: flex;
  215. justify-content: space-between;
  216. align-items: center;
  217. .item-circle-no {
  218. width: 52rpx;
  219. height: 52rpx;
  220. background: rgba(255, 255, 255, 0.5);
  221. border-radius: 50%;
  222. display: flex;
  223. justify-content: center;
  224. align-items: center;
  225. color: #25D8C9;
  226. font-size: 30rpx;
  227. font-weight: 700;
  228. }
  229. .item-circle {
  230. width: 52rpx;
  231. height: 52rpx;
  232. background: #FFFFFF;
  233. border-radius: 50%;
  234. display: flex;
  235. justify-content: center;
  236. align-items: center;
  237. color: #25D8C9;
  238. font-size: 30rpx;
  239. font-weight: 700;
  240. }
  241. .item-line-solid {
  242. width: calc(calc(100% - 270rpx) / 2);
  243. height: 2rpx;
  244. background-color: #FFFFFF;
  245. margin: 0 12rpx;
  246. }
  247. .item-line {
  248. border: 1px dashed rgba(255, 255, 255, 0.5);
  249. width: calc(calc(100% - 270rpx) / 2);
  250. margin: 0 12rpx;
  251. }
  252. }
  253. .content {
  254. padding: -40rpx 30rpx 0rpx;
  255. margin-top: -130rpx;
  256. background: #ffffff;
  257. border-radius: 30rpx 30rpx 0rpx 30rpx;
  258. position: relative;
  259. min-height: 100rpx;
  260. .title{
  261. font-size: 30rpx;
  262. color: #333333;
  263. font-weight: 600;
  264. padding: 30rpx 30rpx 0rpx;
  265. }
  266. .content-box{
  267. padding: 28rpx 30rpx 0rpx;
  268. }
  269. .imgs{
  270. display: flex;
  271. flex-direction: row;
  272. flex-wrap: wrap;
  273. padding: 0rpx 30rpx 30rpx;
  274. align-items: center;
  275. justify-content: space-between;
  276. image{
  277. width: calc(calc(100% - 30rpx) / 2);
  278. height: 200rpx;
  279. margin-top: 30rpx;
  280. }
  281. }
  282. .card-box{
  283. background: #FFFFFF;
  284. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223,223,223,0.8);
  285. border-radius: 20rpx;
  286. margin: 30rpx 30rpx 0rpx;
  287. padding: 30rpx;
  288. .left{
  289. width: 100rpx;
  290. height: 90rpx;
  291. }
  292. .right{
  293. margin-left: 30rpx;
  294. .number{
  295. font-size: 32rpx;
  296. font-family: Noto Sans S Chinese;
  297. font-weight: 400;
  298. color: #333333;
  299. }
  300. .info{
  301. margin-top: 20rpx;
  302. .card-type{
  303. margin-right: 20rpx;
  304. font-size: 26rpx;
  305. font-weight: 400;
  306. color: #666666;
  307. }
  308. .card-status{
  309. height: 40rpx;
  310. line-height: 40rpx;
  311. background: #D3F2EF;
  312. border-radius: 6rpx;
  313. font-size: 20rpx;
  314. font-family: Noto Sans S Chinese;
  315. font-weight: 400;
  316. color: #0A8F8A;
  317. text-align: center;
  318. padding: 0rpx 30rpx
  319. }
  320. }
  321. }
  322. }
  323. }
  324. </style>