diff --git a/.env.development b/.env.development
index ad663b78..6ee69cc3 100644
--- a/.env.development
+++ b/.env.development
@@ -15,20 +15,21 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# h5专用地址
-VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002'
# dev
-VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
+# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
# sit
-# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
+VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
# UAT
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
# 任东
# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
-VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
+# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
+
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604'
# 张建成
diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue
index 40e24717..a0b4dba4 100644
--- a/src/components/course-item/course-item.vue
+++ b/src/components/course-item/course-item.vue
@@ -9,7 +9,7 @@
{{itemInfo.crsName}}
- {{item.tagName}}
+ {{item.tagName}}
更新:{{itemInfo.mtTime}}
@@ -135,6 +135,11 @@
text-overflow: ellipsis;
max-width: 200rpx;
box-sizing: border-box;
+ &.active-tag{
+ background-color: #ffa150;
+ color: #fff;
+ border: 2rpx solid #ffa150;
+ }
}
}
}
diff --git a/src/components/search-input/search-input.vue b/src/components/search-input/search-input.vue
index 6298fa9a..c9fdc07b 100644
--- a/src/components/search-input/search-input.vue
+++ b/src/components/search-input/search-input.vue
@@ -56,9 +56,13 @@
inputValue.value = newVal;
}
);
-
+ const clearText = () => {
+ console.log('清除搜索结果');
+ inputValue.value = ''
+ };
const search = () => {
emits('search', inputValue.value);
};
+ defineExpose({clearText})
diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue
index 64a6608e..69f2381e 100644
--- a/src/pages/course/components/touchBtn.vue
+++ b/src/pages/course/components/touchBtn.vue
@@ -16,7 +16,7 @@
-
+
@@ -34,7 +34,7 @@
-
+
@@ -101,7 +101,8 @@
const showTalkingModel = ref(false)
const keyboardIsShow = ref(false)
-
+ const talkModelRef= ref()
+ watch(() => showTalkingModel.value, (val) => val ? talkModelRef.value.open() : talkModelRef.value.close())
watch(() => props.isLoading, () => {}, {
deep: true,
immediate: true
@@ -253,6 +254,8 @@
}
}
// #endif
+ // setTimeout(()=> {talkModelRef.value.open()}, 2000)
+
})
// 录音结束
diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue
index 25652b4a..cf821602 100644
--- a/src/pages/course/index.vue
+++ b/src/pages/course/index.vue
@@ -48,21 +48,23 @@
@@ -556,13 +558,45 @@ import { onShow } from "@dcloudio/uni-app"
.tags-view{
height: 84rpx;
display: block;
- padding: 20rpx 120rpx 20rpx 20rpx;
+ padding: 15rpx 120rpx 15rpx 20rpx;
box-sizing: border-box;
white-space: nowrap;
border-bottom: 2rpx solid #eee;
.tags-item{
margin-right: 30rpx;
display: inline-block;
+ &.active-tags-item{
+ position: relative;
+ overflow: hidden;
+ border-radius: 4rpx;
+ overflow: hidden;
+ &::before{
+ content: '';
+ display: block;
+ width: 40rpx;
+ height: 40rpx;
+ position: absolute;
+ right: -20rpx;
+ bottom: -20rpx;
+ transform: rotateZ(-45deg);
+ background-color: #06f;
+ overflow: hidden;
+ z-index: 10;
+ }
+ &::after{
+ content: '';
+ display: block;
+ width: 8rpx;
+ height: 4rpx;
+ position: absolute;
+ right: 3rpx;
+ bottom: 8rpx;
+ transform: rotateZ(-45deg);
+ border-left: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ z-index: 11;
+ }
+ }
::v-deep .uv-tags{
padding: 0 20rpx;
.uv-tags__text{
diff --git a/src/pages/courseDetail/index.vue b/src/pages/courseDetail/index.vue
index ae540e68..850831fc 100644
--- a/src/pages/courseDetail/index.vue
+++ b/src/pages/courseDetail/index.vue
@@ -239,22 +239,29 @@
try {
if (!id) {
common.loading('收藏中');
- const result = await insertTraPersonalCollectionTask({
+ insertTraPersonalCollectionTask({
collectTyp: '01',
collectBusId: crsId.value
- });
- console.log('result.body', result.body);
- form.value.collectId = result.body;
-
- common.msg('收藏成功');
+ })
+ .then((result) => {
+ form.value.collectId = result.body;
+ common.msg('收藏成功');
+ })
+ .catch(() => {
+ common.hideLoading();
+ });
} else {
common.loading('取消收藏中');
- await deleteTraPersonalCollectionById({
+ deleteTraPersonalCollectionById({
collectId: id
- });
- form.value.collectId = null;
-
- common.msg('取消成功');
+ })
+ .then(() => {
+ form.value.collectId = null;
+ common.msg('取消成功');
+ })
+ .catch(() => {
+ common.hideLoading();
+ });
}
} catch (e) {
common.hideLoading();
@@ -277,7 +284,6 @@
});
onUnload(() => {
uni.$off('refresh_comment_data');
-
// 如果收藏变了,并且上一页是收藏页,更新收藏列表
if (form.value.collectId !== collectId.value) {
const pages = getCurrentPages();
diff --git a/src/pages/courseRecord/components/examRecordItem.vue b/src/pages/courseRecord/components/examRecordItem.vue
index 4ddee29c..522958c6 100644
--- a/src/pages/courseRecord/components/examRecordItem.vue
+++ b/src/pages/courseRecord/components/examRecordItem.vue
@@ -26,7 +26,7 @@
:bold="true"
>
- 考试次数
+ 考试记录
diff --git a/src/pages/courseRecord/components/practiceRecordItem.vue b/src/pages/courseRecord/components/practiceRecordItem.vue
index b021a6b2..9cbb1ffa 100644
--- a/src/pages/courseRecord/components/practiceRecordItem.vue
+++ b/src/pages/courseRecord/components/practiceRecordItem.vue
@@ -26,7 +26,7 @@
:bold="true"
>
- 练习次数
+ 练习记录
diff --git a/src/pages/courseRecord/components/studyRecordItem.vue b/src/pages/courseRecord/components/studyRecordItem.vue
index 8a1b3721..81a78169 100644
--- a/src/pages/courseRecord/components/studyRecordItem.vue
+++ b/src/pages/courseRecord/components/studyRecordItem.vue
@@ -26,7 +26,7 @@
:bold="true"
>
- 学习次数
+ 学习记录
diff --git a/src/pages/examination/components/feedback.vue b/src/pages/examination/components/feedback.vue
index 9d4c5756..d701c8ed 100644
--- a/src/pages/examination/components/feedback.vue
+++ b/src/pages/examination/components/feedback.vue
@@ -1,5 +1,5 @@
-