applyRecord.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view>
  3. <view class="sticky-nav">
  4. <view class="nav-box">
  5. <u-icon name="arrow-left" color="#000" size="48" @click="backHome()"></u-icon>
  6. <text class="apply-record">申请记录</text>
  7. </view>
  8. </view>
  9. <view v-if="!ifApply" class="empty_data_box">
  10. <view>
  11. <image src="../../../static/index/gongdeng/empty_data_icon.png" class="empty_data_img"></image>
  12. <view class="empty_data_tip">暂无申请记录</view>
  13. </view>
  14. <view class="apply_btn" @click="applyJoin">申请加入</view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default{
  20. data(){
  21. return{
  22. ifApply: false
  23. }
  24. },
  25. methods:{
  26. backHome() {
  27. uni.navigateBack({
  28. delta: 1
  29. });
  30. },
  31. applyJoin(){
  32. uni.navigateTo({
  33. url: '../answer/applyForm'
  34. });
  35. }
  36. }
  37. }
  38. </script>
  39. <style>
  40. page{
  41. background-color: rgb(247, 246, 242);
  42. }
  43. </style>
  44. <style lang="less" scoped>
  45. .sticky-nav {
  46. position: sticky;
  47. width: 100%;
  48. top: 0;
  49. z-index: 1;
  50. }
  51. .nav-box {
  52. width: 100%;
  53. padding-top: 50rpx;
  54. display: flex;
  55. align-items: center;
  56. background: #fff;
  57. height: 100rpx;
  58. padding-bottom: 50rpx;
  59. /deep/.u-icon{
  60. margin-left: 20rpx!important;
  61. }
  62. .apply-record {
  63. font-size: 38rpx;
  64. color: #000;
  65. margin-left: 250rpx;
  66. }
  67. }
  68. .empty_data_box {
  69. width: 100%;
  70. height: 91vh;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. .empty_data_img {
  75. width: 246rpx;
  76. height: 122rpx;
  77. }
  78. .empty_data_tip {
  79. text-align: center;
  80. font-size: 35rpx;
  81. }
  82. .apply_btn{
  83. width:675rpx;
  84. height:90rpx;
  85. line-height: 90rpx;
  86. text-align: center;
  87. position: fixed;
  88. bottom: 85rpx;
  89. background-color: rgb(204,173,81);
  90. color: #fff;
  91. border-radius: 12rpx;
  92. font-size: 35rpx;
  93. }
  94. }
  95. </style>