shopInfo.vue 2.9 KB

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