shopInfo.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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="">靖安民宿</view>
  11. </view>
  12. <view class="box_name">
  13. <view class="name_left">用户名</view>
  14. <view class="">dbhsbjh</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. },
  28. methods: {
  29. // 去解绑按钮回调
  30. handleUnbind() {
  31. uni.navigateTo({
  32. url: '/pages/binding/binding?type=2'
  33. })
  34. },
  35. // 重新绑定按钮回调
  36. handleAgain() {
  37. uni.navigateTo({
  38. url: '/pages/binding/binding'
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .container {
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. height: 100vh;
  50. background-color: #fff;
  51. img {
  52. margin-top: 31rpx;
  53. width: 390rpx;
  54. height: 390rpx;
  55. }
  56. .box {
  57. box-sizing: border-box;
  58. padding: 0 30rpx;
  59. margin-top: 20rpx;
  60. width: 690rpx;
  61. height: 548rpx;
  62. border-radius: 23rpx;
  63. box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.25);
  64. .box_title {
  65. line-height: 113rpx;
  66. font-size: 32rpx;
  67. font-weight: bold;
  68. }
  69. .box_hotel {
  70. display: flex;
  71. height: 75rpx;
  72. font-size: 28rpx;
  73. border-bottom: 1rpx solid #e6e6e6;
  74. .totel_left {
  75. margin-right: 34rpx;
  76. color: #808080;
  77. }
  78. }
  79. .box_name {
  80. display: flex;
  81. align-items: center;
  82. height: 107rpx;
  83. font-size: 28rpx;
  84. border-bottom: 1rpx solid #e6e6e6;
  85. .name_left {
  86. margin-right: 62rpx;
  87. color: #808080;
  88. }
  89. }
  90. .box_btn {
  91. display: flex;
  92. justify-content: space-between;
  93. margin-top: 102rpx;
  94. height: 96rpx;
  95. .btn_item {
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. width: 300rpx;
  100. height: 96rpx;
  101. font-size: 32rpx;
  102. border-radius: 64rpx;
  103. }
  104. .type {
  105. color: #096562;
  106. background-color: #fff;
  107. border: 1rpx solid #096562;
  108. }
  109. .type2 {
  110. color: #fff;
  111. background-color: #096562;
  112. }
  113. }
  114. }
  115. }
  116. </style>