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>
|
2019-09-19 17:22:48 +08:00
|
|
|
<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 {
|
2019-10-29 17:33:11 +08:00
|
|
|
name: 'QCode',
|
|
|
|
components: {
|
|
|
|
QrcodeVue
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
loading: false,
|
|
|
|
url: ''
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
2019-09-18 18:39:55 +08:00
|
|
|
|
2019-10-29 17:33:11 +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>
|