index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="address" style="padding-top: 46px; background: #e6e6dc">
  3. <van-nav-bar
  4. :title="title"
  5. class="van-nav-bar-my-fixed"
  6. left-arrow
  7. @click-left="onClickLeft"
  8. @click-right="onClickRight"
  9. fixed
  10. />
  11. <!-- :right-text="isRes === '1' || total === 0 ? '' : '删除'" -->
  12. <div class="addr-null">
  13. <img src="@/assets/images/referMenu/referMenu.png" alt="" />
  14. <div class="addr-null-title">
  15. <p>敬请期待</p>
  16. </div>
  17. <p style="margin: 0" class="p1">程序大大正努力开发中~</p>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. import resToken from "@/mixins/resToken";
  23. export default {
  24. mixins: [resToken],
  25. data() {
  26. return {
  27. title: null,
  28. loading: false,
  29. };
  30. },
  31. async created() {
  32. if (this.$route && this.$route.query && this.$route.query.id) {
  33. this.isRes = "1";
  34. } else {
  35. this.isRes = "0";
  36. }
  37. },
  38. mounted() {
  39. this.title = this.$route.query.type;
  40. },
  41. methods: {
  42. onClickLeft() {
  43. window.history.back(-1);
  44. },
  45. onClickRight() {
  46. if (!this.loading) {
  47. if (this.delId === "") {
  48. this.show_title("请选择地址!");
  49. return;
  50. }
  51. }
  52. },
  53. },
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. //空地址时候的样式
  58. .addr-null {
  59. width: 230px;
  60. height: 227.5px;
  61. box-sizing: border-box;
  62. position: fixed;
  63. left: 50%;
  64. top: 150px;
  65. transform: translateX(-50%);
  66. text-align: center;
  67. font-size: 12px;
  68. font-weight: 400;
  69. color: #959595;
  70. // line-height: 7px;
  71. img {
  72. width: 230px;
  73. height: 227.5px;
  74. }
  75. .addr-null-title {
  76. display: flex;
  77. justify-content: center;
  78. p {
  79. margin: 0 0 10px 0;
  80. width: 68.5px;
  81. height: 16px;
  82. font-size: 17px;
  83. font-family: Source Han Sans CN;
  84. font-weight: 500;
  85. color: #1a1a1a;
  86. line-height: 20px;
  87. }
  88. .p1 {
  89. width: 262px;
  90. height: 23px;
  91. font-size: 25px;
  92. font-family: Source Han Sans CN;
  93. font-weight: 400;
  94. color: #999999;
  95. line-height: 44px;
  96. }
  97. }
  98. }
  99. </style>