checkWait.vue
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<template>
<view>
<view class="waitImgWrap">
<image src="../../static/image/my/noTask.png" mode=""></image>
</view>
<view class="nowStatus">
{{userInfo.hometown_check_status == 1 ? '等待审核' : userInfo.hometown_check_status == 3 ? '审核未通过' : '审核已通过'}}
</view>
<view class="desc">
{{userInfo.hometown_cause}}
</view>
<view class="bottomBtnWrap">
<view class="bottomBtn" @click="confirm">
确认
</view>
</view>
</view>
</template>
<script>
export default{
data(){
return{
userInfo:{}
}
},
onLoad() {
//获取用户信息
this.$request('/user/info').then((res)=>{
console.log('用户信息',res)
this.userInfo = res.data
})
},
methods:{
confirm(){
if(this.userInfo.hometown_check_status == 3){
this.$href('becomeLand')
}else{
uni.switchTab({
url:'my'
})
}
}
}
}
</script>
<style lang="scss" scoped>
page{background: #f8f8f9;}
.waitImgWrap{
padding-top: 154rpx;
image{width: 100%;height: 400rpx;}
}
.nowStatus{
font-size: 36rpx;
padding-top: 56rpx;
font-weight: 600;
text-align: center;
}
.desc{
padding: 24rpx 32rpx;
color: #969799;
font-size: 28rpx;
text-align: center;
}
.bottomBtnWrap{
padding-top: 72rpx;
display: flex;
justify-content: center;
.bottomBtn{
width: 686rpx;
height: 80rpx;
border-radius: 50rpx;
background: #35655f;
color: #fff;
font-size: 28rpx;
text-align: center;
line-height: 80rpx;
}
}
</style>