index.vue 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view class="window-box">
  3. <ly-back :showBack="false"/>
  4. <view class="search w100 h100 flex-center-center">
  5. <view class="btn btn-primary" @click="search">扫码</view>
  6. <view class="btn btn-primary" @click="toSelect">手动选择</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script setup>
  11. import {reactive} from "vue";
  12. import {navTo, showToast} from "@/utils/app";
  13. const pD = reactive({
  14. title: '学生未激活',
  15. select: 0,
  16. selectMax: 1,
  17. })
  18. const queryForm = reactive({
  19. student_id: 0,
  20. })
  21. const search = () => {
  22. // queryForm.student_id = 2260
  23. }
  24. const selectHandle = (type) => {
  25. if (type === 'up') {
  26. type--
  27. if (type < 0) type = 0
  28. } else {
  29. type++
  30. if (type > pD.selectMax) type = 0
  31. }
  32. }
  33. const toSelect = () => {
  34. navTo('pages/classes/select')
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .info-item {
  39. display: flex;
  40. align-items: center;
  41. margin-bottom: 30rpx;
  42. &-label {
  43. margin-right: 50rpx;
  44. }
  45. }
  46. </style>