empty.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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"
  9. style="padding: 35rpx 65rpx;margin-left: 8rpx;">
  10. {{btnName}}
  11. </navigator>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. msg: "您还未完成注册认证",
  20. btnName: "去注册认证",
  21. url: "../register/register"
  22. }
  23. },
  24. onLoad(options) {
  25. if (options.type == '2') {
  26. //导航栏标题
  27. uni.setNavigationBarTitle({
  28. title: "房屋认证"
  29. })
  30. //去认证
  31. this.msg = "您还未完成房屋认证"
  32. this.btnName = "去认证"
  33. this.url = "../auth/auth"
  34. }
  35. },
  36. methods: {}
  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: 280 rpx;
  52. display: inline-block;
  53. }
  54. </style>