【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.

161 lines
3.2 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
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.$api('authApply', this.form, res => {
  55. if(res.code == 200){
  56. uni.reLaunch({
  57. url: '/pages/index/index'
  58. })
  59. }
  60. })
  61. },
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .autonym {
  67. // 实名认证顶部背景
  68. .autonym-top {
  69. .bg {
  70. width: 750rpx;
  71. }
  72. }
  73. // 实名认证表单
  74. .autonum-form {
  75. position: relative;
  76. width: 95%;
  77. border-radius: 40rpx;
  78. background: white;
  79. margin: -180rpx auto 0rpx auto;
  80. z-index: 100;
  81. overflow: hidden;
  82. box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, .1);
  83. .autonum-form-title {
  84. font-size: 34rpx;
  85. font-weight: bold;
  86. padding: 40rpx 0rpx;
  87. text-align: center;
  88. background-color: #E4E4E4;
  89. }
  90. .autonum-form-item {
  91. height: 90rpx;
  92. display: flex;
  93. align-items: center;
  94. margin: 50rpx auto;
  95. width: 80%;
  96. background: #E4E4E4;
  97. border-radius: 100rpx;
  98. box-sizing: border-box;
  99. padding: 0rpx 20rpx;
  100. color: #707070;
  101. &:nth-child(2){
  102. margin-top: 70rpx;
  103. }
  104. .title {
  105. font-size: 30rpx;
  106. width: 160rpx;
  107. }
  108. .text {
  109. display: block;
  110. height: 75rpx;
  111. width: calc(100% - 160rpx);
  112. }
  113. }
  114. .btn {
  115. display: flex;
  116. align-items: center;
  117. justify-content: center;
  118. width: 80%;
  119. background: $main-color;
  120. color: white;
  121. height: 100rpx;
  122. border-radius: 50rpx;
  123. margin: 90rpx auto 60rpx auto;
  124. }
  125. }
  126. // 说明
  127. .autonym-info {
  128. display: flex;
  129. align-items: center;
  130. width: 90%;
  131. margin: 30rpx auto 0rpx auto;
  132. background: #F3F3F3;
  133. .autonum-info-icon {
  134. width: 30rpx;
  135. }
  136. .text {
  137. width: calc(100% - 20rpx);
  138. font-size: 24rpx;
  139. color: #707070;
  140. box-sizing: border-box;
  141. padding-left: 10rpx;
  142. }
  143. }
  144. }
  145. </style>