|
@@ -32,27 +32,27 @@ export default {
|
32
|
32
|
},
|
33
|
33
|
|
34
|
34
|
mounted () {
|
35
|
|
- // const nfcCode = Android.getNfcCode()
|
36
|
|
- // console.log(nfcCode, '这是nfc卡号')
|
37
|
|
- // if (nfcCode) {
|
38
|
|
- // register(nfcCode).then((res) => {
|
39
|
|
- // console.log('页面刷新的,重新调用列表数据了')
|
40
|
|
- // if (res.code === 200) {
|
41
|
|
- // console.log('打卡成功!!!!!')
|
42
|
|
- // this.$notify({
|
43
|
|
- // type: 'success',
|
44
|
|
- // message: res.msg,
|
45
|
|
- // duration: 1500
|
46
|
|
- // })
|
47
|
|
- // }
|
48
|
|
- // }).catch(err => {
|
49
|
|
- // console.log(err, '走到错误了')
|
50
|
|
- // })
|
51
|
|
- // this.areaList()
|
52
|
|
- // }
|
53
|
|
- // this.nfcTime = setInterval(() => {
|
54
|
|
- // this.getNfc()
|
55
|
|
- // }, 1000)
|
|
35
|
+ const nfcCode = Android.getNfcCode()
|
|
36
|
+ console.log(nfcCode, '这是nfc卡号')
|
|
37
|
+ if (nfcCode) {
|
|
38
|
+ register(nfcCode).then((res) => {
|
|
39
|
+ console.log('页面刷新的,重新调用列表数据了')
|
|
40
|
+ if (res.code === 200) {
|
|
41
|
+ console.log('打卡成功!!!!!')
|
|
42
|
+ this.$notify({
|
|
43
|
+ type: 'success',
|
|
44
|
+ message: res.msg,
|
|
45
|
+ duration: 1500
|
|
46
|
+ })
|
|
47
|
+ }
|
|
48
|
+ }).catch(err => {
|
|
49
|
+ console.log(err, '走到错误了')
|
|
50
|
+ })
|
|
51
|
+ this.areaList()
|
|
52
|
+ }
|
|
53
|
+ this.nfcTime = setInterval(() => {
|
|
54
|
+ this.getNfc()
|
|
55
|
+ }, 1000)
|
56
|
56
|
this.areaList()
|
57
|
57
|
},
|
58
|
58
|
beforeDestroy () {
|