index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="safeArea">
  3. <nav-bar title="模拟考试-一级建造师-管理"></nav-bar>
  4. <view class="examWrap">
  5. <view class="title">距离管理开考还有</view>
  6. <view class="circle">
  7. <image class="img" mode="widthFix" src="../static/time-circle.png"></image>
  8. <view class="time">08:56</view>
  9. </view>
  10. <view class="btn" @click="examBank()" :class="{disabled:state}">开始考试</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import { mapGetters } from 'vuex';
  16. export default {
  17. components: {
  18. },
  19. data() {
  20. return {
  21. state:1,
  22. };
  23. },
  24. onLoad(){
  25. },
  26. onShow() {
  27. },
  28. methods: {
  29. examBank() {
  30. uni.navigateTo({
  31. url:'../examReport/index'
  32. })
  33. }
  34. },
  35. onReachBottom() {},
  36. computed: { ...mapGetters(['userInfo']) }
  37. };
  38. </script>
  39. <style >
  40. page {
  41. background: #EAEEF1;
  42. }
  43. </style>
  44. <style scoped lang="scss">
  45. .examWrap{
  46. padding: 16rpx;
  47. .title {
  48. margin-top:70rpx;
  49. font-size: 32rpx;
  50. color: #666666;
  51. line-height: 48rpx;
  52. text-align: center;
  53. }
  54. .circle {
  55. margin:60rpx auto 0;
  56. width:480rpx;
  57. height:480rpx;
  58. position:relative;
  59. background: #fff;
  60. border-radius:50%;
  61. .img {
  62. width:448rpx;
  63. height:448rpx;
  64. position:absolute;
  65. left:50%;
  66. top:50%;
  67. transform: translate3D(-50%,-50%,0);
  68. }
  69. .time {
  70. width:100%;
  71. height:100%;
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. position:relative;
  76. z-index: 999;
  77. font-size: 80rpx;
  78. text-align: center;
  79. font-weight: bold;
  80. color: #333333;
  81. }
  82. }
  83. .btn {
  84. margin:330rpx auto 0;
  85. width: 528rpx;
  86. height: 80rpx;
  87. background: #007AFF;
  88. border-radius: 40rpx;
  89. text-align: center;
  90. line-height: 80rpx;
  91. color:#fff;
  92. &.disabled {
  93. background:#ccc;
  94. }
  95. }
  96. }
  97. </style>