Files
dvcp_v2_wxcp_app/library/apps/AppSuperMarket/Success.vue

70 lines
1.3 KiB
Vue
Raw Normal View History

2022-02-15 10:48:33 +08:00
<template>
<div class="success">
2022-02-17 10:39:29 +08:00
<img src="./components/img/success.png" alt="" v-if="status == 1">
2022-02-15 10:48:33 +08:00
<img src="./components/img/fail.png" alt="" v-else>
2022-02-17 10:39:29 +08:00
<p>{{status == 1 ? '领取成功!' : '领取失败!请联系管理员处理'}}</p>
<div class="footer" @click="back">{{status == 1 ? '确定' : '我知道了'}}</div>
<AiBack @click="back" />
2022-02-15 10:48:33 +08:00
</div>
</template>
<script>
export default {
data() {
return {
status: 1
}
},
onShow() {
2022-02-17 10:39:29 +08:00
document.title = '结算提交'
2022-02-15 10:48:33 +08:00
},
onLoad(option) {
2022-02-17 10:39:29 +08:00
console.log(option)
2022-02-15 10:48:33 +08:00
this.status = option.status
},
methods: {
back() {
2022-02-17 10:39:29 +08:00
uni.navigateBack({delta: 2})
2022-02-15 10:48:33 +08:00
}
},
}
</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>