From 1db40f9c483977361a0b820aea0b5dc3ec7730c8 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Sat, 21 Sep 2024 17:42:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/api.js | 19 ++-
components/base/navbar.vue | 18 +--
components/config/customerServicePopup.vue | 116 +++++++++++++++++++
config.js | 4 +-
pages.json | 3 +-
pages/index/center.vue | 127 +++------------------
pages/index/index.vue | 7 ++
pages_order/auth/wxUserInfo.vue | 4 +-
.../components/commodity/commoditySelect.vue | 9 +-
pages_order/mine/lease.vue | 5 +-
pages_order/order/refundsOrExchange.vue | 8 +-
store/store.js | 14 +--
12 files changed, 186 insertions(+), 148 deletions(-)
create mode 100644 components/config/customerServicePopup.vue
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 @@
-
+
@@ -34,7 +34,7 @@
-
+
+
+
\ 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 @@