uni-app 实现点击列表隐藏显示
<!-- 卖家订单 --><view class="conent" v-for="(item,index) in list" :key='index'><view class="conent-bott"><view class="bott-b"><view class="b-r"><view class="revokes" @click="rejectS(item.id,item)"><text>{{currentname}}撤销</text></view></view></view><view class="share-itemS" v-if="item.showS"><view class="all-top " :class="currentTabs == item.id ? 'tab-list-active' : '' "v-for="(item,index) in allmi" :key='index' @click="alls" :data-current="item.id":data-name="item.name"><text>{{item.name}}</text></view></view></view></view>
</view>
export default {data() {return {// 列表list: [],currentTabs: 1,currentname: '同意',list: [{id: 3,name: '拒绝',},{id: 4,name: '同意',}],allmi: [{id: 3,name: '拒绝',},{id: 4,name: '同意',}],}},onLoad() {},methods: {sell() {var _this = thisthis.proims(data, ‘接口’).then((res) => {if (res.data.code == 200) {this.list = res.data.data//重要部分this.list.forEach((e) => (e.showS = false))}})},// 同意或驳回撤销(卖家)rejectS(e, item) {this.showS = !this.showS;let index = this.list.indexOf(item);this.list[index].showS = item.showS === null ? true : !item.showS;this.list = [...this.list];},}
}
//csspage {background: #FAFAFA;}// 卖家订单
.conent {width: 93%;height: auto;margin: auto;background: #fff;border-radius: 10rpx;// box-shadow: 1rpx 1rpx 1rpx #bfbfbf;box-shadow: 0 0 10px 0rpx #cccccc;margin-top: 15rpx;.conent-bott {width: 90%;height: auto;margin: auto;position: relative;.bott-b {width: auto;height: 120rpx;display: flex;color: #999999;justify-content: space-between;.b-r {width: auto;height: auto;display: flex;align-items: center;font-size: 28rpx;justify-content: space-between;.revokes {width: 210rpx;height: 50rpx;border: 1rpx solid #D2D2D2;display: flex;align-items: center;justify-content: center;color: #999999;margin-right: 10rpx;}}}.share-itemS {width: 170rpx;height: auto;background: #fff;position: absolute;right: 166rpx;// top: 248rpx;border-radius: 10rpx;box-shadow: 0 0 8px 0rpx #cccccc;// z-index: 1000;.all-top {width: auto;height: 80rpx;display: flex;align-items: center;justify-content: center;border-bottom: 1rpx solid #EFEFEF;font-size: 28rpx;color: #999999;}}.tab-list-active {color: #333333;font-weight: bold;font-size: 30rpx;}.jbott-b {width: auto;height: 120rpx;display: flex;justify-content: space-between;color: #999999;}}}.list-con {width: 100%;height: auto;background: #fff;margin: auto;margin-top: 30rpx;box-shadow: 5px 4px 10px #EEEEEE;.con-time {width: 100%;height: 75rpx;display: flex;align-items: center;border-bottom: 1rpx solid #F2F2F2;font-size: 28rpx;justify-content: space-around;.con-pho {width: auto;display: flex;font-size: 30rpx;align-items: center;color: #333333;}.con-suan {width: auto;display: flex;color: #999999;align-items: center;}}.con-con {width: 100%;height: 200rpx;display: flex;align-items: center;border-bottom: 1rpx solid #F2F2F2;color: #666666;font-size: 28rpx;justify-content: space-around;.con-pic {width: auto;height: 160rpx;display: flex;align-items: center;flex-direction: column;justify-content: space-evenly;.chan {font-size: 28rpx;color: #999999;font-size: 30rpx;}.mu {font-size: 34rpx;color: #333;font-weight: bold;}}}.con-bott {width: 100%;height: 100rpx;display: flex;align-items: center;color: #666666;font-size: 28rpx;justify-content: space-around;}}// .share {width: 100%;height: 100%;background: #000000;position: relative;z-index: 1;
}.share-box {width: 100%;height: 100%;position: fixed;top: 0rpx;left: 0rpx;bottom: 0rpx;right: 0rpx;background-color: rgba(0, 0, 0, 0.4);transition: .3s;z-index: 999;
}// 进入分享动画
.share-show {transition: all 0.3s ease;transform: translateY(0%) !important;
}
uni-app 实现点击列表隐藏显示相关推荐
- html列表隐藏显示出来,JavaScript栏目列表隐藏/显示简单实现
1.构建JavaScript库 (function(){ //将命名空间IC注册到window window['JSHide']={}; //隐藏侧边栏,并将图片换成右箭头图片 function yc ...
- uni app push 点击通知栏 打开app 跳转页面
参考 点击通知栏消息启动应用后无法跳转页面 - DCloud问答 onLaunch: function() {//#ifdef APP-PLUSplus.push.addEventListener(& ...
- vue实现两重列表集合,点击显示,点击隐藏的折叠效果,(默认显示集合最新一条数据,点击展开,显示集合所有数据)...
效果图: 默认显示最新一条数据: 点击显示所有数据: 代码: 说明:这里主要是 这块用来控制显示或者隐藏 根据当前点击的 这个方法里传递的index 对应 isShow 数组里的index ,对 ...
- android 10.0 launcher3 app列表隐藏某个app
1.概述 在10.0的系统产品中,对于在Launcher3中对于一些app不想显示出来的app中,需要在app列表中去掉不显示这些app的需要更改两处地方,一处是 加在列表时 一处是安装卸载app 更 ...
- android 软键盘监听、隐藏、显示、点击空白处隐藏和Android KEYCODE 键值大全
android 软键盘监听.隐藏.显示.点击空白处隐藏. textView.setOnKeyListener(new View.OnKeyListener() {@Overridepublic boo ...
- 微信小程序之多列表的显示和隐藏功能【附源码】
效果图: 实现思路: 实现单个列表的显示和隐藏应该使用唯一元素让程序知道你应该显示和隐藏哪个列表项,可以用数据的id: css中定义一个hidden{display:none}控制显示和隐藏,然后通过 ...
- php点击按钮显示隐藏代码,jQuery中点击按钮实现显示与隐藏的方法
jQuery能够简单快捷的实现很多功能,因此在前端开发中被广泛使用,正在学习jQuery的小伙伴,你会用jQuery实现点击显示再次点击隐藏的效果吗(即jQuery二次点击隐藏)?这篇文章就和大家讲讲 ...
- android 获取键盘回车键事件,设置软键盘回车键显示内容,点击空白处隐藏软键盘
首先设置EditText的回车属性 drawable文件 @drawable/editcolor <?xml version="1.0" encoding="utf ...
- uni app 自动化索引列表
uni app 自动化索引列表,官方推荐的第三方插件 https://ext.dcloud.net.cn/plugin?id=375 [{"letter": "A&quo ...
最新文章
- 如何确定线程池的大小?
- if for while until case select 命令
- 【PHP】网络相关封装的函数
- 电脑常用工具(阅读代码、文件搜索、思维导图、图片处理、文件比较、流程图、桌面效率工具)
- 18.了解各种与排序有关的选择
- iOS7初体验(2)——单元测试
- CSS实现标题右侧“更多”
- 第一:Git安装和使用github(超详解)
- 微软Whitehorse modeler的背后
- 日常如何维护OA系统?
- Nginx配置反向代理_飘云羽逸_新浪博客
- linux 内核kenel优化方案一 -O3编译 Makefile
- 华为程序员频交 Linux 内核补丁遭质疑,管理员后续回应:承认贡献,但请不要琐碎提交
- python抢淘宝的东西-Python实现淘宝秒杀功能
- GPS 入门 6 —— 各国卫星导航系统比较(北斗、伽利略、GLONASS、GPS)(转)
- windows服务器443端口被占用---云锁
- Windows系统远程连接Linux系统操作
- 操作系统 - - 生产者—消费者问题(PV操作)代码显示
- PowerShell:无法加载文件 XXXXXXX,因为在此系统上禁止运行脚本
- AJAX获取数据然后显示在页面
热门文章
- linux学到了什么技术,Linux到底学什么?如何学?
- 操作系统存储器管理实验报告_献上膝盖!华为工程师抛出一份堪称“举世无双”操作系统笔记...
- 三菱plc编程实例3000_三菱入门PLC编程PLC系统程序包括哪些
- limesurvey php5.2,limesurvey(配置心得)
- php redis 读写分离类,yii实现redis读写分离
- flask post json_【python:flask-SocketIO】网络通信框架简单了解
- 基于python的文件加密传输系统 毕业论文_20183411 李丞灏 2020-2021 《python程序设计》 实验三 加密传输文件 实验报告...
- python pexpect timeout_Python 的 pexpect 模块的问题
- 批量梯度下降python实现_python实现梯度下降算法的实例详解
- 卸载pytorch_Pytorch中的hook的使用详解