driverIdentityLook.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <template>
  2. <view class="center">
  3. <view>
  4. <view class="fujians" v-if="idup != ''">
  5. <view class="c-row b-b">
  6. <text class="picturebiaoti">身份证正面</text>
  7. </view>
  8. <image v-bind:src="idup" class="picture"></image>
  9. </view>
  10. <view class="fujians" v-if="idlow != ''">
  11. <view class="c-row b-b">
  12. <text class="picturebiaoti">身份证反面</text>
  13. </view>
  14. <image v-bind:src="idlow" class="picture"></image>
  15. </view>
  16. <view class="personalcss">
  17. <view class="c-row b-b">
  18. <text class="tit">姓名</text>
  19. <view class="con-list">
  20. {{drivers.driverName}}
  21. </view>
  22. </view>
  23. <view class="c-row b-b">
  24. <text class="tit">身份证号</text>
  25. <view class="con-list">
  26. {{drivers.numberCard}}
  27. </view>
  28. </view>
  29. <view class="c-row b-b">
  30. <text class="tit">手机号</text>
  31. <view class="con-list">
  32. {{drivers.driverPhone}}
  33. </view>
  34. </view>
  35. <view class="c-row">
  36. <text class="tit">常驻城市</text>
  37. <view class="con-list">
  38. {{drivers.residentCityProvincial}}
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 车辆信息 -->
  43. <view class="information">
  44. <view class="c-row">
  45. <text class="tit" style="line-height: 36px;">货车信息</text>
  46. <view class="con-list">
  47. <image v-bind:src="opencar" class="open" opencarboolean @click="opencarclick"></image>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="informations" v-if="opencarboolean == true">
  53. <view v-for="(item , index) in drivers.driverCarInfoList" :Key="index" >
  54. <view class="c-row ">
  55. <text class="tit">车辆 -{{index+1}}</text>
  56. </view>
  57. <view class="c-row b-b">
  58. <text class="tit">车牌号</text>
  59. <view class="con-list">
  60. {{item.carNumber}}
  61. </view>
  62. </view>
  63. <view class="c-row b-b">
  64. <text class="tit">车型</text>
  65. <view class="con-list">
  66. {{item.carModel}}
  67. </view>
  68. </view>
  69. <view class="c-row b-b">
  70. <text class="tit">不含车头车长(米)</text>
  71. <view class="con-list">
  72. {{item.carLength}}
  73. </view>
  74. </view>
  75. <view class="c-row b-b">
  76. <text class="tit">载重(吨)</text>
  77. <view class="con-list">
  78. {{item.carLoad}}
  79. </view>
  80. </view>
  81. <view class="c-row b-b">
  82. <text class="tit">出厂年份</text>
  83. <view class="con-list">
  84. {{item.yearManufacture}}
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="information">
  90. <view class="c-row">
  91. <text class="tit" style="line-height: 36px;">账户信息</text>
  92. <view class="con-list">
  93. <image v-bind:src="openuser" class="open" openuserboolean @click="openuserclick"></image>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="informations" v-if="openuserboolean == true">
  98. <!-- <view class="labels">账户信息</view> -->
  99. <view v-for="(items , index) in drivers.driverPayeeInfoList" :Key="index">
  100. <view class="c-row b-b">
  101. <text class="tit">账户 - {{index+1}}</text>
  102. </view>
  103. <view class="c-row b-b">
  104. <text class="tit">账户类型</text>
  105. <view class="con-list">
  106. {{items.accountType}}
  107. </view>
  108. </view>
  109. <view class="c-row b-b">
  110. <text class="tit">银行卡照片</text>
  111. <view @click="bankimgs(index)">
  112. <text v-if="bankimg[index] == '' && bankimg[index] != null">未上传</text>
  113. <image v-bind:src="bankimg[index]" style="width: 40px; height: 40px;" v-if="bankimg[index] != '' && bankimg[index] != null"></image>
  114. </view>
  115. </view>
  116. <view class="c-row b-b">
  117. <text class="tit">银行卡号</text>
  118. <view class="con-list">
  119. {{items.bankCard}}
  120. </view>
  121. </view>
  122. <view class="c-row b-b">
  123. <text class="tit">开户行</text>
  124. <view class="con-list">
  125. {{items.bankDeposit}}
  126. </view>
  127. </view>
  128. <view class="c-row b-b">
  129. <text class="tit">开户支行</text>
  130. <view class="con-list">
  131. {{items.bankDepositBranch}}
  132. </view>
  133. </view>
  134. <view class="c-row b-b">
  135. <text class="tit">收款人姓名</text>
  136. <view class="con-list">
  137. {{items.payeeName}}
  138. </view>
  139. </view>
  140. <view class="c-row b-b">
  141. <text class="tit">收款人身份证号</text>
  142. <view class="con-list">
  143. {{items.payeeNumberCard}}
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="information">
  149. <view class="c-row">
  150. <text class="tit" style="line-height: 36px;">附件信息</text>
  151. <view class="con-list">
  152. <image v-bind:src="openfujian" class="open" openfujianboolean @click="openfujianclick"></image>
  153. </view>
  154. </view>
  155. </view>
  156. <view v-if="openfujianboolean == true">
  157. <view class="fujians" v-if="travels != ''">
  158. <view class="c-row b-b">
  159. <text class="picturebiaoti">行驶证</text>
  160. </view>
  161. <image v-bind:src="travels" class="picture"></image>
  162. </view>
  163. <view class="fujians" v-if="drives != ''">
  164. <view class="c-row b-b">
  165. <text class="picturebiaoti">驾驶证</text>
  166. </view>
  167. <image v-bind:src="drives" class="picture"></image>
  168. </view>
  169. <view class="fujians" v-if="practices != ''">
  170. <view class="c-row b-b">
  171. <text class="picturebiaoti">道路运营证</text>
  172. </view>
  173. <image v-bind:src="practices" class="picture"></image>
  174. </view>
  175. <view class="fujians" v-if="operates != ''">
  176. <view class="c-row b-b">
  177. <text class="picturebiaoti">从业资格证</text>
  178. </view>
  179. <image v-bind:src="operates" class="picture"></image>
  180. </view>
  181. </view>
  182. </view>
  183. </template>
  184. <script>
  185. export default {
  186. data() {
  187. return {
  188. drivers: {},
  189. id: [],
  190. address: [],
  191. travels: "",
  192. drives: "",
  193. practices: "",
  194. operates: "",
  195. idup: "",
  196. idlow: "",
  197. opencar: "../../static/img/authentication/down2@3x.png",
  198. openuser: "../../static/img/authentication/down2@3x.png",
  199. openfujian:"../../static/img/authentication/down2@3x.png",
  200. opencarboolean:false,
  201. openuserboolean:false,
  202. openfujianboolean:false,
  203. bankimg:[],
  204. }
  205. },
  206. onLoad(option) {
  207. this.getList(option.id)
  208. },
  209. methods: {
  210. opencarclick() {
  211. if (this.opencarboolean == false) {
  212. this.opencarboolean = true;
  213. this.opencar = "../../static/img/authentication/up2%20(3).png"
  214. } else if (this.opencarboolean == true) {
  215. this.opencarboolean = false;
  216. this.opencar = "../../static/img/authentication/down2@3x.png"
  217. }
  218. },
  219. openuserclick() {
  220. if (this.openuserboolean == false) {
  221. this.openuserboolean = true;
  222. this.openuser = "../../static/img/authentication/up2%20(3).png"
  223. } else if (this.openuserboolean == true) {
  224. this.openuserboolean = false;
  225. this.openuser = "../../static/img/authentication/down2@3x.png"
  226. }
  227. },
  228. openfujianclick(){
  229. if (this.openfujianboolean == false) {
  230. this.openfujianboolean = true;
  231. this.openfujian = "../../static/img/authentication/up2%20(3).png"
  232. } else if (this.openfujianboolean == true) {
  233. this.openfujianboolean = false;
  234. this.openfujian = "../../static/img/authentication/down2@3x.png"
  235. }
  236. },
  237. getList(ids) {
  238. this.$api.doRequest('get', '/driverViewInfo/getDriver', {
  239. id: ids
  240. }, 'application/json;charset=UTF-8').then(res => {
  241. console.log("成功连接")
  242. this.procurementPlanInfos = res.data.data
  243. this.drivers = res.data.data
  244. if (this.drivers.cardAddressUrl != "") {
  245. this.id = this.drivers.cardAddressUrl.split(","),
  246. this.idup = this.id[0]
  247. this.idlow = this.id[1]
  248. }
  249. if (this.drivers.addressUrl != "") {
  250. this.address = this.drivers.addressUrl.split(","),
  251. this.travels = this.address[0]
  252. this.drives = this.address[1]
  253. this.practices = this.address[2]
  254. this.operates = this.address[3]
  255. }
  256. this.bankimg = this.procurementPlanInfos.driverPayeeInfoList.payeeAddressUrl.split(",")
  257. })
  258. .catch(res => {
  259. if(res.errmsg){
  260. uni.showToast({
  261. title: res.errmsg,
  262. icon: 'none',
  263. duration: 2000
  264. })
  265. }
  266. else{
  267. uni.showToast({
  268. title: "系统异常,请联系管理员",
  269. icon: 'none',
  270. duration: 2000
  271. })
  272. }
  273. });
  274. },
  275. }
  276. }
  277. </script>
  278. <style>
  279. .center {
  280. padding: 10px 20px;
  281. background-color: #F5F6FA;
  282. }
  283. .labels {
  284. font-size: 16px;
  285. font-weight: 400;
  286. }
  287. .c-row {
  288. display: -webkit-box;
  289. display: -webkit-flex;
  290. display: flex;
  291. -webkit-box-align: center;
  292. -webkit-align-items: center;
  293. align-items: center;
  294. padding: 20rpx 30rpx;
  295. position: relative;
  296. }
  297. .con-list {
  298. -webkit-box-flex: 1;
  299. -webkit-flex: 1;
  300. flex: 1;
  301. display: -webkit-box;
  302. display: -webkit-flex;
  303. display: flex;
  304. -webkit-box-orient: vertical;
  305. -webkit-box-direction: normal;
  306. -webkit-flex-direction: column;
  307. flex-direction: column;
  308. color: #AFB3BF;
  309. line-height: 40rpx;
  310. text-align: right;
  311. padding-right: 20rpx;
  312. font-size: 14px;
  313. }
  314. .picture {
  315. width: 100%;
  316. height: 220px;
  317. text-align: center;
  318. margin-top: 10px;
  319. }
  320. .tit{
  321. font-size: 14px;
  322. color: #333333;
  323. }
  324. .personalcss{
  325. background-color: #FFFFFF;
  326. border-radius: 20px;
  327. margin-top: 10px;
  328. }
  329. .open {
  330. width: 30px;
  331. height: 20px;
  332. position: absolute;
  333. right: 20px;
  334. margin-top: -10px;
  335. }
  336. .information {
  337. margin-top: 10px;
  338. width: 100%;
  339. height: 56px;
  340. background-color: #FFFFFF;
  341. border-radius: 16px;
  342. }
  343. .informations {
  344. margin-top: 10px;
  345. background-color: #FFFFFF;
  346. border-radius: 20px;
  347. }
  348. .fujians{
  349. margin: 0 auto;
  350. background-color: #FFFFFF;
  351. margin-top: 30px;
  352. border-radius: 20px;
  353. padding: 10px 10px;
  354. }
  355. .picturebiaoti{
  356. font-size: 17px;
  357. font-weight: 700;
  358. }
  359. </style>