From 9242d60b3aa15cc9f2ac7bd23c596b52d8e3c195 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Thu, 20 Mar 2025 15:59:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(market):=20=E6=B7=BB=E5=8A=A0=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E6=A8=A1=E5=9D=97=E5=B9=B6=E4=BC=98=E5=8C=96=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 market目录下添加新的页面组件- 修改 student/login 页面的登录逻辑,根据用户类型跳转到不同页面 - 更新 config.js,启用线上 API 地址 - 在 market/index 页面添加自定义导航栏 - 调整 pages.json 中的导航样式配置 --- common/config.js | 8 ++++---- pages.json | 2 +- pages/market/index/index.vue | 24 ++++++++++++++++++++++- pages/student/login/login.vue | 37 +++++++++++++++++++++++++++++------ 4 files changed, 59 insertions(+), 12 deletions(-) diff --git a/common/config.js b/common/config.js index 059450c..949925a 100644 --- a/common/config.js +++ b/common/config.js @@ -1,10 +1,10 @@ // 线上地址 -// const Api_url='http://146.56.228.75:20021/api' -// const img_domian = 'http://146.56.228.75:20021/' +const Api_url='http://146.56.228.75:20021/api' +const img_domian = 'http://146.56.228.75:20021/' //本地测试地址 -const Api_url='http://zhjw.cc/api' -const img_domian = 'http://zhjw.cc/' +// const Api_url='http://zhjw.cc/api' +// const img_domian = 'http://zhjw.cc/' const IsDemo = false diff --git a/pages.json b/pages.json index 2c5cdcc..a82de67 100644 --- a/pages.json +++ b/pages.json @@ -359,7 +359,7 @@ "path": "pages/market/index/index", "style": { "navigationBarTitleText": "首页", - "navigationStyle": "default", + "navigationStyle": "custom", "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "black" } diff --git a/pages/market/index/index.vue b/pages/market/index/index.vue index 935b035..d2a8ea4 100644 --- a/pages/market/index/index.vue +++ b/pages/market/index/index.vue @@ -1,5 +1,11 @@