>》>》>》>》

弹窗提示

if(type == 'minus' && this.orders[index].qty <= 1){
          wx.showToast({
                    title: '商品不能再减了哟~',
                    icon: 'none',
                    duration: 3000              
          });
          return
   }

 

 

 

 

发请求之前显示加载

onLoad(){
        // this.init()
        wx.showLoading({
                title:'玩命加载中...',
          
           mask: true

            })
        // setTimeout(function(){
        //         wx.hideLoading()
        //     },5000)
    },

 

 

posted @ 2019-09-05 17:11  大、锤  阅读(182)  评论(0编辑  收藏  举报