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

175 lines
4.4 KiB

11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
10 months ago
10 months ago
  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/4.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/5.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. console.log(url,"url");
  64. this.certifiedIndividual[key] = url
  65. }
  66. })
  67. },
  68. nowAuth() {
  69. if(!this.certifiedIndividual.imageReverseSide){
  70. return uni.showToast({
  71. title: '请上传身份证背面',
  72. icon: 'none'
  73. })
  74. }
  75. if(!this.certifiedIndividual.imageStraight){
  76. return uni.showToast({
  77. title: '请上传身份证正面',
  78. icon: 'none'
  79. })
  80. }
  81. // uni.redirectTo({
  82. // url: '/pages_mine/mine/authPerson'
  83. // })
  84. // 根据type跳转到不同页面(个人认证/企业认证)
  85. if (this.type == "person") {
  86. uni.redirectTo({
  87. url: '/pages_mine/mine/authPerson'
  88. })
  89. // this.$utils.navigateTo('/mine/authPerson')
  90. } else if (this.type == "firm") {
  91. uni.redirectTo({
  92. url: '/pages_mine/mine/authFirm'
  93. })
  94. // this.$utils.navigateTo('/mine/authFirm')
  95. }
  96. }
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. .certified-individual {
  102. .content {
  103. padding: 40rpx;
  104. .title {
  105. display: flex;
  106. font-size: 30rpx;
  107. .image {
  108. display: flex;
  109. align-items: flex-start;
  110. width: 10vw;
  111. height: 3vh;
  112. }
  113. }
  114. .center {
  115. display: flex;
  116. flex-direction: column;
  117. justify-content: center;
  118. align-items: center;
  119. gap: 150rpx;
  120. margin-top: 15%;
  121. .avatarFace {
  122. width: 80vw;
  123. height: 20vh;
  124. }
  125. .reverseSide {
  126. width: 80vw;
  127. height: 20vh;
  128. }
  129. }
  130. }
  131. .bottomBtn {
  132. position: fixed;
  133. bottom: 15%;
  134. left: 25%;
  135. width: 50%;
  136. height: 60rpx;
  137. line-height: 60rpx;
  138. font-size: 30rpx;
  139. color: #FFFFFF;
  140. text-align: center;
  141. //border: 1px solid red;
  142. background: $uni-linear-gradient-color;
  143. -webkit-background-clip: text;
  144. /*将设置的背景颜色限制在文字中*/
  145. -webkit-text-fill-color: transparent;
  146. /*给文字设置成透明*/
  147. }
  148. .agree {
  149. position: fixed;
  150. bottom: 7%;
  151. left: 15%;
  152. display: flex;
  153. font-size: 26rpx;
  154. justify-content: center;
  155. //border: 1px solid red;
  156. }
  157. }
  158. </style>