uniapp实现表单弹窗

复制代码
    uni.showModal({
        title: '删除账户',
        confirmColor:'#3A3A3A',
        cancelColor:'#999999',
        confirmText:'确定',
        editable:true,//显示
        content:'请输入"delete"删除账户',
        success: function (res) {
          console.log(res)
          if(res.confirm){
            if(res.content=='delete'){
              console.log(123123123213)
              uni.setStorageSync("chooseDelJat", JSON.stringify(item));
              _this.$EventBus.$emit('delJat');
            }else {
              uni.showToast({
                title: '输入错误',
                icon:'none'
              })
            }
          }
        },
      })
相关推荐
kyriewen28 分钟前
白宫直接给 OpenAI 下了限制令,GPT-5.6 不能随便放出来了
前端·javascript·面试
PedroQue991 小时前
Vite插件v0.2.6:架构优化与自动化升级
前端·vite
threerocks3 小时前
什么?我连 A2A、MCP 都没学会,现在又来了 AG-UI、A2UI.
前端·aigc·ai编程
牛奶3 小时前
如何自己写一个浏览器插件?
前端·chrome·浏览器
亿元程序员4 小时前
为什么Cocos都4.0了还有人用2.x?
前端
MomentYY4 小时前
AI 到底是“懂”,还是在“猜”?
前端·人工智能·ai编程
鹏毓网络科技4 小时前
Cursor Rules 文件配置实战:3 个隐藏参数让我每月少写 40% 样板代码
前端·github
没烦恼3014 小时前
无痕模式下 HTTP\-First 拦截引发的“页面刷新”误判
前端
文心快码BaiduComate4 小时前
从个人提效到组织提效:Comate辅助构建自我进化的AI研发系统
前端·程序员
hunterandroid5 小时前
Compose 状态管理:remember、rememberSaveable 与状态提升
前端