approve_error.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="app-body">
  3. <view class="re-succ-box">
  4. <u-icon name="error-circle-fill" size="100" color="red"></u-icon>
  5. </view>
  6. <view class="re-succ-tite">{{ error }} </view>
  7. <view class="btn-box fx-r fx-bc">
  8. <view class="re-succ-btn" @tap="tapHome">返回首页</view>
  9. <view class="go-btn" @tap="tapRz">重新认证</view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import { mapState, mapMutations } from 'vuex';
  15. export default {
  16. data() {
  17. return {
  18. error : ""
  19. }
  20. },
  21. onLoad(options) {
  22. this.error = options.error || "";
  23. this.initView();
  24. },
  25. methods: {
  26. initView: function() {
  27. },
  28. tapRz:function(){
  29. uni.navigateTo({
  30. url:"/pages/user/approve"
  31. })
  32. },
  33. tapHome:function(){
  34. uni.reLaunch({
  35. url:"/pages/index/home"
  36. })
  37. }
  38. }
  39. }
  40. </script>
  41. <style>
  42. .re-succ-box{
  43. padding-top: 97px;
  44. display: flex;
  45. flex-direction: column;
  46. align-items: center;
  47. }
  48. .re-succ-box .re-succ-img{
  49. width: 207px;
  50. height: 153px;
  51. display: block;
  52. }
  53. .re-succ-tite {
  54. font-size: 22px;
  55. font-weight: 500;
  56. color: #333;
  57. margin-top: 30px;
  58. text-align: center;
  59. }
  60. .btn-box {
  61. margin-top: 45px;
  62. padding: 0 28px;
  63. }
  64. .btn-box .re-succ-btn {
  65. height: 45px;
  66. background: linear-gradient(180deg, #fd4646, #ff3535);
  67. border-radius: 22px;
  68. font-size: 20px;
  69. font-weight: 700;
  70. color: #fff;
  71. display: flex;
  72. width: calc(50% - 10px);
  73. margin-right: 8px;
  74. align-items: center;
  75. justify-content: center;
  76. }
  77. .go-btn {
  78. height: 45px;
  79. border: 1px solid #fd4646;
  80. border-radius: 22px;
  81. font-size: 20px;
  82. font-weight: 700;
  83. margin-left: 8px;
  84. color: #fd4646;
  85. width: calc(50% - 10px);
  86. display: flex;
  87. align-items: center;
  88. justify-content: center;
  89. }
  90. </style>