shopInfo.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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.hotelName || '超级管理员' }}</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 class="msg" v-if="type === '2'" @click="handleGoMsg">
  22. 点击查看
  23. <text>数据中台</text>
  24. <img src="../../static/index/right.png" />
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. data: {},
  33. type: ''
  34. }
  35. },
  36. onLoad(options) {
  37. this.data = JSON.parse(options.data)
  38. this.type = options.type
  39. if (options.type === '2') {
  40. uni.setNavigationBarTitle({
  41. title: '我是业主'
  42. })
  43. }
  44. },
  45. methods: {
  46. // 去解绑按钮回调
  47. handleUnbind() {
  48. uni.navigateTo({
  49. url: `/pages/binding/binding?type=2&status=${this.type}`
  50. })
  51. },
  52. // 重新绑定按钮回调
  53. handleAgain() {
  54. uni.navigateTo({
  55. url: `/pages/binding/binding?status=${this.type}`
  56. })
  57. },
  58. handleGoMsg() {
  59. uni.navigateTo({
  60. url: '/pages/web/web'
  61. })
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .container {
  68. display: flex;
  69. flex-direction: column;
  70. align-items: center;
  71. height: 100vh;
  72. background-color: #fff;
  73. img {
  74. margin-top: 31rpx;
  75. width: 390rpx;
  76. height: 390rpx;
  77. }
  78. .box {
  79. box-sizing: border-box;
  80. padding: 0 30rpx;
  81. margin-top: 20rpx;
  82. width: 690rpx;
  83. height: 548rpx;
  84. border-radius: 23rpx;
  85. box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.25);
  86. .box_title {
  87. line-height: 113rpx;
  88. font-size: 32rpx;
  89. font-weight: bold;
  90. }
  91. .box_hotel {
  92. display: flex;
  93. height: 75rpx;
  94. font-size: 28rpx;
  95. border-bottom: 1rpx solid #e6e6e6;
  96. .totel_left {
  97. margin-right: 34rpx;
  98. color: #808080;
  99. }
  100. }
  101. .box_name {
  102. display: flex;
  103. align-items: center;
  104. height: 107rpx;
  105. font-size: 28rpx;
  106. border-bottom: 1rpx solid #e6e6e6;
  107. .name_left {
  108. margin-right: 62rpx;
  109. color: #808080;
  110. }
  111. }
  112. .box_btn {
  113. display: flex;
  114. justify-content: space-between;
  115. margin-top: 102rpx;
  116. height: 96rpx;
  117. .btn_item {
  118. display: flex;
  119. justify-content: center;
  120. align-items: center;
  121. width: 300rpx;
  122. height: 96rpx;
  123. font-size: 32rpx;
  124. border-radius: 64rpx;
  125. }
  126. .type {
  127. color: #096562;
  128. background-color: #fff;
  129. border: 1rpx solid #096562;
  130. }
  131. .type2 {
  132. color: #fff;
  133. background-color: #096562;
  134. }
  135. }
  136. }
  137. .msg {
  138. margin-top: 33rpx;
  139. font-size: 28rpx;
  140. text {
  141. margin: 0 10rpx;
  142. color: #096562;
  143. }
  144. img {
  145. width: 13rpx;
  146. height: 20rpx;
  147. }
  148. }
  149. }
  150. </style>