authentication.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <template>
  2. <view>
  3. <u-navbar back-text="实名认证" back-icon-size="28" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <!-- 标签 -->
  6. <view class="tabs">
  7. <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  8. </view>
  9. <view class="personal-box" v-if="current==0">
  10. <!-- 个人认证 -->
  11. <view class="personal-authentication" v-if="authentication">
  12. <view class="headline">
  13. 您的信息将会被严格保密,请放心填写
  14. </view>
  15. <!-- 信息 -->
  16. <view class="infos-group">
  17. <view class="item">
  18. <view class="title">
  19. 手机号码
  20. </view>
  21. <view class="value">
  22. <input type="text" placeholder="15500001111">
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="title">
  27. 真实姓名
  28. </view>
  29. <view class="value">
  30. <input type="text" placeholder="请填写真实姓名">
  31. </view>
  32. </view>
  33. <view class="item">
  34. <view class="title">
  35. 身份证号
  36. </view>
  37. <view class="value">
  38. <input type="text" placeholder="请填写18位身份证号">
  39. </view>
  40. </view>
  41. </view>
  42. <button class="save" @click="authentication=false">保存</button>
  43. </view>
  44. <!-- 认证成功 -->
  45. <view class="success" v-if="!authentication">
  46. <view class="img-box">
  47. <img src="@/assets/img/success.png" alt="">
  48. </view>
  49. <!-- 信息 -->
  50. <view class="infos-box">
  51. <view class="item">
  52. <view class="title">
  53. 手机号码
  54. </view>
  55. <view class="title">
  56. 15500001111
  57. </view>
  58. </view>
  59. <view class="item">
  60. <view class="title">
  61. 姓名
  62. </view>
  63. <view class="title">
  64. 李*宵
  65. </view>
  66. </view>
  67. <view class="item">
  68. <view class="title">
  69. 身份证号
  70. </view>
  71. <view class="title">
  72. 4****************1
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 提示 -->
  78. <view class="tips" v-if="!authentication" >
  79. <view class="tips-item">
  80. <view class="icon">
  81. <img src="@/assets/img/shield-user-line.png" alt="">
  82. </view>
  83. <view class="text">
  84. 信息安全保护中,认证信息将用于创建信息等功能,与账号为已绑定,未经您允许不对外提供
  85. </view>
  86. </view>
  87. <view class="tips-item">
  88. <view class="icon">
  89. <u-icon name="info-circle"></u-icon>
  90. </view>
  91. <view class="text">
  92. 每个账号只能进行一次实名认证,认证成功不支持修改
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 企业认证 -->
  98. <view class="enterprise-box" v-if="current==1" >
  99. <view class="enterprise-authentication" v-if="enterprise">
  100. <view class="headline">
  101. 您的信息将会被严格保密,请放心填写
  102. </view>
  103. <!-- 企业信息 -->
  104. <view class="enterprise-infos">
  105. <view class="infos-input">
  106. <view class="item">
  107. <view class="title">
  108. 企业全称
  109. </view>
  110. <view class="input">
  111. <input type="text" placeholder="请填写企业全称">
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 营业执照 -->
  116. <view class="business-license">
  117. <view class="title">
  118. <view class="title-left">
  119. 营业执照
  120. </view>
  121. <view class="title-right">
  122. 请保证图中文字、印章等清晰可辨识
  123. </view>
  124. </view>
  125. <u-upload width="686" max-count="1" ></u-upload>
  126. </view>
  127. </view>
  128. <button class="save" @click="enterprise=false">保存</button>
  129. </view>
  130. <!-- 企业认证成功 -->
  131. <view class="success" v-if="!enterprise">
  132. <view class="img-box">
  133. <img src="@/assets/img/success.png" alt="">
  134. </view>
  135. <!-- 信息 -->
  136. <view class="infos-box">
  137. <view class="item">
  138. <view class="title">
  139. 企业全称
  140. </view>
  141. <view class="value">
  142. 湖北荆鹏软件开发有限公司
  143. </view>
  144. </view>
  145. <view class="item">
  146. <view class="title">
  147. 营业执照
  148. </view>
  149. </view>
  150. <view class="img-box">
  151. <img src="@/assets/img/business-license.png" alt="">
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 提示 -->
  156. <view class="tips" v-if="!enterprise" >
  157. <view class="tips-item">
  158. <view class="icon">
  159. <img src="@/assets/img/shield-user-line.png" alt="">
  160. </view>
  161. <view class="text">
  162. 信息安全保护中,认证信息将用于创建信息等功能,与账号为已绑定,未经您允许不对外提供
  163. </view>
  164. </view>
  165. <view class="tips-item">
  166. <view class="icon">
  167. <u-icon name="info-circle"></u-icon>
  168. </view>
  169. <view class="text">
  170. 每个账号只能进行一次实名认证,认证成功不支持修改
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. </template>
  177. <script>
  178. export default {
  179. data() {
  180. return {
  181. authentication:true,
  182. enterprise:true,
  183. list: [{
  184. name: '个人认证'
  185. }, {
  186. name: '企业认证'
  187. }],
  188. current: 0,
  189. }
  190. },
  191. methods: {
  192. change(index) {
  193. this.current = index;
  194. }
  195. }
  196. }
  197. </script>
  198. <style>
  199. page {
  200. background: #F0F0F2;
  201. padding-bottom: 150px;
  202. }
  203. </style>
  204. <style lang="scss" scoped>
  205. .headline{
  206. color: rgba(51, 51, 51, 1);
  207. padding-left: 32rpx;
  208. margin-top: 32rpx;
  209. }
  210. .personal-box{
  211. // 信息
  212. .infos-group{
  213. background-color: #fff;
  214. margin-top: 16rpx;
  215. .item{
  216. display: flex;
  217. align-items: center;
  218. padding: 24rpx 32rpx;
  219. .title{
  220. color: rgba(51, 51, 51, 1);
  221. font-size: 32rpx;
  222. width: 180rpx;
  223. }
  224. .value{
  225. /deep/.uni-input-input{
  226. color: rgba(51, 51, 51, 1);
  227. font-size: 32rpx;
  228. }
  229. }
  230. }
  231. .img-box{
  232. display: flex;
  233. justify-content: center;
  234. img{
  235. width: 100%;
  236. height:440rpx;
  237. }
  238. }
  239. }
  240. }
  241. // 企业认证
  242. .enterprise-box{
  243. .enterprise-authentication{
  244. .enterprise-infos{
  245. background-color: #fff;
  246. padding: 24rpx 32rpx;
  247. margin-top: 16rpx;
  248. }
  249. .infos-input{
  250. padding:0 0 24rpx 0;
  251. border-bottom: 1px solid #e6e6e6;
  252. }
  253. .item{
  254. display: flex;
  255. align-items: center;
  256. .title{
  257. color: rgba(51, 51, 51, 1);
  258. font-size: 32rpx;
  259. width: 180rpx;
  260. }
  261. .value{
  262. /deep/.uni-input-input{
  263. color: rgba(51, 51, 51, 1);
  264. font-size: 32rpx;
  265. }
  266. }
  267. }
  268. }
  269. .business-license{
  270. .title{
  271. display: flex;
  272. justify-content: space-between;
  273. padding: 24rpx 0 20rpx ;
  274. .title1{
  275. color: rgba(51, 51, 51, 1);
  276. font-size: 32rpx;
  277. }
  278. .title2{
  279. color: #999999;
  280. }
  281. }
  282. // 上传
  283. /deep/.u-list-item {
  284. width: 686rpx;
  285. height: 360rpx !important;
  286. }
  287. /deep/.u-add-btn {
  288. color: #ACBAC9;
  289. font-size: 96rpx
  290. }
  291. /deep/.uicon-plus[data-v-2ee87dc9]:before {
  292. font-size: 72rpx;
  293. }
  294. }
  295. }
  296. //认证成功
  297. .success{
  298. background-color: #fff;
  299. .img-box{
  300. display: flex;
  301. justify-content: center;
  302. width: 686rpx;
  303. height: 596rpx;
  304. margin: 0 auto;
  305. padding: 48rpx;
  306. img{
  307. width: 100%;
  308. height: 100%;
  309. }
  310. }
  311. // 信息
  312. .infos-box{
  313. .item{
  314. display: flex;
  315. align-items: center;
  316. padding:24rpx ;
  317. margin:0 32rpx;
  318. border-bottom:1px solid #e3e3e3;
  319. .title{
  320. color: rgba(119, 119, 119, 1);
  321. font-size: 16px;
  322. width: 180rpx;
  323. }
  324. .value{
  325. color: rgba(51, 51, 51, 1);
  326. font-size: 16px;
  327. }
  328. }
  329. }
  330. }
  331. //提示
  332. .tips{
  333. padding: 24rpx 32rpx;
  334. .tips-item{
  335. display: flex;
  336. margin-bottom: 24rpx;
  337. font-size: 24rpx;
  338. line-height: 34rpx;
  339. .icon{
  340. width: 32rpx;
  341. height: 32rpx;
  342. img{
  343. width: 100%;
  344. height: 100%;
  345. vertical-align: middle;
  346. }
  347. }
  348. .text{
  349. flex:1;
  350. margin-left: 8rpx;
  351. }
  352. }
  353. }
  354. // 保存
  355. .save{
  356. background-color: rgba(34, 149, 255, 1);
  357. color: rgba(241, 241, 241, 1);
  358. font-size: 36rpx;
  359. height: 96rpx;
  360. margin: 40rpx 32rpx;
  361. border-radius: 50px;}
  362. </style>