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

221 lines
5.1 KiB

11 months ago
9 months ago
11 months ago
9 months ago
11 months ago
9 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. 我已阅读并同意签署 <text @click="$refs.popup.open('getPrivacyPolicy')">服务协议与隐私条款</text>
  39. <text @click="$refs.popup.open('getUserAgreement')">个人信息保护指引</text>
  40. </view> -->
  41. <view class="config">
  42. <uv-checkbox-group
  43. v-model="checkboxValue"
  44. shape="circle">
  45. <view class="content">
  46. <view
  47. style="display: flex;">
  48. <uv-checkbox
  49. size="30rpx"
  50. :name="1"
  51. ></uv-checkbox>
  52. 阅读并同意我们的<text @click="openConfigDetail('getPrivacyPolicy')">服务协议与隐私条款</text>
  53. </view>
  54. <view class="">
  55. 以及<text @click="openConfigDetail('getUserAgreement')">个人信息保护指引</text>
  56. </view>
  57. </view>
  58. </uv-checkbox-group>
  59. </view>
  60. <configPopup ref="popup"></configPopup>
  61. </view>
  62. </template>
  63. <script>
  64. import {
  65. mapState
  66. } from 'vuex'
  67. export default {
  68. onLoad: function(options) {
  69. this.type = options.type;
  70. },
  71. computed: {
  72. ...mapState(['certifiedIndividual']),
  73. },
  74. data() {
  75. return {
  76. checkboxValue: [],
  77. labelValue: '', // 如果labelValue为空,则不会显示任何内容
  78. type: '',
  79. };
  80. },
  81. methods: {
  82. uploadImage(key) {
  83. this.$Oss.ossUploadImage({
  84. success: url => {
  85. console.log(url, "url");
  86. this.certifiedIndividual[key] = url
  87. }
  88. })
  89. },
  90. nowAuth() {
  91. if(!this.checkboxValue.length){
  92. return uni.showToast({
  93. title: '请先同意隐私协议',
  94. icon:'none'
  95. })
  96. }
  97. if (!this.certifiedIndividual.imageReverseSide) {
  98. return uni.showToast({
  99. title: '请上传身份证背面',
  100. icon: 'none'
  101. })
  102. }
  103. if (!this.certifiedIndividual.imageStraight) {
  104. return uni.showToast({
  105. title: '请上传身份证正面',
  106. icon: 'none'
  107. })
  108. }
  109. // uni.redirectTo({
  110. // url: '/pages_mine/mine/authPerson'
  111. // })
  112. // 根据type跳转到不同页面(个人认证/企业认证)
  113. if (this.type == "person") {
  114. uni.redirectTo({
  115. url: '/pages_mine/mine/authPerson'
  116. })
  117. // this.$utils.navigateTo('/mine/authPerson')
  118. } else if (this.type == "firm") {
  119. uni.redirectTo({
  120. url: '/pages_mine/mine/authFirm'
  121. })
  122. // this.$utils.navigateTo('/mine/authFirm')
  123. }
  124. }
  125. }
  126. }
  127. </script>
  128. <style lang="scss" scoped>
  129. .certified-individual {
  130. .content {
  131. padding: 40rpx;
  132. .title {
  133. display: flex;
  134. font-size: 30rpx;
  135. .image {
  136. display: flex;
  137. align-items: flex-start;
  138. width: 10vw;
  139. height: 3vh;
  140. }
  141. }
  142. .center {
  143. display: flex;
  144. flex-direction: column;
  145. justify-content: center;
  146. align-items: center;
  147. gap: 150rpx;
  148. margin-top: 15%;
  149. .avatarFace {
  150. width: 80vw;
  151. height: 20vh;
  152. }
  153. .reverseSide {
  154. width: 80vw;
  155. height: 20vh;
  156. }
  157. }
  158. }
  159. .bottomBtn {
  160. position: fixed;
  161. bottom: 15%;
  162. left: 25%;
  163. width: 50%;
  164. height: 60rpx;
  165. line-height: 60rpx;
  166. font-size: 30rpx;
  167. color: #FFFFFF;
  168. text-align: center;
  169. //border: 1px solid red;
  170. background: $uni-linear-gradient-color;
  171. -webkit-background-clip: text;
  172. /*将设置的背景颜色限制在文字中*/
  173. -webkit-text-fill-color: transparent;
  174. /*给文字设置成透明*/
  175. }
  176. // .agree {
  177. // position: fixed;
  178. // bottom: 7%;
  179. // left: 15%;
  180. // display: flex;
  181. // font-size: 26rpx;
  182. // justify-content: center;
  183. // //border: 1px solid red;
  184. // }
  185. .config{
  186. position: fixed;
  187. bottom: 20rpx;
  188. margin: 0 auto;
  189. font-size: 28rpx;
  190. text-align: center;
  191. line-height: 50rpx;
  192. text{
  193. color: #3c69f1;
  194. }
  195. }
  196. }
  197. </style>