加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

小程序弹出框详解

发布时间:2020-12-14 19:28:48 所属栏目:资源 来源:网络整理
导读:小程序弹出框详解" style="margin: 20px 0px; font-family: "PingFang SC","Hiragino Sans GB","Helvetica Neue","Microsoft Yahei","WenQuanYi Micro Hei",sans-serif; font-weight: 500; line-height: 40px; color: rgb(44,62,80); text-rendering: optimi
  1. qjlx: function() {
  2. , '事假'];
  3. itemList itemList consolelog);
  4. },
  5. errMsg);
  6. })
  7. 操作菜单——wx.showActionSheet(OBJECT)

    效果

    效果

    //获取应用实例    
  8. app getApp
  9. Page({
  10. wx
  11. 'B''C'],0);">
  12. console
  13. fail
  14. }

弹出框

<view class='item'>
  • 'bk'>
  • bindinput"password"maxlength'100'auto-heightdisabled/>
  • bindtap'dlmm'>修改</button>
  • 'ipsd'type'text'"请输入原密码..."auto-focus/>
  • 'password'"请输入新密码..." />
  • // 获取登录密码:
  • thissetData({
  • })
  • // 修改登录密码
  • ({
  • })
  • true
  • "原密码" thatpsd "新密码"newpsd);
  • url'' method'POST' header 'Authorization''Bearer' wxgetStorageSync'token'),
  • ifcode == 0{
  • title'保存失败' duration500
  • else thatgetShowToast();
  • }
  • ipsd{
  • psdvalue
  • newipsd{
  • })
  • 指定modal弹出

    </view>"请输入验证码""重置""cancel""confirm"'text'"请输入内容"/></modal> 
  •     //点击按钮痰喘指定的hiddenmodalput弹出框  
    
  • //取消按钮
  • confirm
  • (){
    
  • )
  • })
  • >
    
  • </view>
  • />
  • //获取应用实例
  • Page({
  • hiddenmodalput:true,0);"> //可以通过hidden是否掩藏弹出框的属性,来指定那个弹出框
  • modalinput:function(){
  • hiddenmodalput: !this.data.hiddenmodalput
  • cancel: function(){
  • hiddenmodalput: true
  • //确认
  • this.setData({
  • })
  • Youand me we are family !
  • 90后帅气小伙,良好的开发习惯;独立思考的能力;主动并且善于沟通
  • https://www.jianshu.com/u/c785ece603d1
  • 结语

    下面我将继续对 其他知识 深入讲解 ,有兴趣可以继续关注?
    小礼物走一走 or 点赞

    (编辑:李大同)

    【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

      推荐文章
        热点阅读