27237返乡登记成功

This commit is contained in:
liuye
2022-02-11 16:10:22 +08:00
parent 2399e2584c
commit 2ec7f40880
4 changed files with 72 additions and 3 deletions

View File

@@ -550,12 +550,13 @@ export default {
this.flag = false;
if (res.code == 0) {
uni.$emit("update");
this.$u.toast("提交成功");
setTimeout(() => {
uni.navigateBack();
uni.navigateTo({url: './Success?status=1'})
}, 400);
}
});
}).catch(() => {
uni.navigateTo({url: './Success?status=0'})
})
},
},
};

View File

@@ -0,0 +1,68 @@
<template>
<div class="success">
<img src="./components/img/success.png" alt="" v-if="status">
<img src="./components/img/fail.png" alt="" v-else>
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
<div class="footer">{{status ? '确定' : '我知道了'}}</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
status: 1
}
},
onShow() {
document.title = '返乡登记'
},
onLoad(option) {
this.status = option.status
},
methods: {
back() {
uni.navigateBack({delta: 2})
}
},
}
</script>
<style lang="scss" scoped>
uni-page-body{
height: 100%;
background-color: #fff;
}
.success {
text-align: center;
img{
width: 192px;
height: 192px;
margin: 96px 0 16px 0;
}
p{
line-height: 50px;
color: #333;
font-size: 36px;
font-weight: 500;
text-align: center;
margin-bottom: 72px;
}
.footer{
width: calc(100% - 96px);
height: 88px;
line-height: 88px;
background: #1365DD;
box-shadow: inset 0px 1px 0px 0px #EEEEEE;
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFF;
text-align: center;
border-radius: 8px;
margin-left: 48px;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB