2022-09-20 17:12:14 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="result">
|
|
|
|
|
|
<image src="/static/img/result.png" />
|
|
|
|
|
|
<h2>添加成功!</h2>
|
|
|
|
|
|
<div class="result-btn" hover-class="text-hover" @click="toReport">上报今日状态</div>
|
|
|
|
|
|
<div class="result-backBtn" @click="back">返回</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data () {
|
|
|
|
|
|
return {
|
2022-10-10 15:28:59 +08:00
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
idNumber: '',
|
2022-09-20 17:12:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onLoad (query) {
|
|
|
|
|
|
this.id = query.id
|
2022-10-10 15:28:59 +08:00
|
|
|
|
this.name = query.name
|
|
|
|
|
|
this.idNumber = query.idNumber
|
2022-09-20 17:12:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
back () {
|
|
|
|
|
|
uni.navigateBack({
|
|
|
|
|
|
delta: 1
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
toReport () {
|
|
|
|
|
|
uni.redirectTo({
|
2022-10-10 15:28:59 +08:00
|
|
|
|
url: `./AddReport?id=${this.id}&name=${this.name}&idNumber=${this.idNumber}`
|
2022-09-20 17:12:14 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.result {
|
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
padding-top: 160px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
|
width: 220px;
|
|
|
|
|
|
height: 220px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.result-backBtn {
|
|
|
|
|
|
width: 320px;
|
|
|
|
|
|
height: 88px;
|
|
|
|
|
|
line-height: 88px;
|
|
|
|
|
|
margin: 32px auto 0;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
border: 1px solid #4181FF;
|
|
|
|
|
|
color: #4181FF;
|
|
|
|
|
|
font-size: 34px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
margin: 32px 0 80px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.result-btn {
|
|
|
|
|
|
width: 320px;
|
|
|
|
|
|
height: 88px;
|
|
|
|
|
|
line-height: 88px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
background: #4181FF;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 34px;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|