companyIdentityLook.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <view class="center">
  3. <view>
  4. <image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'" alt=""></image>
  5. <text>公司</text>
  6. <image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus1==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'" alt=""></image>
  7. <text>个人</text>
  8. </view>
  9. <view v-if="consentStatus == true">
  10. <view>
  11. <button type="default" @click="license">营业执照</button>
  12. <view style="width: 100px;margin: 0 auto;" v-if="license1 != ''">
  13. <image v-bind:src = "license1" style="width: 100px;height: 100px;"></image>
  14. </view>
  15. </view>
  16. <view class="c-row b-b">
  17. <text class="tit">公司名称</text>
  18. <view class="con-list">
  19. {{deptList.compName}}
  20. </view>
  21. </view>
  22. <view class="c-row b-b">
  23. <text class="tit">纳税人识别号</text>
  24. <view class="con-list">
  25. {{deptList.payTaxesCard}}
  26. </view>
  27. </view>
  28. <view>
  29. <button type="default">身份证正面</button>
  30. <view style="width: 100px;margin: 0 auto;" v-if="idup != ''">
  31. <image v-bind:src = "idup" style="width: 100px;height: 100px;"></image>
  32. </view>
  33. <button type="default">身份证反面</button>
  34. <view style="width: 100px;margin: 0 auto;" v-if="idlow != ''">
  35. <image v-bind:src = "idlow" style="width: 100px;height: 100px;"></image>
  36. </view>
  37. </view>
  38. <view class="c-row b-b">
  39. <text class="tit">姓名</text>
  40. <view class="con-list">
  41. {{deptList.customerName}}
  42. </view>
  43. </view>
  44. <view class="c-row b-b">
  45. <text class="tit">身份证号</text>
  46. <view class="con-list">
  47. {{deptList.customerNumberCard}}
  48. </view>
  49. </view>
  50. <view>
  51. <button type="default">银行卡正面</button>
  52. <view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
  53. <image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
  54. </view>
  55. <button type="default">银行卡反面</button>
  56. <view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
  57. <image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
  58. </view>
  59. </view>
  60. <view class="c-row b-b">
  61. <text class="tit">银行卡号</text>
  62. <view class="con-list">
  63. {{deptList.bankCard}}
  64. </view>
  65. </view>
  66. <view class="c-row b-b">
  67. <text class="tit">开户行</text>
  68. <view class="con-list">
  69. {{deptList.bankDeposit}}
  70. </view>
  71. </view>
  72. <view class="c-row b-b">
  73. <text class="tit">开户支行</text>
  74. <view class="con-list">
  75. {{deptList.bankDepositBranch}}
  76. </view>
  77. </view>
  78. <view class="c-row b-b">
  79. <text class="tit">手机号</text>
  80. <view class="con-list">
  81. {{deptList.customerPhone}}
  82. </view>
  83. </view>
  84. <view class="c-row b-b">
  85. <text class="tit">公司地址</text>
  86. <view class="con-list">
  87. {{deptList.compAddress}}
  88. </view>
  89. </view>
  90. </view>
  91. <view v-else>
  92. <view>
  93. <button type="default">上传身份证正面</button>
  94. <view style="width: 100px;margin: 0 auto;" v-if="id1 != ''">
  95. <image v-bind:src = "id1" style="width: 100px;height: 100px;"></image>
  96. </view>
  97. <button type="default">上传身份证反面</button>
  98. <view style="width: 100px;margin: 0 auto;" v-if="id2 != ''">
  99. <image v-bind:src = "id2" style="width: 100px;height: 100px;"></image>
  100. </view>
  101. </view>
  102. <view class="c-row b-b">
  103. <text class="tit">姓名</text>
  104. <view class="con-list">
  105. {{deptList.customerName}}
  106. </view>
  107. </view>
  108. <view class="c-row b-b">
  109. <text class="tit">身份证号</text>
  110. <view class="con-list">
  111. {{deptList.customerNumberCard}}
  112. </view>
  113. </view>
  114. <view>
  115. <button type="default">上传银行卡正面</button>
  116. <view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
  117. <image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
  118. </view>
  119. <button type="default">上传银行卡反面</button>
  120. <view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
  121. <image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
  122. </view>
  123. </view>
  124. <view class="c-row b-b">
  125. <text class="tit">银行卡号</text>
  126. <view class="con-list">
  127. {{deptList.bankCard}}
  128. </view>
  129. </view>
  130. <view class="c-row b-b">
  131. <text class="tit">开户行</text>
  132. <view class="con-list">
  133. {{deptList.bankDeposit}}
  134. </view>
  135. </view>
  136. <view class="c-row b-b">
  137. <text class="tit">开户支行</text>
  138. <view class="con-list">
  139. {{deptList.bankDepositBranch}}
  140. </view>
  141. </view>
  142. <view class="c-row b-b">
  143. <text class="tit">收款人姓名</text>
  144. <view class="con-list">
  145. {{ deptList.payeeName}}
  146. </view>
  147. </view>
  148. <view class="c-row b-b">
  149. <text class="tit">收款人身份证号</text>
  150. <view class="con-list">
  151. {{deptList.payeeNumberCard}}
  152. </view>
  153. </view>
  154. <view class="c-row b-b">
  155. <text class="tit">手机号</text>
  156. <view class="con-list">
  157. {{deptList.customerPhone}}
  158. </view>
  159. </view>
  160. <view class="c-row b-b">
  161. <text class="tit">联系地址</text>
  162. <view class="con-list">
  163. {{deptList.compAddress}}
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </template>
  169. <script>
  170. import {
  171. mapState
  172. } from 'vuex';
  173. export default {
  174. name: "buy",
  175. data() {
  176. return {
  177. radios: 2,
  178. deptList:{},
  179. consentStatus:true,
  180. consentStatus1:false,
  181. parameter:{},
  182. businessman:{},
  183. id:[],
  184. idup:"",
  185. idlow:"",
  186. license1:"",
  187. bank1:"",
  188. bank2:"",
  189. bankid:[],
  190. payeeAddress:[],
  191. };
  192. },
  193. onLoad(option) {
  194. this.parameter.id = option.id,
  195. this.getList()
  196. },
  197. computed: {
  198. ...mapState(['hasLogin','userInfo'])
  199. },
  200. methods: {
  201. getList(ids) {
  202. // this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter).then(res => {
  203. // console.log("成功连接")
  204. // this.businessman = res.data.data
  205. // })
  206. // .catch(res => {
  207. // uni.showToast({
  208. // title: res.errmsg,
  209. // icon: 'none',
  210. // duration: 2000
  211. // })
  212. // });
  213. this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
  214. console.log("成功连接")
  215. // this.procurementPlanInfos = res.data.data
  216. this.deptList = res.data.data
  217. if(this.deptList.businessLicenseAddressUrl != ""){
  218. this.license1 = this.deptList.businessLicenseAddressUrl
  219. }
  220. if(this.deptList.cardAddressUrl != ""){
  221. this.id = this.deptList.cardAddressUrl.split(",")
  222. this.idup = this.id[0]
  223. this.idlow = this.id[1]
  224. console.log(this.id,"fdsfdfsfgdsds")
  225. }
  226. if(this.deptList.payeeAddressUrl != ""){
  227. this.payeeAddress = this.deptList.payeeAddressUrl.split(","),
  228. this.bank1 = this.payeeAddress[0]
  229. this.bank2 = this.payeeAddress[1]
  230. }
  231. console.log(this.businessmanbusinessman,"langshang")
  232. })
  233. .catch(res => {
  234. uni.showToast({
  235. title: res.errmsg,
  236. icon: 'none',
  237. duration: 2000
  238. })
  239. });
  240. },
  241. consent(){
  242. if(this.consentStatus == false && this.consentStatus1 == true){
  243. this.consentStatus = true
  244. this.consentStatus1 = false
  245. }else if(this.consentStatus == true && this.consentStatus1 == false){
  246. this.consentStatus = false
  247. this.consentStatus1 = true
  248. }
  249. },
  250. }
  251. }
  252. </script>
  253. <style>
  254. .center {
  255. padding: 10px 20px;
  256. }
  257. .c-row {
  258. display: -webkit-box;
  259. display: -webkit-flex;
  260. display: flex;
  261. -webkit-box-align: center;
  262. -webkit-align-items: center;
  263. align-items: center;
  264. padding: 20rpx 30rpx;
  265. position: relative;
  266. }
  267. .con-list {
  268. -webkit-box-flex: 1;
  269. -webkit-flex: 1;
  270. flex: 1;
  271. display: -webkit-box;
  272. display: -webkit-flex;
  273. display: flex;
  274. -webkit-box-orient: vertical;
  275. -webkit-box-direction: normal;
  276. -webkit-flex-direction: column;
  277. flex-direction: column;
  278. color: #303133;
  279. line-height: 40rpx;
  280. text-align: right;
  281. padding-right: 20rpx;
  282. font-size: 14px;
  283. }
  284. </style>