realname.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view class="content">
  3. <view class="">
  4. <view class="box">
  5. <image src="@/static/images/mine/real_bg.png" mode="aspectFill" class="box_bg"></image>
  6. <view class="text">
  7. <view class="vflex jcenter box_top">
  8. <view class="text_style1">{{name}}</view>
  9. <view class="text_style1">{{idNumber}}</view>
  10. </view>
  11. <view class="text_style2">个人隐私信息安全保障中</view>
  12. </view>
  13. </view>
  14. </view>
  15. <!-- <view class="" v-else>
  16. <view class="title">
  17. <view>实名认证</view>
  18. <view class="subTitle">为保障您的资金安全、提升您的账号信用、请您如实填写您的身份信息</view>
  19. </view>
  20. <view class="form">
  21. <view class="form_item">
  22. <view class="title">真实姓名</view>
  23. <u-input v-model="name" border="bottom" placeholder="请填写您本人的真实姓名"></u-input>
  24. </view>
  25. <view class="form_item">
  26. <view class="title">身份证号</view>
  27. <u-input v-model="idNumber" border="bottom" placeholder="请填写您的身份证号"></u-input>
  28. </view>
  29. </view>
  30. <view class="hflex acenter">
  31. <u-checkbox-group @change="checkboxChange">
  32. <u-checkbox v-model="agree" shape="circle"></u-checkbox>
  33. </u-checkbox-group>
  34. <view class="text">阅读并同意<span class="read" @click="open(0)">《实名认证授权》</span>、<span class="read" @click="open(1)">《船百知隐私政策》</span></view>
  35. </view>
  36. <view class="button hflex acenter jcenter" @click="toAuth">
  37. <view>人脸认证</view>
  38. </view>
  39. </view> -->
  40. </view>
  41. </template>
  42. <script>
  43. import $api from '@/static/js/api.js'
  44. // import jsvm from '@/static/js/jsvm_all.js'
  45. var that = ''
  46. export default {
  47. data() {
  48. return {
  49. name: '',
  50. idNumber: '',
  51. agree: false,
  52. showProtocol: false,
  53. protocolTitle: '',
  54. protocolContent: '',
  55. state: 0,
  56. }
  57. },
  58. onLoad() {
  59. that = this
  60. that.getRealname()
  61. },
  62. methods: {
  63. getRealname() {
  64. var pages = getCurrentPages()
  65. var prePage = pages[pages.length - 2]
  66. that.name = prePage.$vm.user.real_name
  67. that.idNumber = prePage.$vm.user.id_card
  68. },
  69. // 阅读并同意
  70. checkboxChange(n) {
  71. this.agree = !this.agree
  72. },
  73. // 打开弹出层
  74. open(index) {
  75. const that = this
  76. // if(index == 0) {
  77. // $api.req({
  78. // url: '/api/Publics/config_info'
  79. // }, function(res) {
  80. // if (res.code == 1) {
  81. // that.protocolTitle = '用户协议'
  82. // that.protocolContent = res.data.xieyi
  83. // }
  84. // })
  85. // } else {
  86. // that.protocolTitle = '隐私政策'
  87. // that.protocolContent = ''
  88. // }
  89. // that.showProtocol = true
  90. },
  91. },
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .content::v-deep {
  96. padding: 0 30rpx;
  97. background-color: #fff;
  98. .title {
  99. margin-top: 40rpx;
  100. width: 100%;
  101. font-size: 48rpx;
  102. color: #222;
  103. }
  104. .subTitle {
  105. padding-top: 12rpx;
  106. font-size: 26rpx;
  107. color: #888;
  108. line-height: 36rpx;
  109. }
  110. .form {
  111. width: 100%;
  112. margin: 30rpx 0;
  113. .form_item {
  114. .title {
  115. font-size: 28rpx;
  116. color: #444;
  117. }
  118. .u-input {
  119. padding: 28rpx 0 !important;
  120. }
  121. }
  122. }
  123. .text {
  124. font-size: 24rpx;
  125. color: #9c9c9c;
  126. }
  127. .read {
  128. color: #2a63f3;
  129. }
  130. .button {
  131. width: 100%;
  132. height: 96rpx;
  133. background-color: #506dff;
  134. border-radius: 50rpx;
  135. box-shadow: 0 4rpx 28rpx 0 rgba(132,123,255,0.4);
  136. font-size: 40rpx;
  137. color: #fff;
  138. margin: 106rpx 0 36rpx;
  139. }
  140. .box {
  141. margin-top: 40rpx;
  142. // background: url('../../../static/images/mine/real_bg.png') no-repeat;
  143. // background-size: 100%;
  144. width: 100%;
  145. height: 268rpx;
  146. position: relative;
  147. .box_bg {
  148. position: absolute;
  149. top: 0;
  150. left: 0;
  151. width: 100%;
  152. height: 268rpx;
  153. // z-index: 1;
  154. }
  155. .text {
  156. position: absolute;
  157. top: 0;
  158. left: 0;
  159. width: 100%;
  160. height: 100%;
  161. z-index: 99;
  162. }
  163. .box_top {
  164. width: 100%;
  165. box-sizing: border-box;
  166. padding: 42rpx 0 42rpx 244rpx;
  167. }
  168. .text_style1 {
  169. font-size: 36rpx;
  170. color: #fff;
  171. margin-top: 18rpx;
  172. z-index: 99;
  173. }
  174. .text_style2 {
  175. width: 100%;
  176. box-sizing: border-box;
  177. padding: 0 0 0 60rpx;
  178. font-size: 20rpx;
  179. color: #fff;
  180. z-index: 99;
  181. }
  182. }
  183. }
  184. </style>