租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
6.5 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="u-page">
  3. <view class="se-pt-30 se-pb-60 se-px-40 se-bgc-green se-c-white se-pos">
  4. <view class="se-flex">
  5. <image @click="onHead" :src="user.headImage" class="se-br-p-50 se-bgc-f9 se-w-120 se-h-120" mode="">
  6. </image>
  7. <view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
  8. <view class="se-flex" style="align-items: center;">
  9. <text class="se-fw-6 se-fs-30">{{userInfo.nickName?userInfo.nickName:'暂无昵称'}}</text>
  10. <!-- 会员状态 -->
  11. <view class="" v-if="vipInfo.title" style="display: flex;background-color: #fff;
  12. color: #0f0;
  13. font-size: 24rpx;
  14. align-items: center;
  15. border-radius: 20rpx;
  16. padding: 4rpx 10rpx;">
  17. {{vipInfo.title}}
  18. </view>
  19. <!-- <view class="se-flex se-flex-ai-c se-ml-20">
  20. <image class="se-a-25 se-mr-10" src="@/static/image/pencil.png" mode=""></image>
  21. <text class="se-fs-22">修改资料</text>
  22. </view> -->
  23. </view>
  24. <view class="se-fs-24 se-display-ib" v-if="userInfo.phone">
  25. <text>手机号:</text>
  26. <text class="se-ml-20">{{userInfo.phone}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- <view class="se-pos-cb se-flex se-flex-h-sb se-w-vw-82 se-br-10 se-bgc-white se-py-30 se-px-20"
  31. style="bottom: -90rpx;">
  32. <view class="se-flex se-flex-v-c se-flex-1">
  33. <image src="@/static/image/46892@2x.png" class="se-a-80" mode=""></image>
  34. <view @click="onNavigateTo()" class=" se-ta-c se-fw-6 se-br-30 se-mt-10 se-py-5 se-px-22 se-c-black se-fs-22 ">
  35. 我的钱包
  36. </view>
  37. </view>
  38. <view class="se-flex se-flex-v-c se-flex-1 ">
  39. <image src="@/static/image/47077@2x.png" class="se-a-80" mode=""></image>
  40. <view @click="onNavigateTo()" class=" se-ta-c se-fw-6 se-br-30 se-mt-10 se-py-5 se-px-22 se-c-black se-fs-22 ">
  41. 我的预约
  42. </view>
  43. </view>
  44. <view class="se-flex se-flex-v-c se-flex-1 ">
  45. <image src="@/static/image/47065@2x.png" class="se-a-80" mode=""></image>
  46. <view @click="onNavigateTo()" class=" se-ta-c se-fw-6 se-br-30 se-mt-10 se-py-5 se-px-22 se-c-black se-fs-22 ">
  47. 我的收藏
  48. </view>
  49. </view>
  50. <view class="se-flex se-flex-v-c se-flex-1 ">
  51. <image src="@/static/image/46896@2x.png" class="se-a-80" mode=""></image>
  52. <view @click="onNavigateTo()" class=" se-ta-c se-fw-6 se-br-30 se-mt-10 se-py-5 se-px-22 se-c-black se-fs-22 ">
  53. 需求发布
  54. </view>
  55. </view>
  56. </view> -->
  57. </view>
  58. <view class="se-m-30 se-mt-30 se-pl-30 se-pr-20 se-br-20 se-bgc-white">
  59. <!-- <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onBrokerAccount">
  60. <view class="se-flex se-flex-ai-c">
  61. <image class="se-a-30" src="@/static/image/home4734.png" mode=""></image>
  62. <text class="se-ml-20 se-fs-24 se-fw-5">经纪人账号</text>
  63. </view>
  64. <view class="se-flex se-flex-ai-c">
  65. <uv-icon name="arrow-right"></uv-icon>
  66. </view>
  67. </view>
  68. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onLandlord">
  69. <view class="se-flex se-flex-ai-c">
  70. <image class="se-a-30" src="@/static/image/home4734.png" mode=""></image>
  71. <text class="se-ml-20 se-fs-24 se-fw-5">房东中心</text>
  72. </view>
  73. <view class="se-flex se-flex-ai-c">
  74. <uv-icon name="arrow-right"></uv-icon>
  75. </view>
  76. </view>
  77. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onBrokerCenter">
  78. <view class="se-flex se-flex-ai-c">
  79. <image class="se-a-30" src="@/static/image/47100.png" mode=""></image>
  80. <text class="se-ml-20 se-fs-24 se-fw-5">经纪人中心</text>
  81. </view>
  82. <view class="se-flex se-flex-ai-c">
  83. <uv-icon name="arrow-right"></uv-icon>
  84. </view>
  85. </view> -->
  86. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onCustomerService">
  87. <view class="se-flex se-flex-ai-c">
  88. <image class="se-a-30" src="@/static/image/user49384.png" mode=""></image>
  89. <text class="se-ml-20 se-fs-24 se-fw-5">在线客服</text>
  90. </view>
  91. <view class="se-flex se-flex-ai-c">
  92. <uv-icon name="arrow-right"></uv-icon>
  93. </view>
  94. </view>
  95. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb" @click="onVersion">
  96. <view class="se-flex se-flex-ai-c">
  97. <image class="se-a-30" src="@/static/image/47186.png" mode=""></image>
  98. <text class="se-ml-20 se-fs-24 se-fw-5">关于我们</text>
  99. </view>
  100. <view class="se-flex se-flex-ai-c">
  101. <uv-icon name="arrow-right"></uv-icon>
  102. </view>
  103. </view>
  104. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-t" @click="onLogOut">
  105. <view class="se-flex se-flex-ai-c">
  106. <text class="se-fs-24 se-fw-5">退出登录</text>
  107. </view>
  108. <view class="se-flex se-flex-ai-c">
  109. <uv-icon name="arrow-right"></uv-icon>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </template>
  115. <script>
  116. export default {
  117. data() {
  118. return {}
  119. },
  120. onLoad() {
  121. },
  122. onShow() {
  123. this.$store.commit('getUserInfo')
  124. },
  125. methods: {
  126. onHead() {
  127. uni.navigateTo({
  128. url: "/pages/login/index?back=" + 1
  129. })
  130. },
  131. openMemberPage() {
  132. uni.navigateTo({
  133. url: "/pages_subpack/member/index"
  134. })
  135. },
  136. onLandlord() {
  137. uni.navigateTo({
  138. url: "/pages_subpack/landlord-center/index"
  139. })
  140. },
  141. onBrokerCenter() {
  142. uni.navigateTo({
  143. url: "/pages_subpack/broker-center/index"
  144. })
  145. },
  146. onVersion() {
  147. uni.navigateTo({
  148. url: "/pages_subpack/version/index"
  149. })
  150. },
  151. onBrokerAccount() {
  152. uni.navigateTo({
  153. url: "/pages_subpack/broker-account/index"
  154. })
  155. },
  156. onLogOut() {
  157. uni.showModal({
  158. title: "温馨提示",
  159. content: "确定退出当前登录",
  160. cancelText: "取消",
  161. confirmText: "确定",
  162. success: (res) => {
  163. console.info(res)
  164. if (res.confirm == true) {
  165. uni.removeStorageSync("userInfo")
  166. uni.removeStorageSync("token")
  167. uni.removeStorageSync("sessionKey")
  168. uni.navigateTo({
  169. url: "/pages/auth/index"
  170. })
  171. }
  172. }
  173. })
  174. },
  175. onCustomerService() {
  176. let that = this
  177. let obj = that.$utils.getkeyContent('phone')
  178. if (uni.canIUse('makePhoneCall')) {
  179. uni.makePhoneCall({
  180. phoneNumber: this.configList.phone, // 电话号码
  181. success: function() {
  182. console.log('拨打电话成功');
  183. },
  184. fail: function() {
  185. console.log('拨打电话失败');
  186. }
  187. });
  188. } else {
  189. console.log('你的设备不支持拨打电话功能');
  190. }
  191. }
  192. }
  193. }
  194. </script>
  195. <style>
  196. page {
  197. background-color: #f5f5f5 !important;
  198. }
  199. .se-grid {
  200. display: grid;
  201. grid-template-columns: 1fr 1fr 1fr 1fr;
  202. gap: 10rpx;
  203. padding-bottom: 4rpx;
  204. }
  205. </style>