diff --git a/.env.development b/.env.development index eeaca914..4b7a4662 100644 --- a/.env.development +++ b/.env.development @@ -12,5 +12,11 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' app入口 +<<<<<<< HEAD VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' +======= +# VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' +# VITE_APP_BASE_API_Url = 'http://25.16.122.65:7001' +# VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786' +>>>>>>> f9ef91e5fe7dbec56a29867b9d2d9f7e3792f0f4 diff --git a/src/api/common.js b/src/api/common.js index 8570d706..a9ed6ea4 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -79,15 +79,7 @@ export function previewFile(id, responseType = 'arraybuffer') { header, responseType, success(result) { - //#ifdef APP-PLUS - let _header = result.header['Content-Type'].split(';')[0] - // #endif - //#ifndef APP-PLUS - let _header = result.header['content-type'].split(';')[0] - // #endif - // let base64 = new Blob([result.data],{type:result.header['content-type'].split(';')[0]}) - let base64 = `data:${_header};base64,` + uni.arrayBufferToBase64(result.data) - resolve(base64) + resolve(result) }, fail(error) { reject(new Error(error)); @@ -122,4 +114,4 @@ export function previewCacheThumbImage(id, width = 30, height = 30) { } }); }); -} \ No newline at end of file +} diff --git a/src/api/course.js b/src/api/course.js index a24eedf7..0631c95f 100644 --- a/src/api/course.js +++ b/src/api/course.js @@ -1,6 +1,8 @@ import request from '@/api/request' const base_url = '/traapp' +const course_base_url = '/trastudy' + // 获取课程分类树接口 export const getCourseTypeListApi = (data) => { @@ -29,7 +31,7 @@ export const getTraTagListApi = (data) => { // 全部模块 export const queryCrsInfoByCatalogApi = (data) => { return request({ - url: base_url + '/crsInfo/queryCrsInfoByCatalog', + url: course_base_url + '/crsInfo/queryCrsInfoByCatalog', method: 'post', data }); @@ -37,7 +39,7 @@ export const queryCrsInfoByCatalogApi = (data) => { // 生产线模块- export const queryCrsInfoByPrdLineApi = (data) => { return request({ - url: base_url + '/crsInfo/queryCrsInfoByPrdLine', + url: course_base_url + '/crsInfo/queryCrsInfoByPrdLine', method: 'post', data }); @@ -45,7 +47,7 @@ export const queryCrsInfoByPrdLineApi = (data) => { // 最新 export const queryCrsInfoByLastnewApi = (data) => { return request({ - url: base_url + '/crsInfo/queryCrsInfoByLastnew', + url: course_base_url + '/crsInfo/queryCrsInfoByLastnew', method: 'post', data }); @@ -53,7 +55,7 @@ export const queryCrsInfoByLastnewApi = (data) => { // 最热 export const queryCrsInfoByPopularApi = (data) => { return request({ - url: base_url + '/crsInfo/queryCrsInfoByPopular', + url: course_base_url + '/crsInfo/queryCrsInfoByPopular', method: 'post', data }); @@ -61,7 +63,7 @@ export const queryCrsInfoByPopularApi = (data) => { // 推荐 export const queryCrsInfoByRecmdApi = (data) => { return request({ - url: base_url + '/crsInfo/queryCrsInfoByRecmd', + url: course_base_url + '/crsInfo/queryCrsInfoByRecmd', method: 'post', data }); diff --git a/src/api/study.js b/src/api/study.js new file mode 100644 index 00000000..bb329ee5 --- /dev/null +++ b/src/api/study.js @@ -0,0 +1,12 @@ +import request from '@/api/request' + +const base_url = '/trastudy' + +// 获取课程分类树接口 +export const getCourseStudyInfoApi = (data) => { + return request({ + url: base_url + '/traStdyInfo/queryTraStdyProgressAndTeacher', + method: 'post', + data + }); +}; \ No newline at end of file diff --git a/src/components/image-preview/image-preview.vue b/src/components/image-preview/image-preview.vue index cee0bf65..8a87ce8b 100644 --- a/src/components/image-preview/image-preview.vue +++ b/src/components/image-preview/image-preview.vue @@ -53,7 +53,12 @@ }); }else{ previewFile(id).then((result) => { + //#ifdef APP-PLUS + let _header = result.header['Content-Type'].split(';')[0] + // #endif + //#ifndef APP-PLUS let _header = result.header['content-type'].split(';')[0] + // #endif let base64 = `data:${_header};base64,` + uni.arrayBufferToBase64(result.data) this.imgUrlShow = base64; }); diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 2918d6c2..09fcbc06 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -115,7 +115,7 @@ .talking-info{ padding: 20rpx; border-radius: 15rpx; - background-color: #aaa; + background-color: #fff; .talking-gif{ width: 140rpx; height: 38rpx; diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 025df81a..576cb08a 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -9,27 +9,27 @@ - - + + - + - 李想 - 描述:产品 + {{item.teacherName}} + 描述:{{item.teacheDesc || '--'}} - 00:26 + - + - + 开启学习之旅 @@ -42,7 +42,6 @@ 1/20 - {{audioPath}} @@ -80,17 +79,35 @@ \ No newline at end of file diff --git a/src/pages/courseDetail/components/introduce.vue b/src/pages/courseDetail/components/introduce.vue index 2295b89e..1f6ac5d5 100644 --- a/src/pages/courseDetail/components/introduce.vue +++ b/src/pages/courseDetail/components/introduce.vue @@ -49,11 +49,13 @@ diff --git a/src/uni_modules/uv-popup/package.json b/src/uni_modules/uv-popup/package.json new file mode 100644 index 00000000..53c112ce --- /dev/null +++ b/src/uni_modules/uv-popup/package.json @@ -0,0 +1,92 @@ +{ + "id": "uv-popup", + "displayName": "uv-popup 弹出层 全面兼容vue3+2、app、h5、小程序等多端", + "version": "1.0.7", + "description": "uv-popup 弹出层容器,用于展示弹窗、信息提示等内容,支持上、下、左、右和中部弹出。组件只提供容器,内部内容由用户自定义。", + "keywords": [ + "uv-popup", + "uvui", + "uv-ui", + "popup", + "弹出层" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [ + "uv-ui-tools", + "uv-overlay", + "uv-transition", + "uv-icon", + "uv-status-bar", + "uv-safe-bottom" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/src/uni_modules/uv-popup/readme.md b/src/uni_modules/uv-popup/readme.md new file mode 100644 index 00000000..92229a83 --- /dev/null +++ b/src/uni_modules/uv-popup/readme.md @@ -0,0 +1,21 @@ +## Popup 弹出层 + +> **组件名:uv-popup** + +弹出层容器,用于展示弹窗、信息提示等内容,支持上、下、左、右和中部弹出。组件只提供容器,内部内容由用户自定义。 + +该组件已经放弃原来`uview2.x`的写法,参照了官方`uni-popup`的写法进行重构。在小程序端的性能大大提升,打开和关闭避免延迟,调用方法与之前相比也有所差异,具体请查看文档。 + +# 查看文档 + +## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) + +### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) + + + +![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) + + + +#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file diff --git a/src/uni_modules/uv-safe-bottom/changelog.md b/src/uni_modules/uv-safe-bottom/changelog.md new file mode 100644 index 00000000..dbcd565a --- /dev/null +++ b/src/uni_modules/uv-safe-bottom/changelog.md @@ -0,0 +1,11 @@ +## 1.0.4(2023-09-14) +1. 飞书小程序支持 +## 1.0.3(2023-08-14) +1. 修复百度报错的BUG +## 1.0.2(2023-07-02) +uv-safe-bottom 修复,在百度程序,抖音小程序不生效的BUG +## 1.0.1(2023-05-16) +1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 +2. 优化部分功能 +## 1.0.0(2023-05-10) +uv-safe-bottom 底部安全区组件 diff --git a/src/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue b/src/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue new file mode 100644 index 00000000..b5439a8b --- /dev/null +++ b/src/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/uni_modules/uv-safe-bottom/package.json b/src/uni_modules/uv-safe-bottom/package.json new file mode 100644 index 00000000..5bfaab08 --- /dev/null +++ b/src/uni_modules/uv-safe-bottom/package.json @@ -0,0 +1,87 @@ +{ + "id": "uv-safe-bottom", + "displayName": "uv-safe-bottom 底部安全区 全面兼容小程序、nvue、vue2、vue3等多端", + "version": "1.0.4", + "description": "这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。", + "keywords": [ + "uv-safe-bottom", + "uvui", + "uv-ui", + "bottom", + "底部安全区" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [ + "uv-ui-tools" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/src/uni_modules/uv-safe-bottom/readme.md b/src/uni_modules/uv-safe-bottom/readme.md new file mode 100644 index 00000000..8c788826 --- /dev/null +++ b/src/uni_modules/uv-safe-bottom/readme.md @@ -0,0 +1,11 @@ +## SafeBottom 底部安全区 + +> **组件名:uv-safe-bottom** + +这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。 + +### 查看文档 + +### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) + +#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 diff --git a/src/uni_modules/uv-status-bar/changelog.md b/src/uni_modules/uv-status-bar/changelog.md new file mode 100644 index 00000000..fc04088f --- /dev/null +++ b/src/uni_modules/uv-status-bar/changelog.md @@ -0,0 +1,7 @@ +## 1.0.2(2023-06-05) +1. 兼容渐变背景色 +## 1.0.1(2023-05-16) +1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 +2. 优化部分功能 +## 1.0.0(2023-05-10) +1. 新增uv-status-bar组件 diff --git a/src/uni_modules/uv-status-bar/components/uv-status-bar/props.js b/src/uni_modules/uv-status-bar/components/uv-status-bar/props.js new file mode 100644 index 00000000..f42e5250 --- /dev/null +++ b/src/uni_modules/uv-status-bar/components/uv-status-bar/props.js @@ -0,0 +1,8 @@ +export default { + props: { + bgColor: { + type: String, + default: 'transparent' + } + } +} diff --git a/src/uni_modules/uv-status-bar/components/uv-status-bar/uv-status-bar.vue b/src/uni_modules/uv-status-bar/components/uv-status-bar/uv-status-bar.vue new file mode 100644 index 00000000..ee887c71 --- /dev/null +++ b/src/uni_modules/uv-status-bar/components/uv-status-bar/uv-status-bar.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/uni_modules/uv-status-bar/package.json b/src/uni_modules/uv-status-bar/package.json new file mode 100644 index 00000000..dd4311ea --- /dev/null +++ b/src/uni_modules/uv-status-bar/package.json @@ -0,0 +1,87 @@ +{ + "id": "uv-status-bar", + "displayName": "uv-status-bar 状态栏占位", + "version": "1.0.2", + "description": "状态栏占位组件主要用于状态填充,比如在自定导航栏的时候,它会自动适配一个恰当的状态栏高度。", + "keywords": [ + "uv-status-bar", + "uvui", + "uv-ui", + "status-bar", + "状态栏" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [ + "uv-ui-tools" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/src/uni_modules/uv-status-bar/readme.md b/src/uni_modules/uv-status-bar/readme.md new file mode 100644 index 00000000..fc61e0b0 --- /dev/null +++ b/src/uni_modules/uv-status-bar/readme.md @@ -0,0 +1,10 @@ +## StatbusBar 状态栏占位 + +> **组件名:uv-status-bar** + +本组件主要用于状态填充,比如在自定导航栏的时候,它会自动适配一个恰当的状态栏高度。 + +### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) + +#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 +