From 9b2f03186e773ceaf15c8ac5b354e3ebba1ee4c1 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Mon, 7 Apr 2025 14:46:53 +0800
Subject: [PATCH] =?UTF-8?q?feat(member):=20=E6=B7=BB=E5=8A=A0=E5=AD=A6?=
=?UTF-8?q?=E5=91=98=E9=A6=96=E9=A1=B5=E5=8A=9F=E8=83=BD=E5=B9=B6=E8=B0=83?=
=?UTF-8?q?=E6=95=B4=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 member.js 中添加 memberIndex 方法,用于获取学员首页数据
- 更新 AQTabber.vue 中学员首页的 tab 栏配置
- 修改 index.vue 中的卡片样式,包括调整高度和注释掉部分信息
- 调整 my.vue 中的"我的成员"功能,目前将其注释掉
---
api/member.js | 10 ++++++++++
components/AQ/AQTabber.vue | 4 +++-
pages/student/index/index.vue | 29 +++++++++++++++--------------
pages/student/my/my.vue | 8 ++++----
4 files changed, 32 insertions(+), 19 deletions(-)
diff --git a/api/member.js b/api/member.js
index 6902775..3703fc7 100644
--- a/api/member.js
+++ b/api/member.js
@@ -1,6 +1,16 @@
import http from '../common/axios.js'
export default {
+
+
+ //学员首页
+ memberIndex(data = {}) {
+ let url = '/member/index'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
//学员详情
member(data) {
let url = '/member/member'
diff --git a/components/AQ/AQTabber.vue b/components/AQ/AQTabber.vue
index 91c3680..bf251bf 100644
--- a/components/AQ/AQTabber.vue
+++ b/components/AQ/AQTabber.vue
@@ -124,7 +124,8 @@
]
break;
case "3": //学员
- this.tabBar = [{
+ this.tabBar = [
+ {
text: "首页",
urlPath: '/pages/student/index/index', //自定义页面跳转路径
iconPath: "/static/images/tabbar/index.png",
@@ -145,6 +146,7 @@
]
break;
}
+ console.log(111,this.tabBar)
},
openView(e) {
console.log('点击跳转', e)
diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue
index ca87f95..41aeedd 100644
--- a/pages/student/index/index.vue
+++ b/pages/student/index/index.vue
@@ -14,17 +14,18 @@
-
-
- 班级
- 篮球少儿班
-
-
- 已耗课时
- 24/60
-
-
- 课程到期时间:2021.12.25
+
+
+
+
+
+
+
+
+
+
+
+
@@ -397,7 +398,7 @@
.overlay-image {
width: 95%;
- height: 100%;
+ height: 90%;
}
.multi-line-ellipsis {
@@ -459,7 +460,7 @@
.card-con {
width: 92%;
- height: 92%;
+ //height: 92%;
background-color: #fff;
border-radius: 20rpx;
position: absolute;
@@ -499,7 +500,7 @@
.card-con-txt1 {
display: flex;
justify-content: space-between;
- padding: 10rpx 20rpx 0;
+ padding: 20rpx 20rpx 0;
height: 220rpx;
}
diff --git a/pages/student/my/my.vue b/pages/student/my/my.vue
index 9a7d8d2..3c39199 100644
--- a/pages/student/my/my.vue
+++ b/pages/student/my/my.vue
@@ -51,10 +51,10 @@
课时消耗
-
- 我的成员
-
-
+
+
+
+
我的合同