diff --git a/src/api/common.js b/src/api/common.js
index e5b6355f..2e8954f6 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -39,4 +39,27 @@ export const uploadFile = (file, data) => {
}
});
});
-};
\ No newline at end of file
+};
+
+
+// 对象存储预览 /traoss/tras3/show/{文件ID}
+export function previewFile(id,responseType = 'blob') {
+ const token = getToken();
+ const header = {};
+ if (token)
+ header['summary'] = token
+
+ return new Promise((resolve, reject) => {
+ uni.request({
+ url: `/traoss/tras3/show/${id}`,
+ header,
+ responseType,
+ success(result) {
+ resolve(result.data)
+ },
+ fail(error) {
+ reject(new Error('Upload failed'));
+ }
+ });
+ });
+}
\ No newline at end of file
diff --git a/src/components/image-preview/image-preview.vue b/src/components/image-preview/image-preview.vue
new file mode 100644
index 00000000..44965b37
--- /dev/null
+++ b/src/components/image-preview/image-preview.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index c0d51724..2b1c986b 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -18,6 +18,15 @@
}
}
},
+ {
+ "path": "pages/course/index",
+ "style": {
+ "navigationBarTitleText": "课程中心",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+ },
{
"path": "pages/intelligent_answering/index",
"style": {
diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue
new file mode 100644
index 00000000..e0a4cc8b
--- /dev/null
+++ b/src/pages/course/index.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+ 课程中心
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 274abc18..93264ae0 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -73,7 +73,7 @@
-
+
课程中心
diff --git a/src/uni_modules/uv-badge/changelog.md b/src/uni_modules/uv-badge/changelog.md
new file mode 100644
index 00000000..b0ba104c
--- /dev/null
+++ b/src/uni_modules/uv-badge/changelog.md
@@ -0,0 +1,7 @@
+## 1.0.2(2023-06-04)
+1. 修复type等属性为null的时候不显示徽标的BUG
+## 1.0.1(2023-05-16)
+1. 优化组件依赖,修改后无需全局引入,组件导入即可使用
+2. 优化部分功能
+## 1.0.0(2023-05-10)
+uv-badge 徽标数,数字角标
diff --git a/src/uni_modules/uv-badge/components/uv-badge/props.js b/src/uni_modules/uv-badge/components/uv-badge/props.js
new file mode 100644
index 00000000..c6369c39
--- /dev/null
+++ b/src/uni_modules/uv-badge/components/uv-badge/props.js
@@ -0,0 +1,73 @@
+export default {
+ props: {
+ // 是否显示圆点
+ isDot: {
+ type: Boolean,
+ default: false
+ },
+ // 显示的内容
+ value: {
+ type: [Number, String],
+ default: ''
+ },
+ // 是否显示
+ show: {
+ type: Boolean,
+ default: true
+ },
+ // 最大值,超过最大值会显示 '{max}+'
+ max: {
+ type: [Number, String],
+ default: 999
+ },
+ // 主题类型,error|warning|success|primary
+ type: {
+ type: [String,undefined,null],
+ default: 'error'
+ },
+ // 当数值为 0 时,是否展示 Badge
+ showZero: {
+ type: Boolean,
+ default: false
+ },
+ // 背景颜色,优先级比type高,如设置,type参数会失效
+ bgColor: {
+ type: [String, null],
+ default: null
+ },
+ // 字体颜色
+ color: {
+ type: [String, null],
+ default: null
+ },
+ // 徽标形状,circle-四角均为圆角,horn-左下角为直角
+ shape: {
+ type: [String,undefined,null],
+ default: 'circle'
+ },
+ // 设置数字的显示方式,overflow|ellipsis|limit
+ // overflow会根据max字段判断,超出显示`${max}+`
+ // ellipsis会根据max判断,超出显示`${max}...`
+ // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
+ numberType: {
+ type: [String,undefined,null],
+ default: 'overflow'
+ },
+ // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
+ offset: {
+ type: Array,
+ default: () => []
+ },
+ // 是否反转背景和字体颜色
+ inverted: {
+ type: Boolean,
+ default: false
+ },
+ // 是否绝对定位
+ absolute: {
+ type: Boolean,
+ default: false
+ },
+ ...uni.$uv?.props?.badge
+ }
+}
\ No newline at end of file
diff --git a/src/uni_modules/uv-badge/components/uv-badge/uv-badge.vue b/src/uni_modules/uv-badge/components/uv-badge/uv-badge.vue
new file mode 100644
index 00000000..f7d3911a
--- /dev/null
+++ b/src/uni_modules/uv-badge/components/uv-badge/uv-badge.vue
@@ -0,0 +1,176 @@
+
+ {{ isDot ? '' :showValue }}
+
+
+
+
+
diff --git a/src/uni_modules/uv-badge/package.json b/src/uni_modules/uv-badge/package.json
new file mode 100644
index 00000000..5a813864
--- /dev/null
+++ b/src/uni_modules/uv-badge/package.json
@@ -0,0 +1,87 @@
+{
+ "id": "uv-badge",
+ "displayName": "uv-badge 徽标数,数字角标 全面兼容小程序、nvue、vue2、vue3等多端",
+ "version": "1.0.2",
+ "description": "徽标数一般用于图标右上角显示未读的消息数量,提示用户点击,有圆点和圆包含文字两种形式。",
+ "keywords": [
+ "uv-badge",
+ "uvui",
+ "uv-ui",
+ "徽标数",
+ "数字角标"
+ ],
+ "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-badge/readme.md b/src/uni_modules/uv-badge/readme.md
new file mode 100644
index 00000000..cf597ebe
--- /dev/null
+++ b/src/uni_modules/uv-badge/readme.md
@@ -0,0 +1,11 @@
+## Badge 徽标数
+
+> **组件名:uv-badge**
+
+该组件一般用于图标右上角显示未读的消息数量,提示用户点击,有圆点和圆包含文字两种形式。
+
+### 查看文档
+
+### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui)
+
+#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui、官方QQ群
diff --git a/src/uni_modules/uv-tabs/changelog.md b/src/uni_modules/uv-tabs/changelog.md
new file mode 100644
index 00000000..a0924ba2
--- /dev/null
+++ b/src/uni_modules/uv-tabs/changelog.md
@@ -0,0 +1,22 @@
+## 1.0.9(2023-12-01)
+1. 修复current为字符串activeStyle不生效的BUG
+2. 优化文档
+## 1.0.8(2023-10-13)
+1. 优化点击一个选项,change事件重复派发的问题
+## 1.0.7(2023-09-14)
+1. 优化首次加载时,处理下划线会有左到右的过渡效果
+## 1.0.6(2023-09-13)
+1. 修复设置lineWidth未带单位产生的误差BUG
+## 1.0.5(2023-06-23)
+添加uv-icon依赖
+## 1.0.4(2023-06-16)
+1. 增加customStyle参数
+## 1.0.3(2023-06-12)
+1. activeStyle设置字体大小,导致下划线位置不对的BUG,增加this.$nextTick机制
+## 1.0.2(2023-05-23)
+1. 修复nvue中不滚动的BUG
+## 1.0.1(2023-05-16)
+1. 优化组件依赖,修改后无需全局引入,组件导入即可使用
+2. 优化部分功能
+## 1.0.0(2023-05-10)
+uv-tabs 标签选项卡
diff --git a/src/uni_modules/uv-tabs/components/uv-tabs/props.js b/src/uni_modules/uv-tabs/components/uv-tabs/props.js
new file mode 100644
index 00000000..acab29e2
--- /dev/null
+++ b/src/uni_modules/uv-tabs/components/uv-tabs/props.js
@@ -0,0 +1,71 @@
+export default {
+ props: {
+ // 滑块的移动过渡时间,单位ms
+ duration: {
+ type: Number,
+ default: 300
+ },
+ // tabs标签数组
+ list: {
+ type: Array,
+ default: () => []
+ },
+ // 滑块颜色
+ lineColor: {
+ type: String,
+ default: '#3c9cff'
+ },
+ // 菜单选择中时的样式
+ activeStyle: {
+ type: [String, Object],
+ default: () => ({
+ color: '#303133'
+ })
+ },
+ // 菜单非选中时的样式
+ inactiveStyle: {
+ type: [String, Object],
+ default: () => ({
+ color: '#606266'
+ })
+ },
+ // 滑块长度
+ lineWidth: {
+ type: [String, Number],
+ default: 20
+ },
+ // 滑块高度
+ lineHeight: {
+ type: [String, Number],
+ default: 3
+ },
+ // 滑块背景显示大小,当滑块背景设置为图片时使用
+ lineBgSize: {
+ type: String,
+ default: 'cover'
+ },
+ // 菜单item的样式
+ itemStyle: {
+ type: [String, Object],
+ default: () => ({
+ height: '44px'
+ })
+ },
+ // 菜单是否可滚动
+ scrollable: {
+ type: Boolean,
+ default: true
+ },
+ // 当前选中标签的索引
+ current: {
+ type: [Number, String],
+ default: 0
+ },
+ // 默认读取的键名
+ keyName: {
+ type: String,
+ default: 'name'
+ },
+ ...uni.$uv?.props?.tabs
+ }
+}
\ No newline at end of file
diff --git a/src/uni_modules/uv-tabs/components/uv-tabs/uv-tabs.vue b/src/uni_modules/uv-tabs/components/uv-tabs/uv-tabs.vue
new file mode 100644
index 00000000..cfbc3b70
--- /dev/null
+++ b/src/uni_modules/uv-tabs/components/uv-tabs/uv-tabs.vue
@@ -0,0 +1,390 @@
+
+
+
+
+
+
+
+
+ {{ item[keyName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/uv-tabs/package.json b/src/uni_modules/uv-tabs/package.json
new file mode 100644
index 00000000..b56f1080
--- /dev/null
+++ b/src/uni_modules/uv-tabs/package.json
@@ -0,0 +1,90 @@
+{
+ "id": "uv-tabs",
+ "displayName": "uv-tabs 标签选项卡 全面兼容vue3+2、app、h5、小程序等多端",
+ "version": "1.0.9",
+ "description": "标签选项卡组件,是一个tabs标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的tab会自动移动到组件的中间位置。",
+ "keywords": [
+ "选项卡",
+ "uvui",
+ "uv-ui",
+ "tab",
+ "标签"
+],
+ "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-badge",
+ "uv-sticky",
+ "uv-icon"
+ ],
+ "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-tabs/readme.md b/src/uni_modules/uv-tabs/readme.md
new file mode 100644
index 00000000..88b74aa0
--- /dev/null
+++ b/src/uni_modules/uv-tabs/readme.md
@@ -0,0 +1,19 @@
+## Tabs 标签选项卡
+
+> **组件名:uv-tabs**
+
+标签选项卡组件,是一个`tabs`标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的`tab`会自动移动到组件的中间位置。
+
+# 查看文档
+
+## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP)
+
+### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui)
+
+
+
+
+
+
+
+#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群
\ No newline at end of file
diff --git a/uni_modules.rar b/uni_modules.rar
deleted file mode 100644
index 5fc0b848..00000000
Binary files a/uni_modules.rar and /dev/null differ