diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 4ccd172..9b0d791 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -13,7 +13,7 @@
"type" : "uniCloud"
},
{
- "playground" : "custom",
+ "playground" : "standard",
"type" : "uni-app:app-android"
}
]
diff --git a/pages/YNEduApp/index/index.vue b/pages/YNEduApp/index/index.vue
index 8ff47cd..ae69baa 100644
--- a/pages/YNEduApp/index/index.vue
+++ b/pages/YNEduApp/index/index.vue
@@ -19,7 +19,7 @@
-
+
@@ -79,16 +79,20 @@ export default {
],
imgList: [
{
- image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- title: '昨夜星辰昨夜风,画楼西畔桂堂东'
+ image: require('../../../static/images/swiper1.png'),
+ title: '1'
},
{
- image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
- title: '身无彩凤双飞翼,心有灵犀一点通'
+ image: require('../../../static/images/swiper2.png'),
+ title: '2'
},
{
- image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
- title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
+ image: require('../../../static/images/swiper3.png'),
+ title: '3'
+ },
+ {
+ image: require('../../../static/images/swiper4.png'),
+ title: '4'
}
],
taskList: [],
@@ -101,7 +105,6 @@ export default {
this.getMsgList()
setTimeout(() => {
this.$verificationToken()
-
}, 1000)
},
methods: {
@@ -247,7 +250,7 @@ export default {
.search {
width: 100%;
- margin: 0 auto;
+ margin: 10px auto 0;
display: flex;
align-items: center;
}
diff --git a/pages/YNEduApp/learnProj/learnProj.vue b/pages/YNEduApp/learnProj/learnProj.vue
index ebfcce0..46f566c 100644
--- a/pages/YNEduApp/learnProj/learnProj.vue
+++ b/pages/YNEduApp/learnProj/learnProj.vue
@@ -1,27 +1,26 @@
-
-
- {{ item.text }}
-
-
+
+
+
+ {{ item.text }}
+
+
+
+
-
+
@@ -47,6 +46,10 @@
+
+
+ 暂无内容
+
@@ -58,6 +61,7 @@ import config from '@/config'
export default {
data() {
return {
+ activeIndex: 0,
statusList: [
// status -1: 全部 1: 已完成 0: 未完成
{ text: '全部', id: 0 },
@@ -96,71 +100,6 @@ export default {
],
// 项目列表
projList: []
- // projList: [
- // {
- // id: 1,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 5,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 71
- // },
- // {
- // id: 2,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 3,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 33
- // },
- // {
- // id: 3,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 2,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 94
- // },
- // {
- // id: 4,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 4,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 76
- // },
- // {
- // id: 5,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 1,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 63
- // },
- // {
- // id: 6,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 5,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 52
- // },
- // {
- // id: 7,
- // img: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- // title: '应急抢险',
- // star: 4,
- // avatar: '/static/eduImg/avatar.jpg',
- // user: '管理员',
- // percent: 18
- // }
- // ]
}
},
mounted() {
@@ -176,7 +115,8 @@ export default {
// this.projList = res.data
this.getStudentStudyWorkList(params)
},
- async chooseStatus(count) {
+ async chooseStatus(count, index) {
+ this.activeIndex = index
this.projList = []
// 清空搜索框
this.totalStatus.keyword = ''
@@ -184,12 +124,12 @@ export default {
userId: uni.getStorageSync('userId'),
status: '-1'
}
- this.totalStatus.statusCount = count
- if (count === 0) {
+ this.totalStatus.statusCount = count.id
+ if (count.id === 0) {
params.status = '-1'
- } else if (count === 1) {
+ } else if (count.id === 1) {
params.status = '1'
- } else if (count === 2) {
+ } else if (count.id === 2) {
params.status = '0'
}
// const res = await getStudentStudyWorkList(params)
@@ -265,6 +205,38 @@ export default {