| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <view style="background-color: #fff;min-height: 100vh;">
- <view class="default" >
- <image src="/static/common/empty.png" mode="heightFix"></image>
- <view style="font-size: 26rpx;">
- <text style="color: #909090;">{{msg}}</text>
- </view>
- <navigator :url="url" class="cu-btn round bg-btn margin-top-50" style="padding: 35rpx 65rpx;margin-left: 8rpx;">
- {{btnName}}
- </navigator>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- msg:"您还未完成注册认证",
- btnName:"去注册认证",
- url:"../register/register"
- }
- },
- onLoad(options) {
- if(options.type=='2'){
- this.getHouseUser()
- this.initData()
- }
- },
- methods: {
- initData(){
- //导航栏标题
- uni.setNavigationBarTitle({
- title:"房屋认证"
- })
- //去认证
- this.msg="您还未完成房屋认证"
- this.btnName="去认证"
- },
- async getHouseUser(){
- let member=getApp().globalData.member
- if (this.$isEmpty(member)) {
- this.url="../auth/auth"
- return
- }
- let params={
- name:member.name,
- phone:member.tel
- }
- let res=await this.$http.getHouseUserCondition(params)
- let list=res.data.data
- if (this.$isEmpty(list)) {
- this.url="../auth/auth"
- return
- }
- uni.setStorageSync('houseList',list)
- this.url="../bindRoom/bindRoom"
- }
- }
- }
- </script>
- <style lang="scss">
- .default {
- text-align: center;
- position: fixed;
- left: 50%;
- top: 40%;
- transform: translate(-50%, -50%);
- }
- .default text{
- color: #AAAAAA;
- }
- .default image {
- height: 160rpx;
- display: inline-block;
- }
- </style>
|