shopInfo.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. let url = 'https://www.jinganrenjiams.com/hotelReservation/pc4/'
  60. uni.navigateTo({
  61. url: `/pagesSub/web/web?url=${url}`
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .container {
  69. display: flex;
  70. flex-direction: column;
  71. align-items: center;
  72. height: 100vh;
  73. background-color: #fff;
  74. img {
  75. margin-top: 31rpx;
  76. width: 390rpx;
  77. height: 390rpx;
  78. }
  79. .box {
  80. box-sizing: border-box;
  81. padding: 0 30rpx;
  82. margin-top: 20rpx;
  83. width: 690rpx;
  84. height: 548rpx;
  85. border-radius: 23rpx;
  86. box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.25);
  87. .box_title {
  88. line-height: 113rpx;
  89. font-size: 32rpx;
  90. font-weight: bold;
  91. }
  92. .box_hotel {
  93. display: flex;
  94. height: 75rpx;
  95. font-size: 28rpx;
  96. border-bottom: 1rpx solid #e6e6e6;
  97. .totel_left {
  98. margin-right: 34rpx;
  99. color: #808080;
  100. }
  101. }
  102. .box_name {
  103. display: flex;
  104. align-items: center;
  105. height: 107rpx;
  106. font-size: 28rpx;
  107. border-bottom: 1rpx solid #e6e6e6;
  108. .name_left {
  109. margin-right: 62rpx;
  110. color: #808080;
  111. }
  112. }
  113. .box_btn {
  114. display: flex;
  115. justify-content: space-between;
  116. margin-top: 102rpx;
  117. height: 96rpx;
  118. .btn_item {
  119. display: flex;
  120. justify-content: center;
  121. align-items: center;
  122. width: 300rpx;
  123. height: 96rpx;
  124. font-size: 32rpx;
  125. border-radius: 64rpx;
  126. }
  127. .type {
  128. color: #096562;
  129. background-color: #fff;
  130. border: 1rpx solid #096562;
  131. }
  132. .type2 {
  133. color: #fff;
  134. background-color: #096562;
  135. }
  136. }
  137. }
  138. .msg {
  139. margin-top: 33rpx;
  140. font-size: 28rpx;
  141. text {
  142. margin: 0 10rpx;
  143. color: #096562;
  144. }
  145. img {
  146. width: 13rpx;
  147. height: 20rpx;
  148. }
  149. }
  150. }
  151. </style>