zoukankan      html  css  js  c++  java
  • 提示弹窗分类总结

    //半透明黑色  提示弹窗  
    uni.showLoading({ title: "登录中或者加载中", mask: true });
    //隐藏

    uni.hideLoading();

    //提示弹窗 用在接口调取 黑色半透明

    uni.showToast({
      title: data.msg, //提示内容
      image: "/static/img/warn.png", //提示图
      duration: 2000   //显现时长
    });

    uni.showToast({
      icon: "none", //不显示图标,此时 title 文本在小程序最多可显示两行,App仅支持单行显示

      icon:"success", //显示成功图标,此时 title 文本最多显示 7 个汉字长度。默认值

      icon:"loading",  //显示加载图标,此时 title 文本最多显示 7 个汉字长度。

      title: "请上传核验照片",
      duration: 2000
    });

    uni.hideToast();


    //带确定取消的提示弹窗

    uni.showModal({
      title: "提示",
      content:"功能暂未开放",
      success: res => {
        if (res.confirm) {  //确定操作

        } else if (res.cancel) {  //取消操作
          console.log("用户点击取消");
        }
      }
    });




  • 相关阅读:
    Steady Cow Assignment POJ
    二分图多重匹配问题
    Tour HDU
    奔小康赚大钱 HDU
    Strategic Game HDU
    Antenna Placement POJ
    Oil Skimming HDU
    Rain on your Parade HDU
    假如,
    这样也可以,insert,,
  • 原文地址:https://www.cnblogs.com/jinsuo/p/13784824.html
Copyright © 2011-2022 走看看