Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
XBRLPX-LS-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
XBRLPX-LS-h5
Commits
6eac8e6b
提交
6eac8e6b
authored
1月 02, 2024
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
45e13e52
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
42 行增加
和
22 行删除
+42
-22
login.ts
src/api/login.ts
+9
-9
courseItem.vue
src/pages/course/components/courseItem.vue
+3
-2
lecturerItem.vue
src/pages/lecturer/components/lecturerItem.vue
+20
-2
index.vue
src/pages/teachPoints/index.vue
+7
-6
courseStore.ts
src/store/modules/courseStore.ts
+3
-3
没有找到文件。
src/api/login.ts
浏览文件 @
6eac8e6b
import
request
from
"@/utils/request"
import
request
from
"@/utils/request"
;
// 登录
// 登录
export
const
getUserInfo
=
(
code
:
string
)
=>
{
export
const
getUserInfo
=
(
code
:
string
)
=>
{
alert
(
code
)
alert
(
code
)
;
request
(
request
(
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiService.User,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiService.User,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"POST"
,
"POST"
,
{
code
}
{
code
}
)
)
;
}
}
;
// 注册
// 注册
export
const
register
=
(
data
:
any
)
=>
{
export
const
register
=
(
data
:
any
)
=>
{
...
@@ -16,8 +16,8 @@ export const register = (data: any) => {
...
@@ -16,8 +16,8 @@ export const register = (data: any) => {
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiEditService.Quit,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiEditService.Quit,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"POST"
,
"POST"
,
data
data
)
)
;
}
}
;
// 上传图片
// 上传图片
export
const
uploadImage
=
(
data
:
any
)
=>
{
export
const
uploadImage
=
(
data
:
any
)
=>
{
...
@@ -25,8 +25,8 @@ export const uploadImage = (data: any) => {
...
@@ -25,8 +25,8 @@ export const uploadImage = (data: any) => {
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiEditService.Image,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiEditService.Image,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"POST"
,
"POST"
,
data
data
)
)
;
}
}
;
/**
/**
* @brief 手机密码登录
* @brief 手机密码登录
...
@@ -38,4 +38,4 @@ export const teachLogin = (data: any) =>
...
@@ -38,4 +38,4 @@ export const teachLogin = (data: any) =>
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiService.TeachLogin,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"/LQKJ.K3.PeiXunSystem.WebApi.WebApiService.TeachLogin,LQKJ.K3.PeiXunSystem.WebApi.common.kdsvc"
,
"POST"
,
"POST"
,
data
data
)
)
;
src/pages/course/components/courseItem.vue
浏览文件 @
6eac8e6b
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
</view>
</view>
<view
<view
style=
"
style=
"
width: 30%;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
align-items: end;
align-items: end;
...
@@ -78,7 +79,7 @@
...
@@ -78,7 +79,7 @@
<
template
#
foot
>
<
template
#
foot
>
<view
class=
"course-footer"
>
<view
class=
"course-footer"
>
<view>
所属班级:
{{
courseItem
.
className
}}
</view>
<view>
所属班级:
{{
courseItem
.
className
}}
</view>
<view
@
tap=
"toSeeMore"
>
<view
@
tap=
"toSeeMore"
style=
"width: 40%; text-align: end"
>
<text>
查看更多
</text>
<text>
查看更多
</text>
<u-icon
name=
"arrow-right-double"
color=
"#05A8FF"
size=
"24"
/>
<u-icon
name=
"arrow-right-double"
color=
"#05A8FF"
size=
"24"
/>
</view>
</view>
...
@@ -327,7 +328,7 @@ const collapseChange = (e: any) => {
...
@@ -327,7 +328,7 @@ const collapseChange = (e: any) => {
.course-collapse-footer
{
.course-collapse-footer
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
flex-start
;
font-size
:
24rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
font-weight
:
400
;
color
:
rgba
(
34
,
34
,
34
,
0
.5
);
color
:
rgba
(
34
,
34
,
34
,
0
.5
);
...
...
src/pages/lecturer/components/lecturerItem.vue
浏览文件 @
6eac8e6b
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</
template
>
</
template
>
<
template
#
foot
>
<
template
#
foot
>
<view
class=
"foot"
>
<view
class=
"foot"
>
<text>
{{
lecturerItem
.
FINTRODUCE
}}
</text>
<text
@
click=
"toSeeMore"
>
{{
lecturerItem
.
FINTRODUCE
}}
</text>
</view>
</view>
</
template
>
</
template
>
</u-card>
</u-card>
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
baseUrl
}
from
"@/utils/request"
;
import
{
baseUrl
}
from
"@/utils/request"
;
import
{
hidePhoneNumber
,
toast
}
from
"@/utils/util"
;
import
{
hidePhoneNumber
,
toast
}
from
"@/utils/util"
;
import
{
useCourseStore
}
from
"@/store/modules/courseStore"
;
import
taughtsPopup
from
"./taughtsPopup.vue"
;
import
taughtsPopup
from
"./taughtsPopup.vue"
;
const
props
=
defineProps
({
const
props
=
defineProps
({
...
@@ -69,6 +70,7 @@ const props = defineProps({
...
@@ -69,6 +70,7 @@ const props = defineProps({
}
as
any
,
}
as
any
,
});
});
const
courseStore
=
useCourseStore
();
const
show
=
ref
(
false
);
const
show
=
ref
(
false
);
const
taughtsRef
=
ref
();
const
taughtsRef
=
ref
();
...
@@ -96,9 +98,24 @@ const downTitleImage = () => {
...
@@ -96,9 +98,24 @@ const downTitleImage = () => {
const
showTaughts
=
()
=>
{
const
showTaughts
=
()
=>
{
taughtsRef
.
value
.
taughtList
=
props
.
lecturerItem
.
FCANCOURSES
;
taughtsRef
.
value
.
taughtList
=
props
.
lecturerItem
.
FCANCOURSES
;
console
.
log
(
taughtsRef
.
value
.
taughtList
);
show
.
value
=
true
;
show
.
value
=
true
;
};
};
const
toSeeMore
=
()
=>
{
let
data
=
[
{
Url
:
props
.
lecturerItem
.
FPHOTO
,
teachName
:
props
.
lecturerItem
.
FNAME
,
teachMsg
:
props
.
lecturerItem
.
FINTRODUCE
,
},
];
courseStore
.
setTeachs
(
data
);
setTimeout
(()
=>
{
uni
.
navigateTo
({
url
:
"/pages/course/seeMore"
,
});
},
300
);
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -147,6 +164,7 @@ const showTaughts = () => {
...
@@ -147,6 +164,7 @@ const showTaughts = () => {
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
margin-right
:
10rpx
;
}
}
}
}
}
}
...
...
src/pages/teachPoints/index.vue
浏览文件 @
6eac8e6b
...
@@ -4,17 +4,18 @@
...
@@ -4,17 +4,18 @@
<view
class=
"search"
>
<view
class=
"search"
>
<view
class=
"search-btn"
>
属地
</view>
<view
class=
"search-btn"
>
属地
</view>
<u-input
<u-input
v-model=
"listQuery.
territoriality
"
v-model=
"listQuery.
Sd
"
placeholder=
""
placeholder=
""
border
border
border-color=
"#F8F8F8"
border-color=
"#F8F8F8"
@
confirm=
"search($event, 'Sd')"
/>
/>
<uni-search-bar
<uni-search-bar
placeholder=
"关键词"
placeholder=
"关键词"
bgColor=
"#ffffff"
bgColor=
"#ffffff"
clearButton=
"auto"
clearButton=
"auto"
cancelButton=
"none"
cancelButton=
"none"
@
confirm=
"search"
@
confirm=
"search
($event)
"
/>
/>
</view>
</view>
<view
v-if=
"teachPointsList.length"
>
<view
v-if=
"teachPointsList.length"
>
...
@@ -47,12 +48,12 @@ const listQuery = reactive({
...
@@ -47,12 +48,12 @@ const listQuery = reactive({
pageSize
:
10
,
pageSize
:
10
,
total
:
0
,
total
:
0
,
Area
:
""
,
Area
:
""
,
territoriality
:
""
,
Sd
:
""
,
});
});
const
search
=
(
val
:
any
)
=>
{
const
search
=
(
val
:
any
,
type
?:
string
)
=>
{
if
(
type
!==
"Sd"
)
listQuery
.
Area
=
val
.
value
;
teachPointsList
.
value
=
[];
teachPointsList
.
value
=
[];
listQuery
.
Area
=
val
.
value
;
init
();
init
();
};
};
...
@@ -73,7 +74,7 @@ const init = async () => {
...
@@ -73,7 +74,7 @@ const init = async () => {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
if
(
res
.
total
>
10
)
status
.
value
=
"loadmore"
;
if
(
res
.
total
>
10
)
status
.
value
=
"loadmore"
;
else
status
.
value
=
"nomore"
;
else
status
.
value
=
"nomore"
;
teachPointsList
.
value
=
[...
teachPointsList
.
value
,
...
res
.
data
];
teachPointsList
.
value
=
[...
teachPointsList
.
value
,
...
(
res
.
data
||
[])
];
listQuery
.
total
=
res
.
total
;
listQuery
.
total
=
res
.
total
;
console
.
log
(
teachPointsList
.
value
);
console
.
log
(
teachPointsList
.
value
);
}
else
status
.
value
=
"nomore"
;
}
else
status
.
value
=
"nomore"
;
...
...
src/store/modules/courseStore.ts
浏览文件 @
6eac8e6b
...
@@ -3,14 +3,14 @@ export const useCourseStore = defineStore({
...
@@ -3,14 +3,14 @@ export const useCourseStore = defineStore({
state
()
{
state
()
{
return
{
return
{
Teachs
:
[],
Teachs
:
[],
}
}
;
},
},
getters
:
{
getters
:
{
getTeachs
:
(
state
:
any
)
=>
state
.
Teachs
,
getTeachs
:
(
state
:
any
)
=>
state
.
Teachs
,
},
},
actions
:
{
actions
:
{
async
setTeachs
(
Teachs
:
any
)
{
async
setTeachs
(
Teachs
:
any
)
{
this
.
Teachs
=
Teachs
this
.
Teachs
=
Teachs
;
},
},
},
},
})
})
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论