driverIdentityLook.vue 9.2 KB

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