vue 实现分页和多页签功能

本文介绍了一个基于uni-app的任务管理界面实现方案,包括自定义导航栏、搜索框、标签页切换等功能,并展示了如何通过前后端交互获取和展示任务列表。

直接看源码

<template>
	<view class="wrap">
		<u-navbar  back-text="返回" title-color="#fff" back-icon-color="#ffffff" 
			:is-fixed="true" :is-back="true" 
			:back-text-style="{'color':'#fff'}"
			:background="background"  
			:custom-back="goback"
		>
			<view class="slot-wrap" v-if="true">
				<view class="search-wrap" v-if="true">
					<!-- 如果使用u-search组件,必须要给v-model绑定一个变量 -->
					<u-search v-model="selectParams.keyWord" @blur = "search()" placeholder="事项、跟进人、备注":show-action="false"  
					height="56" :action-style="{color: '#fff'}"></u-search>
				</view>
				<view class="navbar-right" v-if="true">
					<view class="message-box right-item">
						<u-icon name="plus" @click="addItem()" size="38">新增</u-icon>	
					</view>
				</view>	
			</view>		
		</u-navbar>
		<view class="u-tabs-box">
			<u-tabs-swiper activeColor="#f29100" ref="tabs" :list="list" :current="current" @change="change" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
		</view>
		<swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
			<swiper-item class="swiper-item" v-for="(item,index) in list" :key="index">
				<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
					<view class="page-box">
						<view class="order" v-for="(item, index2) in  dataList[index]" :key="item.aguid" >
							<view class="item_top" @click="editItem(item)">
								<view class="item_title">
									<view class="item_id_laber color0 " v-if="item.status ==0">待办公</view>
									<view class="item_id_laber color1" v-if="item.status == 1">已办公</view>
									&l
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Listest

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值