diff --git a/api/api.js b/api/api.js index fb4b15d..e26ddbe 100644 --- a/api/api.js +++ b/api/api.js @@ -23,12 +23,10 @@ const api = { smsLogin(data,header){ return request('/expertAPI/smsLogin', data, 'post', true,'application/json',header); }, - // 密码登录 pwdLogin(data){ return request('/expertAPI/login', data, 'post', true); }, - // 获取短信验证码 getCode(data,header) { return request('/expertAPI/smsSend', data, 'post', true,'application/json',header); @@ -81,11 +79,65 @@ const api = { return request('/expertAPI/my', data, 'post', false); }, + getVideoList(data) { + return request('/video/list', data, 'get', true); + }, + getVideoDetail(data) { + return request('/video/detail', data, 'get', true); + }, + getVideoHistory(data) { + return request('/expertAPI/VideoWatchRecord', data, 'post', false); + }, + deleteRecord(data) { + return request('/expertAPI/deleteRecord', data, 'post', false); + }, + + getCollectList(data) { + return request('/expertAPI/collectList', data, 'post', false); + }, + + getCollectionList(data) { + return request('/expertAPI/collectionList', data, 'post', false); + }, + //我的账户 + getMyAccount(data) { + return request('/expertPay/getBalanceU', data, 'post', false); + }, + + // 订单列表 + getOrderList(data) { + return request('/expertPay/orderList', data, 'post', false); + }, + + // 我的积分 + myBonusPoints(data) { + return request('/expertAPI/myBonusPoints', data, 'post', false); + }, // 新闻详情 getNewsDetail(data) { return request('/expertAPI/newsDetail', data, 'post', false); }, - + // 积分支付列表 + bonusPointsPayList(data) { + return request('/expertAPI/bonusPointsPayList', data, 'post', false); + }, + // 积分列表 + bonusPointsList(data) { + return request('/expertAPI/bonusPointsList', data, 'post', false); + }, + + getWelfarePage(data) { + return request('/expertAPI/getWelfarePage', data, 'post', false); + }, + + useWelfarePage(data) { + return request('/expertAPI/useWelfarePage', data, 'post', false); + }, + + getFlowerList(data) { + return request('/expertPay/getFlowerList', data, 'post', false); + }, + // 课件详情 getGandanFileDetail(data) { return request('/expertAPI/gandanFileDetail', data, 'post', false); diff --git a/pages.json b/pages.json index b5a9be5..8c9ec71 100644 --- a/pages.json +++ b/pages.json @@ -421,6 +421,26 @@ } } }, + { + "path": "myAccount/myAccount", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "我的账户", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myAccount/billDetails", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "账单明细", + "app": { + "bounce": "none" + } + } + }, { "path": "myCourseware/myCourseware", "style": { @@ -563,7 +583,7 @@ }, { - "path": "videoHistroy/videoHistroy", + "path": "videoHistory/videoHistory", "style": { "navigationStyle": "custom", "navigationBarTitleText": "uni-app分页", @@ -581,6 +601,66 @@ "bounce": "none" } } + }, + { + "path": "myCollect/video", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myCollect/english", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myCollect/file", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myCollect/news", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myCollect/huanjiao", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myPoint/myPoint", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "积分", + "app": { + "bounce": "none" + } + } } diff --git a/pages_app/myAccount/README.md b/pages_app/myAccount/README.md new file mode 100644 index 0000000..4d5bfba --- /dev/null +++ b/pages_app/myAccount/README.md @@ -0,0 +1,39 @@ +# 我的账户页面 + +## 页面描述 +这是一个100%还原的"我的账户"页面,包含以下功能: + +### 主要功能 +1. **状态栏显示** - 显示时间、网络状态、电池等信息 +2. **头部导航** - 包含返回按钮和页面标题 +3. **账户余额展示** - 显示用户头像和账户余额 +4. **操作选项** - 提现和账单明细功能 + +### 页面结构 +- `status-bar` - 状态栏区域 +- `header` - 头部导航区域 +- `account-summary` - 账户余额展示区域 +- `action-items` - 操作选项列表 +- `bottom-indicator` - 底部指示器 + +### 样式特点 +- 使用深红色/棕色渐变背景 (#8B2316 到 #A0522D) +- 圆形头像设计 +- 白色操作卡片 +- 响应式交互效果 + +### 使用方法 +1. 在 `pages.json` 中已配置路由 +2. 从其他页面通过 `uni.navigateTo` 跳转 +3. 支持返回上一页功能 + +### 技术实现 +- 使用 Vue 3 Composition API +- SCSS 样式预处理器 +- uni-app 框架 +- 响应式设计 + +### 注意事项 +- 头像图片路径:`/static/new_man_big.png` +- 页面标题:我的账户 +- 导航样式:自定义导航栏 diff --git a/pages_app/myAccount/billDetails.vue b/pages_app/myAccount/billDetails.vue new file mode 100644 index 0000000..2483226 --- /dev/null +++ b/pages_app/myAccount/billDetails.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/pages_app/myAccount/myAccount.vue b/pages_app/myAccount/myAccount.vue new file mode 100644 index 0000000..c7d4f38 --- /dev/null +++ b/pages_app/myAccount/myAccount.vue @@ -0,0 +1,284 @@ + + + + + diff --git a/pages_app/myCollect/english.vue b/pages_app/myCollect/english.vue new file mode 100644 index 0000000..a606e72 --- /dev/null +++ b/pages_app/myCollect/english.vue @@ -0,0 +1,381 @@ + + + + + diff --git a/pages_app/myCollect/file.vue b/pages_app/myCollect/file.vue new file mode 100644 index 0000000..399e000 --- /dev/null +++ b/pages_app/myCollect/file.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/pages_app/myCollect/huanjiao.vue b/pages_app/myCollect/huanjiao.vue new file mode 100644 index 0000000..81192fa --- /dev/null +++ b/pages_app/myCollect/huanjiao.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/pages_app/myCollect/myCollect.vue b/pages_app/myCollect/myCollect.vue index 28a9430..cae2465 100644 --- a/pages_app/myCollect/myCollect.vue +++ b/pages_app/myCollect/myCollect.vue @@ -5,7 +5,7 @@ - + 英文期刊 - - - - - 病例荟萃 - - - - - - 病例讨论 - - - - + 肝胆视频 - + 课件文档 - + 肝胆新闻 - + 患教学堂 @@ -64,11 +50,42 @@ + + diff --git a/pages_app/myCollect/video.vue b/pages_app/myCollect/video.vue new file mode 100644 index 0000000..dcfe5ed --- /dev/null +++ b/pages_app/myCollect/video.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/pages_app/myDownLoad/myDownLoad.vue b/pages_app/myDownLoad/myDownLoad.vue index 9659e3b..88b84cc 100644 --- a/pages_app/myDownLoad/myDownLoad.vue +++ b/pages_app/myDownLoad/myDownLoad.vue @@ -5,7 +5,7 @@ @@ -53,17 +54,28 @@ {{ item.amount }} - 加载中... - 没有更多了 + + 加载中... + + + 没有更多数据了 + + + + + + 当前页: {{ page }}, 加载中: {{ loading }}, 无更多: {{ noMore }} + diff --git a/pages_app/myPoint/myPoint.vue b/pages_app/myPoint/myPoint.vue new file mode 100644 index 0000000..f22b480 --- /dev/null +++ b/pages_app/myPoint/myPoint.vue @@ -0,0 +1,1043 @@ + + + + + diff --git a/pages_app/myVideo/myVideo.vue b/pages_app/myVideo/myVideo.vue index 34a8ce2..7d61b1a 100644 --- a/pages_app/myVideo/myVideo.vue +++ b/pages_app/myVideo/myVideo.vue @@ -5,7 +5,7 @@ + @@ -37,13 +38,16 @@ diff --git a/pages_app/videoHistroy/videoHistroy.vue b/pages_app/videoHistroy/videoHistroy.vue deleted file mode 100644 index 492ad57..0000000 --- a/pages_app/videoHistroy/videoHistroy.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - - diff --git a/pages_course/index/index.vue b/pages_course/index/index.vue index 8a042f3..77012e4 100644 --- a/pages_course/index/index.vue +++ b/pages_course/index/index.vue @@ -1,7 +1,7 @@