diff --git a/apis/modules/course.js b/apis/modules/course.js index 6808f9f..3fa9aac 100644 --- a/apis/modules/course.js +++ b/apis/modules/course.js @@ -1,6 +1,10 @@ import request from '@/apis/request.js' const { get, post } = request +export const getPlayAuth = id => { + return get('nakadai/nakadai/oss/getPlayAuth/' + id) +} + export const getSchoolCourseAuthority = () => { return get('nakadai/nakadai/curriculum/getSchoolCourseAuthority') } diff --git a/course/addCourse/addCourse.vue b/course/addCourse/addCourse.vue deleted file mode 100644 index 40c3996..0000000 --- a/course/addCourse/addCourse.vue +++ /dev/null @@ -1,399 +0,0 @@ - - - - - diff --git a/course/clients/clients.vue b/course/clients/clients.vue deleted file mode 100644 index 3612133..0000000 --- a/course/clients/clients.vue +++ /dev/null @@ -1,280 +0,0 @@ - - - - - diff --git a/course/courseDetail/courseDetail.vue b/course/courseDetail/courseDetail.vue index d2a1b3e..e0fe6bb 100644 --- a/course/courseDetail/courseDetail.vue +++ b/course/courseDetail/courseDetail.vue @@ -1,7 +1,11 @@ diff --git a/course/editCourse/editCourse.vue b/course/editCourse/editCourse.vue deleted file mode 100644 index 2eb2a5d..0000000 --- a/course/editCourse/editCourse.vue +++ /dev/null @@ -1,504 +0,0 @@ - - - - - diff --git a/course/orderDetail/orderDetail.vue b/course/orderDetail/orderDetail.vue deleted file mode 100644 index 74f3fd0..0000000 --- a/course/orderDetail/orderDetail.vue +++ /dev/null @@ -1,1201 +0,0 @@ - - - - - diff --git a/course/ordered/ordered.vue b/course/ordered/ordered.vue deleted file mode 100644 index 85e08f0..0000000 --- a/course/ordered/ordered.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - - - diff --git a/course/practiceDetail/practiceDetail.vue b/course/practiceDetail/practiceDetail.vue index 6fa4ded..9eb54d7 100644 --- a/course/practiceDetail/practiceDetail.vue +++ b/course/practiceDetail/practiceDetail.vue @@ -13,6 +13,7 @@ - - diff --git a/course/shopCart/shopCart.vue b/course/shopCart/shopCart.vue deleted file mode 100644 index 40fe190..0000000 --- a/course/shopCart/shopCart.vue +++ /dev/null @@ -1,317 +0,0 @@ - - - - - diff --git a/libs/util.js b/libs/util.js index 8e72d90..ec3297a 100644 --- a/libs/util.js +++ b/libs/util.js @@ -1,5 +1,3 @@ -import Product from '@/config/product' - const files = [ 'https://huoran.oss-cn-shenzhen.aliyuncs.com/用户服务协议.docx', // 用户服务协议 'https://huoran.oss-cn-shenzhen.aliyuncs.com/用户隐私协议.docx', // 用户隐私协议 @@ -7,8 +5,14 @@ const files = [ 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798621083.docx', // 大数据 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798646462.docx', // 金融科技 ] -const docExts = ['doc', 'xls', 'ppt', 'pdf', 'docx', 'xlsx', 'pptx'] +const exts = { + video: 'mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv', + audio: 'mp3,aac,ape,flac,wav,wma,amr,mid', + img: 'jpg,jpeg,png,gif,svg,psd', + doc: 'doc,docx,txt,xls,xlsx,csv,xml,ppt,pptx' +} export default { + exts, // 路由跳转 to(url) { uni.navigateTo({ @@ -60,22 +64,6 @@ export default { } return fmt }, - // 获取商务经理id - getBmId(val) { - return uni.getStorageSync('team').partnerId - }, - // 获取商务经理名称 - getBmName(val) { - return uni.getStorageSync('team').partnerClassificationName - }, - // 返回图标。如果有图标,则直接返回 - getIcon(e) { - return e.appletIcon || Product.normalIcon - }, - // 判断文件类型是否能够通过uni.openDocument打开(doc, xls, ppt, pdf, docx, xlsx, pptx) - isDoc(ext) { - return docExts.includes(ext) - }, // 预览文档 openFile(id) { uni.showLoading({ @@ -110,14 +98,6 @@ export default { } }) }, - // 产品管理的产品分类(classificationId)有6个,订单管理的产品分类(authority)有5个,后者是由前者决定的,但是id不一样。把产品管理的分类id传入这个函数,即可返回订单的分类id - getOrderType(id) { - if (id == 1 || id == 2) return 1 - if (id == 3) return 2 - if (id == 4) return 3 - if (id == 5) return 0 - if (id == 6) return 4 - }, // 去掉html标签 removeTag(str) { return str.replace(/(<[^>]+>)|(( )+)/g , '') diff --git a/package-lock.json b/package-lock.json index eb2ff65..941933a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,14 @@ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" }, + "aliyun-aliplayer": { + "version": "2.27.1", + "resolved": "https://registry.npmmirror.com/aliyun-aliplayer/-/aliyun-aliplayer-2.27.1.tgz", + "integrity": "sha512-vm3YmxW7BAD/ZPYEdxS5HlCjwF2ayPXA0YWMvNIMpNHJX0FQiNpZcGhVz7mtWolN2+5hjbyGlC0GYkIKEwMs8w==", + "requires": { + "crypto-js": "^4.1.1" + } + }, "ansi-colors": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", @@ -161,6 +169,11 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, + "crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" + }, "cyclist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", diff --git a/package.json b/package.json index 569edcd..a977f10 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "上拉筛选" ], "dependencies": { + "aliyun-aliplayer": "^2.27.1", "copy-webpack-plugin": "^5.0.3", "umtrack-wx": "^2.8.0" } diff --git a/pages.json b/pages.json index 79d6e8e..20350c8 100644 --- a/pages.json +++ b/pages.json @@ -90,15 +90,6 @@ "enablePullDownRefresh": false } }, - - { - "path" : "setting/setting", - "style" : - { - "navigationBarTitleText": "设置", - "enablePullDownRefresh": false - } - }, { "path" : "password/password", "style" : @@ -106,22 +97,6 @@ "navigationBarTitleText": "修改密码", "enablePullDownRefresh": false } - }, - { - "path" : "addStaff/addStaff", - "style" : - { - "navigationBarTitleText": "邀请成员", - "enablePullDownRefresh": false - } - }, - { - "path" : "account/account", - "style" : - { - "navigationBarTitleText": "修改账号", - "enablePullDownRefresh": false - } } ,{ "path" : "phone/phone", @@ -139,24 +114,6 @@ "enablePullDownRefresh": false } } - ,{ - "path" : "qrcode/qrcode", - "style" : - { - "navigationBarTitleText": "邀请加入", - "enablePullDownRefresh": false - } - } - ,{ - "path" : "article/article", - "style" : - { - "navigationBarTitleText": "学习", - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#fff", - "enablePullDownRefresh": false - } - } ] } ], diff --git a/pages/achievement/achievement.vue b/pages/achievement/achievement.vue index 36bad64..69dd143 100644 --- a/pages/achievement/achievement.vue +++ b/pages/achievement/achievement.vue @@ -58,7 +58,7 @@ {{ item.experimentalName }} 得分:{{ item.score }}  耗时:{{ item.timeSum }}min 考核开始时间:{{ item.startTime }} - 考核结束时间:{{ item.lastTime }} + 考核结束时间:{{ item.submitTime }} 成绩报告 diff --git a/pages/index/index.vue b/pages/index/index.vue index 88efce6..6cb80e2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -63,7 +63,7 @@ }, 1500) }, onShow() { - uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOjM5NTc2LCJyblN0ciI6IlNMbWxtU1E0akE2RUlBT2RPVTV5eENPSHVZa3lpeDUzIiwiYWNjb3VudElkIjozOTU3NiwidXNlcklkIjozOTU3NSwic2Nob29sSWQiOjI4NDYsInVzZXJOYW1lIjoiYWMiLCJwbGF0Zm9ybUlkIjoiMSJ9.ouC5QsZkRnTCI6qk7ZqEYMRoapp2qq0kkAxWakzvjC8') + uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOjM5NTc2LCJyblN0ciI6IlpFVDVjb0k3Y2VBVHRYb0RtaDNiaHc5TlF2OVhmYmNRIiwiYWNjb3VudElkIjozOTU3NiwidXNlcklkIjozOTU3NSwic2Nob29sSWQiOjI4NDYsInVzZXJOYW1lIjoiYWMiLCJwbGF0Zm9ybUlkIjoiMSJ9.2Sltl681nbYYPnE0YX5xbF630uOe8hbEcYZqX3mqwCM') this.getTab() }, methods: { diff --git a/static/image/index/1.png b/static/image/index/1.png deleted file mode 100644 index 2a7a8ff..0000000 Binary files a/static/image/index/1.png and /dev/null differ diff --git a/static/image/index/2.png b/static/image/index/2.png deleted file mode 100644 index e6f6b81..0000000 Binary files a/static/image/index/2.png and /dev/null differ diff --git a/static/image/index/3.png b/static/image/index/3.png deleted file mode 100644 index b7b66ce..0000000 Binary files a/static/image/index/3.png and /dev/null differ diff --git a/static/image/index/4.png b/static/image/index/4.png deleted file mode 100644 index 0af3c84..0000000 Binary files a/static/image/index/4.png and /dev/null differ diff --git a/static/image/index/5.png b/static/image/index/5.png deleted file mode 100644 index d65619e..0000000 Binary files a/static/image/index/5.png and /dev/null differ diff --git a/static/image/index/6.png b/static/image/index/6.png deleted file mode 100644 index d416b91..0000000 Binary files a/static/image/index/6.png and /dev/null differ diff --git a/static/image/index/7.png b/static/image/index/7.png deleted file mode 100644 index 8fc2b6e..0000000 Binary files a/static/image/index/7.png and /dev/null differ diff --git a/static/image/index/8.png b/static/image/index/8.png deleted file mode 100644 index fd81395..0000000 Binary files a/static/image/index/8.png and /dev/null differ diff --git a/static/image/index/9.png b/static/image/index/9.png deleted file mode 100644 index f6fcd88..0000000 Binary files a/static/image/index/9.png and /dev/null differ diff --git a/static/image/index/banner.png b/static/image/index/banner.png deleted file mode 100644 index 5e12e76..0000000 Binary files a/static/image/index/banner.png and /dev/null differ diff --git a/static/image/index/banner1.png b/static/image/index/banner1.png deleted file mode 100644 index 96f920c..0000000 Binary files a/static/image/index/banner1.png and /dev/null differ diff --git a/static/image/info-bg.jpg b/static/image/info-bg.jpg deleted file mode 100644 index bf0bd0c..0000000 Binary files a/static/image/info-bg.jpg and /dev/null differ diff --git a/static/image/info.png b/static/image/info.png deleted file mode 100644 index cc48896..0000000 Binary files a/static/image/info.png and /dev/null differ diff --git a/static/image/logo.png b/static/image/logo.png deleted file mode 100644 index 54001c1..0000000 Binary files a/static/image/logo.png and /dev/null differ diff --git a/static/image/logo1.png b/static/image/logo1.png deleted file mode 100644 index 24e9c5f..0000000 Binary files a/static/image/logo1.png and /dev/null differ diff --git a/static/image/person26.png b/static/image/person26.png deleted file mode 100644 index 8ecb59c..0000000 Binary files a/static/image/person26.png and /dev/null differ diff --git a/static/image/person27.png b/static/image/person27.png deleted file mode 100644 index da9f936..0000000 Binary files a/static/image/person27.png and /dev/null differ diff --git a/static/image/person5.png b/static/image/person5.png deleted file mode 100644 index 7867860..0000000 Binary files a/static/image/person5.png and /dev/null differ diff --git a/static/image/person6.png b/static/image/person6.png deleted file mode 100644 index f2e1025..0000000 Binary files a/static/image/person6.png and /dev/null differ diff --git a/static/image/person7.png b/static/image/person7.png deleted file mode 100644 index b3639c3..0000000 Binary files a/static/image/person7.png and /dev/null differ diff --git a/static/image/person8.png b/static/image/person8.png deleted file mode 100644 index 404ca7b..0000000 Binary files a/static/image/person8.png and /dev/null differ diff --git a/static/image/person9.png b/static/image/person9.png deleted file mode 100644 index 3b1ae92..0000000 Binary files a/static/image/person9.png and /dev/null differ diff --git a/static/image/phone.png b/static/image/phone.png deleted file mode 100644 index b67616a..0000000 Binary files a/static/image/phone.png and /dev/null differ diff --git a/static/image/product.png b/static/image/product.png deleted file mode 100644 index 5c32c3c..0000000 Binary files a/static/image/product.png and /dev/null differ diff --git a/static/image/product/1.png b/static/image/product/1.png deleted file mode 100644 index 70f05e9..0000000 Binary files a/static/image/product/1.png and /dev/null differ diff --git a/static/image/product/2.png b/static/image/product/2.png deleted file mode 100644 index b69e84b..0000000 Binary files a/static/image/product/2.png and /dev/null differ diff --git a/static/image/product/3.png b/static/image/product/3.png deleted file mode 100644 index f4fe323..0000000 Binary files a/static/image/product/3.png and /dev/null differ diff --git a/static/image/product/4.png b/static/image/product/4.png deleted file mode 100644 index 1d975c6..0000000 Binary files a/static/image/product/4.png and /dev/null differ diff --git a/static/image/product/5.png b/static/image/product/5.png deleted file mode 100644 index 5c98aac..0000000 Binary files a/static/image/product/5.png and /dev/null differ diff --git a/static/image/product/6.png b/static/image/product/6.png deleted file mode 100644 index bf93532..0000000 Binary files a/static/image/product/6.png and /dev/null differ diff --git a/static/image/product/excel.png b/static/image/product/excel.png deleted file mode 100644 index 778174a..0000000 Binary files a/static/image/product/excel.png and /dev/null differ diff --git a/static/image/product/pdf.png b/static/image/product/pdf.png deleted file mode 100644 index d04fdc3..0000000 Binary files a/static/image/product/pdf.png and /dev/null differ diff --git a/static/image/product/ppt.png b/static/image/product/ppt.png deleted file mode 100644 index ddd6b10..0000000 Binary files a/static/image/product/ppt.png and /dev/null differ diff --git a/static/image/product/shop-blue.png b/static/image/product/shop-blue.png deleted file mode 100644 index e1f55c1..0000000 Binary files a/static/image/product/shop-blue.png and /dev/null differ diff --git a/static/image/product/shop.png b/static/image/product/shop.png deleted file mode 100644 index a698eff..0000000 Binary files a/static/image/product/shop.png and /dev/null differ diff --git a/static/image/product/word.png b/static/image/product/word.png deleted file mode 100644 index bedc504..0000000 Binary files a/static/image/product/word.png and /dev/null differ diff --git a/static/image/qrcode.png b/static/image/qrcode.png deleted file mode 100644 index 8654e2c..0000000 Binary files a/static/image/qrcode.png and /dev/null differ diff --git a/static/image/school.png b/static/image/school.png deleted file mode 100644 index af4535f..0000000 Binary files a/static/image/school.png and /dev/null differ diff --git a/static/image/study-bg.jpg b/static/image/study-bg.jpg deleted file mode 100644 index afe399f..0000000 Binary files a/static/image/study-bg.jpg and /dev/null differ diff --git a/static/image/tab3-1.png b/static/image/tab3-1.png deleted file mode 100644 index 72ae725..0000000 Binary files a/static/image/tab3-1.png and /dev/null differ diff --git a/static/image/tab3.png b/static/image/tab3.png deleted file mode 100644 index b8560b2..0000000 Binary files a/static/image/tab3.png and /dev/null differ diff --git a/static/image/trash.png b/static/image/trash.png deleted file mode 100644 index eda986d..0000000 Binary files a/static/image/trash.png and /dev/null differ diff --git a/static/image/unfold.png b/static/image/unfold.png deleted file mode 100644 index 62ca6e5..0000000 Binary files a/static/image/unfold.png and /dev/null differ diff --git a/static/image/wechat.png b/static/image/wechat.png deleted file mode 100644 index 9f8d946..0000000 Binary files a/static/image/wechat.png and /dev/null differ diff --git a/static/image/workbench/index1.png b/static/image/workbench/index1.png deleted file mode 100644 index bdbfa67..0000000 Binary files a/static/image/workbench/index1.png and /dev/null differ diff --git a/static/image/workbench/index10.png b/static/image/workbench/index10.png deleted file mode 100644 index 2153a6f..0000000 Binary files a/static/image/workbench/index10.png and /dev/null differ diff --git a/static/image/workbench/index11.png b/static/image/workbench/index11.png deleted file mode 100644 index 415c90c..0000000 Binary files a/static/image/workbench/index11.png and /dev/null differ diff --git a/static/image/workbench/index12.png b/static/image/workbench/index12.png deleted file mode 100644 index 076af33..0000000 Binary files a/static/image/workbench/index12.png and /dev/null differ diff --git a/static/image/workbench/index2.png b/static/image/workbench/index2.png deleted file mode 100644 index dd10c1b..0000000 Binary files a/static/image/workbench/index2.png and /dev/null differ diff --git a/static/image/workbench/index3.png b/static/image/workbench/index3.png deleted file mode 100644 index abe9779..0000000 Binary files a/static/image/workbench/index3.png and /dev/null differ diff --git a/static/image/workbench/index4.png b/static/image/workbench/index4.png deleted file mode 100644 index 029d403..0000000 Binary files a/static/image/workbench/index4.png and /dev/null differ diff --git a/static/image/workbench/index5.png b/static/image/workbench/index5.png deleted file mode 100644 index a33fdb7..0000000 Binary files a/static/image/workbench/index5.png and /dev/null differ diff --git a/static/image/workbench/index6.png b/static/image/workbench/index6.png deleted file mode 100644 index aee4959..0000000 Binary files a/static/image/workbench/index6.png and /dev/null differ diff --git a/static/image/workbench/index7.png b/static/image/workbench/index7.png deleted file mode 100644 index 1fbd6c4..0000000 Binary files a/static/image/workbench/index7.png and /dev/null differ diff --git a/static/image/workbench/index8.png b/static/image/workbench/index8.png deleted file mode 100644 index df914cf..0000000 Binary files a/static/image/workbench/index8.png and /dev/null differ diff --git a/static/image/workbench/index9.png b/static/image/workbench/index9.png deleted file mode 100644 index 186de65..0000000 Binary files a/static/image/workbench/index9.png and /dev/null differ diff --git a/user/account/account.vue b/user/account/account.vue deleted file mode 100644 index 991902e..0000000 --- a/user/account/account.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/user/addStaff/addStaff.vue b/user/addStaff/addStaff.vue deleted file mode 100644 index a48c611..0000000 --- a/user/addStaff/addStaff.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/user/article/article.vue b/user/article/article.vue deleted file mode 100644 index b5acd2b..0000000 --- a/user/article/article.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - - diff --git a/user/info/info.vue b/user/info/info.vue index a6898dd..32c63cc 100644 --- a/user/info/info.vue +++ b/user/info/info.vue @@ -5,15 +5,10 @@ 账号信息 - - - - + 学号 {{ userAccount.workNumber }} @@ -120,9 +115,9 @@ - + 展开更多 - + @@ -494,18 +489,25 @@ padding-bottom: 130rpx; } .avatar-btn { - display: inline-block; - padding: 0; - margin: 0 28rpx 0 0; + display: flex; + align-items: center; + padding: 14rpx 0; line-height: 0; - border: 0 !important; + text-align: left; + border: 0; + border-bottom: 1px solid #E6E8ED; background-color: transparent; + border-radius: 0; outline: none; - border-radius: 50%; + &:after { + display: none; + } .avatar { - width: 50rpx; - height: 50rpx; + width: 60rpx; + height: 60rpx; + margin-right: 20rpx; border: 0; + border-radius: 50%; } } .arch-title { @@ -533,12 +535,14 @@ font-size: 24rpx; color: #006EFF; - span { - cursor: pointer; - i { + .fold-inner { + display: flex; + justify-content: center; + align-items: center; + .icon { transition: .5s; } - &.active i { + &.active .icon { transform: rotate(180deg); } } diff --git a/user/plans/plans.vue b/user/plans/plans.vue deleted file mode 100644 index aa9c727..0000000 --- a/user/plans/plans.vue +++ /dev/null @@ -1,281 +0,0 @@ - - - - - diff --git a/user/qrcode/qrcode.vue b/user/qrcode/qrcode.vue deleted file mode 100644 index bd08b4d..0000000 --- a/user/qrcode/qrcode.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - - diff --git a/user/scheme/scheme.vue b/user/scheme/scheme.vue deleted file mode 100644 index 1360698..0000000 --- a/user/scheme/scheme.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - diff --git a/user/setting/setting.vue b/user/setting/setting.vue deleted file mode 100644 index 7364a2d..0000000 --- a/user/setting/setting.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/user/study/study.vue b/user/study/study.vue deleted file mode 100644 index 2228e1a..0000000 --- a/user/study/study.vue +++ /dev/null @@ -1,289 +0,0 @@ - - - - -