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

207 lines
6.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="auth-person">
  3. <!--顶部导航栏-->
  4. <navbar leftClick @leftClick="$utils.navigateBack" title="认证个人" />
  5. <!--身份信息页面-->
  6. <view class="container">
  7. <view class="form-item">
  8. <view class="label">姓名</view>
  9. <view class="input">
  10. <input type="text" v-model="certifiedIndividual.name" />
  11. </view>
  12. </view>
  13. <uv-divider :hairline="false" lineColor="#c0c0c0" dot></uv-divider>
  14. <view class="form-item">
  15. <view class="label">身份证号</view>
  16. <view class="input">
  17. <input type="text" v-model="certifiedIndividual.card" />
  18. </view>
  19. </view>
  20. <uv-divider :hairline="false" lineColor="#c0c0c0" dot></uv-divider>
  21. </view>
  22. <!--下一步按钮-->
  23. <button @click="onNextClick" class="bottomBtn"
  24. v-if="certifiedIndividual.state != 1">
  25. 立即认证
  26. </button>
  27. <confirmationPopup ref="confirmationPopup" title="提示" cancel :cancelText="cancelText[type]" @confirm="submit"
  28. round="0" @cancel="$refs.confirmationPopup.close()" :confirmText="confirmText[type]">
  29. <view class="confirmationPopup" v-if="type == 0">
  30. <!-- 电子认证服务协议
  31. 数字证书(以下简称证书)是电子商务认证有限公司(以下简称广东)签发的网上凭证是为身份确实资信可靠的个人单位和服务器等在网上进行安全电子交易安全电子事务处理等提供的一种身份认证凡企业机关团体行政事业等单位个人和服务器数字证书申请人(以下简称证书申请人)均可向广东业务受理审批单位申请领用数字证书为了保障数字证书申请人的合法权利维护电子商务认证有限公司的合法经营权益双方本着自愿平等的原则达成以下协议书条款双方共同遵守执行第三方认证是
  32. XX制造网为其XX通会员提供的一项以标准化审核认证为主要内容的服务
  33. 含资质认证与实地认证
  34. 实地认证的审核认证服务内容要包括会员的工商注册信息销售贸易能力和()产品设计开发能力体系和产品认证生产能力和质量管理实景照片等内容资质认证的审核认证服务内容主要包括会员的工商注册信息经营资
  35. 生产许可资质等内容
  36. 第三方认证审核分为初次审核和年度复审两种类型初次审核是指对会员进行首次审核并出具报告年度复审是指为了认证保证报告所反映的实际情况的时效性而对会员进行的每年一次的复审XX制造网根据用户提交的服务申请及用户进行的自评情况与用户确定服务购买意向并签署合同用户支付相应费用后XX制造网委托第三方认证机构在约定的日期进行审核并出具相应的认证报告XX制造网将使用专有标识对通过审核
  37. 的用户的展示厅进行标注 -->
  38. <uv-parse :content="content"></uv-parse>
  39. </view>
  40. <view class="confirmationPopup" style="padding: 70rpx 20rpx;" v-if="type == 1">
  41. 本次认证需付费确认
  42. </view>
  43. </confirmationPopup>
  44. <!-- 平台审核弹框 -->
  45. <confirmationPopup ref="confirmationPopupUpload" title="提示" confirmText="确认" @confirm="confirm()">
  46. <view class="confirmationPopup">
  47. <image src="/static/image/publish/upload.png" style="width: 150rpx;height: 150rpx;" mode=""></image>
  48. <view class="info">
  49. 已由平台进行审核时间周期为24小时
  50. </view>
  51. </view>
  52. </confirmationPopup>
  53. </view>
  54. </template>
  55. <script>
  56. import '../../common.css'; // 引入公共 CSS 文件
  57. import {
  58. mapState
  59. } from 'vuex'
  60. import confirmationPopup from '@/components/toast/confirmationPopup.vue'
  61. export default {
  62. components: {
  63. confirmationPopup,
  64. },
  65. data() {
  66. return {
  67. type: 0,
  68. cancelText: ['不同意', '取消'],
  69. confirmText: ['同意', '同意并支付'],
  70. authMoney: 0,
  71. content: '',
  72. }
  73. },
  74. computed: {
  75. ...mapState(['certifiedIndividual', 'configList']),
  76. },
  77. mounted() {
  78. this.openConfigMenu("getPrivacyPolicy")
  79. },
  80. methods: {
  81. //打开配置信息菜单
  82. openConfigMenu(key) {
  83. this.content = this.configList[key]
  84. },
  85. onCameraClick() {
  86. // 添加拍照或选择图片的逻辑
  87. },
  88. onNextClick() {
  89. if (this.$utils.verificationAll(this.certifiedIndividual, {
  90. imageReverseSide: '请上传身份证背面',
  91. imageStraight: '请上传身份证正面',
  92. card: '请输入身份证号',
  93. name: '请输入姓名',
  94. })) {
  95. return
  96. }
  97. this.$refs.confirmationPopup.open()
  98. },
  99. submit() {
  100. this.$refs.confirmationPopup.close()
  101. if (this.type == 0) {
  102. setTimeout(() => {
  103. this.type = 1
  104. this.$refs.confirmationPopup.open()
  105. }, 500)
  106. } else {
  107. this.$api('infoSubmitCertification',
  108. this.certifiedIndividual,
  109. res => {
  110. if (res.code == 200) {
  111. // 认证审核不通过
  112. if(this.certifiedIndividual.state == 2){
  113. return self.$refs.confirmationPopupUpload.open()
  114. }
  115. const self = this
  116. uni.requestPayment({
  117. provider: 'wxpay', // 服务提提供商
  118. timeStamp: res.result.timeStamp, // 时间戳
  119. nonceStr: res.result.nonceStr, // 随机字符串
  120. package: res.result.packageValue,
  121. signType: res.result.signType, // 签名算法
  122. paySign: res.result.paySign, // 签名
  123. success: function(res) {
  124. self.$refs.confirmationPopupUpload.open()
  125. },
  126. fail: function(err) {
  127. console.log('支付失败', err);
  128. self.$refs.confirmationPopup.close()
  129. uni.showToast({
  130. icon: 'none',
  131. title: "支付失败"
  132. })
  133. }
  134. });
  135. }
  136. })
  137. }
  138. },
  139. confirm() {
  140. uni.redirectTo({
  141. url: '/pages/index/center'
  142. })
  143. },
  144. }
  145. }
  146. </script>
  147. <style scoped lang="scss">
  148. * {
  149. box-sizing: border-box;
  150. margin: 0;
  151. padding: 0;
  152. }
  153. .confirmationPopup {
  154. max-height: 60vh;
  155. overflow-y: auto;
  156. overflow-x: hidden;
  157. width: 600rpx;
  158. padding: 20rpx;
  159. text-align: center;
  160. }
  161. .auth-person {
  162. .container {
  163. padding: 100rpx 50rpx 50rpx 50rpx;
  164. //border: 1px solid red;
  165. .header {
  166. margin-bottom: 40rpx;
  167. font-size: 28rpx;
  168. color: #666;
  169. }
  170. .form-item {
  171. margin-bottom: 40rpx;
  172. .label {
  173. font-size: 36rpx;
  174. margin-bottom: 10px;
  175. display: block;
  176. }
  177. .input {
  178. font-size: 30rpx;
  179. margin-top: 40rpx;
  180. background-color: #f7f7f7;
  181. padding: 20rpx;
  182. border: 1px solid #66666633;
  183. }
  184. }
  185. }
  186. }
  187. </style>