diff --git a/packageA/pages/my_service/i_service.js b/packageA/pages/my_service/i_service.js index e820f39..d3dfbd8 100644 --- a/packageA/pages/my_service/i_service.js +++ b/packageA/pages/my_service/i_service.js @@ -50,8 +50,11 @@ Page({ */ onShow: function() { var th = this; - var my_confirm = th.selectComponent("#my_confirm"); //组件的id - my_confirm.open_cancel(0); + setTimeout(function (){ + var my_confirm = th.selectComponent("#my_confirm"); //组件的id + my_confirm.open_cancel(0); + },1000); + }, onReachBottom: function() { diff --git a/pages/giftpack/buygiftpack/giftpackbuy.js b/pages/giftpack/buygiftpack/giftpackbuy.js index adcd413..a699bee 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.js +++ b/pages/giftpack/buygiftpack/giftpackbuy.js @@ -30,8 +30,13 @@ Page({ onLoad: function(options) { var th = this; - var my_confirm = th.selectComponent("#my_confirm"); //组件的id - my_confirm.open_cancel(0); + setTimeout(function (){ + var my_confirm = th.selectComponent("#my_confirm"); //组件的id + my_confirm.open_cancel(0); + },1000) + + + th.setData({ getStorageID: a.stoid, getUserID: d.user_id diff --git a/pages/user/my_service/i_service.js b/pages/user/my_service/i_service.js index 54d868b..243edd5 100644 --- a/pages/user/my_service/i_service.js +++ b/pages/user/my_service/i_service.js @@ -45,8 +45,11 @@ Page({ */ onShow: function() { var th = this; - var my_confirm = th.selectComponent("#my_confirm"); //组件的id - my_confirm.open_cancel(0); + setTimeout(function (){ + var my_confirm = th.selectComponent("#my_confirm"); //组件的id + my_confirm.open_cancel(0); + },1000) + }, onReachBottom: function() { var th = this;