empty.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view style="background-color: #fff;min-height: 100vh;">
  3. <view class="default" >
  4. <image src="/static/common/empty.png" mode="heightFix"></image>
  5. <view style="font-size: 26rpx;">
  6. <text style="color: #909090;">{{msg}}</text>
  7. </view>
  8. <navigator :url="url" class="cu-btn round bg-btn margin-top-50" style="padding: 35rpx 65rpx;margin-left: 8rpx;">
  9. {{btnName}}
  10. </navigator>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. msg:"您还未完成注册认证",
  19. btnName:"去注册认证",
  20. url:"../register/register"
  21. }
  22. },
  23. onLoad(options) {
  24. if(options.type=='2'){
  25. //导航栏标题
  26. uni.setNavigationBarTitle({
  27. title:"房屋认证"
  28. })
  29. //去认证
  30. this.msg="您还未完成房屋认证"
  31. this.btnName="去认证"
  32. this.url="../auth/auth"
  33. }
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. .default {
  41. text-align: center;
  42. position: fixed;
  43. left: 50%;
  44. top: 40%;
  45. transform: translate(-50%, -50%);
  46. }
  47. .default text{
  48. color: #AAAAAA;
  49. }
  50. .default image {
  51. height: 160rpx;
  52. display: inline-block;
  53. }
  54. </style>