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.
 
 
 
 
 
 

40 lines
651 B

  1. <template>
  2. <view class="page">
  3. <view class="btn" @click="tapScan">
  4. 扫码
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import scanCodeFun from '@/common/js/scanCodeFun.js';
  10. export default {
  11. data() {
  12. return {}
  13. },
  14. methods:{
  15. init() {
  16. let _this = this;
  17. scanCodeFun.scanCodeFun().then(res => {
  18. if(!res) return;
  19. this.NAV_TO('./from', { StuNo: res.result }, true);
  20. })
  21. },
  22. tapScan() {
  23. this.init();
  24. }
  25. },
  26. mounted() {
  27. let _this = this;
  28. setTimeout(function() {
  29. _this.init();
  30. }, 100);
  31. }
  32. };
  33. </script>
  34. <style lang="less" scoped>
  35. @import '~@/common/css/sidepage.less';
  36. @import '~@/common/css/customlist.less';
  37. </style>