rt-sim-training-client/src/views/orderauthor/permission/create/qCode.vue

57 lines
1.1 KiB
Vue
Raw Normal View History

2019-09-18 18:39:55 +08:00
<template>
<div>
<div class="pack-box">
<div style="text-align:center; margin:auto; margin-top: 35px;">
2019-12-10 10:27:29 +08:00
<qrcode-vue v-loading="loading" :value="url" :size="400" />
2019-09-18 18:39:55 +08:00
</div>
</div>
<div class="draft">
<el-button-group>
<el-button @click="turnback">{{ $t('orderAuthor.back') }}</el-button>
2019-09-18 18:39:55 +08:00
</el-button-group>
</div>
</div>
</template>
<script>
import QrcodeVue from 'qrcode.vue';
export default {
name: 'QCode',
components: {
QrcodeVue
},
data() {
return {
loading: false,
url: ''
};
},
mounted() {
2019-09-18 18:39:55 +08:00
},
methods: {
qrCodeShow(data) { // 生成二维码
this.url = data.url;
},
turnback() {
this.$router.go(-1);
}
}
2019-09-18 18:39:55 +08:00
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.pack-rule {
width: 800px;
margin: 0 auto;
margin-top: 12px;
padding: 40px;
}
.draft {
width: 400px;
text-align: center;
margin: 20px auto;
}
</style>