Files
dvcp_v2_wxcp_app/library/apps/AppGridManagement/AddUserSuccess.vue

86 lines
1.7 KiB
Vue
Raw Normal View History

2022-03-18 14:45:15 +08:00
<template>
<div class="success">
<img src="./components/img/success.png" alt="" v-if="status">
<img src="./components/img/fail.png" alt="" v-else>
2022-06-13 09:57:52 +08:00
<p>{{ status == 1 ? '信息申报成功!' : '信息申报失败!' }}</p>
<p class="text">{{ status == 1 ? '重新进入即可开始正常使用' : '系统无法匹配该申报信息,请联系管理人员进行处理' }}</p>
<div class="footer" @click="back">{{ status == 1 ? '确定' : '我知道了' }}</div>
2022-03-18 14:45:15 +08:00
</div>
</template>
<script>
2022-06-13 09:57:52 +08:00
import {mapActions} from 'vuex'
2022-03-18 14:45:15 +08:00
export default {
2022-06-13 09:57:52 +08:00
name: "AddUserSuccess",
2022-03-18 14:45:15 +08:00
data() {
return {
status: 1
}
},
onShow() {
document.title = '网格员信息申报'
},
onLoad(option) {
this.status = option.status
},
methods: {
2022-06-13 09:57:52 +08:00
...mapActions(['getAccount']),
2022-03-18 14:45:15 +08:00
back() {
2022-06-13 09:57:52 +08:00
this.getAccount().then(() => {
uni.reLaunch({url: './AppGridManagement'})
})
2022-03-18 14:45:15 +08:00
}
},
}
</script>
<style lang="scss" scoped>
2022-06-13 09:57:52 +08:00
uni-page-body {
2022-03-18 14:45:15 +08:00
height: 100%;
background-color: #fff;
}
2022-06-13 09:57:52 +08:00
2022-03-18 14:45:15 +08:00
.success {
text-align: center;
2022-06-13 09:57:52 +08:00
img {
2022-03-18 14:45:15 +08:00
width: 192px;
height: 192px;
margin: 96px 0 16px 0;
}
2022-06-13 09:57:52 +08:00
p {
2022-03-18 14:45:15 +08:00
line-height: 50px;
color: #333;
font-size: 36px;
font-weight: 500;
text-align: center;
margin-bottom: 16px;
}
2022-06-13 09:57:52 +08:00
.footer {
2022-03-18 14:45:15 +08:00
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;
}
2022-06-13 09:57:52 +08:00
.text {
2022-03-18 14:45:15 +08:00
line-height: 44px;
font-size: 28px;
width: 500px;
margin: 0 auto 72px;
word-break: break-all;
}
}
</style>