From ab5b416ec97c2e2324960f3950b198aedb12c321 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Wed, 30 Sep 2020 17:31:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0changelog.md=202.=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=90=8E=E5=8F=B0=E5=AD=A6=E4=B9=A0=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=9E=9A=E4=B8=BE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 39 ++++++++++++++++++++++ app/Http/Admin/Views/student/learning.volt | 14 +++++++- app/Models/Client.php | 4 +-- public/static/home/css/common.css | 2 +- 4 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..b5fbe0f3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,39 @@ +### [v1.0.0-beta1](https://gitee.com/koogua/course-tencent-cloud/releases/v1.0.0-beta1)(2020-09-26) + +前台功能: + +- 注册、登录、忘记密码 +- 首页:轮播、新上课程、免费课程、会员课程 +- 课程列表:多维度筛选,多维度排序 +- 课程详情:章节,咨询,评价,相关课程,推荐课程,课程套餐 +- 课时详情:点播,直播,图文 +- 购买支付:课程,套餐,赞赏,会员 +- 教师列表 +- 群组列表 +- 即时通讯 +- 在线客服 +- 全文检索:课程、群组、用户 +- 个人主页:我的课程,我的收藏,我的好友,我的群组 +- 会员中心:我的课程,我的收藏,我的咨询,我的评价,我的好友,我的群组,我的订单,我的退款,个人信息,账户安全 +- 教学中心 :我的课程,我的直播,我的咨询 + +后台功能: + +- 课程管理:课程列表,课程搜索,添加课程,编辑课程,删除课程,课程分类 +- 套餐管理:套餐列表,添加套餐,编辑套餐,删除套餐 +- 话题管理:话题列表,添加话题,编辑话题,删除话题 +- 单页管理:单页列表,添加单页,编辑单页,删除单页 +- 帮助管理:帮助列表,添加帮助,编辑帮助,删除帮助,帮助分类 +- 学员管理:学员列表,搜索学员,添加学员,编辑学员,学习记录 +- 咨询管理:咨询列表,搜索咨询,编辑咨询,删除咨询 +- 评价管理:评价列表,搜索评价,编辑评价,删除评价 +- 群组管理:群组列表,搜索群组,编辑群组,删除群组 +- 轮播管理:轮播列表,编辑轮播,删除轮播 +- 导航管理:导航列表,编辑导航,删除导航 +- 订单管理:订单列表,搜索订单,订单详情 +- 交易管理:交易列表,搜索交易,交易详情 +- 退款管理:退款列表,搜索退款,退款详情,退款审核 +- 用户管理:用户列表,编辑用户,添加用户 +- 角色管理:角色列表,编辑角色,删除角色 +- 操作记录:记录列表,搜索记录,记录详情 +- 系统配置:网站,密钥,存储,点播,直播,短信,邮件,验证码,支付,会员,微聊 diff --git a/app/Http/Admin/Views/student/learning.volt b/app/Http/Admin/Views/student/learning.volt index e418b3a3..620b6a27 100644 --- a/app/Http/Admin/Views/student/learning.volt +++ b/app/Http/Admin/Views/student/learning.volt @@ -2,6 +2,18 @@ {% block content %} + {%- macro client_type_info(value) %} + {% if value == 1 %} + desktop + {% elseif value == 2 %} + mobile + {% elseif value == 3 %} + app + {% elseif value == 4 %} + 小程序 + {% endif %} + {%- endmacro %} + @@ -26,7 +38,7 @@

章节:{{ item.chapter.title }}

diff --git a/app/Models/Client.php b/app/Models/Client.php index 483b7214..80e546a3 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -8,7 +8,7 @@ class Client /** * 类型 */ - const TYPE_DESKTOP = 1; // home + const TYPE_DESKTOP = 1; // desktop const TYPE_MOBILE = 2; // mobile const TYPE_APP = 3; // app const TYPE_MINI = 4; // 小程序 @@ -16,7 +16,7 @@ class Client public static function types() { return [ - self::TYPE_DESKTOP => 'home', + self::TYPE_DESKTOP => 'desktop', self::TYPE_MOBILE => 'mobile', self::TYPE_APP => 'app', self::TYPE_MINI => 'mini', diff --git a/public/static/home/css/common.css b/public/static/home/css/common.css index c22f01a2..9cd749e6 100644 --- a/public/static/home/css/common.css +++ b/public/static/home/css/common.css @@ -116,7 +116,7 @@ #main { margin-top: 80px; margin-bottom: 30px; - min-height: 560px; + min-height: 760px; } #footer {
-

类型:{{ item.client_type }}

+

类型:{{ client_type_info(item.client_type) }}

地址:{{ item.client_ip }}

{{ item.duration|duration }}