【PT.SCC实名制管理系统】24.10.01 -30天,考勤打卡小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
3.4 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <!-- 实名认证 -->
  2. <template>
  3. <view class="autonym">
  4. <!-- 实名认证顶部背景 -->
  5. <view class="autonym-top">
  6. <image class="bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/b0182213-365c-482d-9218-e532df187fdc.png" mode="widthFix"></image>
  7. </view>
  8. <!-- 实名认证表单 -->
  9. <view class="autonum-form">
  10. <view class="autonum-form-title">请填写真实有效的身份信息</view>
  11. <view class="autonum-form-item">
  12. <view class="title">姓名</view>
  13. <input class="text" v-model="form.name" type="text" />
  14. </view>
  15. <view class="autonum-form-item">
  16. <view class="title">证件号码</view>
  17. <input class="text" v-model="form.cardNo" type="text" />
  18. </view>
  19. <div @click="submit" class="btn">
  20. 立即认证
  21. </div>
  22. </view>
  23. <!-- 说明 -->
  24. <view class="autonym-info">
  25. <image class="autonum-info-icon" src="https://tennis-oss.xzaiyp.top/2024-10-22/fb858755-ada3-49c3-87c7-c28a585dcbc0.png" mode="widthFix"></image>
  26. <view class="text">实名仅用于您是否为真人用户不会对信息做任何采集与保留请放心使用</view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. name: "Autonym",
  33. data() {
  34. return {
  35. form: {
  36. name: '',
  37. cardNo: ''
  38. }
  39. }
  40. },
  41. methods: {
  42. toCenter() {
  43. uni.navigateTo({
  44. url: "/pages/index/center"
  45. })
  46. },
  47. submit(){
  48. if (this.$utils.verificationAll(this.form, {
  49. name : '请输入姓名',
  50. cardNo : '请输入身份证号',
  51. })) {
  52. return
  53. }
  54. this.$store.commit('setAuthInfo', this.form)
  55. uni.navigateTo({
  56. url: '/pages/subPack/human/human?type=auth'
  57. })
  58. // 实名认证
  59. // this.$api('authApply', this.form, res => {
  60. // if(res.code == 200){
  61. // uni.reLaunch({
  62. // url: '/pages/index/index'
  63. // })
  64. // }
  65. // })
  66. },
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .autonym {
  72. // 实名认证顶部背景
  73. .autonym-top {
  74. .bg {
  75. width: 750rpx;
  76. }
  77. }
  78. // 实名认证表单
  79. .autonum-form {
  80. position: relative;
  81. width: 95%;
  82. border-radius: 40rpx;
  83. background: white;
  84. margin: -180rpx auto 0rpx auto;
  85. z-index: 100;
  86. overflow: hidden;
  87. box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, .1);
  88. .autonum-form-title {
  89. font-size: 34rpx;
  90. font-weight: bold;
  91. padding: 40rpx 0rpx;
  92. text-align: center;
  93. background-color: #E4E4E4;
  94. }
  95. .autonum-form-item {
  96. height: 90rpx;
  97. display: flex;
  98. align-items: center;
  99. margin: 50rpx auto;
  100. width: 80%;
  101. background: #E4E4E4;
  102. border-radius: 100rpx;
  103. box-sizing: border-box;
  104. padding: 0rpx 20rpx;
  105. color: #707070;
  106. &:nth-child(2){
  107. margin-top: 70rpx;
  108. }
  109. .title {
  110. font-size: 30rpx;
  111. width: 160rpx;
  112. }
  113. .text {
  114. display: block;
  115. height: 75rpx;
  116. width: calc(100% - 160rpx);
  117. }
  118. }
  119. .btn {
  120. display: flex;
  121. align-items: center;
  122. justify-content: center;
  123. width: 80%;
  124. background: $main-color;
  125. color: white;
  126. height: 100rpx;
  127. border-radius: 50rpx;
  128. margin: 90rpx auto 60rpx auto;
  129. }
  130. }
  131. // 说明
  132. .autonym-info {
  133. display: flex;
  134. align-items: center;
  135. width: 90%;
  136. margin: 30rpx auto 0rpx auto;
  137. background: #F3F3F3;
  138. .autonum-info-icon {
  139. width: 30rpx;
  140. }
  141. .text {
  142. width: calc(100% - 20rpx);
  143. font-size: 24rpx;
  144. color: #707070;
  145. box-sizing: border-box;
  146. padding-left: 10rpx;
  147. }
  148. }
  149. }
  150. </style>