You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
1.7 KiB

  1. <template>
  2. <view class="container">
  3. <image class="logo" src="@/static/xc-logo.png" mode="widthFix"></image>
  4. <image class="titlelogo" src="@/static/img-stuEnter/titlelogo.png" mode="widthFix"></image>
  5. <image class="btn" src="@/static/img-stuEnter/scanbtn.png" mode="widthFix" @click="tapScan"></image>
  6. <!-- <view class="page">
  7. <view class="btn scanCodeBtn" @click="tapScan">扫码</view>
  8. </view> -->
  9. <scanCode ref="refScanCode"></scanCode>
  10. </view>
  11. </template>
  12. <script>
  13. import scanCode from "@/components/scanCode.vue"
  14. export default {
  15. components:{scanCode},
  16. data() {
  17. return {};
  18. },
  19. methods: {
  20. tapScan() {
  21. this.$refs['refScanCode'].scanCode().then(res=>{
  22. if (!res) return;
  23. // var userInfo = this.GET_GLOBAL("loginUser");
  24. this.NAV_TO('./from', { StuNo: res.result }, true);
  25. // var result = this.HTTP_GET(
  26. // "learun/adms/EducationalAdministration/StuInfoBasic/stuinfo",
  27. // {
  28. // userid: userInfo.userId,
  29. // meetid: res.result,
  30. // },
  31. // "扫码出错"
  32. // ).then(res1=>{
  33. // this.TOAST(res1.result)
  34. // })
  35. })
  36. },
  37. },
  38. created() {
  39. this.NAV_TO('./from', { StuNo: res.result }, true);
  40. }
  41. };
  42. </script>
  43. <style lang="less" scoped>
  44. // @import "~@/common/css/sidepage.less";
  45. // @import "~@/common/css/customlist.less";
  46. // .scanCodeBtn{
  47. // width: 120px;
  48. // height: 120px;
  49. // border-radius: 50%;
  50. // line-height: 120px;
  51. // }
  52. .logo{
  53. width: 258px;
  54. }
  55. .titlelogo{
  56. width: 268px;
  57. margin-top: 52px;
  58. margin-bottom: 20px;
  59. }
  60. .btn{
  61. width: 184px;
  62. }
  63. .container{
  64. height: 100vh;
  65. text-align: center;
  66. box-sizing: border-box;
  67. background-image: url("@/static/stu-bg.png");
  68. background-repeat: no-repeat;
  69. background-size: 100%;
  70. background-color: #0c86d8;
  71. }
  72. </style>