帧视界壹通告,付费看视频的微信小程序
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.

174 lines
4.4 KiB

  1. <template>
  2. <view class="certified-individual">
  3. <!--顶部导航栏-->
  4. <navbar leftClick @leftClick="$utils.navigateBack" title="上传身份证信息"/>
  5. <!--内容区域-->
  6. <view class="content">
  7. <view class="title">
  8. <view class="image">
  9. <image src="../static/auth/1.svg" style="width: 100%;height: 100%"></image>
  10. </view>
  11. 请确保二代身份证有效,并且头像文字清晰四角对齐,无反光无遮挡
  12. </view>
  13. <view class="center">
  14. <view class="avatarFace" @click="uploadImage('imageStraight')">
  15. <image v-if="certifiedIndividual.imageStraight" :src="certifiedIndividual.imageStraight"
  16. style="width: 100%;height: 100%"></image>
  17. <image v-else src="../static/auth/2.png" style="width: 100%;height: 100%"></image>
  18. </view>
  19. <view class="reverseSide" @click="uploadImage('imageReverseSide')">
  20. <image v-if="certifiedIndividual.imageReverseSide" :src="certifiedIndividual.imageReverseSide"
  21. style="width: 100%;height: 100%"></image>
  22. <image v-else src="../static/auth/2.png" style="width: 100%;height: 100%"></image>
  23. </view>
  24. </view>
  25. </view>
  26. <!--立即认证按钮-->
  27. <view @click="nowAuth" class="bottomBtn">
  28. 立即认证
  29. </view>
  30. <!--人脸识别服务协议-->
  31. <view class="agree">
  32. <uv-checkbox-group v-model="checkboxValue" placement="column" size="35" activeColor="#008000"
  33. inactiveColor="#999999">
  34. <uv-checkbox shape='circle' :checked="true" name="apple" :label="labelValue ? labelValue : ''"
  35. iconSize="35">
  36. </uv-checkbox>
  37. </uv-checkbox-group>
  38. 我已阅读并同意签署 <span style="color:#009dff">服务协议</span>
  39. <span style="color:#009dff">隐私政策</span>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import {mapState} from 'vuex'
  45. export default {
  46. onLoad: function (options) {
  47. this.type = options.type;
  48. },
  49. computed: {
  50. ...mapState(['certifiedIndividual']),
  51. },
  52. data() {
  53. return {
  54. checkboxValue: [],
  55. labelValue: '', // 如果labelValue为空,则不会显示任何内容
  56. type: '',
  57. };
  58. },
  59. methods: {
  60. uploadImage(key) {
  61. this.$Oss.ossUploadImage({
  62. success: url => {
  63. this.certifiedIndividual[key] = url
  64. }
  65. })
  66. },
  67. nowAuth() {
  68. // if(!this.certifiedIndividual.imageReverseSide){
  69. // return uni.showToast({
  70. // title: '请上传身份证背面',
  71. // icon: 'none'
  72. // })
  73. // }
  74. // if(!this.certifiedIndividual.imageStraight){
  75. // return uni.showToast({
  76. // title: '请上传身份证正面',
  77. // icon: 'none'
  78. // })
  79. // }
  80. // uni.redirectTo({
  81. // url: '/pages_mine/mine/authPerson'
  82. // })
  83. // 根据type跳转到不同页面(个人认证/企业认证)
  84. if (this.type == "person") {
  85. uni.redirectTo({
  86. url: '/pages_mine/mine/authPerson'
  87. })
  88. // this.$utils.navigateTo('/mine/authPerson')
  89. } else if (this.type == "firm") {
  90. uni.redirectTo({
  91. url: '/pages_mine/mine/authFirm'
  92. })
  93. // this.$utils.navigateTo('/mine/authFirm')
  94. }
  95. }
  96. }
  97. }
  98. </script>
  99. <style lang="scss" scoped>
  100. .certified-individual {
  101. .content {
  102. padding: 40rpx;
  103. .title {
  104. display: flex;
  105. font-size: 30rpx;
  106. .image {
  107. display: flex;
  108. align-items: flex-start;
  109. width: 10vw;
  110. height: 3vh;
  111. }
  112. }
  113. .center {
  114. display: flex;
  115. flex-direction: column;
  116. justify-content: center;
  117. align-items: center;
  118. gap: 150rpx;
  119. margin-top: 15%;
  120. .avatarFace {
  121. width: 80vw;
  122. height: 20vh;
  123. }
  124. .reverseSide {
  125. width: 80vw;
  126. height: 20vh;
  127. }
  128. }
  129. }
  130. .bottomBtn {
  131. position: fixed;
  132. bottom: 15%;
  133. left: 25%;
  134. width: 50%;
  135. height: 60rpx;
  136. line-height: 60rpx;
  137. font-size: 30rpx;
  138. color: #FFFFFF;
  139. text-align: center;
  140. //border: 1px solid red;
  141. background: $uni-linear-gradient-color;
  142. -webkit-background-clip: text;
  143. /*将设置的背景颜色限制在文字中*/
  144. -webkit-text-fill-color: transparent;
  145. /*给文字设置成透明*/
  146. }
  147. .agree {
  148. position: fixed;
  149. bottom: 7%;
  150. left: 15%;
  151. display: flex;
  152. font-size: 26rpx;
  153. justify-content: center;
  154. //border: 1px solid red;
  155. }
  156. }
  157. </style>