uniapp底部弹出层

 methods: {
            changeRelation() {
                uni.showActionSheet({
                    itemList:['妻子','丈夫','妈妈','爸爸','爷爷','奶奶','儿子','女儿','兄弟姐妹','亲戚','同学','同事','朋友','长辈','其他'],
                    success: (res) => {
                        switch(res.tapIndex){
                            case 0:
                            this.friendInfo.friendRelation = '妻子'
                            return;
                            case 1:
                            this.friendInfo.friendRelation = '丈夫'
                            return;
                            case 2:
                            this.friendInfo.friendRelation = '妈妈'
                            return;
                            case 3:
                            this.friendInfo.friendRelation = '爸爸'
                            return;
                            case 4:
                            this.friendInfo.friendRelation = '爷爷'
                            return;
                            case 5:
                            this.friendInfo.friendRelation = '奶奶'
                            return;
                           
                        }
                    }
                })
            }
        }
posted @   干红  阅读(236)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 一文读懂知识蒸馏
· 终于写完轮子一部分:tcp代理 了,记录一下
点击右上角即可分享
微信分享提示