diff --git a/api/api.js b/api/api.js index e6c2e52..8fada88 100644 --- a/api/api.js +++ b/api/api.js @@ -151,12 +151,27 @@ const config = { // 修改个人信息接口 updateInfo: { - url: '/info/updateInfo', + url: '/user/edit', method: 'POST', auth: true, limit : 500, showLoading : true, }, + // 获取用户信息 + getInfo: { + url: '/user/info', + method: 'GET', + auth: true, + showLoading : true, + }, + + + // 获取我的租赁 + getLeasePage: { + url: '/user/lease/page', + method: 'POST', + showLoading : true, + }, } @@ -192,7 +207,7 @@ export function api(key, data, callback, loadingTitle) { if (req.auth) { if (!uni.getStorageSync('token')) { uni.navigateTo({ - url: '/pages/login/mobile' + url: '/pages_order/auth/wxLogin' }) console.error('需要登录') return diff --git a/components/base/navbar.vue b/components/base/navbar.vue index a7526b9..909f33c 100644 --- a/components/base/navbar.vue +++ b/components/base/navbar.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/config.js b/config.js index 27f6944..5c66fe2 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'dev' +const type = 'prod' // 环境配置 @@ -16,7 +16,7 @@ const config = { baseUrl : 'http://dev.java996.icu/hotel', }, prod : { - baseUrl : 'http://dev.java996.icu/hotel', + baseUrl : 'https://hotel.java996.icu/hotel', } } diff --git a/pages.json b/pages.json index 142de53..5479c46 100644 --- a/pages.json +++ b/pages.json @@ -2,7 +2,8 @@ "pages": [{ "path": "pages/index/index", "style": { - "navigationBarTitleText": "" + "navigationBarTitleText": "", + "enablePullDownRefresh" : true } }, { diff --git a/pages/index/center.vue b/pages/index/center.vue index 26630aa..49a5fa0 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -9,7 +9,7 @@ - 微信用户 + {{ userInfo.nickName || '微信用户' }} - - - - 联系客服 - 确定拨打客服电话? - - - - - - - - - - - - + + @@ -228,49 +171,9 @@