uniapp实现表单弹窗

uniapp实现表单弹窗_第1张图片

    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'
              })
            }
          }
        },
      })

你可能感兴趣的:(uni-app,前端,javascript)