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

225 lines
5.2 KiB

11 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
11 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
11 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 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="$refs.popup.open('getPrivacyPolicy')">服务协议与隐私条款</text>
  53. </view>
  54. <view class="">
  55. 以及<text @click="$refs.popup.open('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. let self = this
  84. this.$Oss.ossUploadImage({
  85. success: url => {
  86. console.log(url, "url");
  87. this.certifiedIndividual[key] = url
  88. self.$forceUpdate()
  89. }
  90. })
  91. },
  92. nowAuth() {
  93. if(!this.checkboxValue.length){
  94. return uni.showToast({
  95. title: '请先同意隐私协议',
  96. icon:'none'
  97. })
  98. }
  99. if (!this.certifiedIndividual.imageReverseSide) {
  100. return uni.showToast({
  101. title: '请上传身份证背面',
  102. icon: 'none'
  103. })
  104. }
  105. if (!this.certifiedIndividual.imageStraight) {
  106. return uni.showToast({
  107. title: '请上传身份证正面',
  108. icon: 'none'
  109. })
  110. }
  111. // uni.redirectTo({
  112. // url: '/pages_mine/mine/authPerson'
  113. // })
  114. // 根据type跳转到不同页面(个人认证/企业认证)
  115. if (this.type == "person") {
  116. uni.redirectTo({
  117. url: '/pages_mine/mine/authPerson'
  118. })
  119. // this.$utils.navigateTo('/mine/authPerson')
  120. } else if (this.type == "firm") {
  121. uni.redirectTo({
  122. url: '/pages_mine/mine/authFirm'
  123. })
  124. // this.$utils.navigateTo('/mine/authFirm')
  125. }
  126. }
  127. }
  128. }
  129. </script>
  130. <style lang="scss" scoped>
  131. .certified-individual {
  132. .content {
  133. padding: 40rpx;
  134. .title {
  135. display: flex;
  136. font-size: 30rpx;
  137. .image {
  138. display: flex;
  139. align-items: flex-start;
  140. width: 10vw;
  141. height: 3vh;
  142. }
  143. }
  144. .center {
  145. display: flex;
  146. flex-direction: column;
  147. justify-content: center;
  148. align-items: center;
  149. gap: 80rpx;
  150. margin-top: 20rpx;
  151. .avatarFace {
  152. width: 600rpx;
  153. height: 300rpx;
  154. }
  155. .reverseSide {
  156. width: 600rpx;
  157. height: 300rpx;
  158. }
  159. }
  160. }
  161. .bottomBtn {
  162. // position: fixed;
  163. // bottom: 15%;
  164. // left: 25%;
  165. margin: 0 auto;
  166. margin-top: 50rpx;
  167. width: 50%;
  168. height: 60rpx;
  169. line-height: 60rpx;
  170. font-size: 30rpx;
  171. color: #FFFFFF;
  172. text-align: center;
  173. //border: 1px solid red;
  174. background: $uni-linear-gradient-color;
  175. -webkit-background-clip: text;
  176. /*将设置的背景颜色限制在文字中*/
  177. -webkit-text-fill-color: transparent;
  178. /*给文字设置成透明*/
  179. }
  180. // .agree {
  181. // position: fixed;
  182. // bottom: 7%;
  183. // left: 15%;
  184. // display: flex;
  185. // font-size: 26rpx;
  186. // justify-content: center;
  187. // //border: 1px solid red;
  188. // }
  189. .config{
  190. position: fixed;
  191. bottom: 20rpx;
  192. margin: 0 auto;
  193. font-size: 28rpx;
  194. text-align: center;
  195. line-height: 50rpx;
  196. text{
  197. color: #3c69f1;
  198. }
  199. }
  200. }
  201. </style>