新增任务

This commit is contained in:
weipengfei 2023-08-04 18:11:49 +08:00
parent 2e7f28d0ce
commit 9b3698abfa
2 changed files with 42 additions and 10 deletions

View File

@ -1,25 +1,57 @@
<template> <template>
<view class="c_task"> <view class="c_task_index">
<taskItem></taskItem> <u-sticky bgColor="#f5f5f5" offsetTop="44px">
<u-tabs :list="tabLists" @click="changeCurrent" lineColor='#3274F9' :scrollable="false"
inactiveStyle='color:#666' activeStyle="color:#3274F9"></u-tabs>
</u-sticky>
<view class="c_task_index_list">
<taskItem v-for="item in 20"></taskItem>
</view>
</view> </view>
</template> </template>
<script> <script>
import taskItem from "./taskItem.vue" import taskItem from "./taskItem.vue"
export default { export default {
name:"task", name: "task",
components: {taskItem}, components: { taskItem },
data() { data() {
return { return {
current: 0,
tabLists: [{
name: '全部',
}, {
name: '已完成'
}, {
name: '未完成'
}],
loadConfig: {
page: 1,
limit: 15,
lastpage: '',
loadingText: '努力加载中',
loadmoreText: '轻轻上拉',
nomoreText: '我也是有底线的~~',
status: 'loadmore'
},
list: []
}; };
},
methods: {
changeCurrent(e) {
this.current = e.index;
}
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.c_task{ .c_task_index {
padding-top: 28rpx; padding-bottom: 100rpx;
padding-bottom: 100rpx;
} .c_task_index_list {
padding-top: 28rpx;
}
}
</style> </style>

View File

@ -38,7 +38,7 @@
<view class="company_info" v-show="current==2"> <view class="company_info" v-show="current==2">
<companyFinance></companyFinance> <companyFinance></companyFinance>
</view> </view>
<view class="company_info" v-show="current==3"> <view v-show="current==3">
<task></task> <task></task>
</view> </view>
</view> </view>