平昌
This commit is contained in:
83
src/project/pingchang/AppHealthReport/Result.vue
Normal file
83
src/project/pingchang/AppHealthReport/Result.vue
Normal file
@@ -0,0 +1,83 @@
|
||||
<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 {
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
|
||||
onLoad (query) {
|
||||
this.id = query.id
|
||||
},
|
||||
|
||||
methods: {
|
||||
back () {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
},
|
||||
|
||||
toReport () {
|
||||
uni.redirectTo({
|
||||
url: `./AddReport?id=${this.id}`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</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>
|
||||
Reference in New Issue
Block a user