Commit fb5fe92a by wangyalan-git

领用记录

parent 13cd3522
......@@ -7,7 +7,7 @@
<div class="wrap">
<p>我的动态二维码</p>
</div>
<div id="qrcode" class="qr" @click="generateQrcode"></div>
<div id="qrcode" class="qr"></div>
<p class="notice" v-if="onlyId">领用办公用品时请出示该二维码</p>
</div>
</div>
......@@ -23,11 +23,13 @@ export default {
components: {},
data () {
return {
onlyId: null
onlyId: null,
timer: ''
}
},
mounted () {
this.generateQrcode()
this.timer = setInterval(this.generateQrcode(), 1000)
// this.generateQrcode()
},
methods: {
generateQrcode () {
......@@ -57,6 +59,9 @@ export default {
path: '/receiveRecords'
})
}
},
beforeDestroy () {
clearInterval(this.timer)
}
}
</script>
......
......@@ -4,7 +4,6 @@
<div class="container">
<van-pull-refresh class="width_100" v-model="refreshing" @refresh="onRefresh">
<van-list
:immediate-check="false"
v-model="loading"
:finished="finished"
finished-text="没有更多了"
......@@ -24,6 +23,7 @@
</div>
</div>
</van-list>
<div v-if="!list.length">暂无领用记录</div>
</van-pull-refresh>
</div>
......@@ -46,7 +46,7 @@ export default {
refreshing: false,
params: {
pageNum: 1,
pageSize: 5
pageSize: 10
}
}
},
......@@ -73,6 +73,7 @@ export default {
},
onLoad () {
console.log('onload')
// this.finished = true
if (this.refreshing) {
this.list = []
this.params.pageNum = 1
......@@ -109,6 +110,7 @@ export default {
}
.width_100 {
width: 100%;
height: 100%;
}
.row {
......
......@@ -31,8 +31,8 @@ export default {
mounted () {
this.jobNo = this.$route.query.jobNo
this.ticket = this.$route.query.ticket
// this.getToken()
this.getTicketLogin()
this.getToken()
// this.getTicketLogin()
},
methods: {
getToken () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment