long_warn.js
426 Bytes
var t = getApp();
Component({
  /**
   * 页面的初始数据
   */
  data: {
    val:"212121",
    is_show:0,
    type:0,  //0 提示,失败  1成功
    iurl:t.globalData.setting.imghost,
  },
  methods: {
     open:function (e,type) {
         var that=this;
         this.setData({is_show:1,val:e,type:type});
         setTimeout(function () {
             that.setData({is_show:0});
         },2000);
     }
  }
  
})