shopInfo.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="container">
  3. <!-- 图片区域 -->
  4. <img src="../../static/my/shopImg3.png" />
  5. <!-- 账户信息区域 -->
  6. <view class="box">
  7. <view class="box_title">账户信息</view>
  8. <view class="box_hotel">
  9. <view class="totel_left">民宿名称</view>
  10. <view class="">{{ data.userName }}</view>
  11. </view>
  12. <view class="box_name">
  13. <view class="name_left">用户名</view>
  14. <view class="">{{ data.adminName }}</view>
  15. </view>
  16. <view class="box_btn">
  17. <view class="btn_item type" @click="handleUnbind">去解绑</view>
  18. <view class="btn_item type2" @click="handleAgain">重新绑定</view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. data: {},
  28. type: ''
  29. }
  30. },
  31. onLoad(options) {
  32. this.data = JSON.parse(options.data)
  33. this.type = options.type
  34. if (options.type === '2') {
  35. uni.setNavigationBarTitle({
  36. title: '我是业主'
  37. })
  38. }
  39. },
  40. methods: {
  41. // 去解绑按钮回调
  42. handleUnbind() {
  43. uni.navigateTo({
  44. url: `/pages/binding/binding?type=2&status=${this.type}`
  45. })
  46. },
  47. // 重新绑定按钮回调
  48. handleAgain() {
  49. uni.navigateTo({
  50. url: `/pages/binding/binding?status=${this.type}`
  51. })
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .container {
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. height: 100vh;
  62. background-color: #fff;
  63. img {
  64. margin-top: 31rpx;
  65. width: 390rpx;
  66. height: 390rpx;
  67. }
  68. .box {
  69. box-sizing: border-box;
  70. padding: 0 30rpx;
  71. margin-top: 20rpx;
  72. width: 690rpx;
  73. height: 548rpx;
  74. border-radius: 23rpx;
  75. box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.25);
  76. .box_title {
  77. line-height: 113rpx;
  78. font-size: 32rpx;
  79. font-weight: bold;
  80. }
  81. .box_hotel {
  82. display: flex;
  83. height: 75rpx;
  84. font-size: 28rpx;
  85. border-bottom: 1rpx solid #e6e6e6;
  86. .totel_left {
  87. margin-right: 34rpx;
  88. color: #808080;
  89. }
  90. }
  91. .box_name {
  92. display: flex;
  93. align-items: center;
  94. height: 107rpx;
  95. font-size: 28rpx;
  96. border-bottom: 1rpx solid #e6e6e6;
  97. .name_left {
  98. margin-right: 62rpx;
  99. color: #808080;
  100. }
  101. }
  102. .box_btn {
  103. display: flex;
  104. justify-content: space-between;
  105. margin-top: 102rpx;
  106. height: 96rpx;
  107. .btn_item {
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. width: 300rpx;
  112. height: 96rpx;
  113. font-size: 32rpx;
  114. border-radius: 64rpx;
  115. }
  116. .type {
  117. color: #096562;
  118. background-color: #fff;
  119. border: 1rpx solid #096562;
  120. }
  121. .type2 {
  122. color: #fff;
  123. background-color: #096562;
  124. }
  125. }
  126. }
  127. }
  128. </style>