|
123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <view class="page">
- <view class="btn" @click="tapScan">
- 扫码
- </view>
- </view>
- </template>
-
- <script>
- import scanCodeFun from '@/common/js/scanCodeFun.js';
- export default {
- data() {
- return {}
- },
- methods:{
- init() {
- let _this = this;
- scanCodeFun.scanCodeFun().then(res => {
- if(!res) return;
- this.NAV_TO('./from', { StuNo: res.result }, true);
- })
- },
- tapScan() {
- this.init();
- }
- },
- mounted() {
- let _this = this;
- setTimeout(function() {
- _this.init();
- }, 100);
- }
- };
- </script>
-
- <style lang="less" scoped>
- @import '~@/common/css/sidepage.less';
- @import '~@/common/css/customlist.less';
- </style>
|