fail.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <div :class="mobile ? 'mobileMain' : ''" :style="{
  3. marginTop: mainMarginTop,
  4. marginBottom: mobile ? '0px' : '30px !important'
  5. }">
  6. <div class="name-cert-container page-center">
  7. <!-- 实名失败 -->
  8. <div class="name-cert-main">
  9. <div class="name-cert-title-area">
  10. <img class="name-cert-icon" :src="iconFail" />
  11. <h6 class="name-cert-title">实名认证失败</h6>
  12. <div class="name-cert-fail-btn">
  13. <el-button type="primary" class='cert-btn' size="medium" @click="reset">重新认证</el-button>
  14. </div>
  15. <p class="name-cert-fail-tips">无法进行支付宝认证?<a href="">人工认证</a></p>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. import {
  23. mapState
  24. } from "vuex";
  25. import qs from "qs";
  26. import icon from "@/assets/img/account/certicon@3x.png"
  27. import iconSuccess from "@/assets/img/account/cert_success_icon@3x.png"
  28. import iconFail from "@/assets/img/account/cert_fail_icon@3x.png"
  29. export default {
  30. name: "SeoLearnList",
  31. data() {
  32. return {
  33. baseUrl: "",
  34. mobile: false,
  35. isWeixinApp: true,
  36. icon,
  37. iconSuccess,
  38. iconFail,
  39. centerDialogVisible: false,
  40. };
  41. },
  42. head() {
  43. const {
  44. title = "认证失败",
  45. keyword = "",
  46. description = "",
  47. h1 = "",
  48. canonical = "",
  49. metaLocation
  50. } = this.head || {};
  51. let obj = {
  52. title: title,
  53. meta: [{
  54. name: "keywords",
  55. content: keyword
  56. },
  57. {
  58. name: "description",
  59. content: description
  60. },
  61. {
  62. name: "h1",
  63. content: h1
  64. }
  65. ],
  66. link: [{
  67. rel: "canonical",
  68. href: canonical
  69. }]
  70. };
  71. if (metaLocation) {
  72. obj.meta.push({
  73. name: "location",
  74. content: metaLocation
  75. });
  76. }
  77. return obj;
  78. },
  79. computed: {
  80. ...mapState(["deviceType"]),
  81. showWxHeader() {
  82. return (
  83. !this.deviceType.app &&
  84. !this.isWeixinApp &&
  85. (this.deviceType.android || this.deviceType.ios)
  86. );
  87. },
  88. mainMarginTop() {
  89. if (this.mobile && this.showWxHeader) {
  90. return "64px !important";
  91. } else if (this.mobile) {
  92. return "0px !important";
  93. } else {
  94. return "20px !important";
  95. }
  96. },
  97. userInfo() {
  98. return this.$store.state.userinfo;
  99. }
  100. },
  101. mounted() {
  102. this.home_page_type = this.userInfo.home_page_type;
  103. this.baseUrl = this.$store.state.domainConfig.siteUrl;
  104. this.isWeixinApp = navigator.userAgent.indexOf("miniProgram") > -1;
  105. document.body.style.background = "#fff"
  106. },
  107. methods: {
  108. reset() {
  109. // 跳转
  110. location.replace('/frontend/name_cert')
  111. }
  112. }
  113. };
  114. </script>
  115. <style lang="scss">
  116. @import "@/assets/css/name_cert/name_cert.scss";
  117. </style>