<template>
<!-- 操作指南-->
<div class="operationGuide">
<navbar :name="name"/>
<div class="box flex-between">
<div class="picture" v-show="name=='U盘打印'">
<img class="icon" src="../assets/typeUp.png" />
<div class="flex-between name">
<div>U盘</div>
<div>USB接口</div>
</div>
</div>
<div class="picture flex-center" v-show="name=='扫描打印'">
<img src="../assets/typeSMFY.png" />
</div>
<div class="picture" v-show="name=='身份证打印'">
<img src="../assets/typeSFZ.png" />
</div>
<div class="tip">
<div class="title">温馨提示</div>
<div class="content">{{ content }}</div>
<div class="btn flex-center" @click="skip('selectFile',name)">{{ btnName }}</div>
</div>
</div>
</div>
</template>
<script>
import navbar from '@/components/nav'
export default {
name: "operationGuide",
components: {
navbar
},
provide() {
return {
title: this.tit,
type: this.name
}
},
data() {
return {
tit: this.$route.params.name=='U盘打印'?'资料选取提交':'资料扫描提交',
name: this.$route.params.name,
content: '',
btnName: '',
}
},
methods: {
skip(href,name) {
this.$router.push({
name: href,
params: {
name: name
}
})
},
},
mounted() {
let name = this.$route.params.name
if(name=='U盘打印') {
this.content='如作图所示,请先将储存有打印资料的U盘插入到USB接口中,确认正确插入后,请按下面“选取文件”按钮进行需要打印资料的选择'
this.btnName='选取文件'
}else if(name=='扫描打印') {
this.content='如左图所示,请先将需要扫描的资料页面展开,并且需要的版面朝上放置在机器的“扫描复印”口中央(也就是说放好之后,自己是可以看到你需要的那个版面内容的。)准备就绪后,请按下面的“开始扫描”开始资料扫描。'
this.btnName='开始扫描'
}else if(name=='身份证打印') {
this.content='如左图所示,请先将身份证水平放置在机器的“身份证”读取卡口中,准备就绪后,请按下面的“开始读卡”开始身份证信息读取。'
this.btnName='开始扫描'
}
}
}
</script>
<style scoped lang="less">
.operationGuide {
.box {
width: 114.06rem;
height: 42.13rem;
background: #FFFFFF;
box-shadow: 0rem 0.31rem 0.63rem 0.06rem rgba(0,0,0,0.14);
border-radius: 1.63rem;
margin: 0 auto;
.picture {
margin-left: 4.75rem;
img {
width: 29.06rem;
margin-left: 11.81rem;
}
.icon {
margin-left: 0;
width: 56rem;
margin-bottom: 2.69rem;
}
.name {
font-size: 2.13rem;
font-weight: bold;
color: #323232;
line-height: 3rem;
div {
width: 30%;
text-align: center;
}
}
}
.tip {
margin-right: 7.81rem;
width: 40rem;
font-size: 2.25rem;
font-weight: bold;
color: #323232;
line-height: 3rem;
.title {
font-size: 2.88rem;
font-weight: bold;
color: #D41212;
line-height: 4.06rem;
}
.content {
margin: 3rem auto 3.69rem;
text-align: center;
}
.btn {
width: 100%;
height: 5.5rem;
background: linear-gradient(132deg, #52A39D 0%, #A1C553 50%, #81D012 100%);
border-radius: 1.25rem;
font-size: 1.88rem;
font-weight: 400;
color: #FFFFFF;
line-height: 2.63rem;
cursor: pointer;
}
}
}
}
</style>