From 57f70614aba3a8ddd59490e26b7b266814daa30b Mon Sep 17 00:00:00 2001 From: "1263428893@qq.com" Date: Sun, 8 Dec 2024 12:56:20 +0800 Subject: [PATCH] 1 --- common/config.js | 4 +- pages.json | 3 +- pages/home/index.vue | 55 ++++------------ pages/login/index.vue | 45 +++++++++----- pages/user/index.vue | 35 ++++++++++- pages_subpack/detail/index.vue | 117 +++++++++++++++++++++++++++++------ pages_subpack/house/index.vue | 6 +- util/request/responseInterceptors.js | 14 +++-- 8 files changed, 191 insertions(+), 88 deletions(-) diff --git a/common/config.js b/common/config.js index 909021e..40e9a67 100644 --- a/common/config.js +++ b/common/config.js @@ -1,5 +1,5 @@ export default { // baseUrl: 'https://api.book118.com', - // baseUrl:'https://houserent-admin.hhlm1688.com' - baseUrl:'http://h5.xzaiyp.top' + baseUrl:'https://houserent-admin.hhlm1688.com' + // baseUrl:'http://h5.xzaiyp.top' } \ No newline at end of file diff --git a/pages.json b/pages.json index 88b6283..48ffa37 100644 --- a/pages.json +++ b/pages.json @@ -176,8 +176,7 @@ "globalStyle": { "navigationBarTextStyle": "white", "navigationBarTitleText": "租房", - "navigationBarBackgroundColor": "#1EC77A", - "backgroundColor": "#1EC77A" + "navigationBarBackgroundColor": "#1EC77A" }, "tabBar": { "color": "#666666", diff --git a/pages/home/index.vue b/pages/home/index.vue index aa792b3..34dc4c3 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,6 +1,6 @@ @@ -110,6 +118,11 @@ this.onInfo() }, methods: { + onHead(){ + uni.navigateTo({ + url:"/pages/login/index?back="+1 + }) + }, onInfo(){ let that = this that.user = uni.getStorageSync('userInfo') @@ -140,6 +153,26 @@ url:"/pages_subpack/broker-account/index" }) }, + onLogOut(){ + uni.showModal({ + title:"温馨提示", + content:"确定退出当前登录", + cancelText:"取消", + confirmText:"确定", + success:(res)=> { + console.info(res) + if(res.confirm==true){ + uni.removeStorageSync("userInfo") + uni.removeStorageSync("token") + uni.removeStorageSync("sessionKey") + uni.navigateTo({ + url:"/pages/auth/index" + }) + } + } + }) + + }, onCustomerService(){ let that = this let obj = that.$utils.getkeyContent('phone') diff --git a/pages_subpack/detail/index.vue b/pages_subpack/detail/index.vue index 440c465..9eeebe5 100644 --- a/pages_subpack/detail/index.vue +++ b/pages_subpack/detail/index.vue @@ -13,9 +13,12 @@ - - - + + + @@ -55,20 +58,24 @@ {{detail.address}} - - - + + + 房屋周边 @@ -194,8 +201,7 @@ - - + @@ -266,13 +272,14 @@