singup.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view v-if="show">
  3. <view class="top">
  4. <image :src="limitState == 0? image[0] : image[1]" mode="widthFix" style="width: 450rpx;"></image>
  5. <text class="text">{{ limitState == 1? '抱歉 报名失败' : '恭喜 获取报名资格' }}</text>
  6. </view>
  7. <view class="submit_container">
  8. <view
  9. @click="topayNext"
  10. class="sign_up flexC"
  11. >
  12. 下一步
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import { _API_HuiFuCheck } from '../../apis/szy.js';
  19. export default {
  20. data() {
  21. return {
  22. image: [
  23. require('../../static/icon/szySuc.png'),
  24. require('../../static/icon/szyErr.png')
  25. ],
  26. show: true,
  27. limitState: 0, //是否为不报名,0报名,1排队
  28. season: '',
  29. id: ''
  30. }
  31. },
  32. methods: {
  33. // 查询报名信息
  34. topayNext() {
  35. uni.showLoading()
  36. _API_HuiFuCheck().then(res => {
  37. uni.hideLoading()
  38. if (res.code == 200) {
  39. uni.navigateTo({
  40. url: './bankPay?id=' + res.data.id
  41. })
  42. } else if (res.code == 50014) {
  43. uni.showModal({
  44. title: '提示',
  45. content: '检测到您还未绑定银行卡,请前往绑定',
  46. showCancel: false,
  47. success: (res) => {
  48. if (res.confirm) {
  49. uni.navigateTo({
  50. url: '../zbs/form?type=2'
  51. })
  52. }
  53. }
  54. })
  55. return
  56. } else {
  57. uni.showModal({
  58. content: res.message || '获取失败',
  59. showCancel: false
  60. });
  61. return false;
  62. }
  63. })
  64. },
  65. }
  66. }
  67. </script>
  68. <style>
  69. page {
  70. background-color: #fff !important;
  71. }
  72. </style>
  73. <style lang="scss" scoped>
  74. .top {
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. background-color: #fff;
  79. border-radius: 24rpx 24rpx 0px 0px;
  80. margin-top: -54rpx;
  81. padding-top: 30%;
  82. .text {
  83. font-size: 52rpx;
  84. font-weight: bold;
  85. color: #333;
  86. margin: 20rpx 0 0 0;
  87. }
  88. }
  89. .submit_container {
  90. width: 100%;
  91. position: fixed;
  92. left: 0;
  93. bottom: 0;
  94. z-index: 9999;
  95. height: 118rpx;
  96. display: flex;
  97. align-items: center;
  98. background-color: #fff;
  99. border-top: 2rpx solid #EEEEEE;
  100. .sign_up {
  101. width: 690rpx;
  102. height: 90rpx;
  103. margin: 0 auto;
  104. background: linear-gradient(93deg, #FF232C 0%, #FF571B 100%);
  105. font-size: 36rpx;
  106. border-radius: 45rpx;
  107. color: #ffffff;
  108. }
  109. }
  110. </style>