diff --git a/.env.development.yh b/.env.development.yh index 06d66eef..474c810a 100644 --- a/.env.development.yh +++ b/.env.development.yh @@ -12,5 +12,5 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.158:9601' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.32.154:9602' -VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.32.157:9605' +# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.32.157:9605' diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 3e0fd12d..2cb5dddc 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -216,11 +216,11 @@ const isGettingPermission = ref(false) const isStartNum = ref(0); const isStopNum = ref(0); + const transLoading = ref(false) //#ifdef APP-PLUS // app端 const recordObjCom = ref({}); const IsAndEnv = getPhoneEnvBool('AND'); - const transLoading = ref(false) const initRecord = () => { recordObjCom.value = uni.getRecorderManager(); unref(recordObjCom)?.onStop((res, duration) => { diff --git a/src/pages/index/components/calendar.vue b/src/pages/index/components/calendar.vue index 2c25cbda..5bbe4fc1 100644 --- a/src/pages/index/components/calendar.vue +++ b/src/pages/index/components/calendar.vue @@ -10,7 +10,7 @@ todayWeek > index ?'is-pass':'', tipDateList.includes(item)?'is-tip':'' ]"> - + {{ nowDayStr === item ?'今': item.split('-')[2] @@ -32,7 +32,7 @@ onShow } from '@dcloudio/uni-app' - const emit = defineEmits(['update:modelValue']) + const emit = defineEmits(['update:modelValue', 'change']) const props = defineProps({ modelValue: { default: String, @@ -54,7 +54,8 @@ } }) const activeDateShow = ref(1) - const chooseDate = (item) => { + const chooseDate = (item, isDisabled) => { + if (isDisabled) return activeDate.value = item } const nowDate = ref(new Date()) @@ -114,13 +115,15 @@ \ No newline at end of file diff --git a/src/pages/index/components/todo-com/exam.vue b/src/pages/index/components/todo-com/exam.vue new file mode 100644 index 00000000..9c13c5ed --- /dev/null +++ b/src/pages/index/components/todo-com/exam.vue @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/pages/index/components/todo-com/item.scss b/src/pages/index/components/todo-com/item.scss new file mode 100644 index 00000000..aa6066e7 --- /dev/null +++ b/src/pages/index/components/todo-com/item.scss @@ -0,0 +1,115 @@ +.custom-todo-item.table-item{ + border-bottom: 2rpx solid #efefef; + margin-bottom: 25rpx; + position: relative; + padding-bottom: 32rpx; + &:last-child{ + border: 0; + } + .item-status{ + width: 100%; + font-size: 29rpx; + line-height: 40rpx; + margin-bottom: 14rpx; + color: #06f; + &.in-progress{ + color: #ff8a2d; + } + } + .item-title{ + overflow: hidden; + margin-bottom: 25rpx; + padding: 5rpx 0; + .item-type{ + float: left; + width: 64rpx; + height: 33rpx; + border-radius: 4rpx; + text-align: center; + font-size: 23rpx; + line-height: 30rpx; + box-sizing: border-box; + margin-right: 12rpx; + &.course-type{ + color: #06f; + border: 2rpx solid #06f; + background-color: rgba(0, 102, 255,.2); + } + &.exam-type{ + color: rgb(72, 174, 128); + border: 2rpx solid rgb(72, 174, 128); + background-color: rgba(72, 174, 128,.2); + } + &.task-type{ + color: rgb(130, 96, 253); + border: 2rpx solid rgb(130, 96, 253); + background-color: rgba(130, 96, 253,.2); + } + &.pk-type{ + color: rgb(245, 130, 73); + border: 2rpx solid rgb(245, 130, 73); + background-color: rgba(245, 130, 73,.2); + } + &.sparring-type{ + color: rgb(230, 192, 14); + border: 2rpx solid rgb(230, 192, 14); + background-color: rgba(230, 192, 14,.2); + } + } + .item-name{ + width: calc(100% - 76rpx); + float: left; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 29rpx; + line-height: 33rpx; + font-weight: 600; + color: #333; + } + } + .item-info{ + min-height: 33rpx; + overflow: hidden; + .item-info-item{ + display: block; + color: #666; + font-size: 23rpx; + margin-bottom: 15rpx; + line-height: 33rpx; + height: 33rpx; + &:last-child{ + margin-bottom: 0; + } + &.inline-item{ + float: left; + margin-bottom: 0; + &+.inline-item{ + margin-left: 30rpx; + } + } + } + } + .item-btn{ + position: absolute; + background-color: #ebf1ff; + width: 120rpx; + height: 54rpx; + line-height: 54rpx; + color: #2c8ef2; + font-size: 25rpx; + text-align: center; + border-radius: 27rpx; + right: 0; + bottom: 23rpx; + } +} +.color-blue{ + color: #06f; +} +.color-black{ + color: #333; +} +.inline-item{ + float: left; +} \ No newline at end of file diff --git a/src/pages/index/components/todo-com/pk.vue b/src/pages/index/components/todo-com/pk.vue new file mode 100644 index 00000000..68777730 --- /dev/null +++ b/src/pages/index/components/todo-com/pk.vue @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/src/pages/index/components/todo-com/sparring.vue b/src/pages/index/components/todo-com/sparring.vue new file mode 100644 index 00000000..f5132ed3 --- /dev/null +++ b/src/pages/index/components/todo-com/sparring.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/src/pages/index/components/todo-com/task.vue b/src/pages/index/components/todo-com/task.vue new file mode 100644 index 00000000..4888eea0 --- /dev/null +++ b/src/pages/index/components/todo-com/task.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/src/pages/index/components/todo-item.vue b/src/pages/index/components/todo-item.vue new file mode 100644 index 00000000..1cbbe9a2 --- /dev/null +++ b/src/pages/index/components/todo-item.vue @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/pages/index/components/todo.vue b/src/pages/index/components/todo.vue index d59dcbcf..af3282ea 100644 --- a/src/pages/index/components/todo.vue +++ b/src/pages/index/components/todo.vue @@ -1,32 +1,53 @@ \ No newline at end of file