index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="safeArea">
  3. <view class="examWrap">
  4. <view class="examItem" @click="goAppointment">
  5. <view class="item">考试预约</view>
  6. <view class="item"><text class="num">3</text>个<u-icon name="arrow-right" color="#999999" size="28"></u-icon></view>
  7. </view>
  8. <view class="examItem" @click="goResult">
  9. <view class="item">考试成绩和证书</view>
  10. <view class="item"><u-icon name="arrow-right" color="#999999" size="28"></u-icon></view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import { mapGetters } from 'vuex';
  17. export default {
  18. components: {
  19. },
  20. data() {
  21. return {
  22. };
  23. },
  24. onShow() {
  25. },
  26. methods: {
  27. goAppointment(){
  28. this.$navTo.togo('/pages2/exam/exam_appointment');
  29. },
  30. goResult(){
  31. this.$navTo.togo('/pages2/exam/exam_result');
  32. }
  33. },
  34. onReachBottom() {},
  35. computed: { ...mapGetters(['userInfo']) }
  36. };
  37. </script>
  38. <style >
  39. page {
  40. background: #EAEEF1;
  41. }
  42. </style>
  43. <style scoped lang="scss">
  44. .examWrap{
  45. padding: 16rpx;
  46. .examItem{
  47. height: 80rpx;
  48. background: #FFFFFF;
  49. box-shadow: 0px 0px 16rpx 4rpx rgba(145, 156, 178, 0.1);
  50. border-radius: 16rpx;
  51. display: flex;
  52. justify-content: space-between;
  53. align-items: center;
  54. padding: 0 25rpx;
  55. font-size: 32rpx;
  56. font-family: PingFang SC;
  57. font-weight: 500;
  58. color: #333333;
  59. margin-bottom: 16rpx;
  60. .num{
  61. color:#007AFF;
  62. text-decoration: underline;
  63. margin-right: 5rpx;
  64. }
  65. }
  66. }
  67. </style>