提交 6eac8e6b authored 作者: 刘旭's avatar 刘旭

更新

上级 45e13e52
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
) );
...@@ -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);
......
...@@ -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;
} }
} }
} }
......
...@@ -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";
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论